@totochain/api-augment 0.0.0-stage → 0.2.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 (59) hide show
  1. package/README.md +70 -2
  2. package/dist/definitions/definitions.d.ts +1 -0
  3. package/dist/definitions/definitions.js +2 -0
  4. package/dist/definitions/totochain/definitions.d.ts +5 -0
  5. package/dist/definitions/totochain/definitions.js +7 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +12 -0
  8. package/dist/interfaces/augment-api-consts.d.ts +861 -0
  9. package/dist/interfaces/augment-api-consts.js +5 -0
  10. package/dist/interfaces/augment-api-errors.d.ts +1183 -0
  11. package/dist/interfaces/augment-api-errors.js +5 -0
  12. package/dist/interfaces/augment-api-events.d.ts +2033 -0
  13. package/dist/interfaces/augment-api-events.js +5 -0
  14. package/dist/interfaces/augment-api-query.d.ts +1375 -0
  15. package/dist/interfaces/augment-api-query.js +5 -0
  16. package/dist/interfaces/augment-api-rpc.d.ts +683 -0
  17. package/dist/interfaces/augment-api-rpc.js +5 -0
  18. package/dist/interfaces/augment-api-runtime.d.ts +298 -0
  19. package/dist/interfaces/augment-api-runtime.js +5 -0
  20. package/dist/interfaces/augment-api-tx.d.ts +2356 -0
  21. package/dist/interfaces/augment-api-tx.js +5 -0
  22. package/dist/interfaces/augment-api.d.ts +7 -0
  23. package/dist/interfaces/augment-api.js +9 -0
  24. package/dist/interfaces/augment-types.d.ts +1368 -0
  25. package/dist/interfaces/augment-types.js +5 -0
  26. package/dist/interfaces/definitions.d.ts +1 -0
  27. package/dist/interfaces/definitions.js +2 -0
  28. package/dist/interfaces/index.d.ts +1 -0
  29. package/dist/interfaces/index.js +3 -0
  30. package/dist/interfaces/lookup.d.ts +3952 -0
  31. package/dist/interfaces/lookup.js +3954 -0
  32. package/dist/interfaces/registry.d.ts +279 -0
  33. package/dist/interfaces/registry.js +5 -0
  34. package/dist/interfaces/totochain/definitions.d.ts +5 -0
  35. package/dist/interfaces/totochain/definitions.js +7 -0
  36. package/dist/interfaces/types-lookup.d.ts +4085 -0
  37. package/dist/interfaces/types-lookup.js +5 -0
  38. package/dist/interfaces/types.d.ts +1 -0
  39. package/dist/interfaces/types.js +3 -0
  40. package/package.json +69 -4
  41. package/src/definitions/definitions.ts +2 -0
  42. package/src/definitions/totochain/definitions.ts +7 -0
  43. package/src/index.ts +15 -0
  44. package/src/interfaces/augment-api-consts.ts +869 -0
  45. package/src/interfaces/augment-api-errors.ts +1191 -0
  46. package/src/interfaces/augment-api-events.ts +1307 -0
  47. package/src/interfaces/augment-api-query.ts +1383 -0
  48. package/src/interfaces/augment-api-rpc.ts +621 -0
  49. package/src/interfaces/augment-api-runtime.ts +264 -0
  50. package/src/interfaces/augment-api-tx.ts +2175 -0
  51. package/src/interfaces/augment-api.ts +10 -0
  52. package/src/interfaces/augment-types.ts +1375 -0
  53. package/src/interfaces/definitions.ts +2 -0
  54. package/src/interfaces/index.ts +4 -0
  55. package/src/interfaces/lookup.ts +3956 -0
  56. package/src/interfaces/registry.ts +286 -0
  57. package/src/interfaces/totochain/definitions.ts +7 -0
  58. package/src/interfaces/types-lookup.ts +4352 -0
  59. package/src/interfaces/types.ts +4 -0
@@ -0,0 +1,861 @@
1
+ import '@polkadot/api-base/types/consts';
2
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
+ import type { Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
+ import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } 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
+ activityTracker: {
11
+ /**
12
+ * Activity decay factor per block (in millionths)
13
+ * Higher values mean slower decay (e.g., 999_000 = 0.999 decay per block)
14
+ * MUST be greater than 0 and less than or equal to 1_000_000
15
+ **/
16
+ decayFactor: u32 & AugmentedConst<ApiType>;
17
+ /**
18
+ * Maximum age of activity in blocks (configured as DAYS_IN_MONTH × DAYS)
19
+ * Activities older than this will be automatically removed
20
+ **/
21
+ maxActivityAge: u32 & AugmentedConst<ApiType>;
22
+ /**
23
+ * Maximum activity reputation that can be earned from extrinsic execution
24
+ **/
25
+ maxActivityReputation: u32 & AugmentedConst<ApiType>;
26
+ /**
27
+ * Weight-to-reputation conversion factor
28
+ * This determines how much reputation is awarded per unit of weight
29
+ * MUST be greater than 0 to prevent division by zero
30
+ **/
31
+ weightToReputationFactor: u64 & AugmentedConst<ApiType>;
32
+ /**
33
+ * Generic const
34
+ **/
35
+ [key: string]: Codec;
36
+ };
37
+ attestation: {
38
+ maxClaimsPerSubject: u32 & AugmentedConst<ApiType>;
39
+ maxProviders: u32 & AugmentedConst<ApiType>;
40
+ /**
41
+ * Generic const
42
+ **/
43
+ [key: string]: Codec;
44
+ };
45
+ babe: {
46
+ /**
47
+ * The amount of time, in slots, that each epoch should last.
48
+ * NOTE: Currently it is not possible to change the epoch duration after
49
+ * the chain has started. Attempting to do so will brick block production.
50
+ **/
51
+ epochDuration: u64 & AugmentedConst<ApiType>;
52
+ /**
53
+ * The expected average block time at which BABE should be creating
54
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
55
+ * what the expected average block time should be based on the slot
56
+ * duration and the security parameter `c` (where `1 - c` represents
57
+ * the probability of a slot being empty).
58
+ **/
59
+ expectedBlockTime: u64 & AugmentedConst<ApiType>;
60
+ /**
61
+ * Max number of authorities allowed
62
+ **/
63
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
64
+ /**
65
+ * The maximum number of nominators for each validator.
66
+ **/
67
+ maxNominators: u32 & AugmentedConst<ApiType>;
68
+ /**
69
+ * Generic const
70
+ **/
71
+ [key: string]: Codec;
72
+ };
73
+ balances: {
74
+ /**
75
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
76
+ *
77
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
78
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
79
+ * In case you have multiple sources of provider references, you may also get unexpected
80
+ * behaviour if you set this to zero.
81
+ *
82
+ * Bottom line: Do yourself a favour and make it at least one!
83
+ **/
84
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
85
+ /**
86
+ * The maximum number of individual freeze locks that can exist on an account at any time.
87
+ **/
88
+ maxFreezes: u32 & AugmentedConst<ApiType>;
89
+ /**
90
+ * The maximum number of locks that should exist on an account.
91
+ * Not strictly enforced, but used for weight estimation.
92
+ *
93
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
94
+ **/
95
+ maxLocks: u32 & AugmentedConst<ApiType>;
96
+ /**
97
+ * The maximum number of named reserves that can exist on an account.
98
+ *
99
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
100
+ **/
101
+ maxReserves: u32 & AugmentedConst<ApiType>;
102
+ /**
103
+ * Generic const
104
+ **/
105
+ [key: string]: Codec;
106
+ };
107
+ ctype: {
108
+ ctypeFee: u128 & AugmentedConst<ApiType>;
109
+ maxCtypeByteLength: u32 & AugmentedConst<ApiType>;
110
+ /**
111
+ * Generic const
112
+ **/
113
+ [key: string]: Codec;
114
+ };
115
+ did: {
116
+ didFee: u128 & AugmentedConst<ApiType>;
117
+ /**
118
+ * Generic const
119
+ **/
120
+ [key: string]: Codec;
121
+ };
122
+ grandpa: {
123
+ /**
124
+ * Max Authorities in use
125
+ **/
126
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
127
+ /**
128
+ * The maximum number of nominators for each validator.
129
+ **/
130
+ maxNominators: u32 & AugmentedConst<ApiType>;
131
+ /**
132
+ * The maximum number of entries to keep in the set id to session index mapping.
133
+ *
134
+ * Since the `SetIdSession` map is only used for validating equivocations this
135
+ * value should relate to the bonding duration of whatever staking system is
136
+ * being used (if any). If equivocation handling is not enabled then this value
137
+ * can be zero.
138
+ **/
139
+ maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
140
+ /**
141
+ * Generic const
142
+ **/
143
+ [key: string]: Codec;
144
+ };
145
+ identity: {
146
+ /**
147
+ * The amount held on deposit for a registered identity.
148
+ **/
149
+ basicDeposit: u128 & AugmentedConst<ApiType>;
150
+ /**
151
+ * The amount held on deposit per encoded byte for a registered identity.
152
+ **/
153
+ byteDeposit: u128 & AugmentedConst<ApiType>;
154
+ /**
155
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
156
+ * of, e.g., updating judgements.
157
+ **/
158
+ maxRegistrars: u32 & AugmentedConst<ApiType>;
159
+ /**
160
+ * The maximum number of sub-accounts allowed per identified account.
161
+ **/
162
+ maxSubAccounts: u32 & AugmentedConst<ApiType>;
163
+ /**
164
+ * The maximum length of a suffix.
165
+ **/
166
+ maxSuffixLength: u32 & AugmentedConst<ApiType>;
167
+ /**
168
+ * The maximum length of a username, including its suffix and any system-added delimiters.
169
+ **/
170
+ maxUsernameLength: u32 & AugmentedConst<ApiType>;
171
+ /**
172
+ * The number of blocks within which a username grant must be accepted.
173
+ **/
174
+ pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
175
+ /**
176
+ * The amount held on deposit for a registered subaccount. This should account for the fact
177
+ * that one storage item's value will increase by the size of an account ID, and there will
178
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
179
+ **/
180
+ subAccountDeposit: u128 & AugmentedConst<ApiType>;
181
+ /**
182
+ * The amount held on deposit per registered username. This value should change only in
183
+ * runtime upgrades with proper migration of existing deposits.
184
+ **/
185
+ usernameDeposit: u128 & AugmentedConst<ApiType>;
186
+ /**
187
+ * The number of blocks that must pass to enable the permanent deletion of a username by
188
+ * its respective authority.
189
+ **/
190
+ usernameGracePeriod: u32 & AugmentedConst<ApiType>;
191
+ /**
192
+ * Generic const
193
+ **/
194
+ [key: string]: Codec;
195
+ };
196
+ imOnline: {
197
+ /**
198
+ * A configuration for base priority of unsigned transactions.
199
+ *
200
+ * This is exposed so that it can be tuned for particular runtime, when
201
+ * multiple pallets send unsigned transactions.
202
+ **/
203
+ unsignedPriority: u64 & AugmentedConst<ApiType>;
204
+ /**
205
+ * Generic const
206
+ **/
207
+ [key: string]: Codec;
208
+ };
209
+ multisig: {
210
+ /**
211
+ * The base amount of currency needed to reserve for creating a multisig execution or to
212
+ * store a dispatch call for later.
213
+ *
214
+ * This is held for an additional storage item whose value size is
215
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
216
+ * `32 + sizeof(AccountId)` bytes.
217
+ **/
218
+ depositBase: u128 & AugmentedConst<ApiType>;
219
+ /**
220
+ * The amount of currency needed per unit threshold when creating a multisig execution.
221
+ *
222
+ * This is held for adding 32 bytes more into a pre-existing storage value.
223
+ **/
224
+ depositFactor: u128 & AugmentedConst<ApiType>;
225
+ /**
226
+ * The maximum amount of signatories allowed in the multisig.
227
+ **/
228
+ maxSignatories: u32 & AugmentedConst<ApiType>;
229
+ /**
230
+ * Generic const
231
+ **/
232
+ [key: string]: Codec;
233
+ };
234
+ potential: {
235
+ /**
236
+ * Number of blocks in one economic month. Used to compute per-block reward.
237
+ **/
238
+ blocksInMonth: u32 & AugmentedConst<ApiType>;
239
+ /**
240
+ * Maximum accounts to process per batch during burn operations.
241
+ **/
242
+ burnBatchSize: u32 & AugmentedConst<ApiType>;
243
+ /**
244
+ * Day duration in seconds.
245
+ **/
246
+ dayDuration: u64 & AugmentedConst<ApiType>;
247
+ /**
248
+ * Days in a month.
249
+ **/
250
+ daysInMonth: u32 & AugmentedConst<ApiType>;
251
+ /**
252
+ * Share of potential reward that goes to active referrals by default.
253
+ **/
254
+ defaultActiveReferralShare: u32 & AugmentedConst<ApiType>;
255
+ /**
256
+ * The amount of time, in slots, that each epoch should last.
257
+ **/
258
+ epochDuration: u64 & AugmentedConst<ApiType>;
259
+ /**
260
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
261
+ *
262
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
263
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
264
+ * In case you have multiple sources of provider references, you may also get unexpected
265
+ * behaviour if you set this to zero.
266
+ *
267
+ * Bottom line: Do yourself a favour and make it at least one!
268
+ **/
269
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
270
+ /**
271
+ * Genesis reward pool balance.
272
+ **/
273
+ genesisRewardPoolBalance: u128 & AugmentedConst<ApiType>;
274
+ /**
275
+ * Maximum number of active referral edges the deferred-reward sweeper
276
+ * processes per `on_idle` block. Bounds the reward-propagation work so a
277
+ * wide parent (up to `MaxChildrenPerNode` children) drains across many
278
+ * blocks instead of in one unbounded pass. Tuned from the
279
+ * `reward_sweep_edge` benchmark.
280
+ **/
281
+ maxRewardSweepEdgesPerIdleBlock: u32 & AugmentedConst<ApiType>;
282
+ /**
283
+ * The maximum supply of potential.
284
+ **/
285
+ maxSupply: u128 & AugmentedConst<ApiType>;
286
+ /**
287
+ * Month in a cycle.
288
+ **/
289
+ monthsInCycle: u32 & AugmentedConst<ApiType>;
290
+ /**
291
+ * Multiplier for referral incentive amount (multiplied by ExistentialDeposit).
292
+ **/
293
+ referralIncentiveMultiplier: u32 & AugmentedConst<ApiType>;
294
+ /**
295
+ * Seconds per block.
296
+ **/
297
+ secondsPerBlock: u64 & AugmentedConst<ApiType>;
298
+ /**
299
+ * Generic const
300
+ **/
301
+ [key: string]: Codec;
302
+ };
303
+ proxy: {
304
+ /**
305
+ * The base amount of currency needed to reserve for creating an announcement.
306
+ *
307
+ * This is held when a new storage item holding a `Balance` is created (typically 16
308
+ * bytes).
309
+ **/
310
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
311
+ /**
312
+ * The amount of currency needed per announcement made.
313
+ *
314
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
315
+ * into a pre-existing storage value.
316
+ **/
317
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
318
+ /**
319
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
320
+ **/
321
+ maxPending: u32 & AugmentedConst<ApiType>;
322
+ /**
323
+ * The maximum amount of proxies allowed for a single account.
324
+ **/
325
+ maxProxies: u32 & AugmentedConst<ApiType>;
326
+ /**
327
+ * The base amount of currency needed to reserve for creating a proxy.
328
+ *
329
+ * This is held for an additional storage item whose value size is
330
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
331
+ **/
332
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
333
+ /**
334
+ * The amount of currency needed per proxy added.
335
+ *
336
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
337
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
338
+ * into account `32 + proxy_type.encode().len()` bytes of data.
339
+ **/
340
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
341
+ /**
342
+ * Generic const
343
+ **/
344
+ [key: string]: Codec;
345
+ };
346
+ puzzlePieces: {
347
+ /**
348
+ * Block-channel cadence: the block author (tier 1) and its lineage winners (tier 2)
349
+ * are paid only on blocks whose number is a multiple of this. The activation channel
350
+ * (`pallet_referral::activate_referral`) is an event, not a cadence, and is never
351
+ * throttled.
352
+ **/
353
+ blocksPerRewardPiece: u32 & AugmentedConst<ApiType>;
354
+ /**
355
+ * Block entropy outputs, produced after the commit block, that an activation draw
356
+ * waits for. The commit block's own output, which its author knows, adds one more.
357
+ **/
358
+ drawEntropyDelay: u32 & AugmentedConst<ApiType>;
359
+ /**
360
+ * Block number at which the genesis boost period ends.
361
+ * During the boost period, GenesisWildcardThreshold is used instead of WildcardThreshold.
362
+ **/
363
+ genesisBoostEndBlock: u32 & AugmentedConst<ApiType>;
364
+ /**
365
+ * Wildcard threshold during the genesis boost period.
366
+ * After GenesisBoostEndBlock, the normal WildcardThreshold applies.
367
+ **/
368
+ genesisWildcardThreshold: u32 & AugmentedConst<ApiType>;
369
+ /**
370
+ * Maximum depth for lineage chain walking during block reward distribution.
371
+ * Prevents unbounded iteration in `on_finalize` if a lineage chain is very deep.
372
+ **/
373
+ maxLineageRewardDepth: u32 & AugmentedConst<ApiType>;
374
+ /**
375
+ * Most activation draws waiting at once. An activation beyond it fails with
376
+ * [`Error::DrawQueueFull`] and its referral stays pending. An activation in a block
377
+ * whose weight, draw resolution included, already passed the Normal class's
378
+ * `max_total` fails with [`Error::DrawBlockFull`], which keeps the rest of the block for
379
+ * `on_idle`.
380
+ **/
381
+ maxPendingDraws: u32 & AugmentedConst<ApiType>;
382
+ /**
383
+ * Pieces in the largest reward set. A new set's size is drawn from
384
+ * [`SET_SIZE_TIERS`](crate::types::SET_SIZE_TIERS) scaled to this cap, so it must
385
+ * be a multiple of the ladder's largest divisor (16).
386
+ **/
387
+ maxSetSize: u32 & AugmentedConst<ApiType>;
388
+ /**
389
+ * Maximum delay in blocks before wildcard distribution (e.g. 24 hours).
390
+ **/
391
+ maxWildcardDistributionDelay: u32 & AugmentedConst<ApiType>;
392
+ /**
393
+ * Minimum delay in blocks before wildcard distribution (e.g. 1 hour).
394
+ **/
395
+ minWildcardDistributionDelay: u32 & AugmentedConst<ApiType>;
396
+ /**
397
+ * Reward sets filling at once. Every reward piece lands in one of them, picked at
398
+ * random, so the pieces of one set end up spread over many holders.
399
+ **/
400
+ openSetCount: u32 & AugmentedConst<ApiType>;
401
+ /**
402
+ * Because this pallet emits events, it depends on the runtime's definition of an event.
403
+ * The reward pool's pallet id, used for deriving its sovereign account ID.
404
+ **/
405
+ rewardPoolPalletId: FrameSupportPalletId & AugmentedConst<ApiType>;
406
+ /**
407
+ * The collection ID used for wildcard puzzle pieces.
408
+ * Set once at genesis; must match the ID assigned by `pallet_uniques::create`.
409
+ **/
410
+ wildcardCollectionId: u32 & AugmentedConst<ApiType>;
411
+ /**
412
+ * Generic const
413
+ **/
414
+ [key: string]: Codec;
415
+ };
416
+ referenda: {
417
+ /**
418
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
419
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
420
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
421
+ **/
422
+ alarmInterval: u32 & AugmentedConst<ApiType>;
423
+ /**
424
+ * Maximum size of the referendum queue for a single track.
425
+ **/
426
+ maxQueued: u32 & AugmentedConst<ApiType>;
427
+ /**
428
+ * The minimum amount to be used as a deposit for a public referendum proposal.
429
+ **/
430
+ submissionDeposit: u128 & AugmentedConst<ApiType>;
431
+ /**
432
+ * A list of tracks.
433
+ *
434
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
435
+ **/
436
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
437
+ /**
438
+ * The number of blocks after submission that a referendum must begin being decided by.
439
+ * Once this passes, then anyone may cancel the referendum.
440
+ **/
441
+ undecidingTimeout: u32 & AugmentedConst<ApiType>;
442
+ /**
443
+ * Generic const
444
+ **/
445
+ [key: string]: Codec;
446
+ };
447
+ referral: {
448
+ /**
449
+ * Per-node cap for direct active children (runtime-checked at insert time in
450
+ * `add_referral` against active children plus pending entries).
451
+ **/
452
+ maxChildrenPerNode: u32 & AugmentedConst<ApiType>;
453
+ /**
454
+ * Per-referrer cap for `PendingReferralsByReferrer`.
455
+ **/
456
+ maxPendingReferrals: u32 & AugmentedConst<ApiType>;
457
+ /**
458
+ * Reputation cap from referrals — used by the runtime's reputation
459
+ * calculation in `runtime/common`.
460
+ **/
461
+ maxReferralsReputation: u32 & AugmentedConst<ApiType>;
462
+ /**
463
+ * Reputation contributed per active referral, capped by
464
+ * `MaxReferralsReputation`.
465
+ **/
466
+ referralReputationFactor: u32 & AugmentedConst<ApiType>;
467
+ /**
468
+ * Generic const
469
+ **/
470
+ [key: string]: Codec;
471
+ };
472
+ reputationVoting: {
473
+ /**
474
+ * Fixed electorate size multiplier for the support calculation.
475
+ * electorate = max_account_reputation * electorate_size.
476
+ * Changing this does not retroactively update cached tallies for active polls.
477
+ **/
478
+ electorateSize: u32 & AugmentedConst<ApiType>;
479
+ /**
480
+ * Maximum number of voters per poll. Enforced as a count cap on
481
+ * `PendingPolls` so that pathological polls cannot grow without bound.
482
+ **/
483
+ maxVotersPerPoll: u32 & AugmentedConst<ApiType>;
484
+ /**
485
+ * Maximum number of simultaneous active poll votes per account
486
+ **/
487
+ maxVotesPerAccount: u32 & AugmentedConst<ApiType>;
488
+ /**
489
+ * Maximum positive voting reputation that can be accumulated
490
+ **/
491
+ maxVotingReputation: u32 & AugmentedConst<ApiType>;
492
+ /**
493
+ * Minimum reputation required to vote
494
+ **/
495
+ minimumReputation: u32 & AugmentedConst<ApiType>;
496
+ /**
497
+ * Reputation decrease for unsuccessful vote (voted against winning side)
498
+ **/
499
+ votingReputationDecrease: u32 & AugmentedConst<ApiType>;
500
+ /**
501
+ * Reputation increase for successful vote (voted with winning side)
502
+ **/
503
+ votingReputationIncrease: u32 & AugmentedConst<ApiType>;
504
+ /**
505
+ * Generic const
506
+ **/
507
+ [key: string]: Codec;
508
+ };
509
+ rewardPool: {
510
+ /**
511
+ * Maximum number of puzzle pieces
512
+ **/
513
+ maxVectorLength: u32 & AugmentedConst<ApiType>;
514
+ /**
515
+ * The reward pool's pallet id, used for deriving its sovereign account ID.
516
+ **/
517
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
518
+ /**
519
+ * Reward calculator maximum percentage (cap) in Permill parts
520
+ **/
521
+ rewardCapParts: u32 & AugmentedConst<ApiType>;
522
+ /**
523
+ * Reward calculator epsilon (strict cap margin) in Permill parts
524
+ **/
525
+ rewardEpsParts: u32 & AugmentedConst<ApiType>;
526
+ /**
527
+ * Reward calculator Gamma parameter (Noisy-OR combination exponent)
528
+ **/
529
+ rewardGamma: u32 & AugmentedConst<ApiType>;
530
+ /**
531
+ * Reward calculator H_ref parameter (Hill function half-maximal for referral count)
532
+ **/
533
+ rewardHRef: u128 & AugmentedConst<ApiType>;
534
+ /**
535
+ * Reward calculator K_ref parameter (Hill function exponent for referral count)
536
+ **/
537
+ rewardKRef: u32 & AugmentedConst<ApiType>;
538
+ /**
539
+ * Reward calculator minimum percentage (floor) in Permill parts
540
+ **/
541
+ rewardMinParts: u32 & AugmentedConst<ApiType>;
542
+ /**
543
+ * Unlock score of a sealed reward set by its size tier, in the order of
544
+ * [`pallet_puzzle_pieces::types::SET_SIZE_TIERS`] (smallest set first). It is the
545
+ * set's side of the noisy-OR, in place of a curve over the piece count: a sealed set
546
+ * only ever has one of these sizes.
547
+ **/
548
+ rewardSetScores: Vec<Permill> & AugmentedConst<ApiType>;
549
+ /**
550
+ * Unlock coefficient
551
+ **/
552
+ unlockCoefficient: u128 & AugmentedConst<ApiType>;
553
+ /**
554
+ * Generic const
555
+ **/
556
+ [key: string]: Codec;
557
+ };
558
+ safeMode: {
559
+ /**
560
+ * The amount that will be reserved upon calling [`Pallet::enter`].
561
+ *
562
+ * `None` disallows permissionlessly enabling the safe-mode and is a sane default.
563
+ **/
564
+ enterDepositAmount: Option<u128> & AugmentedConst<ApiType>;
565
+ /**
566
+ * For how many blocks the safe-mode will be entered by [`Pallet::enter`].
567
+ **/
568
+ enterDuration: u32 & AugmentedConst<ApiType>;
569
+ /**
570
+ * The amount that will be reserved upon calling [`Pallet::extend`].
571
+ *
572
+ * `None` disallows permissionlessly extending the safe-mode and is a sane default.
573
+ **/
574
+ extendDepositAmount: Option<u128> & AugmentedConst<ApiType>;
575
+ /**
576
+ * For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call.
577
+ *
578
+ * This does not impose a hard limit as the safe-mode can be extended multiple times.
579
+ **/
580
+ extendDuration: u32 & AugmentedConst<ApiType>;
581
+ /**
582
+ * The minimal duration a deposit will remain reserved after safe-mode is entered or
583
+ * extended, unless [`Pallet::force_release_deposit`] is successfully called sooner.
584
+ *
585
+ * Every deposit is tied to a specific activation or extension, thus each deposit can be
586
+ * released independently after the delay for it has passed.
587
+ *
588
+ * `None` disallows permissionlessly releasing the safe-mode deposits and is a sane
589
+ * default.
590
+ **/
591
+ releaseDelay: Option<u32> & AugmentedConst<ApiType>;
592
+ /**
593
+ * Generic const
594
+ **/
595
+ [key: string]: Codec;
596
+ };
597
+ scheduler: {
598
+ /**
599
+ * The maximum weight that may be scheduled per block for any dispatchables.
600
+ **/
601
+ maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
602
+ /**
603
+ * The maximum number of scheduled calls in the queue for a single block.
604
+ *
605
+ * NOTE:
606
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
607
+ * higher limit under `runtime-benchmarks` feature.
608
+ **/
609
+ maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
610
+ /**
611
+ * Generic const
612
+ **/
613
+ [key: string]: Codec;
614
+ };
615
+ session: {
616
+ /**
617
+ * The amount to be held when setting keys.
618
+ **/
619
+ keyDeposit: u128 & AugmentedConst<ApiType>;
620
+ /**
621
+ * Generic const
622
+ **/
623
+ [key: string]: Codec;
624
+ };
625
+ system: {
626
+ /**
627
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
628
+ **/
629
+ blockHashCount: u32 & AugmentedConst<ApiType>;
630
+ /**
631
+ * The maximum length of a block (in bytes).
632
+ **/
633
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
634
+ /**
635
+ * Block & extrinsics weights: base values and limits.
636
+ **/
637
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
638
+ /**
639
+ * The weight of runtime database operations the runtime can invoke.
640
+ **/
641
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
642
+ /**
643
+ * The designated SS58 prefix of this chain.
644
+ *
645
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
646
+ * that the runtime should know about the prefix in order to make use of it as
647
+ * an identifier of the chain.
648
+ **/
649
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
650
+ /**
651
+ * Get the chain's in-code version.
652
+ **/
653
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
654
+ /**
655
+ * Generic const
656
+ **/
657
+ [key: string]: Codec;
658
+ };
659
+ techCommitteeManager: {
660
+ maxCandidates: u32 & AugmentedConst<ApiType>;
661
+ /**
662
+ * Reputation an account needs to register as a candidate and to be seated.
663
+ *
664
+ * Checked on registration and again at every selection, because reputation also
665
+ * falls (activity ages out, offence penalties are subtracted). A candidate below it
666
+ * keeps its registration and is seated again once it recovers.
667
+ *
668
+ * Must be at least 1: zero would admit accounts that have done nothing on the
669
+ * chain, which is the hole this floor closes. Enforced in `integrity_test`.
670
+ **/
671
+ minCandidateReputation: u32 & AugmentedConst<ApiType>;
672
+ /**
673
+ * Smallest committee that may act.
674
+ **/
675
+ minMembers: u32 & AugmentedConst<ApiType>;
676
+ /**
677
+ * Generic const
678
+ **/
679
+ [key: string]: Codec;
680
+ };
681
+ technicalCommittee: {
682
+ /**
683
+ * The maximum weight of a dispatch call that can be proposed and executed.
684
+ **/
685
+ maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
686
+ /**
687
+ * Generic const
688
+ **/
689
+ [key: string]: Codec;
690
+ };
691
+ timestamp: {
692
+ /**
693
+ * The minimum period between blocks.
694
+ *
695
+ * Be aware that this is different to the *expected* period that the block production
696
+ * apparatus provides. Your chosen consensus system will generally work with this to
697
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
698
+ * period on default settings.
699
+ **/
700
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
701
+ /**
702
+ * Generic const
703
+ **/
704
+ [key: string]: Codec;
705
+ };
706
+ transactionPayment: {
707
+ /**
708
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
709
+ * `priority`
710
+ *
711
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
712
+ * added to a tip component in regular `priority` calculations.
713
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
714
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
715
+ *
716
+ * ```rust,ignore
717
+ * // For `Normal`
718
+ * let priority = priority_calc(tip);
719
+ *
720
+ * // For `Operational`
721
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
722
+ * let priority = priority_calc(tip + virtual_tip);
723
+ * ```
724
+ *
725
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
726
+ * sent with the transaction. So, not only does the transaction get a priority bump based
727
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
728
+ * transactions.
729
+ **/
730
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
731
+ /**
732
+ * Generic const
733
+ **/
734
+ [key: string]: Codec;
735
+ };
736
+ txPause: {
737
+ /**
738
+ * Maximum length for pallet name and call name SCALE encoded string names.
739
+ *
740
+ * TOO LONG NAMES WILL BE TREATED AS PAUSED.
741
+ **/
742
+ maxNameLen: u32 & AugmentedConst<ApiType>;
743
+ /**
744
+ * Generic const
745
+ **/
746
+ [key: string]: Codec;
747
+ };
748
+ uniques: {
749
+ /**
750
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
751
+ **/
752
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
753
+ /**
754
+ * The basic amount of funds that must be reserved for collection.
755
+ **/
756
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
757
+ /**
758
+ * The additional funds that must be reserved for the number of bytes store in metadata,
759
+ * either "normal" metadata or attribute metadata.
760
+ **/
761
+ depositPerByte: u128 & AugmentedConst<ApiType>;
762
+ /**
763
+ * The basic amount of funds that must be reserved for an item.
764
+ **/
765
+ itemDeposit: u128 & AugmentedConst<ApiType>;
766
+ /**
767
+ * The maximum length of an attribute key.
768
+ **/
769
+ keyLimit: u32 & AugmentedConst<ApiType>;
770
+ /**
771
+ * The basic amount of funds that must be reserved when adding metadata to your item.
772
+ **/
773
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
774
+ /**
775
+ * The maximum length of data stored on-chain.
776
+ **/
777
+ stringLimit: u32 & AugmentedConst<ApiType>;
778
+ /**
779
+ * The maximum length of an attribute value.
780
+ **/
781
+ valueLimit: u32 & AugmentedConst<ApiType>;
782
+ /**
783
+ * Generic const
784
+ **/
785
+ [key: string]: Codec;
786
+ };
787
+ utility: {
788
+ /**
789
+ * The limit on the number of batched calls.
790
+ **/
791
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
792
+ /**
793
+ * Generic const
794
+ **/
795
+ [key: string]: Codec;
796
+ };
797
+ validatorManager: {
798
+ /**
799
+ * Share of reputation taken per equivocation offence, whatever the slash
800
+ * fraction the offence reports
801
+ **/
802
+ equivocationPenalty: Perbill & AugmentedConst<ApiType>;
803
+ /**
804
+ * The maximal number of active validators
805
+ **/
806
+ maxActiveValidators: u32 & AugmentedConst<ApiType>;
807
+ /**
808
+ * Maximum number of offence validator entries
809
+ **/
810
+ maxOffenceEntries: u32 & AugmentedConst<ApiType>;
811
+ /**
812
+ * Maximum number of offline validator entries
813
+ **/
814
+ maxOfflineEntries: u32 & AugmentedConst<ApiType>;
815
+ /**
816
+ * Maximum number of registered (candidate) validators
817
+ **/
818
+ maxRegisteredValidators: u32 & AugmentedConst<ApiType>;
819
+ /**
820
+ * Maximum cumulative reputation penalty
821
+ **/
822
+ maxReputationPenalty: Perbill & AugmentedConst<ApiType>;
823
+ /**
824
+ * Maximum total reputation cap
825
+ **/
826
+ maxTotalReputation: u32 & AugmentedConst<ApiType>;
827
+ /**
828
+ * Reputation an account must hold to enter, and stay in, the pool the
829
+ * active validator set is drawn from.
830
+ *
831
+ * Checked twice on purpose: `register_validator` rejects an account
832
+ * below it, and `execute_maintenance` re-checks every session, because
833
+ * reputation moves — it decays with activity age and is reduced by
834
+ * offence penalties, so a candidate that qualified on registration need
835
+ * not still qualify at the draw.
836
+ *
837
+ * Must be at least 1: the draw weights a candidate by its reputation,
838
+ * and a zero-reputation candidate holds no tickets, so admitting one
839
+ * would quietly shrink the active set. Enforced in `integrity_test`.
840
+ **/
841
+ minValidatorReputation: u32 & AugmentedConst<ApiType>;
842
+ /**
843
+ * Minimum number of validators a new selection must contain; below it the
844
+ * previous validator set and candidate registry are retained.
845
+ **/
846
+ minValidators: u32 & AugmentedConst<ApiType>;
847
+ /**
848
+ * Share of reputation taken per offline offence
849
+ **/
850
+ offlinePenalty: Perbill & AugmentedConst<ApiType>;
851
+ /**
852
+ * Share of penalty decayed (subtracted) each session during maintenance
853
+ **/
854
+ penaltyDecayPerSession: Perbill & AugmentedConst<ApiType>;
855
+ /**
856
+ * Generic const
857
+ **/
858
+ [key: string]: Codec;
859
+ };
860
+ }
861
+ }