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

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.
@@ -0,0 +1,1405 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainConsts } from '@dedot/types';
4
+ import type { RuntimeVersion, Permill, Bytes, Perquintill, FixedU128 } from '@dedot/codecs';
5
+ import type {
6
+ FrameSystemLimitsBlockWeights,
7
+ FrameSystemLimitsBlockLength,
8
+ SpWeightsRuntimeDbWeight,
9
+ FrameSupportPalletId,
10
+ PalletReferendaTrackInfo,
11
+ SpWeightsWeightV2Weight,
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 `Babe`'s constants
60
+ **/
61
+ babe: {
62
+ /**
63
+ * The amount of time, in slots, that each epoch should last.
64
+ * NOTE: Currently it is not possible to change the epoch duration after
65
+ * the chain has started. Attempting to do so will brick block production.
66
+ **/
67
+ epochDuration: bigint;
68
+
69
+ /**
70
+ * The expected average block time at which BABE should be creating
71
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
72
+ * what the expected average block time should be based on the slot
73
+ * duration and the security parameter `c` (where `1 - c` represents
74
+ * the probability of a slot being empty).
75
+ **/
76
+ expectedBlockTime: bigint;
77
+
78
+ /**
79
+ * Max number of authorities allowed
80
+ **/
81
+ maxAuthorities: number;
82
+
83
+ /**
84
+ * The maximum number of nominators for each validator.
85
+ **/
86
+ maxNominators: number;
87
+
88
+ /**
89
+ * Generic pallet constant
90
+ **/
91
+ [name: string]: any;
92
+ };
93
+ /**
94
+ * Pallet `Timestamp`'s constants
95
+ **/
96
+ timestamp: {
97
+ /**
98
+ * The minimum period between blocks.
99
+ *
100
+ * Be aware that this is different to the *expected* period that the block production
101
+ * apparatus provides. Your chosen consensus system will generally work with this to
102
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
103
+ * period on default settings.
104
+ **/
105
+ minimumPeriod: bigint;
106
+
107
+ /**
108
+ * Generic pallet constant
109
+ **/
110
+ [name: string]: any;
111
+ };
112
+ /**
113
+ * Pallet `Indices`'s constants
114
+ **/
115
+ indices: {
116
+ /**
117
+ * The deposit needed for reserving an index.
118
+ **/
119
+ deposit: bigint;
120
+
121
+ /**
122
+ * Generic pallet constant
123
+ **/
124
+ [name: string]: any;
125
+ };
126
+ /**
127
+ * Pallet `Balances`'s constants
128
+ **/
129
+ balances: {
130
+ /**
131
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
132
+ *
133
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
134
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
135
+ * In case you have multiple sources of provider references, you may also get unexpected
136
+ * behaviour if you set this to zero.
137
+ *
138
+ * Bottom line: Do yourself a favour and make it at least one!
139
+ **/
140
+ existentialDeposit: bigint;
141
+
142
+ /**
143
+ * The maximum number of locks that should exist on an account.
144
+ * Not strictly enforced, but used for weight estimation.
145
+ **/
146
+ maxLocks: number;
147
+
148
+ /**
149
+ * The maximum number of named reserves that can exist on an account.
150
+ **/
151
+ maxReserves: number;
152
+
153
+ /**
154
+ * The maximum number of individual freeze locks that can exist on an account at any time.
155
+ **/
156
+ maxFreezes: number;
157
+
158
+ /**
159
+ * Generic pallet constant
160
+ **/
161
+ [name: string]: any;
162
+ };
163
+ /**
164
+ * Pallet `TransactionPayment`'s constants
165
+ **/
166
+ transactionPayment: {
167
+ /**
168
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
169
+ * `priority`
170
+ *
171
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
172
+ * added to a tip component in regular `priority` calculations.
173
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
174
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
175
+ *
176
+ * ```rust,ignore
177
+ * // For `Normal`
178
+ * let priority = priority_calc(tip);
179
+ *
180
+ * // For `Operational`
181
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
182
+ * let priority = priority_calc(tip + virtual_tip);
183
+ * ```
184
+ *
185
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
186
+ * sent with the transaction. So, not only does the transaction get a priority bump based
187
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
188
+ * transactions.
189
+ **/
190
+ operationalFeeMultiplier: number;
191
+
192
+ /**
193
+ * Generic pallet constant
194
+ **/
195
+ [name: string]: any;
196
+ };
197
+ /**
198
+ * Pallet `Authorship`'s constants
199
+ **/
200
+ authorship: {
201
+ /**
202
+ * Generic pallet constant
203
+ **/
204
+ [name: string]: any;
205
+ };
206
+ /**
207
+ * Pallet `Offences`'s constants
208
+ **/
209
+ offences: {
210
+ /**
211
+ * Generic pallet constant
212
+ **/
213
+ [name: string]: any;
214
+ };
215
+ /**
216
+ * Pallet `Historical`'s constants
217
+ **/
218
+ historical: {
219
+ /**
220
+ * Generic pallet constant
221
+ **/
222
+ [name: string]: any;
223
+ };
224
+ /**
225
+ * Pallet `Session`'s constants
226
+ **/
227
+ session: {
228
+ /**
229
+ * Generic pallet constant
230
+ **/
231
+ [name: string]: any;
232
+ };
233
+ /**
234
+ * Pallet `Grandpa`'s constants
235
+ **/
236
+ grandpa: {
237
+ /**
238
+ * Max Authorities in use
239
+ **/
240
+ maxAuthorities: number;
241
+
242
+ /**
243
+ * The maximum number of nominators for each validator.
244
+ **/
245
+ maxNominators: number;
246
+
247
+ /**
248
+ * The maximum number of entries to keep in the set id to session index mapping.
249
+ *
250
+ * Since the `SetIdSession` map is only used for validating equivocations this
251
+ * value should relate to the bonding duration of whatever staking system is
252
+ * being used (if any). If equivocation handling is not enabled then this value
253
+ * can be zero.
254
+ **/
255
+ maxSetIdSessionEntries: bigint;
256
+
257
+ /**
258
+ * Generic pallet constant
259
+ **/
260
+ [name: string]: any;
261
+ };
262
+ /**
263
+ * Pallet `AuthorityDiscovery`'s constants
264
+ **/
265
+ authorityDiscovery: {
266
+ /**
267
+ * Generic pallet constant
268
+ **/
269
+ [name: string]: any;
270
+ };
271
+ /**
272
+ * Pallet `Treasury`'s constants
273
+ **/
274
+ treasury: {
275
+ /**
276
+ * Fraction of a proposal's value that should be bonded in order to place the proposal.
277
+ * An accepted proposal gets these back. A rejected proposal does not.
278
+ **/
279
+ proposalBond: Permill;
280
+
281
+ /**
282
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
283
+ **/
284
+ proposalBondMinimum: bigint;
285
+
286
+ /**
287
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
288
+ **/
289
+ proposalBondMaximum: bigint | undefined;
290
+
291
+ /**
292
+ * Period between successive spends.
293
+ **/
294
+ spendPeriod: number;
295
+
296
+ /**
297
+ * Percentage of spare funds (if any) that are burnt per spend period.
298
+ **/
299
+ burn: Permill;
300
+
301
+ /**
302
+ * The treasury's pallet id, used for deriving its sovereign account ID.
303
+ **/
304
+ palletId: FrameSupportPalletId;
305
+
306
+ /**
307
+ * The maximum number of approvals that can wait in the spending queue.
308
+ *
309
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
310
+ **/
311
+ maxApprovals: number;
312
+
313
+ /**
314
+ * The period during which an approved treasury spend has to be claimed.
315
+ **/
316
+ payoutPeriod: number;
317
+
318
+ /**
319
+ * Generic pallet constant
320
+ **/
321
+ [name: string]: any;
322
+ };
323
+ /**
324
+ * Pallet `ConvictionVoting`'s constants
325
+ **/
326
+ convictionVoting: {
327
+ /**
328
+ * The maximum number of concurrent votes an account may have.
329
+ *
330
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
331
+ * weight estimation: see `delegate` for instance.
332
+ **/
333
+ maxVotes: number;
334
+
335
+ /**
336
+ * The minimum period of vote locking.
337
+ *
338
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
339
+ * those successful voters are locked into the consequences that their votes entail.
340
+ **/
341
+ voteLockingPeriod: number;
342
+
343
+ /**
344
+ * Generic pallet constant
345
+ **/
346
+ [name: string]: any;
347
+ };
348
+ /**
349
+ * Pallet `Referenda`'s constants
350
+ **/
351
+ referenda: {
352
+ /**
353
+ * The minimum amount to be used as a deposit for a public referendum proposal.
354
+ **/
355
+ submissionDeposit: bigint;
356
+
357
+ /**
358
+ * Maximum size of the referendum queue for a single track.
359
+ **/
360
+ maxQueued: number;
361
+
362
+ /**
363
+ * The number of blocks after submission that a referendum must begin being decided by.
364
+ * Once this passes, then anyone may cancel the referendum.
365
+ **/
366
+ undecidingTimeout: number;
367
+
368
+ /**
369
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
370
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
371
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
372
+ **/
373
+ alarmInterval: number;
374
+
375
+ /**
376
+ * Information concerning the different referendum tracks.
377
+ **/
378
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
379
+
380
+ /**
381
+ * Generic pallet constant
382
+ **/
383
+ [name: string]: any;
384
+ };
385
+ /**
386
+ * Pallet `FellowshipCollective`'s constants
387
+ **/
388
+ fellowshipCollective: {
389
+ /**
390
+ * Generic pallet constant
391
+ **/
392
+ [name: string]: any;
393
+ };
394
+ /**
395
+ * Pallet `FellowshipReferenda`'s constants
396
+ **/
397
+ fellowshipReferenda: {
398
+ /**
399
+ * The minimum amount to be used as a deposit for a public referendum proposal.
400
+ **/
401
+ submissionDeposit: bigint;
402
+
403
+ /**
404
+ * Maximum size of the referendum queue for a single track.
405
+ **/
406
+ maxQueued: number;
407
+
408
+ /**
409
+ * The number of blocks after submission that a referendum must begin being decided by.
410
+ * Once this passes, then anyone may cancel the referendum.
411
+ **/
412
+ undecidingTimeout: number;
413
+
414
+ /**
415
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
416
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
417
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
418
+ **/
419
+ alarmInterval: number;
420
+
421
+ /**
422
+ * Information concerning the different referendum tracks.
423
+ **/
424
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
425
+
426
+ /**
427
+ * Generic pallet constant
428
+ **/
429
+ [name: string]: any;
430
+ };
431
+ /**
432
+ * Pallet `Origins`'s constants
433
+ **/
434
+ origins: {
435
+ /**
436
+ * Generic pallet constant
437
+ **/
438
+ [name: string]: any;
439
+ };
440
+ /**
441
+ * Pallet `Whitelist`'s constants
442
+ **/
443
+ whitelist: {
444
+ /**
445
+ * Generic pallet constant
446
+ **/
447
+ [name: string]: any;
448
+ };
449
+ /**
450
+ * Pallet `Claims`'s constants
451
+ **/
452
+ claims: {
453
+ prefix: Bytes;
454
+
455
+ /**
456
+ * Generic pallet constant
457
+ **/
458
+ [name: string]: any;
459
+ };
460
+ /**
461
+ * Pallet `Utility`'s constants
462
+ **/
463
+ utility: {
464
+ /**
465
+ * The limit on the number of batched calls.
466
+ **/
467
+ batchedCallsLimit: number;
468
+
469
+ /**
470
+ * Generic pallet constant
471
+ **/
472
+ [name: string]: any;
473
+ };
474
+ /**
475
+ * Pallet `Identity`'s constants
476
+ **/
477
+ identity: {
478
+ /**
479
+ * The amount held on deposit for a registered identity.
480
+ **/
481
+ basicDeposit: bigint;
482
+
483
+ /**
484
+ * The amount held on deposit per encoded byte for a registered identity.
485
+ **/
486
+ byteDeposit: bigint;
487
+
488
+ /**
489
+ * The amount held on deposit for a registered subaccount. This should account for the fact
490
+ * that one storage item's value will increase by the size of an account ID, and there will
491
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
492
+ **/
493
+ subAccountDeposit: bigint;
494
+
495
+ /**
496
+ * The maximum number of sub-accounts allowed per identified account.
497
+ **/
498
+ maxSubAccounts: number;
499
+
500
+ /**
501
+ * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
502
+ * of, e.g., updating judgements.
503
+ **/
504
+ maxRegistrars: number;
505
+
506
+ /**
507
+ * The number of blocks within which a username grant must be accepted.
508
+ **/
509
+ pendingUsernameExpiration: number;
510
+
511
+ /**
512
+ * The maximum length of a suffix.
513
+ **/
514
+ maxSuffixLength: number;
515
+
516
+ /**
517
+ * The maximum length of a username, including its suffix and any system-added delimiters.
518
+ **/
519
+ maxUsernameLength: number;
520
+
521
+ /**
522
+ * Generic pallet constant
523
+ **/
524
+ [name: string]: any;
525
+ };
526
+ /**
527
+ * Pallet `Society`'s constants
528
+ **/
529
+ society: {
530
+ /**
531
+ * The societies's pallet id
532
+ **/
533
+ palletId: FrameSupportPalletId;
534
+
535
+ /**
536
+ * The maximum number of strikes before a member gets funds slashed.
537
+ **/
538
+ graceStrikes: number;
539
+
540
+ /**
541
+ * The amount of incentive paid within each period. Doesn't include VoterTip.
542
+ **/
543
+ periodSpend: bigint;
544
+
545
+ /**
546
+ * The number of blocks on which new candidates should be voted on. Together with
547
+ * `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
548
+ **/
549
+ votingPeriod: number;
550
+
551
+ /**
552
+ * The number of blocks on which new candidates can claim their membership and be the
553
+ * named head.
554
+ **/
555
+ claimPeriod: number;
556
+
557
+ /**
558
+ * The maximum duration of the payout lock.
559
+ **/
560
+ maxLockDuration: number;
561
+
562
+ /**
563
+ * The number of blocks between membership challenges.
564
+ **/
565
+ challengePeriod: number;
566
+
567
+ /**
568
+ * The maximum number of payouts a member may have waiting unclaimed.
569
+ **/
570
+ maxPayouts: number;
571
+
572
+ /**
573
+ * The maximum number of bids at once.
574
+ **/
575
+ maxBids: number;
576
+
577
+ /**
578
+ * Generic pallet constant
579
+ **/
580
+ [name: string]: any;
581
+ };
582
+ /**
583
+ * Pallet `Recovery`'s constants
584
+ **/
585
+ recovery: {
586
+ /**
587
+ * The base amount of currency needed to reserve for creating a recovery configuration.
588
+ *
589
+ * This is held for an additional storage item whose value size is
590
+ * `2 + sizeof(BlockNumber, Balance)` bytes.
591
+ **/
592
+ configDepositBase: bigint;
593
+
594
+ /**
595
+ * The amount of currency needed per additional user when creating a recovery
596
+ * configuration.
597
+ *
598
+ * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
599
+ * value.
600
+ **/
601
+ friendDepositFactor: bigint;
602
+
603
+ /**
604
+ * The maximum amount of friends allowed in a recovery configuration.
605
+ *
606
+ * NOTE: The threshold programmed in this Pallet uses u16, so it does
607
+ * not really make sense to have a limit here greater than u16::MAX.
608
+ * But also, that is a lot more than you should probably set this value
609
+ * to anyway...
610
+ **/
611
+ maxFriends: number;
612
+
613
+ /**
614
+ * The base amount of currency needed to reserve for starting a recovery.
615
+ *
616
+ * This is primarily held for deterring malicious recovery attempts, and should
617
+ * have a value large enough that a bad actor would choose not to place this
618
+ * deposit. It also acts to fund additional storage item whose value size is
619
+ * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
620
+ * threshold.
621
+ **/
622
+ recoveryDeposit: bigint;
623
+
624
+ /**
625
+ * Generic pallet constant
626
+ **/
627
+ [name: string]: any;
628
+ };
629
+ /**
630
+ * Pallet `Vesting`'s constants
631
+ **/
632
+ vesting: {
633
+ /**
634
+ * The minimum amount transferred to call `vested_transfer`.
635
+ **/
636
+ minVestedTransfer: bigint;
637
+ maxVestingSchedules: number;
638
+
639
+ /**
640
+ * Generic pallet constant
641
+ **/
642
+ [name: string]: any;
643
+ };
644
+ /**
645
+ * Pallet `Scheduler`'s constants
646
+ **/
647
+ scheduler: {
648
+ /**
649
+ * The maximum weight that may be scheduled per block for any dispatchables.
650
+ **/
651
+ maximumWeight: SpWeightsWeightV2Weight;
652
+
653
+ /**
654
+ * The maximum number of scheduled calls in the queue for a single block.
655
+ *
656
+ * NOTE:
657
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
658
+ * higher limit under `runtime-benchmarks` feature.
659
+ **/
660
+ maxScheduledPerBlock: number;
661
+
662
+ /**
663
+ * Generic pallet constant
664
+ **/
665
+ [name: string]: any;
666
+ };
667
+ /**
668
+ * Pallet `Proxy`'s constants
669
+ **/
670
+ proxy: {
671
+ /**
672
+ * The base amount of currency needed to reserve for creating a proxy.
673
+ *
674
+ * This is held for an additional storage item whose value size is
675
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
676
+ **/
677
+ proxyDepositBase: bigint;
678
+
679
+ /**
680
+ * The amount of currency needed per proxy added.
681
+ *
682
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
683
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
684
+ * into account `32 + proxy_type.encode().len()` bytes of data.
685
+ **/
686
+ proxyDepositFactor: bigint;
687
+
688
+ /**
689
+ * The maximum amount of proxies allowed for a single account.
690
+ **/
691
+ maxProxies: number;
692
+
693
+ /**
694
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
695
+ **/
696
+ maxPending: number;
697
+
698
+ /**
699
+ * The base amount of currency needed to reserve for creating an announcement.
700
+ *
701
+ * This is held when a new storage item holding a `Balance` is created (typically 16
702
+ * bytes).
703
+ **/
704
+ announcementDepositBase: bigint;
705
+
706
+ /**
707
+ * The amount of currency needed per announcement made.
708
+ *
709
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
710
+ * into a pre-existing storage value.
711
+ **/
712
+ announcementDepositFactor: bigint;
713
+
714
+ /**
715
+ * Generic pallet constant
716
+ **/
717
+ [name: string]: any;
718
+ };
719
+ /**
720
+ * Pallet `Multisig`'s constants
721
+ **/
722
+ multisig: {
723
+ /**
724
+ * The base amount of currency needed to reserve for creating a multisig execution or to
725
+ * store a dispatch call for later.
726
+ *
727
+ * This is held for an additional storage item whose value size is
728
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
729
+ * `32 + sizeof(AccountId)` bytes.
730
+ **/
731
+ depositBase: bigint;
732
+
733
+ /**
734
+ * The amount of currency needed per unit threshold when creating a multisig execution.
735
+ *
736
+ * This is held for adding 32 bytes more into a pre-existing storage value.
737
+ **/
738
+ depositFactor: bigint;
739
+
740
+ /**
741
+ * The maximum amount of signatories allowed in the multisig.
742
+ **/
743
+ maxSignatories: number;
744
+
745
+ /**
746
+ * Generic pallet constant
747
+ **/
748
+ [name: string]: any;
749
+ };
750
+ /**
751
+ * Pallet `Preimage`'s constants
752
+ **/
753
+ preimage: {
754
+ /**
755
+ * Generic pallet constant
756
+ **/
757
+ [name: string]: any;
758
+ };
759
+ /**
760
+ * Pallet `AssetRate`'s constants
761
+ **/
762
+ assetRate: {
763
+ /**
764
+ * Generic pallet constant
765
+ **/
766
+ [name: string]: any;
767
+ };
768
+ /**
769
+ * Pallet `Bounties`'s constants
770
+ **/
771
+ bounties: {
772
+ /**
773
+ * The amount held on deposit for placing a bounty proposal.
774
+ **/
775
+ bountyDepositBase: bigint;
776
+
777
+ /**
778
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
779
+ **/
780
+ bountyDepositPayoutDelay: number;
781
+
782
+ /**
783
+ * Bounty duration in blocks.
784
+ **/
785
+ bountyUpdatePeriod: number;
786
+
787
+ /**
788
+ * The curator deposit is calculated as a percentage of the curator fee.
789
+ *
790
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
791
+ * `CuratorDepositMin`.
792
+ **/
793
+ curatorDepositMultiplier: Permill;
794
+
795
+ /**
796
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
797
+ **/
798
+ curatorDepositMax: bigint | undefined;
799
+
800
+ /**
801
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
802
+ **/
803
+ curatorDepositMin: bigint | undefined;
804
+
805
+ /**
806
+ * Minimum value for a bounty.
807
+ **/
808
+ bountyValueMinimum: bigint;
809
+
810
+ /**
811
+ * The amount held on deposit per byte within the tip report reason or bounty description.
812
+ **/
813
+ dataDepositPerByte: bigint;
814
+
815
+ /**
816
+ * Maximum acceptable reason length.
817
+ *
818
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
819
+ **/
820
+ maximumReasonLength: number;
821
+
822
+ /**
823
+ * Generic pallet constant
824
+ **/
825
+ [name: string]: any;
826
+ };
827
+ /**
828
+ * Pallet `ChildBounties`'s constants
829
+ **/
830
+ childBounties: {
831
+ /**
832
+ * Maximum number of child bounties that can be added to a parent bounty.
833
+ **/
834
+ maxActiveChildBountyCount: number;
835
+
836
+ /**
837
+ * Minimum value for a child-bounty.
838
+ **/
839
+ childBountyValueMinimum: bigint;
840
+
841
+ /**
842
+ * Generic pallet constant
843
+ **/
844
+ [name: string]: any;
845
+ };
846
+ /**
847
+ * Pallet `Nis`'s constants
848
+ **/
849
+ nis: {
850
+ /**
851
+ * The treasury's pallet id, used for deriving its sovereign account ID.
852
+ **/
853
+ palletId: FrameSupportPalletId;
854
+
855
+ /**
856
+ * Number of duration queues in total. This sets the maximum duration supported, which is
857
+ * this value multiplied by `Period`.
858
+ **/
859
+ queueCount: number;
860
+
861
+ /**
862
+ * Maximum number of items that may be in each duration queue.
863
+ *
864
+ * Must be larger than zero.
865
+ **/
866
+ maxQueueLen: number;
867
+
868
+ /**
869
+ * Portion of the queue which is free from ordering and just a FIFO.
870
+ *
871
+ * Must be no greater than `MaxQueueLen`.
872
+ **/
873
+ fifoQueueLen: number;
874
+
875
+ /**
876
+ * The base period for the duration queues. This is the common multiple across all
877
+ * supported freezing durations that can be bid upon.
878
+ **/
879
+ basePeriod: number;
880
+
881
+ /**
882
+ * The minimum amount of funds that may be placed in a bid. Note that this
883
+ * does not actually limit the amount which may be represented in a receipt since bids may
884
+ * be split up by the system.
885
+ *
886
+ * It should be at least big enough to ensure that there is no possible storage spam attack
887
+ * or queue-filling attack.
888
+ **/
889
+ minBid: bigint;
890
+
891
+ /**
892
+ * The minimum amount of funds which may intentionally be left remaining under a single
893
+ * receipt.
894
+ **/
895
+ minReceipt: Perquintill;
896
+
897
+ /**
898
+ * The number of blocks between consecutive attempts to dequeue bids and create receipts.
899
+ *
900
+ * A larger value results in fewer storage hits each block, but a slower period to get to
901
+ * the target.
902
+ **/
903
+ intakePeriod: number;
904
+
905
+ /**
906
+ * The maximum amount of bids that can consolidated into receipts in a single intake. A
907
+ * larger value here means less of the block available for transactions should there be a
908
+ * glut of bids.
909
+ **/
910
+ maxIntakeWeight: SpWeightsWeightV2Weight;
911
+
912
+ /**
913
+ * The maximum proportion which may be thawed and the period over which it is reset.
914
+ **/
915
+ thawThrottle: [Perquintill, number];
916
+
917
+ /**
918
+ * Generic pallet constant
919
+ **/
920
+ [name: string]: any;
921
+ };
922
+ /**
923
+ * Pallet `NisCounterpartBalances`'s constants
924
+ **/
925
+ nisCounterpartBalances: {
926
+ /**
927
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
928
+ *
929
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
930
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
931
+ * In case you have multiple sources of provider references, you may also get unexpected
932
+ * behaviour if you set this to zero.
933
+ *
934
+ * Bottom line: Do yourself a favour and make it at least one!
935
+ **/
936
+ existentialDeposit: bigint;
937
+
938
+ /**
939
+ * The maximum number of locks that should exist on an account.
940
+ * Not strictly enforced, but used for weight estimation.
941
+ **/
942
+ maxLocks: number;
943
+
944
+ /**
945
+ * The maximum number of named reserves that can exist on an account.
946
+ **/
947
+ maxReserves: number;
948
+
949
+ /**
950
+ * The maximum number of individual freeze locks that can exist on an account at any time.
951
+ **/
952
+ maxFreezes: number;
953
+
954
+ /**
955
+ * Generic pallet constant
956
+ **/
957
+ [name: string]: any;
958
+ };
959
+ /**
960
+ * Pallet `ParachainsOrigin`'s constants
961
+ **/
962
+ parachainsOrigin: {
963
+ /**
964
+ * Generic pallet constant
965
+ **/
966
+ [name: string]: any;
967
+ };
968
+ /**
969
+ * Pallet `Configuration`'s constants
970
+ **/
971
+ configuration: {
972
+ /**
973
+ * Generic pallet constant
974
+ **/
975
+ [name: string]: any;
976
+ };
977
+ /**
978
+ * Pallet `ParasShared`'s constants
979
+ **/
980
+ parasShared: {
981
+ /**
982
+ * Generic pallet constant
983
+ **/
984
+ [name: string]: any;
985
+ };
986
+ /**
987
+ * Pallet `ParaInclusion`'s constants
988
+ **/
989
+ paraInclusion: {
990
+ /**
991
+ * Generic pallet constant
992
+ **/
993
+ [name: string]: any;
994
+ };
995
+ /**
996
+ * Pallet `ParaInherent`'s constants
997
+ **/
998
+ paraInherent: {
999
+ /**
1000
+ * Generic pallet constant
1001
+ **/
1002
+ [name: string]: any;
1003
+ };
1004
+ /**
1005
+ * Pallet `ParaScheduler`'s constants
1006
+ **/
1007
+ paraScheduler: {
1008
+ /**
1009
+ * Generic pallet constant
1010
+ **/
1011
+ [name: string]: any;
1012
+ };
1013
+ /**
1014
+ * Pallet `Paras`'s constants
1015
+ **/
1016
+ paras: {
1017
+ unsignedPriority: bigint;
1018
+
1019
+ /**
1020
+ * Generic pallet constant
1021
+ **/
1022
+ [name: string]: any;
1023
+ };
1024
+ /**
1025
+ * Pallet `Initializer`'s constants
1026
+ **/
1027
+ initializer: {
1028
+ /**
1029
+ * Generic pallet constant
1030
+ **/
1031
+ [name: string]: any;
1032
+ };
1033
+ /**
1034
+ * Pallet `Dmp`'s constants
1035
+ **/
1036
+ dmp: {
1037
+ /**
1038
+ * Generic pallet constant
1039
+ **/
1040
+ [name: string]: any;
1041
+ };
1042
+ /**
1043
+ * Pallet `Hrmp`'s constants
1044
+ **/
1045
+ hrmp: {
1046
+ /**
1047
+ * Generic pallet constant
1048
+ **/
1049
+ [name: string]: any;
1050
+ };
1051
+ /**
1052
+ * Pallet `ParaSessionInfo`'s constants
1053
+ **/
1054
+ paraSessionInfo: {
1055
+ /**
1056
+ * Generic pallet constant
1057
+ **/
1058
+ [name: string]: any;
1059
+ };
1060
+ /**
1061
+ * Pallet `ParasDisputes`'s constants
1062
+ **/
1063
+ parasDisputes: {
1064
+ /**
1065
+ * Generic pallet constant
1066
+ **/
1067
+ [name: string]: any;
1068
+ };
1069
+ /**
1070
+ * Pallet `ParasSlashing`'s constants
1071
+ **/
1072
+ parasSlashing: {
1073
+ /**
1074
+ * Generic pallet constant
1075
+ **/
1076
+ [name: string]: any;
1077
+ };
1078
+ /**
1079
+ * Pallet `MessageQueue`'s constants
1080
+ **/
1081
+ messageQueue: {
1082
+ /**
1083
+ * The size of the page; this implies the maximum message size which can be sent.
1084
+ *
1085
+ * A good value depends on the expected message sizes, their weights, the weight that is
1086
+ * available for processing them and the maximal needed message size. The maximal message
1087
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
1088
+ **/
1089
+ heapSize: number;
1090
+
1091
+ /**
1092
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
1093
+ * can happen. Once there are more stale pages than this, then historical pages may be
1094
+ * dropped, even if they contain unprocessed overweight messages.
1095
+ **/
1096
+ maxStale: number;
1097
+
1098
+ /**
1099
+ * The amount of weight (if any) which should be provided to the message queue for
1100
+ * servicing enqueued items.
1101
+ *
1102
+ * This may be legitimately `None` in the case that you will call
1103
+ * `ServiceQueues::service_queues` manually.
1104
+ **/
1105
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
1106
+
1107
+ /**
1108
+ * Generic pallet constant
1109
+ **/
1110
+ [name: string]: any;
1111
+ };
1112
+ /**
1113
+ * Pallet `OnDemandAssignmentProvider`'s constants
1114
+ **/
1115
+ onDemandAssignmentProvider: {
1116
+ /**
1117
+ * The default value for the spot traffic multiplier.
1118
+ **/
1119
+ trafficDefaultValue: FixedU128;
1120
+
1121
+ /**
1122
+ * Generic pallet constant
1123
+ **/
1124
+ [name: string]: any;
1125
+ };
1126
+ /**
1127
+ * Pallet `ParachainsAssignmentProvider`'s constants
1128
+ **/
1129
+ parachainsAssignmentProvider: {
1130
+ /**
1131
+ * Generic pallet constant
1132
+ **/
1133
+ [name: string]: any;
1134
+ };
1135
+ /**
1136
+ * Pallet `CoretimeAssignmentProvider`'s constants
1137
+ **/
1138
+ coretimeAssignmentProvider: {
1139
+ /**
1140
+ * Generic pallet constant
1141
+ **/
1142
+ [name: string]: any;
1143
+ };
1144
+ /**
1145
+ * Pallet `Registrar`'s constants
1146
+ **/
1147
+ registrar: {
1148
+ /**
1149
+ * The deposit to be paid to run a on-demand parachain.
1150
+ * This should include the cost for storing the genesis head and validation code.
1151
+ **/
1152
+ paraDeposit: bigint;
1153
+
1154
+ /**
1155
+ * The deposit to be paid per byte stored on chain.
1156
+ **/
1157
+ dataDepositPerByte: bigint;
1158
+
1159
+ /**
1160
+ * Generic pallet constant
1161
+ **/
1162
+ [name: string]: any;
1163
+ };
1164
+ /**
1165
+ * Pallet `Slots`'s constants
1166
+ **/
1167
+ slots: {
1168
+ /**
1169
+ * The number of blocks over which a single period lasts.
1170
+ **/
1171
+ leasePeriod: number;
1172
+
1173
+ /**
1174
+ * The number of blocks to offset each lease period by.
1175
+ **/
1176
+ leaseOffset: number;
1177
+
1178
+ /**
1179
+ * Generic pallet constant
1180
+ **/
1181
+ [name: string]: any;
1182
+ };
1183
+ /**
1184
+ * Pallet `Auctions`'s constants
1185
+ **/
1186
+ auctions: {
1187
+ /**
1188
+ * The number of blocks over which an auction may be retroactively ended.
1189
+ **/
1190
+ endingPeriod: number;
1191
+
1192
+ /**
1193
+ * The length of each sample to take during the ending period.
1194
+ *
1195
+ * `EndingPeriod` / `SampleLength` = Total # of Samples
1196
+ **/
1197
+ sampleLength: number;
1198
+ slotRangeCount: number;
1199
+ leasePeriodsPerSlot: number;
1200
+
1201
+ /**
1202
+ * Generic pallet constant
1203
+ **/
1204
+ [name: string]: any;
1205
+ };
1206
+ /**
1207
+ * Pallet `Crowdloan`'s constants
1208
+ **/
1209
+ crowdloan: {
1210
+ /**
1211
+ * `PalletId` for the crowdloan pallet. An appropriate value could be
1212
+ * `PalletId(*b"py/cfund")`
1213
+ **/
1214
+ palletId: FrameSupportPalletId;
1215
+
1216
+ /**
1217
+ * The minimum amount that may be contributed into a crowdloan. Should almost certainly be
1218
+ * at least `ExistentialDeposit`.
1219
+ **/
1220
+ minContribution: bigint;
1221
+
1222
+ /**
1223
+ * Max number of storage keys to remove per extrinsic call.
1224
+ **/
1225
+ removeKeysLimit: number;
1226
+
1227
+ /**
1228
+ * Generic pallet constant
1229
+ **/
1230
+ [name: string]: any;
1231
+ };
1232
+ /**
1233
+ * Pallet `Coretime`'s constants
1234
+ **/
1235
+ coretime: {
1236
+ /**
1237
+ * The ParaId of the broker system parachain.
1238
+ **/
1239
+ brokerId: number;
1240
+
1241
+ /**
1242
+ * Generic pallet constant
1243
+ **/
1244
+ [name: string]: any;
1245
+ };
1246
+ /**
1247
+ * Pallet `XcmPallet`'s constants
1248
+ **/
1249
+ xcmPallet: {
1250
+ /**
1251
+ * Generic pallet constant
1252
+ **/
1253
+ [name: string]: any;
1254
+ };
1255
+ /**
1256
+ * Pallet `Beefy`'s constants
1257
+ **/
1258
+ beefy: {
1259
+ /**
1260
+ * The maximum number of authorities that can be added.
1261
+ **/
1262
+ maxAuthorities: number;
1263
+
1264
+ /**
1265
+ * The maximum number of nominators for each validator.
1266
+ **/
1267
+ maxNominators: number;
1268
+
1269
+ /**
1270
+ * The maximum number of entries to keep in the set id to session index mapping.
1271
+ *
1272
+ * Since the `SetIdSession` map is only used for validating equivocations this
1273
+ * value should relate to the bonding duration of whatever staking system is
1274
+ * being used (if any). If equivocation handling is not enabled then this value
1275
+ * can be zero.
1276
+ **/
1277
+ maxSetIdSessionEntries: bigint;
1278
+
1279
+ /**
1280
+ * Generic pallet constant
1281
+ **/
1282
+ [name: string]: any;
1283
+ };
1284
+ /**
1285
+ * Pallet `Mmr`'s constants
1286
+ **/
1287
+ mmr: {
1288
+ /**
1289
+ * Generic pallet constant
1290
+ **/
1291
+ [name: string]: any;
1292
+ };
1293
+ /**
1294
+ * Pallet `MmrLeaf`'s constants
1295
+ **/
1296
+ mmrLeaf: {
1297
+ /**
1298
+ * Generic pallet constant
1299
+ **/
1300
+ [name: string]: any;
1301
+ };
1302
+ /**
1303
+ * Pallet `IdentityMigrator`'s constants
1304
+ **/
1305
+ identityMigrator: {
1306
+ /**
1307
+ * Generic pallet constant
1308
+ **/
1309
+ [name: string]: any;
1310
+ };
1311
+ /**
1312
+ * Pallet `ParasSudoWrapper`'s constants
1313
+ **/
1314
+ parasSudoWrapper: {
1315
+ /**
1316
+ * Generic pallet constant
1317
+ **/
1318
+ [name: string]: any;
1319
+ };
1320
+ /**
1321
+ * Pallet `AssignedSlots`'s constants
1322
+ **/
1323
+ assignedSlots: {
1324
+ /**
1325
+ * The number of lease periods a permanent parachain slot lasts.
1326
+ **/
1327
+ permanentSlotLeasePeriodLength: number;
1328
+
1329
+ /**
1330
+ * The number of lease periods a temporary parachain slot lasts.
1331
+ **/
1332
+ temporarySlotLeasePeriodLength: number;
1333
+
1334
+ /**
1335
+ * The max number of temporary slots to be scheduled per lease periods.
1336
+ **/
1337
+ maxTemporarySlotPerLeasePeriod: number;
1338
+
1339
+ /**
1340
+ * Generic pallet constant
1341
+ **/
1342
+ [name: string]: any;
1343
+ };
1344
+ /**
1345
+ * Pallet `ValidatorManager`'s constants
1346
+ **/
1347
+ validatorManager: {
1348
+ /**
1349
+ * Generic pallet constant
1350
+ **/
1351
+ [name: string]: any;
1352
+ };
1353
+ /**
1354
+ * Pallet `StateTrieMigration`'s constants
1355
+ **/
1356
+ stateTrieMigration: {
1357
+ /**
1358
+ * Maximal number of bytes that a key can have.
1359
+ *
1360
+ * FRAME itself does not limit the key length.
1361
+ * The concrete value must therefore depend on your storage usage.
1362
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
1363
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
1364
+ *
1365
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
1366
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
1367
+ *
1368
+ * The migration will halt with a `Halted` event if this value is too small.
1369
+ * Since there is no real penalty from over-estimating, it is advised to use a large
1370
+ * value. The default is 512 byte.
1371
+ *
1372
+ * Some key lengths for reference:
1373
+ * - [`frame_support::storage::StorageValue`]: 32 byte
1374
+ * - [`frame_support::storage::StorageMap`]: 64 byte
1375
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1376
+ *
1377
+ * For more info see
1378
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1379
+ **/
1380
+ maxKeyLen: number;
1381
+
1382
+ /**
1383
+ * Generic pallet constant
1384
+ **/
1385
+ [name: string]: any;
1386
+ };
1387
+ /**
1388
+ * Pallet `RootTesting`'s constants
1389
+ **/
1390
+ rootTesting: {
1391
+ /**
1392
+ * Generic pallet constant
1393
+ **/
1394
+ [name: string]: any;
1395
+ };
1396
+ /**
1397
+ * Pallet `Sudo`'s constants
1398
+ **/
1399
+ sudo: {
1400
+ /**
1401
+ * Generic pallet constant
1402
+ **/
1403
+ [name: string]: any;
1404
+ };
1405
+ }