@webb-tools/tangle-substrate-types 0.5.12 → 0.9.0

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 (36) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +15 -17
  3. package/build/index.cjs +2 -0
  4. package/build/index.d.ts +20826 -0
  5. package/build/index.mjs +1 -0
  6. package/package.json +57 -1
  7. package/examples/job_and_result_submission.d.ts +0 -1
  8. package/examples/job_and_result_submission.js +0 -230
  9. package/index.d.ts +0 -3
  10. package/index.js +0 -5
  11. package/interfaces/augment-api-consts.d.ts +0 -1045
  12. package/interfaces/augment-api-consts.js +0 -3
  13. package/interfaces/augment-api-errors.d.ts +0 -2001
  14. package/interfaces/augment-api-errors.js +0 -3
  15. package/interfaces/augment-api-events.d.ts +0 -3268
  16. package/interfaces/augment-api-events.js +0 -3
  17. package/interfaces/augment-api-query.d.ts +0 -2117
  18. package/interfaces/augment-api-query.js +0 -3
  19. package/interfaces/augment-api-rpc.d.ts +0 -679
  20. package/interfaces/augment-api-rpc.js +0 -3
  21. package/interfaces/augment-api-runtime.d.ts +0 -363
  22. package/interfaces/augment-api-runtime.js +0 -3
  23. package/interfaces/augment-api-tx.d.ts +0 -4118
  24. package/interfaces/augment-api-tx.js +0 -3
  25. package/interfaces/augment-api.d.ts +0 -7
  26. package/interfaces/augment-api.js +0 -9
  27. package/interfaces/augment-types.d.ts +0 -1249
  28. package/interfaces/augment-types.js +0 -3
  29. package/interfaces/lookup.d.ts +0 -6240
  30. package/interfaces/lookup.js +0 -6248
  31. package/interfaces/registry.d.ts +0 -413
  32. package/interfaces/registry.js +0 -3
  33. package/interfaces/types-lookup.d.ts +0 -6157
  34. package/interfaces/types-lookup.js +0 -3
  35. package/metadata/static-latest.d.ts +0 -2
  36. package/metadata/static-latest.js +0 -7
@@ -1,1045 +0,0 @@
1
- import "@polkadot/api-base/types/consts";
2
- import type { ApiTypes, AugmentedConst } from "@polkadot/api-base/types";
3
- import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
4
- import type { Codec, ITuple } from "@polkadot/types-codec/types";
5
- import type { AccountId32, H160, Perbill, Permill } from "@polkadot/types/interfaces/runtime";
6
- import { SpWeightsWeightV2Weight, FrameSupportPalletId, StagingXcmV4AssetAssetId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion } from "@polkadot/types/lookup";
7
- export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
- declare module "@polkadot/api-base/types/consts" {
9
- interface AugmentedConsts<ApiType extends ApiTypes> {
10
- assets: {
11
- /**
12
- * The amount of funds that must be reserved when creating a new approval.
13
- **/
14
- approvalDeposit: u128 & AugmentedConst<ApiType>;
15
- /**
16
- * The amount of funds that must be reserved for a non-provider asset account to be
17
- * maintained.
18
- **/
19
- assetAccountDeposit: u128 & AugmentedConst<ApiType>;
20
- /**
21
- * The basic amount of funds that must be reserved for an asset.
22
- **/
23
- assetDeposit: u128 & AugmentedConst<ApiType>;
24
- /**
25
- * The basic amount of funds that must be reserved when adding metadata to your asset.
26
- **/
27
- metadataDepositBase: u128 & AugmentedConst<ApiType>;
28
- /**
29
- * The additional funds that must be reserved for the number of bytes you store in your
30
- * metadata.
31
- **/
32
- metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
33
- /**
34
- * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
35
- *
36
- * Must be configured to result in a weight that makes each call fit in a block.
37
- **/
38
- removeItemsLimit: u32 & AugmentedConst<ApiType>;
39
- /**
40
- * The maximum length of a name or symbol stored on-chain.
41
- **/
42
- stringLimit: u32 & AugmentedConst<ApiType>;
43
- /**
44
- * Generic const
45
- **/
46
- [key: string]: Codec;
47
- };
48
- babe: {
49
- /**
50
- * The amount of time, in slots, that each epoch should last.
51
- * NOTE: Currently it is not possible to change the epoch duration after
52
- * the chain has started. Attempting to do so will brick block production.
53
- **/
54
- epochDuration: u64 & AugmentedConst<ApiType>;
55
- /**
56
- * The expected average block time at which BABE should be creating
57
- * blocks. Since BABE is probabilistic it is not trivial to figure out
58
- * what the expected average block time should be based on the slot
59
- * duration and the security parameter `c` (where `1 - c` represents
60
- * the probability of a slot being empty).
61
- **/
62
- expectedBlockTime: u64 & AugmentedConst<ApiType>;
63
- /**
64
- * Max number of authorities allowed
65
- **/
66
- maxAuthorities: u32 & AugmentedConst<ApiType>;
67
- /**
68
- * The maximum number of nominators for each validator.
69
- **/
70
- maxNominators: u32 & AugmentedConst<ApiType>;
71
- /**
72
- * Generic const
73
- **/
74
- [key: string]: Codec;
75
- };
76
- bagsList: {
77
- /**
78
- * The list of thresholds separating the various bags.
79
- *
80
- * Ids are separated into unsorted bags according to their score. This specifies the
81
- * thresholds separating the bags. An id's bag is the largest bag for which the id's score
82
- * is less than or equal to its upper threshold.
83
- *
84
- * When ids are iterated, higher bags are iterated completely before lower bags. This means
85
- * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
86
- * score, but peer ids within a particular bag are sorted in insertion order.
87
- *
88
- * # Expressing the constant
89
- *
90
- * This constant must be sorted in strictly increasing order. Duplicate items are not
91
- * permitted.
92
- *
93
- * There is an implied upper limit of `Score::MAX`; that value does not need to be
94
- * specified within the bag. For any two threshold lists, if one ends with
95
- * `Score::MAX`, the other one does not, and they are otherwise equal, the two
96
- * lists will behave identically.
97
- *
98
- * # Calculation
99
- *
100
- * It is recommended to generate the set of thresholds in a geometric series, such that
101
- * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
102
- * constant_ratio).max(threshold[k] + 1)` for all `k`.
103
- *
104
- * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
105
- *
106
- * # Examples
107
- *
108
- * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
109
- * iteration is strictly in insertion order.
110
- * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
111
- * the procedure given above, then the constant ratio is equal to 2.
112
- * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
113
- * the procedure given above, then the constant ratio is approximately equal to 1.248.
114
- * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
115
- * into bag 0, an id with score 2 will fall into bag 1, etc.
116
- *
117
- * # Migration
118
- *
119
- * In the event that this list ever changes, a copy of the old bags list must be retained.
120
- * With that `List::migrate` can be called, which will perform the appropriate migration.
121
- **/
122
- bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
123
- /**
124
- * Generic const
125
- **/
126
- [key: string]: Codec;
127
- };
128
- balances: {
129
- /**
130
- * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
131
- *
132
- * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
133
- * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
134
- * In case you have multiple sources of provider references, you may also get unexpected
135
- * behaviour if you set this to zero.
136
- *
137
- * Bottom line: Do yourself a favour and make it at least one!
138
- **/
139
- existentialDeposit: u128 & AugmentedConst<ApiType>;
140
- /**
141
- * The maximum number of individual freeze locks that can exist on an account at any time.
142
- **/
143
- maxFreezes: u32 & AugmentedConst<ApiType>;
144
- /**
145
- * The maximum number of locks that should exist on an account.
146
- * Not strictly enforced, but used for weight estimation.
147
- **/
148
- maxLocks: u32 & AugmentedConst<ApiType>;
149
- /**
150
- * The maximum number of named reserves that can exist on an account.
151
- **/
152
- maxReserves: u32 & AugmentedConst<ApiType>;
153
- /**
154
- * Generic const
155
- **/
156
- [key: string]: Codec;
157
- };
158
- bounties: {
159
- /**
160
- * The amount held on deposit for placing a bounty proposal.
161
- **/
162
- bountyDepositBase: u128 & AugmentedConst<ApiType>;
163
- /**
164
- * The delay period for which a bounty beneficiary need to wait before claim the payout.
165
- **/
166
- bountyDepositPayoutDelay: u64 & AugmentedConst<ApiType>;
167
- /**
168
- * Bounty duration in blocks.
169
- **/
170
- bountyUpdatePeriod: u64 & AugmentedConst<ApiType>;
171
- /**
172
- * Minimum value for a bounty.
173
- **/
174
- bountyValueMinimum: u128 & AugmentedConst<ApiType>;
175
- /**
176
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
177
- **/
178
- curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
179
- /**
180
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
181
- **/
182
- curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
183
- /**
184
- * The curator deposit is calculated as a percentage of the curator fee.
185
- *
186
- * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
187
- * `CuratorDepositMin`.
188
- **/
189
- curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
190
- /**
191
- * The amount held on deposit per byte within the tip report reason or bounty description.
192
- **/
193
- dataDepositPerByte: u128 & AugmentedConst<ApiType>;
194
- /**
195
- * Maximum acceptable reason length.
196
- *
197
- * Benchmarks depend on this value, be sure to update weights file when changing this value
198
- **/
199
- maximumReasonLength: u32 & AugmentedConst<ApiType>;
200
- /**
201
- * Generic const
202
- **/
203
- [key: string]: Codec;
204
- };
205
- childBounties: {
206
- /**
207
- * Minimum value for a child-bounty.
208
- **/
209
- childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
210
- /**
211
- * Maximum number of child bounties that can be added to a parent bounty.
212
- **/
213
- maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
214
- /**
215
- * Generic const
216
- **/
217
- [key: string]: Codec;
218
- };
219
- claims: {
220
- prefix: Bytes & AugmentedConst<ApiType>;
221
- /**
222
- * Generic const
223
- **/
224
- [key: string]: Codec;
225
- };
226
- council: {
227
- /**
228
- * The maximum weight of a dispatch call that can be proposed and executed.
229
- **/
230
- maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
231
- /**
232
- * Generic const
233
- **/
234
- [key: string]: Codec;
235
- };
236
- democracy: {
237
- /**
238
- * Period in blocks where an external proposal may not be re-submitted after being vetoed.
239
- **/
240
- cooloffPeriod: u64 & AugmentedConst<ApiType>;
241
- /**
242
- * The period between a proposal being approved and enacted.
243
- *
244
- * It should generally be a little more than the unstake period to ensure that
245
- * voting stakers have an opportunity to remove themselves from the system in the case
246
- * where they are on the losing side of a vote.
247
- **/
248
- enactmentPeriod: u64 & AugmentedConst<ApiType>;
249
- /**
250
- * Minimum voting period allowed for a fast-track referendum.
251
- **/
252
- fastTrackVotingPeriod: u64 & AugmentedConst<ApiType>;
253
- /**
254
- * Indicator for whether an emergency origin is even allowed to happen. Some chains may
255
- * want to set this permanently to `false`, others may want to condition it on things such
256
- * as an upgrade having happened recently.
257
- **/
258
- instantAllowed: bool & AugmentedConst<ApiType>;
259
- /**
260
- * How often (in blocks) new public referenda are launched.
261
- **/
262
- launchPeriod: u64 & AugmentedConst<ApiType>;
263
- /**
264
- * The maximum number of items which can be blacklisted.
265
- **/
266
- maxBlacklisted: u32 & AugmentedConst<ApiType>;
267
- /**
268
- * The maximum number of deposits a public proposal may have at any time.
269
- **/
270
- maxDeposits: u32 & AugmentedConst<ApiType>;
271
- /**
272
- * The maximum number of public proposals that can exist at any time.
273
- **/
274
- maxProposals: u32 & AugmentedConst<ApiType>;
275
- /**
276
- * The maximum number of votes for an account.
277
- *
278
- * Also used to compute weight, an overly big value can
279
- * lead to extrinsic with very big weight: see `delegate` for instance.
280
- **/
281
- maxVotes: u32 & AugmentedConst<ApiType>;
282
- /**
283
- * The minimum amount to be used as a deposit for a public referendum proposal.
284
- **/
285
- minimumDeposit: u128 & AugmentedConst<ApiType>;
286
- /**
287
- * The minimum period of vote locking.
288
- *
289
- * It should be no shorter than enactment period to ensure that in the case of an approval,
290
- * those successful voters are locked into the consequences that their votes entail.
291
- **/
292
- voteLockingPeriod: u64 & AugmentedConst<ApiType>;
293
- /**
294
- * How often (in blocks) to check for new votes.
295
- **/
296
- votingPeriod: u64 & AugmentedConst<ApiType>;
297
- /**
298
- * Generic const
299
- **/
300
- [key: string]: Codec;
301
- };
302
- electionProviderMultiPhase: {
303
- /**
304
- * The minimum amount of improvement to the solution score that defines a solution as
305
- * "better" in the Signed phase.
306
- **/
307
- betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
308
- /**
309
- * The maximum number of winners that can be elected by this `ElectionProvider`
310
- * implementation.
311
- *
312
- * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
313
- **/
314
- maxWinners: u32 & AugmentedConst<ApiType>;
315
- minerMaxLength: u32 & AugmentedConst<ApiType>;
316
- minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
317
- minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
318
- minerMaxWinners: u32 & AugmentedConst<ApiType>;
319
- /**
320
- * The priority of the unsigned transaction submitted in the unsigned-phase
321
- **/
322
- minerTxPriority: u64 & AugmentedConst<ApiType>;
323
- /**
324
- * The repeat threshold of the offchain worker.
325
- *
326
- * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
327
- * to submit the worker's solution.
328
- **/
329
- offchainRepeat: u64 & AugmentedConst<ApiType>;
330
- /**
331
- * Per-byte deposit for a signed solution.
332
- **/
333
- signedDepositByte: u128 & AugmentedConst<ApiType>;
334
- /**
335
- * Per-weight deposit for a signed solution.
336
- **/
337
- signedDepositWeight: u128 & AugmentedConst<ApiType>;
338
- /**
339
- * The maximum amount of unchecked solutions to refund the call fee for.
340
- **/
341
- signedMaxRefunds: u32 & AugmentedConst<ApiType>;
342
- /**
343
- * Maximum number of signed submissions that can be queued.
344
- *
345
- * It is best to avoid adjusting this during an election, as it impacts downstream data
346
- * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
347
- * update this value during an election, you _must_ ensure that
348
- * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
349
- * attempts to submit new solutions may cause a runtime panic.
350
- **/
351
- signedMaxSubmissions: u32 & AugmentedConst<ApiType>;
352
- /**
353
- * Maximum weight of a signed solution.
354
- *
355
- * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
356
- * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
357
- * this value.
358
- **/
359
- signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
360
- /**
361
- * Duration of the signed phase.
362
- **/
363
- signedPhase: u64 & AugmentedConst<ApiType>;
364
- /**
365
- * Base reward for a signed solution
366
- **/
367
- signedRewardBase: u128 & AugmentedConst<ApiType>;
368
- /**
369
- * Duration of the unsigned phase.
370
- **/
371
- unsignedPhase: u64 & AugmentedConst<ApiType>;
372
- /**
373
- * Generic const
374
- **/
375
- [key: string]: Codec;
376
- };
377
- elections: {
378
- /**
379
- * How much should be locked up in order to submit one's candidacy.
380
- **/
381
- candidacyBond: u128 & AugmentedConst<ApiType>;
382
- /**
383
- * Number of members to elect.
384
- **/
385
- desiredMembers: u32 & AugmentedConst<ApiType>;
386
- /**
387
- * Number of runners_up to keep.
388
- **/
389
- desiredRunnersUp: u32 & AugmentedConst<ApiType>;
390
- /**
391
- * The maximum number of candidates in a phragmen election.
392
- *
393
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
394
- * consider how it will impact `T::WeightInfo::election_phragmen`.
395
- *
396
- * When this limit is reached no more candidates are accepted in the election.
397
- **/
398
- maxCandidates: u32 & AugmentedConst<ApiType>;
399
- /**
400
- * The maximum number of voters to allow in a phragmen election.
401
- *
402
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
403
- * consider how it will impact `T::WeightInfo::election_phragmen`.
404
- *
405
- * When the limit is reached the new voters are ignored.
406
- **/
407
- maxVoters: u32 & AugmentedConst<ApiType>;
408
- /**
409
- * Maximum numbers of votes per voter.
410
- *
411
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
412
- * consider how it will impact `T::WeightInfo::election_phragmen`.
413
- **/
414
- maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
415
- /**
416
- * Identifier for the elections-phragmen pallet's lock
417
- **/
418
- palletId: U8aFixed & AugmentedConst<ApiType>;
419
- /**
420
- * How long each seat is kept. This defines the next block number at which an election
421
- * round will happen. If set to zero, no elections are ever triggered and the module will
422
- * be in passive mode.
423
- **/
424
- termDuration: u64 & AugmentedConst<ApiType>;
425
- /**
426
- * Base deposit associated with voting.
427
- *
428
- * This should be sensibly high to economically ensure the pallet cannot be attacked by
429
- * creating a gigantic number of votes.
430
- **/
431
- votingBondBase: u128 & AugmentedConst<ApiType>;
432
- /**
433
- * The amount of bond that need to be locked for each vote (32 bytes).
434
- **/
435
- votingBondFactor: u128 & AugmentedConst<ApiType>;
436
- /**
437
- * Generic const
438
- **/
439
- [key: string]: Codec;
440
- };
441
- grandpa: {
442
- /**
443
- * Max Authorities in use
444
- **/
445
- maxAuthorities: u32 & AugmentedConst<ApiType>;
446
- /**
447
- * The maximum number of nominators for each validator.
448
- **/
449
- maxNominators: u32 & AugmentedConst<ApiType>;
450
- /**
451
- * The maximum number of entries to keep in the set id to session index mapping.
452
- *
453
- * Since the `SetIdSession` map is only used for validating equivocations this
454
- * value should relate to the bonding duration of whatever staking system is
455
- * being used (if any). If equivocation handling is not enabled then this value
456
- * can be zero.
457
- **/
458
- maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
459
- /**
460
- * Generic const
461
- **/
462
- [key: string]: Codec;
463
- };
464
- identity: {
465
- /**
466
- * The amount held on deposit for a registered identity.
467
- **/
468
- basicDeposit: u128 & AugmentedConst<ApiType>;
469
- /**
470
- * The amount held on deposit per encoded byte for a registered identity.
471
- **/
472
- byteDeposit: u128 & AugmentedConst<ApiType>;
473
- /**
474
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
475
- * of, e.g., updating judgements.
476
- **/
477
- maxRegistrars: u32 & AugmentedConst<ApiType>;
478
- /**
479
- * The maximum number of sub-accounts allowed per identified account.
480
- **/
481
- maxSubAccounts: u32 & AugmentedConst<ApiType>;
482
- /**
483
- * The maximum length of a suffix.
484
- **/
485
- maxSuffixLength: u32 & AugmentedConst<ApiType>;
486
- /**
487
- * The maximum length of a username, including its suffix and any system-added delimiters.
488
- **/
489
- maxUsernameLength: u32 & AugmentedConst<ApiType>;
490
- /**
491
- * The number of blocks within which a username grant must be accepted.
492
- **/
493
- pendingUsernameExpiration: u64 & AugmentedConst<ApiType>;
494
- /**
495
- * The amount held on deposit for a registered subaccount. This should account for the fact
496
- * that one storage item's value will increase by the size of an account ID, and there will
497
- * be another trie item whose value is the size of an account ID plus 32 bytes.
498
- **/
499
- subAccountDeposit: u128 & AugmentedConst<ApiType>;
500
- /**
501
- * Generic const
502
- **/
503
- [key: string]: Codec;
504
- };
505
- imOnline: {
506
- /**
507
- * A configuration for base priority of unsigned transactions.
508
- *
509
- * This is exposed so that it can be tuned for particular runtime, when
510
- * multiple pallets send unsigned transactions.
511
- **/
512
- unsignedPriority: u64 & AugmentedConst<ApiType>;
513
- /**
514
- * Generic const
515
- **/
516
- [key: string]: Codec;
517
- };
518
- indices: {
519
- /**
520
- * The deposit needed for reserving an index.
521
- **/
522
- deposit: u128 & AugmentedConst<ApiType>;
523
- /**
524
- * Generic const
525
- **/
526
- [key: string]: Codec;
527
- };
528
- lst: {
529
- /**
530
- * The maximum pool points-to-balance ratio that an `open` pool can have.
531
- *
532
- * This is important in the event slashing takes place and the pool's points-to-balance
533
- * ratio becomes disproportional.
534
- *
535
- * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
536
- * are a function of number of points, and by setting this value to e.g. 10, you ensure
537
- * that the total number of points in the system are at most 10 times the total_issuance of
538
- * the chain, in the absolute worse case.
539
- *
540
- * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
541
- * Such a scenario would also be the equivalent of the pool being 90% slashed.
542
- **/
543
- maxPointsToBalance: u8 & AugmentedConst<ApiType>;
544
- /**
545
- * The maximum number of simultaneous unbonding chunks that can exist per member.
546
- **/
547
- maxUnbonding: u32 & AugmentedConst<ApiType>;
548
- /**
549
- * The nomination pool's pallet id.
550
- **/
551
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
552
- /**
553
- * Generic const
554
- **/
555
- [key: string]: Codec;
556
- };
557
- multiAssetDelegation: {
558
- /**
559
- * The duration for which the stake is locked.
560
- **/
561
- bondDuration: u32 & AugmentedConst<ApiType>;
562
- /**
563
- * Number of rounds that delegation unstake requests must wait before being executable.
564
- **/
565
- delegationBondLessDelay: u32 & AugmentedConst<ApiType>;
566
- /**
567
- * Number of rounds that delegators remain bonded before the exit request is executable.
568
- **/
569
- leaveDelegatorsDelay: u32 & AugmentedConst<ApiType>;
570
- /**
571
- * Number of rounds that operators remain bonded before the exit request is executable.
572
- **/
573
- leaveOperatorsDelay: u32 & AugmentedConst<ApiType>;
574
- /**
575
- * The minimum amount of stake required for a delegate.
576
- **/
577
- minDelegateAmount: u128 & AugmentedConst<ApiType>;
578
- /**
579
- * The minimum amount of stake required for an operator.
580
- **/
581
- minOperatorBondAmount: u128 & AugmentedConst<ApiType>;
582
- /**
583
- * Number of rounds operator requests to decrease self-stake must wait to be executable.
584
- **/
585
- operatorBondLessDelay: u32 & AugmentedConst<ApiType>;
586
- /**
587
- * Generic const
588
- **/
589
- [key: string]: Codec;
590
- };
591
- multisig: {
592
- /**
593
- * The base amount of currency needed to reserve for creating a multisig execution or to
594
- * store a dispatch call for later.
595
- *
596
- * This is held for an additional storage item whose value size is
597
- * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
598
- * `32 + sizeof(AccountId)` bytes.
599
- **/
600
- depositBase: u128 & AugmentedConst<ApiType>;
601
- /**
602
- * The amount of currency needed per unit threshold when creating a multisig execution.
603
- *
604
- * This is held for adding 32 bytes more into a pre-existing storage value.
605
- **/
606
- depositFactor: u128 & AugmentedConst<ApiType>;
607
- /**
608
- * The maximum amount of signatories allowed in the multisig.
609
- **/
610
- maxSignatories: u32 & AugmentedConst<ApiType>;
611
- /**
612
- * Generic const
613
- **/
614
- [key: string]: Codec;
615
- };
616
- nominationPools: {
617
- /**
618
- * The maximum pool points-to-balance ratio that an `open` pool can have.
619
- *
620
- * This is important in the event slashing takes place and the pool's points-to-balance
621
- * ratio becomes disproportional.
622
- *
623
- * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
624
- * are a function of number of points, and by setting this value to e.g. 10, you ensure
625
- * that the total number of points in the system are at most 10 times the total_issuance of
626
- * the chain, in the absolute worse case.
627
- *
628
- * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
629
- * Such a scenario would also be the equivalent of the pool being 90% slashed.
630
- **/
631
- maxPointsToBalance: u8 & AugmentedConst<ApiType>;
632
- /**
633
- * The maximum number of simultaneous unbonding chunks that can exist per member.
634
- **/
635
- maxUnbonding: u32 & AugmentedConst<ApiType>;
636
- /**
637
- * The nomination pool's pallet id.
638
- **/
639
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
640
- /**
641
- * Generic const
642
- **/
643
- [key: string]: Codec;
644
- };
645
- proxy: {
646
- /**
647
- * The base amount of currency needed to reserve for creating an announcement.
648
- *
649
- * This is held when a new storage item holding a `Balance` is created (typically 16
650
- * bytes).
651
- **/
652
- announcementDepositBase: u128 & AugmentedConst<ApiType>;
653
- /**
654
- * The amount of currency needed per announcement made.
655
- *
656
- * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
657
- * into a pre-existing storage value.
658
- **/
659
- announcementDepositFactor: u128 & AugmentedConst<ApiType>;
660
- /**
661
- * The maximum amount of time-delayed announcements that are allowed to be pending.
662
- **/
663
- maxPending: u32 & AugmentedConst<ApiType>;
664
- /**
665
- * The maximum amount of proxies allowed for a single account.
666
- **/
667
- maxProxies: u32 & AugmentedConst<ApiType>;
668
- /**
669
- * The base amount of currency needed to reserve for creating a proxy.
670
- *
671
- * This is held for an additional storage item whose value size is
672
- * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
673
- **/
674
- proxyDepositBase: u128 & AugmentedConst<ApiType>;
675
- /**
676
- * The amount of currency needed per proxy added.
677
- *
678
- * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
679
- * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
680
- * into account `32 + proxy_type.encode().len()` bytes of data.
681
- **/
682
- proxyDepositFactor: u128 & AugmentedConst<ApiType>;
683
- /**
684
- * Generic const
685
- **/
686
- [key: string]: Codec;
687
- };
688
- scheduler: {
689
- /**
690
- * The maximum weight that may be scheduled per block for any dispatchables.
691
- **/
692
- maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
693
- /**
694
- * The maximum number of scheduled calls in the queue for a single block.
695
- *
696
- * NOTE:
697
- * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
698
- * higher limit under `runtime-benchmarks` feature.
699
- **/
700
- maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
701
- /**
702
- * Generic const
703
- **/
704
- [key: string]: Codec;
705
- };
706
- services: {
707
- /**
708
- * Maximum number of binaries per gadget.
709
- **/
710
- maxBinariesPerGadget: u32 & AugmentedConst<ApiType>;
711
- /**
712
- * binary name maximum length.
713
- **/
714
- maxBinaryNameLength: u32 & AugmentedConst<ApiType>;
715
- /**
716
- * Maximum number of blueprints per operator.
717
- **/
718
- maxBlueprintsPerOperator: u32 & AugmentedConst<ApiType>;
719
- /**
720
- * Container image name maximum length.
721
- **/
722
- maxContainerImageNameLength: u32 & AugmentedConst<ApiType>;
723
- /**
724
- * Container image tag maximum length.
725
- **/
726
- maxContainerImageTagLength: u32 & AugmentedConst<ApiType>;
727
- /**
728
- * Container registry maximum length.
729
- **/
730
- maxContainerRegistryLength: u32 & AugmentedConst<ApiType>;
731
- /**
732
- * Maximum number of fields in a job call.
733
- **/
734
- maxFields: u32 & AugmentedConst<ApiType>;
735
- /**
736
- * Maximum size of a field in a job call.
737
- **/
738
- maxFieldsSize: u32 & AugmentedConst<ApiType>;
739
- /**
740
- * Git owner maximum length.
741
- **/
742
- maxGitOwnerLength: u32 & AugmentedConst<ApiType>;
743
- /**
744
- * Git repository maximum length.
745
- **/
746
- maxGitRepoLength: u32 & AugmentedConst<ApiType>;
747
- /**
748
- * Git tag maximum length.
749
- **/
750
- maxGitTagLength: u32 & AugmentedConst<ApiType>;
751
- /**
752
- * IPFS hash maximum length.
753
- **/
754
- maxIpfsHashLength: u32 & AugmentedConst<ApiType>;
755
- /**
756
- * Maximum number of jobs per service.
757
- **/
758
- maxJobsPerService: u32 & AugmentedConst<ApiType>;
759
- /**
760
- * Maximum length of metadata string length.
761
- **/
762
- maxMetadataLength: u32 & AugmentedConst<ApiType>;
763
- /**
764
- * Maximum number of Operators per service.
765
- **/
766
- maxOperatorsPerService: u32 & AugmentedConst<ApiType>;
767
- /**
768
- * Maximum number of permitted callers per service.
769
- **/
770
- maxPermittedCallers: u32 & AugmentedConst<ApiType>;
771
- /**
772
- * Maximum number of services per operator.
773
- **/
774
- maxServicesPerOperator: u32 & AugmentedConst<ApiType>;
775
- /**
776
- * Maximum number of services per user.
777
- **/
778
- maxServicesPerUser: u32 & AugmentedConst<ApiType>;
779
- /**
780
- * Maximum number of sources per gadget.
781
- **/
782
- maxSourcesPerGadget: u32 & AugmentedConst<ApiType>;
783
- /**
784
- * `PalletId` for the services pallet.
785
- **/
786
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
787
- /**
788
- * Generic const
789
- **/
790
- [key: string]: Codec;
791
- };
792
- staking: {
793
- /**
794
- * Number of eras that staked funds must remain bonded for.
795
- **/
796
- bondingDuration: u32 & AugmentedConst<ApiType>;
797
- /**
798
- * Number of eras to keep in history.
799
- *
800
- * Following information is kept for eras in `[current_era -
801
- * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
802
- * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
803
- * `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
804
- * `ErasStakersOverview`.
805
- *
806
- * Must be more than the number of eras delayed by session.
807
- * I.e. active era must always be in history. I.e. `active_era >
808
- * current_era - history_depth` must be guaranteed.
809
- *
810
- * If migrating an existing pallet from storage value to config value,
811
- * this should be set to same value or greater as in storage.
812
- *
813
- * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
814
- * item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
815
- * the existing value can lead to inconsistencies in the
816
- * `StakingLedger` and will need to be handled properly in a migration.
817
- * The test `reducing_history_depth_abrupt` shows this effect.
818
- **/
819
- historyDepth: u32 & AugmentedConst<ApiType>;
820
- /**
821
- * The maximum size of each `T::ExposurePage`.
822
- *
823
- * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
824
- * nominators.
825
- *
826
- * For older non-paged exposure, a reward payout was restricted to the top
827
- * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
828
- * nominator payout.
829
- *
830
- * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
831
- * without handling it in a migration.
832
- **/
833
- maxExposurePageSize: u32 & AugmentedConst<ApiType>;
834
- /**
835
- * The maximum number of `unlocking` chunks a [`StakingLedger`] can
836
- * have. Effectively determines how many unique eras a staker may be
837
- * unbonding in.
838
- *
839
- * Note: `MaxUnlockingChunks` is used as the upper bound for the
840
- * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
841
- * lower than the existing value can lead to inconsistencies in the
842
- * `StakingLedger` and will need to be handled properly in a runtime
843
- * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
844
- * this effect.
845
- **/
846
- maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
847
- /**
848
- * Number of sessions per era.
849
- **/
850
- sessionsPerEra: u32 & AugmentedConst<ApiType>;
851
- /**
852
- * Number of eras that slashes are deferred by, after computation.
853
- *
854
- * This should be less than the bonding duration. Set to 0 if slashes
855
- * should be applied immediately, without opportunity for intervention.
856
- **/
857
- slashDeferDuration: u32 & AugmentedConst<ApiType>;
858
- /**
859
- * Generic const
860
- **/
861
- [key: string]: Codec;
862
- };
863
- sygmaBridge: {
864
- /**
865
- * EIP712 Verifying contract address
866
- * This is used in EIP712 typed data domain
867
- **/
868
- destVerifyingContractAddress: H160 & AugmentedConst<ApiType>;
869
- /**
870
- * Pallet ChainID
871
- * This is used in EIP712 typed data domain
872
- **/
873
- eip712ChainID: U256 & AugmentedConst<ApiType>;
874
- /**
875
- * Fee reserve account
876
- **/
877
- feeReserveAccount: AccountId32 & AugmentedConst<ApiType>;
878
- /**
879
- * AssetId and ResourceId pairs
880
- **/
881
- resourcePairs: Vec<ITuple<[StagingXcmV4AssetAssetId, U8aFixed]>> & AugmentedConst<ApiType>;
882
- /**
883
- * Bridge transfer reserve accounts mapping with designated assets
884
- **/
885
- transferReserveAccounts: BTreeMap<StagingXcmV4AssetAssetId, AccountId32> & AugmentedConst<ApiType>;
886
- /**
887
- * Generic const
888
- **/
889
- [key: string]: Codec;
890
- };
891
- system: {
892
- /**
893
- * Maximum number of block number to block hash mappings to keep (oldest pruned first).
894
- **/
895
- blockHashCount: u64 & AugmentedConst<ApiType>;
896
- /**
897
- * The maximum length of a block (in bytes).
898
- **/
899
- blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
900
- /**
901
- * Block & extrinsics weights: base values and limits.
902
- **/
903
- blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
904
- /**
905
- * The weight of runtime database operations the runtime can invoke.
906
- **/
907
- dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
908
- /**
909
- * The designated SS58 prefix of this chain.
910
- *
911
- * This replaces the "ss58Format" property declared in the chain spec. Reason is
912
- * that the runtime should know about the prefix in order to make use of it as
913
- * an identifier of the chain.
914
- **/
915
- ss58Prefix: u16 & AugmentedConst<ApiType>;
916
- /**
917
- * Get the chain's current version.
918
- **/
919
- version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
920
- /**
921
- * Generic const
922
- **/
923
- [key: string]: Codec;
924
- };
925
- timestamp: {
926
- /**
927
- * The minimum period between blocks.
928
- *
929
- * Be aware that this is different to the *expected* period that the block production
930
- * apparatus provides. Your chosen consensus system will generally work with this to
931
- * determine a sensible block time. For example, in the Aura pallet it will be double this
932
- * period on default settings.
933
- **/
934
- minimumPeriod: u64 & AugmentedConst<ApiType>;
935
- /**
936
- * Generic const
937
- **/
938
- [key: string]: Codec;
939
- };
940
- transactionPayment: {
941
- /**
942
- * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
943
- * `priority`
944
- *
945
- * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
946
- * added to a tip component in regular `priority` calculations.
947
- * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
948
- * extrinsic (with no tip), by including a tip value greater than the virtual tip.
949
- *
950
- * ```rust,ignore
951
- * // For `Normal`
952
- * let priority = priority_calc(tip);
953
- *
954
- * // For `Operational`
955
- * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
956
- * let priority = priority_calc(tip + virtual_tip);
957
- * ```
958
- *
959
- * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
960
- * sent with the transaction. So, not only does the transaction get a priority bump based
961
- * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
962
- * transactions.
963
- **/
964
- operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
965
- /**
966
- * Generic const
967
- **/
968
- [key: string]: Codec;
969
- };
970
- treasury: {
971
- /**
972
- * Percentage of spare funds (if any) that are burnt per spend period.
973
- **/
974
- burn: Permill & AugmentedConst<ApiType>;
975
- /**
976
- * The maximum number of approvals that can wait in the spending queue.
977
- *
978
- * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
979
- **/
980
- maxApprovals: u32 & AugmentedConst<ApiType>;
981
- /**
982
- * The treasury's pallet id, used for deriving its sovereign account ID.
983
- **/
984
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
985
- /**
986
- * The period during which an approved treasury spend has to be claimed.
987
- **/
988
- payoutPeriod: u64 & AugmentedConst<ApiType>;
989
- /**
990
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
991
- * An accepted proposal gets these back. A rejected proposal does not.
992
- **/
993
- proposalBond: Permill & AugmentedConst<ApiType>;
994
- /**
995
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
996
- **/
997
- proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
998
- /**
999
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
1000
- **/
1001
- proposalBondMinimum: u128 & AugmentedConst<ApiType>;
1002
- /**
1003
- * Period between successive spends.
1004
- **/
1005
- spendPeriod: u64 & AugmentedConst<ApiType>;
1006
- /**
1007
- * Generic const
1008
- **/
1009
- [key: string]: Codec;
1010
- };
1011
- txPause: {
1012
- /**
1013
- * Maximum length for pallet name and call name SCALE encoded string names.
1014
- *
1015
- * TOO LONG NAMES WILL BE TREATED AS PAUSED.
1016
- **/
1017
- maxNameLen: u32 & AugmentedConst<ApiType>;
1018
- /**
1019
- * Generic const
1020
- **/
1021
- [key: string]: Codec;
1022
- };
1023
- utility: {
1024
- /**
1025
- * The limit on the number of batched calls.
1026
- **/
1027
- batchedCallsLimit: u32 & AugmentedConst<ApiType>;
1028
- /**
1029
- * Generic const
1030
- **/
1031
- [key: string]: Codec;
1032
- };
1033
- vesting: {
1034
- maxVestingSchedules: u32 & AugmentedConst<ApiType>;
1035
- /**
1036
- * The minimum amount transferred to call `vested_transfer`.
1037
- **/
1038
- minVestedTransfer: u128 & AugmentedConst<ApiType>;
1039
- /**
1040
- * Generic const
1041
- **/
1042
- [key: string]: Codec;
1043
- };
1044
- }
1045
- }