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