@polkadot/api-augment 7.0.3-5 → 7.0.3-9
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/base.cjs +5 -0
- package/base.d.ts +2 -0
- package/{augment/index.js → base.js} +1 -7
- package/bundle.cjs +1 -1
- package/bundle.d.ts +1 -1
- package/bundle.js +1 -1
- package/{augment → kusama}/consts.cjs +0 -0
- package/kusama/consts.d.ts +892 -0
- package/{augment → kusama}/consts.js +0 -0
- package/{augment → kusama}/errors.cjs +0 -0
- package/kusama/errors.d.ts +1855 -0
- package/{augment → kusama}/errors.js +0 -0
- package/{augment → kusama}/events.cjs +0 -0
- package/kusama/events.d.ts +1278 -0
- package/{augment → kusama}/events.js +0 -0
- package/{augment → kusama}/index.cjs +1 -3
- package/{augment → kusama}/index.d.ts +1 -2
- package/kusama/index.js +8 -0
- package/{augment → kusama}/query.cjs +0 -0
- package/kusama/query.d.ts +1913 -0
- package/{augment → kusama}/query.js +0 -0
- package/{augment → kusama}/tx.cjs +0 -0
- package/kusama/tx.d.ts +4877 -0
- package/{augment → kusama}/tx.js +0 -0
- package/package.json +100 -36
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/polkadot/consts.cjs +1 -0
- package/polkadot/consts.d.ts +764 -0
- package/polkadot/consts.js +1 -0
- package/polkadot/errors.cjs +1 -0
- package/polkadot/errors.d.ts +1634 -0
- package/polkadot/errors.js +1 -0
- package/polkadot/events.cjs +1 -0
- package/polkadot/events.d.ts +1126 -0
- package/polkadot/events.js +1 -0
- package/polkadot/index.cjs +13 -0
- package/polkadot/index.d.ts +6 -0
- package/polkadot/index.js +8 -0
- package/polkadot/query.cjs +1 -0
- package/polkadot/query.d.ts +1758 -0
- package/polkadot/query.js +1 -0
- package/polkadot/tx.cjs +1 -0
- package/polkadot/tx.d.ts +4275 -0
- package/polkadot/tx.js +1 -0
- package/substrate/consts.cjs +1 -0
- package/{augment → substrate}/consts.d.ts +0 -0
- package/substrate/consts.js +1 -0
- package/substrate/errors.cjs +1 -0
- package/{augment → substrate}/errors.d.ts +0 -0
- package/substrate/errors.js +1 -0
- package/substrate/events.cjs +1 -0
- package/{augment → substrate}/events.d.ts +0 -0
- package/substrate/events.js +1 -0
- package/substrate/index.cjs +13 -0
- package/substrate/index.d.ts +6 -0
- package/substrate/index.js +8 -0
- package/substrate/query.cjs +1 -0
- package/{augment → substrate}/query.d.ts +0 -0
- package/substrate/query.js +1 -0
- package/substrate/tx.cjs +1 -0
- package/{augment → substrate}/tx.d.ts +0 -0
- package/substrate/tx.js +1 -0
|
@@ -0,0 +1,764 @@
|
|
|
1
|
+
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
+
import type { Bytes, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { Codec } from '@polkadot/types-codec/types';
|
|
4
|
+
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
|
+
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
|
|
6
|
+
declare module '@polkadot/api-base/types/consts' {
|
|
7
|
+
interface AugmentedConsts<ApiType extends ApiTypes> {
|
|
8
|
+
auctions: {
|
|
9
|
+
/**
|
|
10
|
+
* The number of blocks over which an auction may be retroactively ended.
|
|
11
|
+
**/
|
|
12
|
+
endingPeriod: u32 & AugmentedConst<ApiType>;
|
|
13
|
+
leasePeriodsPerSlot: u32 & AugmentedConst<ApiType>;
|
|
14
|
+
/**
|
|
15
|
+
* The length of each sample to take during the ending period.
|
|
16
|
+
*
|
|
17
|
+
* `EndingPeriod` / `SampleLength` = Total # of Samples
|
|
18
|
+
**/
|
|
19
|
+
sampleLength: u32 & AugmentedConst<ApiType>;
|
|
20
|
+
slotRangeCount: u32 & AugmentedConst<ApiType>;
|
|
21
|
+
/**
|
|
22
|
+
* Generic const
|
|
23
|
+
**/
|
|
24
|
+
[key: string]: Codec;
|
|
25
|
+
};
|
|
26
|
+
authorship: {
|
|
27
|
+
/**
|
|
28
|
+
* The number of blocks back we should accept uncles.
|
|
29
|
+
* This means that we will deal with uncle-parents that are
|
|
30
|
+
* `UncleGenerations + 1` before `now`.
|
|
31
|
+
**/
|
|
32
|
+
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
33
|
+
/**
|
|
34
|
+
* Generic const
|
|
35
|
+
**/
|
|
36
|
+
[key: string]: Codec;
|
|
37
|
+
};
|
|
38
|
+
babe: {
|
|
39
|
+
/**
|
|
40
|
+
* The amount of time, in slots, that each epoch should last.
|
|
41
|
+
* NOTE: Currently it is not possible to change the epoch duration after
|
|
42
|
+
* the chain has started. Attempting to do so will brick block production.
|
|
43
|
+
**/
|
|
44
|
+
epochDuration: u64 & AugmentedConst<ApiType>;
|
|
45
|
+
/**
|
|
46
|
+
* The expected average block time at which BABE should be creating
|
|
47
|
+
* blocks. Since BABE is probabilistic it is not trivial to figure out
|
|
48
|
+
* what the expected average block time should be based on the slot
|
|
49
|
+
* duration and the security parameter `c` (where `1 - c` represents
|
|
50
|
+
* the probability of a slot being empty).
|
|
51
|
+
**/
|
|
52
|
+
expectedBlockTime: u64 & AugmentedConst<ApiType>;
|
|
53
|
+
/**
|
|
54
|
+
* Max number of authorities allowed
|
|
55
|
+
**/
|
|
56
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
57
|
+
/**
|
|
58
|
+
* Generic const
|
|
59
|
+
**/
|
|
60
|
+
[key: string]: Codec;
|
|
61
|
+
};
|
|
62
|
+
bagsList: {
|
|
63
|
+
/**
|
|
64
|
+
* The list of thresholds separating the various bags.
|
|
65
|
+
*
|
|
66
|
+
* Ids are separated into unsorted bags according to their vote weight. This specifies the
|
|
67
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's weight
|
|
68
|
+
* is less than or equal to its upper threshold.
|
|
69
|
+
*
|
|
70
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
71
|
+
* that iteration is _semi-sorted_: ids of higher weight tend to come before ids of lower
|
|
72
|
+
* weight, but peer ids within a particular bag are sorted in insertion order.
|
|
73
|
+
*
|
|
74
|
+
* # Expressing the constant
|
|
75
|
+
*
|
|
76
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
77
|
+
* permitted.
|
|
78
|
+
*
|
|
79
|
+
* There is an implied upper limit of `VoteWeight::MAX`; that value does not need to be
|
|
80
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
81
|
+
* `VoteWeight::MAX`, the other one does not, and they are otherwise equal, the two lists
|
|
82
|
+
* will behave identically.
|
|
83
|
+
*
|
|
84
|
+
* # Calculation
|
|
85
|
+
*
|
|
86
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
87
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
88
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
89
|
+
*
|
|
90
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
91
|
+
*
|
|
92
|
+
* # Examples
|
|
93
|
+
*
|
|
94
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
95
|
+
* iteration is strictly in insertion order.
|
|
96
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
97
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
98
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
99
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
100
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with weight 0 or 1 will fall
|
|
101
|
+
* into bag 0, an id with weight 2 will fall into bag 1, etc.
|
|
102
|
+
*
|
|
103
|
+
* # Migration
|
|
104
|
+
*
|
|
105
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
106
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
107
|
+
**/
|
|
108
|
+
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
109
|
+
/**
|
|
110
|
+
* Generic const
|
|
111
|
+
**/
|
|
112
|
+
[key: string]: Codec;
|
|
113
|
+
};
|
|
114
|
+
balances: {
|
|
115
|
+
/**
|
|
116
|
+
* The minimum amount required to keep an account open.
|
|
117
|
+
**/
|
|
118
|
+
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
119
|
+
/**
|
|
120
|
+
* The maximum number of locks that should exist on an account.
|
|
121
|
+
* Not strictly enforced, but used for weight estimation.
|
|
122
|
+
**/
|
|
123
|
+
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
124
|
+
/**
|
|
125
|
+
* The maximum number of named reserves that can exist on an account.
|
|
126
|
+
**/
|
|
127
|
+
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
128
|
+
/**
|
|
129
|
+
* Generic const
|
|
130
|
+
**/
|
|
131
|
+
[key: string]: Codec;
|
|
132
|
+
};
|
|
133
|
+
bounties: {
|
|
134
|
+
/**
|
|
135
|
+
* Percentage of the curator fee that will be reserved upfront as deposit for bounty
|
|
136
|
+
* curator.
|
|
137
|
+
**/
|
|
138
|
+
bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
|
|
139
|
+
/**
|
|
140
|
+
* The amount held on deposit for placing a bounty proposal.
|
|
141
|
+
**/
|
|
142
|
+
bountyDepositBase: u128 & AugmentedConst<ApiType>;
|
|
143
|
+
/**
|
|
144
|
+
* The delay period for which a bounty beneficiary need to wait before claim the payout.
|
|
145
|
+
**/
|
|
146
|
+
bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
|
|
147
|
+
/**
|
|
148
|
+
* Bounty duration in blocks.
|
|
149
|
+
**/
|
|
150
|
+
bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
|
|
151
|
+
/**
|
|
152
|
+
* Minimum value for a bounty.
|
|
153
|
+
**/
|
|
154
|
+
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
155
|
+
/**
|
|
156
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
157
|
+
**/
|
|
158
|
+
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
159
|
+
/**
|
|
160
|
+
* Maximum acceptable reason length.
|
|
161
|
+
*
|
|
162
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
163
|
+
**/
|
|
164
|
+
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
|
165
|
+
/**
|
|
166
|
+
* Generic const
|
|
167
|
+
**/
|
|
168
|
+
[key: string]: Codec;
|
|
169
|
+
};
|
|
170
|
+
claims: {
|
|
171
|
+
prefix: Bytes & AugmentedConst<ApiType>;
|
|
172
|
+
/**
|
|
173
|
+
* Generic const
|
|
174
|
+
**/
|
|
175
|
+
[key: string]: Codec;
|
|
176
|
+
};
|
|
177
|
+
crowdloan: {
|
|
178
|
+
/**
|
|
179
|
+
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
|
|
180
|
+
* least `ExistentialDeposit`.
|
|
181
|
+
**/
|
|
182
|
+
minContribution: u128 & AugmentedConst<ApiType>;
|
|
183
|
+
/**
|
|
184
|
+
* `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b"py/cfund")`
|
|
185
|
+
**/
|
|
186
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
187
|
+
/**
|
|
188
|
+
* Max number of storage keys to remove per extrinsic call.
|
|
189
|
+
**/
|
|
190
|
+
removeKeysLimit: u32 & AugmentedConst<ApiType>;
|
|
191
|
+
/**
|
|
192
|
+
* Generic const
|
|
193
|
+
**/
|
|
194
|
+
[key: string]: Codec;
|
|
195
|
+
};
|
|
196
|
+
democracy: {
|
|
197
|
+
/**
|
|
198
|
+
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
199
|
+
**/
|
|
200
|
+
cooloffPeriod: u32 & AugmentedConst<ApiType>;
|
|
201
|
+
/**
|
|
202
|
+
* The period between a proposal being approved and enacted.
|
|
203
|
+
*
|
|
204
|
+
* It should generally be a little more than the unstake period to ensure that
|
|
205
|
+
* voting stakers have an opportunity to remove themselves from the system in the case
|
|
206
|
+
* where they are on the losing side of a vote.
|
|
207
|
+
**/
|
|
208
|
+
enactmentPeriod: u32 & AugmentedConst<ApiType>;
|
|
209
|
+
/**
|
|
210
|
+
* Minimum voting period allowed for a fast-track referendum.
|
|
211
|
+
**/
|
|
212
|
+
fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
|
|
213
|
+
/**
|
|
214
|
+
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
|
215
|
+
* want to set this permanently to `false`, others may want to condition it on things such
|
|
216
|
+
* as an upgrade having happened recently.
|
|
217
|
+
**/
|
|
218
|
+
instantAllowed: bool & AugmentedConst<ApiType>;
|
|
219
|
+
/**
|
|
220
|
+
* How often (in blocks) new public referenda are launched.
|
|
221
|
+
**/
|
|
222
|
+
launchPeriod: u32 & AugmentedConst<ApiType>;
|
|
223
|
+
/**
|
|
224
|
+
* The maximum number of public proposals that can exist at any time.
|
|
225
|
+
**/
|
|
226
|
+
maxProposals: u32 & AugmentedConst<ApiType>;
|
|
227
|
+
/**
|
|
228
|
+
* The maximum number of votes for an account.
|
|
229
|
+
*
|
|
230
|
+
* Also used to compute weight, an overly big value can
|
|
231
|
+
* lead to extrinsic with very big weight: see `delegate` for instance.
|
|
232
|
+
**/
|
|
233
|
+
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
234
|
+
/**
|
|
235
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
236
|
+
**/
|
|
237
|
+
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
|
238
|
+
/**
|
|
239
|
+
* The amount of balance that must be deposited per byte of preimage stored.
|
|
240
|
+
**/
|
|
241
|
+
preimageByteDeposit: u128 & AugmentedConst<ApiType>;
|
|
242
|
+
/**
|
|
243
|
+
* The minimum period of vote locking.
|
|
244
|
+
*
|
|
245
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
246
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
247
|
+
**/
|
|
248
|
+
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
|
249
|
+
/**
|
|
250
|
+
* How often (in blocks) to check for new votes.
|
|
251
|
+
**/
|
|
252
|
+
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
253
|
+
/**
|
|
254
|
+
* Generic const
|
|
255
|
+
**/
|
|
256
|
+
[key: string]: Codec;
|
|
257
|
+
};
|
|
258
|
+
electionProviderMultiPhase: {
|
|
259
|
+
/**
|
|
260
|
+
* Maximum length (bytes) that the mined solution should consume.
|
|
261
|
+
*
|
|
262
|
+
* The miner will ensure that the total length of the unsigned solution will not exceed
|
|
263
|
+
* this value.
|
|
264
|
+
**/
|
|
265
|
+
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
266
|
+
/**
|
|
267
|
+
* Maximum weight that the miner should consume.
|
|
268
|
+
*
|
|
269
|
+
* The miner will ensure that the total weight of the unsigned solution will not exceed
|
|
270
|
+
* this value, based on [`WeightInfo::submit_unsigned`].
|
|
271
|
+
**/
|
|
272
|
+
minerMaxWeight: u64 & AugmentedConst<ApiType>;
|
|
273
|
+
/**
|
|
274
|
+
* The priority of the unsigned transaction submitted in the unsigned-phase
|
|
275
|
+
**/
|
|
276
|
+
minerTxPriority: u64 & AugmentedConst<ApiType>;
|
|
277
|
+
/**
|
|
278
|
+
* The repeat threshold of the offchain worker.
|
|
279
|
+
*
|
|
280
|
+
* For example, if it is 5, that means that at least 5 blocks will elapse between attempts
|
|
281
|
+
* to submit the worker's solution.
|
|
282
|
+
**/
|
|
283
|
+
offchainRepeat: u32 & AugmentedConst<ApiType>;
|
|
284
|
+
/**
|
|
285
|
+
* Base deposit for a signed solution.
|
|
286
|
+
**/
|
|
287
|
+
signedDepositBase: u128 & AugmentedConst<ApiType>;
|
|
288
|
+
/**
|
|
289
|
+
* Per-byte deposit for a signed solution.
|
|
290
|
+
**/
|
|
291
|
+
signedDepositByte: u128 & AugmentedConst<ApiType>;
|
|
292
|
+
/**
|
|
293
|
+
* Per-weight deposit for a signed solution.
|
|
294
|
+
**/
|
|
295
|
+
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
|
296
|
+
/**
|
|
297
|
+
* Maximum number of signed submissions that can be queued.
|
|
298
|
+
*
|
|
299
|
+
* It is best to avoid adjusting this during an election, as it impacts downstream data
|
|
300
|
+
* structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
|
|
301
|
+
* update this value during an election, you _must_ ensure that
|
|
302
|
+
* `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
|
|
303
|
+
* attempts to submit new solutions may cause a runtime panic.
|
|
304
|
+
**/
|
|
305
|
+
signedMaxSubmissions: u32 & AugmentedConst<ApiType>;
|
|
306
|
+
/**
|
|
307
|
+
* Maximum weight of a signed solution.
|
|
308
|
+
*
|
|
309
|
+
* This should probably be similar to [`Config::MinerMaxWeight`].
|
|
310
|
+
**/
|
|
311
|
+
signedMaxWeight: u64 & AugmentedConst<ApiType>;
|
|
312
|
+
/**
|
|
313
|
+
* Duration of the signed phase.
|
|
314
|
+
**/
|
|
315
|
+
signedPhase: u32 & AugmentedConst<ApiType>;
|
|
316
|
+
/**
|
|
317
|
+
* Base reward for a signed solution
|
|
318
|
+
**/
|
|
319
|
+
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
|
320
|
+
/**
|
|
321
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
322
|
+
* "better" (in any phase).
|
|
323
|
+
**/
|
|
324
|
+
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
|
325
|
+
/**
|
|
326
|
+
* Duration of the unsigned phase.
|
|
327
|
+
**/
|
|
328
|
+
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
|
329
|
+
/**
|
|
330
|
+
* The maximum number of voters to put in the snapshot. At the moment, snapshots are only
|
|
331
|
+
* over a single block, but once multi-block elections are introduced they will take place
|
|
332
|
+
* over multiple blocks.
|
|
333
|
+
*
|
|
334
|
+
* Also, note the data type: If the voters are represented by a `u32` in `type
|
|
335
|
+
* CompactSolution`, the same `u32` is used here to ensure bounds are respected.
|
|
336
|
+
**/
|
|
337
|
+
voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
|
338
|
+
/**
|
|
339
|
+
* Generic const
|
|
340
|
+
**/
|
|
341
|
+
[key: string]: Codec;
|
|
342
|
+
};
|
|
343
|
+
grandpa: {
|
|
344
|
+
/**
|
|
345
|
+
* Max Authorities in use
|
|
346
|
+
**/
|
|
347
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
348
|
+
/**
|
|
349
|
+
* Generic const
|
|
350
|
+
**/
|
|
351
|
+
[key: string]: Codec;
|
|
352
|
+
};
|
|
353
|
+
identity: {
|
|
354
|
+
/**
|
|
355
|
+
* The amount held on deposit for a registered identity
|
|
356
|
+
**/
|
|
357
|
+
basicDeposit: u128 & AugmentedConst<ApiType>;
|
|
358
|
+
/**
|
|
359
|
+
* The amount held on deposit per additional field for a registered identity.
|
|
360
|
+
**/
|
|
361
|
+
fieldDeposit: u128 & AugmentedConst<ApiType>;
|
|
362
|
+
/**
|
|
363
|
+
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
|
|
364
|
+
* required to access an identity, but can be pretty high.
|
|
365
|
+
**/
|
|
366
|
+
maxAdditionalFields: u32 & AugmentedConst<ApiType>;
|
|
367
|
+
/**
|
|
368
|
+
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
|
369
|
+
* of, e.g., updating judgements.
|
|
370
|
+
**/
|
|
371
|
+
maxRegistrars: u32 & AugmentedConst<ApiType>;
|
|
372
|
+
/**
|
|
373
|
+
* The maximum number of sub-accounts allowed per identified account.
|
|
374
|
+
**/
|
|
375
|
+
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
|
376
|
+
/**
|
|
377
|
+
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
378
|
+
* that one storage item's value will increase by the size of an account ID, and there will
|
|
379
|
+
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
380
|
+
**/
|
|
381
|
+
subAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
382
|
+
/**
|
|
383
|
+
* Generic const
|
|
384
|
+
**/
|
|
385
|
+
[key: string]: Codec;
|
|
386
|
+
};
|
|
387
|
+
imOnline: {
|
|
388
|
+
/**
|
|
389
|
+
* A configuration for base priority of unsigned transactions.
|
|
390
|
+
*
|
|
391
|
+
* This is exposed so that it can be tuned for particular runtime, when
|
|
392
|
+
* multiple pallets send unsigned transactions.
|
|
393
|
+
**/
|
|
394
|
+
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
|
395
|
+
/**
|
|
396
|
+
* Generic const
|
|
397
|
+
**/
|
|
398
|
+
[key: string]: Codec;
|
|
399
|
+
};
|
|
400
|
+
indices: {
|
|
401
|
+
/**
|
|
402
|
+
* The deposit needed for reserving an index.
|
|
403
|
+
**/
|
|
404
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
405
|
+
/**
|
|
406
|
+
* Generic const
|
|
407
|
+
**/
|
|
408
|
+
[key: string]: Codec;
|
|
409
|
+
};
|
|
410
|
+
multisig: {
|
|
411
|
+
/**
|
|
412
|
+
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
413
|
+
* store a dispatch call for later.
|
|
414
|
+
*
|
|
415
|
+
* This is held for an additional storage item whose value size is
|
|
416
|
+
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
|
417
|
+
* `32 + sizeof(AccountId)` bytes.
|
|
418
|
+
**/
|
|
419
|
+
depositBase: u128 & AugmentedConst<ApiType>;
|
|
420
|
+
/**
|
|
421
|
+
* The amount of currency needed per unit threshold when creating a multisig execution.
|
|
422
|
+
*
|
|
423
|
+
* This is held for adding 32 bytes more into a pre-existing storage value.
|
|
424
|
+
**/
|
|
425
|
+
depositFactor: u128 & AugmentedConst<ApiType>;
|
|
426
|
+
/**
|
|
427
|
+
* The maximum amount of signatories allowed in the multisig.
|
|
428
|
+
**/
|
|
429
|
+
maxSignatories: u16 & AugmentedConst<ApiType>;
|
|
430
|
+
/**
|
|
431
|
+
* Generic const
|
|
432
|
+
**/
|
|
433
|
+
[key: string]: Codec;
|
|
434
|
+
};
|
|
435
|
+
paras: {
|
|
436
|
+
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
|
437
|
+
/**
|
|
438
|
+
* Generic const
|
|
439
|
+
**/
|
|
440
|
+
[key: string]: Codec;
|
|
441
|
+
};
|
|
442
|
+
phragmenElection: {
|
|
443
|
+
/**
|
|
444
|
+
* How much should be locked up in order to submit one's candidacy.
|
|
445
|
+
**/
|
|
446
|
+
candidacyBond: u128 & AugmentedConst<ApiType>;
|
|
447
|
+
/**
|
|
448
|
+
* Number of members to elect.
|
|
449
|
+
**/
|
|
450
|
+
desiredMembers: u32 & AugmentedConst<ApiType>;
|
|
451
|
+
/**
|
|
452
|
+
* Number of runners_up to keep.
|
|
453
|
+
**/
|
|
454
|
+
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
|
455
|
+
/**
|
|
456
|
+
* Identifier for the elections-phragmen pallet's lock
|
|
457
|
+
**/
|
|
458
|
+
palletId: U8aFixed & AugmentedConst<ApiType>;
|
|
459
|
+
/**
|
|
460
|
+
* How long each seat is kept. This defines the next block number at which an election
|
|
461
|
+
* round will happen. If set to zero, no elections are ever triggered and the module will
|
|
462
|
+
* be in passive mode.
|
|
463
|
+
**/
|
|
464
|
+
termDuration: u32 & AugmentedConst<ApiType>;
|
|
465
|
+
/**
|
|
466
|
+
* Base deposit associated with voting.
|
|
467
|
+
*
|
|
468
|
+
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
|
469
|
+
* creating a gigantic number of votes.
|
|
470
|
+
**/
|
|
471
|
+
votingBondBase: u128 & AugmentedConst<ApiType>;
|
|
472
|
+
/**
|
|
473
|
+
* The amount of bond that need to be locked for each vote (32 bytes).
|
|
474
|
+
**/
|
|
475
|
+
votingBondFactor: u128 & AugmentedConst<ApiType>;
|
|
476
|
+
/**
|
|
477
|
+
* Generic const
|
|
478
|
+
**/
|
|
479
|
+
[key: string]: Codec;
|
|
480
|
+
};
|
|
481
|
+
proxy: {
|
|
482
|
+
/**
|
|
483
|
+
* The base amount of currency needed to reserve for creating an announcement.
|
|
484
|
+
*
|
|
485
|
+
* This is held when a new storage item holding a `Balance` is created (typically 16
|
|
486
|
+
* bytes).
|
|
487
|
+
**/
|
|
488
|
+
announcementDepositBase: u128 & AugmentedConst<ApiType>;
|
|
489
|
+
/**
|
|
490
|
+
* The amount of currency needed per announcement made.
|
|
491
|
+
*
|
|
492
|
+
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
|
493
|
+
* into a pre-existing storage value.
|
|
494
|
+
**/
|
|
495
|
+
announcementDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
496
|
+
/**
|
|
497
|
+
* The maximum amount of time-delayed announcements that are allowed to be pending.
|
|
498
|
+
**/
|
|
499
|
+
maxPending: u32 & AugmentedConst<ApiType>;
|
|
500
|
+
/**
|
|
501
|
+
* The maximum amount of proxies allowed for a single account.
|
|
502
|
+
**/
|
|
503
|
+
maxProxies: u32 & AugmentedConst<ApiType>;
|
|
504
|
+
/**
|
|
505
|
+
* The base amount of currency needed to reserve for creating a proxy.
|
|
506
|
+
*
|
|
507
|
+
* This is held for an additional storage item whose value size is
|
|
508
|
+
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
|
509
|
+
**/
|
|
510
|
+
proxyDepositBase: u128 & AugmentedConst<ApiType>;
|
|
511
|
+
/**
|
|
512
|
+
* The amount of currency needed per proxy added.
|
|
513
|
+
*
|
|
514
|
+
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
|
|
515
|
+
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
|
|
516
|
+
* into account `32 + proxy_type.encode().len()` bytes of data.
|
|
517
|
+
**/
|
|
518
|
+
proxyDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
519
|
+
/**
|
|
520
|
+
* Generic const
|
|
521
|
+
**/
|
|
522
|
+
[key: string]: Codec;
|
|
523
|
+
};
|
|
524
|
+
registrar: {
|
|
525
|
+
/**
|
|
526
|
+
* The deposit to be paid per byte stored on chain.
|
|
527
|
+
**/
|
|
528
|
+
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
529
|
+
/**
|
|
530
|
+
* The deposit to be paid to run a parathread.
|
|
531
|
+
* This should include the cost for storing the genesis head and validation code.
|
|
532
|
+
**/
|
|
533
|
+
paraDeposit: u128 & AugmentedConst<ApiType>;
|
|
534
|
+
/**
|
|
535
|
+
* Generic const
|
|
536
|
+
**/
|
|
537
|
+
[key: string]: Codec;
|
|
538
|
+
};
|
|
539
|
+
scheduler: {
|
|
540
|
+
/**
|
|
541
|
+
* The maximum weight that may be scheduled per block for any dispatchables of less
|
|
542
|
+
* priority than `schedule::HARD_DEADLINE`.
|
|
543
|
+
**/
|
|
544
|
+
maximumWeight: u64 & AugmentedConst<ApiType>;
|
|
545
|
+
/**
|
|
546
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
547
|
+
* Not strictly enforced, but used for weight estimation.
|
|
548
|
+
**/
|
|
549
|
+
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
550
|
+
/**
|
|
551
|
+
* Generic const
|
|
552
|
+
**/
|
|
553
|
+
[key: string]: Codec;
|
|
554
|
+
};
|
|
555
|
+
slots: {
|
|
556
|
+
/**
|
|
557
|
+
* The number of blocks to offset each lease period by.
|
|
558
|
+
**/
|
|
559
|
+
leaseOffset: u32 & AugmentedConst<ApiType>;
|
|
560
|
+
/**
|
|
561
|
+
* The number of blocks over which a single period lasts.
|
|
562
|
+
**/
|
|
563
|
+
leasePeriod: u32 & AugmentedConst<ApiType>;
|
|
564
|
+
/**
|
|
565
|
+
* Generic const
|
|
566
|
+
**/
|
|
567
|
+
[key: string]: Codec;
|
|
568
|
+
};
|
|
569
|
+
staking: {
|
|
570
|
+
/**
|
|
571
|
+
* Number of eras that staked funds must remain bonded for.
|
|
572
|
+
**/
|
|
573
|
+
bondingDuration: u32 & AugmentedConst<ApiType>;
|
|
574
|
+
maxNominations: u32 & AugmentedConst<ApiType>;
|
|
575
|
+
/**
|
|
576
|
+
* The maximum number of nominators rewarded for each validator.
|
|
577
|
+
*
|
|
578
|
+
* For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
|
|
579
|
+
* claim their reward. This used to limit the i/o cost for the nominator payout.
|
|
580
|
+
**/
|
|
581
|
+
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
|
|
582
|
+
/**
|
|
583
|
+
* Number of sessions per era.
|
|
584
|
+
**/
|
|
585
|
+
sessionsPerEra: u32 & AugmentedConst<ApiType>;
|
|
586
|
+
/**
|
|
587
|
+
* Number of eras that slashes are deferred by, after computation.
|
|
588
|
+
*
|
|
589
|
+
* This should be less than the bonding duration. Set to 0 if slashes
|
|
590
|
+
* should be applied immediately, without opportunity for intervention.
|
|
591
|
+
**/
|
|
592
|
+
slashDeferDuration: u32 & AugmentedConst<ApiType>;
|
|
593
|
+
/**
|
|
594
|
+
* Generic const
|
|
595
|
+
**/
|
|
596
|
+
[key: string]: Codec;
|
|
597
|
+
};
|
|
598
|
+
system: {
|
|
599
|
+
/**
|
|
600
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
601
|
+
**/
|
|
602
|
+
blockHashCount: u32 & AugmentedConst<ApiType>;
|
|
603
|
+
/**
|
|
604
|
+
* The maximum length of a block (in bytes).
|
|
605
|
+
**/
|
|
606
|
+
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
|
|
607
|
+
/**
|
|
608
|
+
* Block & extrinsics weights: base values and limits.
|
|
609
|
+
**/
|
|
610
|
+
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
|
|
611
|
+
/**
|
|
612
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
613
|
+
**/
|
|
614
|
+
dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
615
|
+
/**
|
|
616
|
+
* The designated SS85 prefix of this chain.
|
|
617
|
+
*
|
|
618
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
619
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
620
|
+
* an identifier of the chain.
|
|
621
|
+
**/
|
|
622
|
+
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
623
|
+
/**
|
|
624
|
+
* Get the chain's current version.
|
|
625
|
+
**/
|
|
626
|
+
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
627
|
+
/**
|
|
628
|
+
* Generic const
|
|
629
|
+
**/
|
|
630
|
+
[key: string]: Codec;
|
|
631
|
+
};
|
|
632
|
+
timestamp: {
|
|
633
|
+
/**
|
|
634
|
+
* The minimum period between blocks. Beware that this is different to the *expected*
|
|
635
|
+
* period that the block production apparatus provides. Your chosen consensus system will
|
|
636
|
+
* generally work with this to determine a sensible block time. e.g. For Aura, it will be
|
|
637
|
+
* double this period on default settings.
|
|
638
|
+
**/
|
|
639
|
+
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
640
|
+
/**
|
|
641
|
+
* Generic const
|
|
642
|
+
**/
|
|
643
|
+
[key: string]: Codec;
|
|
644
|
+
};
|
|
645
|
+
tips: {
|
|
646
|
+
/**
|
|
647
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
648
|
+
**/
|
|
649
|
+
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
650
|
+
/**
|
|
651
|
+
* Maximum acceptable reason length.
|
|
652
|
+
*
|
|
653
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
654
|
+
**/
|
|
655
|
+
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
|
656
|
+
/**
|
|
657
|
+
* The period for which a tip remains open after is has achieved threshold tippers.
|
|
658
|
+
**/
|
|
659
|
+
tipCountdown: u32 & AugmentedConst<ApiType>;
|
|
660
|
+
/**
|
|
661
|
+
* The percent of the final tip which goes to the original reporter of the tip.
|
|
662
|
+
**/
|
|
663
|
+
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
|
664
|
+
/**
|
|
665
|
+
* The amount held on deposit for placing a tip report.
|
|
666
|
+
**/
|
|
667
|
+
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
|
668
|
+
/**
|
|
669
|
+
* Generic const
|
|
670
|
+
**/
|
|
671
|
+
[key: string]: Codec;
|
|
672
|
+
};
|
|
673
|
+
transactionPayment: {
|
|
674
|
+
/**
|
|
675
|
+
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
676
|
+
* `priority`
|
|
677
|
+
*
|
|
678
|
+
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
|
679
|
+
* added to a tip component in regular `priority` calculations.
|
|
680
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
681
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
682
|
+
*
|
|
683
|
+
* ```rust,ignore
|
|
684
|
+
* // For `Normal`
|
|
685
|
+
* let priority = priority_calc(tip);
|
|
686
|
+
*
|
|
687
|
+
* // For `Operational`
|
|
688
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
689
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
690
|
+
* ```
|
|
691
|
+
*
|
|
692
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
693
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
694
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
695
|
+
* transactions.
|
|
696
|
+
**/
|
|
697
|
+
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
698
|
+
/**
|
|
699
|
+
* The fee to be paid for making a transaction; the per-byte portion.
|
|
700
|
+
**/
|
|
701
|
+
transactionByteFee: u128 & AugmentedConst<ApiType>;
|
|
702
|
+
/**
|
|
703
|
+
* The polynomial that is applied in order to derive fee from weight.
|
|
704
|
+
**/
|
|
705
|
+
weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
|
|
706
|
+
/**
|
|
707
|
+
* Generic const
|
|
708
|
+
**/
|
|
709
|
+
[key: string]: Codec;
|
|
710
|
+
};
|
|
711
|
+
treasury: {
|
|
712
|
+
/**
|
|
713
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
714
|
+
**/
|
|
715
|
+
burn: Permill & AugmentedConst<ApiType>;
|
|
716
|
+
/**
|
|
717
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
718
|
+
**/
|
|
719
|
+
maxApprovals: u32 & AugmentedConst<ApiType>;
|
|
720
|
+
/**
|
|
721
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
722
|
+
**/
|
|
723
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
724
|
+
/**
|
|
725
|
+
* Fraction of a proposal's value that should be bonded in order to place the proposal.
|
|
726
|
+
* An accepted proposal gets these back. A rejected proposal does not.
|
|
727
|
+
**/
|
|
728
|
+
proposalBond: Permill & AugmentedConst<ApiType>;
|
|
729
|
+
/**
|
|
730
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
731
|
+
**/
|
|
732
|
+
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
|
|
733
|
+
/**
|
|
734
|
+
* Period between successive spends.
|
|
735
|
+
**/
|
|
736
|
+
spendPeriod: u32 & AugmentedConst<ApiType>;
|
|
737
|
+
/**
|
|
738
|
+
* Generic const
|
|
739
|
+
**/
|
|
740
|
+
[key: string]: Codec;
|
|
741
|
+
};
|
|
742
|
+
utility: {
|
|
743
|
+
/**
|
|
744
|
+
* The limit on the number of batched calls.
|
|
745
|
+
**/
|
|
746
|
+
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
747
|
+
/**
|
|
748
|
+
* Generic const
|
|
749
|
+
**/
|
|
750
|
+
[key: string]: Codec;
|
|
751
|
+
};
|
|
752
|
+
vesting: {
|
|
753
|
+
maxVestingSchedules: u32 & AugmentedConst<ApiType>;
|
|
754
|
+
/**
|
|
755
|
+
* The minimum amount transferred to call `vested_transfer`.
|
|
756
|
+
**/
|
|
757
|
+
minVestedTransfer: u128 & AugmentedConst<ApiType>;
|
|
758
|
+
/**
|
|
759
|
+
* Generic const
|
|
760
|
+
**/
|
|
761
|
+
[key: string]: Codec;
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
}
|