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