@pezkuwi/api-augment 16.5.5
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 +3 -0
- package/build/base.d.ts +2 -0
- package/build/bundle.d.ts +2 -0
- package/build/index.d.ts +2 -0
- package/build/packageDetect.d.ts +1 -0
- package/build/packageInfo.d.ts +6 -0
- package/build/substrate/consts.d.ts +1876 -0
- package/build/substrate/errors.d.ts +3865 -0
- package/build/substrate/events.d.ts +4702 -0
- package/build/substrate/index.d.ts +8 -0
- package/build/substrate/query.d.ts +2767 -0
- package/build/substrate/registry.d.ts +1 -0
- package/build/substrate/runtime.d.ts +741 -0
- package/build/substrate/tx.d.ts +10869 -0
- package/package.json +32 -0
- package/src/assetHubKusama/consts.ts +1308 -0
- package/src/assetHubKusama/errors.ts +2779 -0
- package/src/assetHubKusama/events.ts +2296 -0
- package/src/assetHubKusama/index.ts +11 -0
- package/src/assetHubKusama/query.ts +2193 -0
- package/src/assetHubKusama/registry.ts +4 -0
- package/src/assetHubKusama/runtime.ts +518 -0
- package/src/assetHubKusama/tx.ts +6890 -0
- package/src/assetHubPolkadot/consts.ts +1125 -0
- package/src/assetHubPolkadot/errors.ts +2360 -0
- package/src/assetHubPolkadot/events.ts +2129 -0
- package/src/assetHubPolkadot/index.ts +11 -0
- package/src/assetHubPolkadot/query.ts +2002 -0
- package/src/assetHubPolkadot/registry.ts +4 -0
- package/src/assetHubPolkadot/runtime.ts +443 -0
- package/src/assetHubPolkadot/tx.ts +6242 -0
- package/src/base.ts +6 -0
- package/src/bundle.ts +6 -0
- package/src/index.ts +6 -0
- package/src/kusama/consts.ts +1035 -0
- package/src/kusama/errors.ts +2436 -0
- package/src/kusama/events.ts +1791 -0
- package/src/kusama/index.ts +11 -0
- package/src/kusama/query.ts +2505 -0
- package/src/kusama/registry.ts +6 -0
- package/src/kusama/runtime.ts +610 -0
- package/src/kusama/tx.ts +4725 -0
- package/src/mod.ts +4 -0
- package/src/packageDetect.ts +14 -0
- package/src/packageInfo.ts +6 -0
- package/src/polkadot/consts.ts +949 -0
- package/src/polkadot/errors.ts +2156 -0
- package/src/polkadot/events.ts +1600 -0
- package/src/polkadot/index.ts +11 -0
- package/src/polkadot/query.ts +2357 -0
- package/src/polkadot/registry.ts +5 -0
- package/src/polkadot/runtime.ts +621 -0
- package/src/polkadot/tx.ts +4240 -0
- package/src/substrate/consts.ts +1884 -0
- package/src/substrate/errors.ts +3873 -0
- package/src/substrate/events.ts +2889 -0
- package/src/substrate/index.ts +11 -0
- package/src/substrate/query.ts +2734 -0
- package/src/substrate/registry.ts +4 -0
- package/src/substrate/runtime.ts +593 -0
- package/src/substrate/tx.ts +8208 -0
- package/tsconfig.assetHubKusama.json +22 -0
- package/tsconfig.assetHubPolkadot.json +22 -0
- package/tsconfig.build.json +23 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.kusama.json +22 -0
- package/tsconfig.polkadot.json +22 -0
|
@@ -0,0 +1,1884 @@
|
|
|
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 '@pezkuwi/api-base/types';
|
|
9
|
+
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@pezkuwi/types-codec';
|
|
10
|
+
import type { Codec, ITuple } from '@pezkuwi/types-codec/types';
|
|
11
|
+
import type { AccountId32, Perbill, Percent, Permill, Perquintill } from '@pezkuwi/types/interfaces/runtime';
|
|
12
|
+
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@pezkuwi/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
|
+
alliance: {
|
|
19
|
+
/**
|
|
20
|
+
* The deposit required for submitting candidacy.
|
|
21
|
+
**/
|
|
22
|
+
allyDeposit: u128 & AugmentedConst<ApiType>;
|
|
23
|
+
/**
|
|
24
|
+
* The maximum number of announcements.
|
|
25
|
+
**/
|
|
26
|
+
maxAnnouncementsCount: u32 & AugmentedConst<ApiType>;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum number of members per member role.
|
|
29
|
+
**/
|
|
30
|
+
maxMembersCount: u32 & AugmentedConst<ApiType>;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum number of the unscrupulous items supported by the pallet.
|
|
33
|
+
**/
|
|
34
|
+
maxUnscrupulousItems: u32 & AugmentedConst<ApiType>;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum length of a website URL.
|
|
37
|
+
**/
|
|
38
|
+
maxWebsiteUrlLength: u32 & AugmentedConst<ApiType>;
|
|
39
|
+
/**
|
|
40
|
+
* Generic const
|
|
41
|
+
**/
|
|
42
|
+
[key: string]: Codec;
|
|
43
|
+
};
|
|
44
|
+
allianceMotion: {
|
|
45
|
+
/**
|
|
46
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
47
|
+
**/
|
|
48
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
49
|
+
/**
|
|
50
|
+
* Generic const
|
|
51
|
+
**/
|
|
52
|
+
[key: string]: Codec;
|
|
53
|
+
};
|
|
54
|
+
assetConversion: {
|
|
55
|
+
/**
|
|
56
|
+
* A fee to withdraw the liquidity.
|
|
57
|
+
**/
|
|
58
|
+
liquidityWithdrawalFee: Permill & AugmentedConst<ApiType>;
|
|
59
|
+
/**
|
|
60
|
+
* A % the liquidity providers will take of every swap. Represents 10ths of a percent.
|
|
61
|
+
**/
|
|
62
|
+
lpFee: u32 & AugmentedConst<ApiType>;
|
|
63
|
+
/**
|
|
64
|
+
* The max number of hops in a swap.
|
|
65
|
+
**/
|
|
66
|
+
maxSwapPathLength: u32 & AugmentedConst<ApiType>;
|
|
67
|
+
/**
|
|
68
|
+
* The minimum LP token amount that could be minted. Ameliorates rounding errors.
|
|
69
|
+
**/
|
|
70
|
+
mintMinLiquidity: u128 & AugmentedConst<ApiType>;
|
|
71
|
+
/**
|
|
72
|
+
* The pallet's id, used for deriving its sovereign account ID.
|
|
73
|
+
**/
|
|
74
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
75
|
+
/**
|
|
76
|
+
* A one-time fee to setup the pool.
|
|
77
|
+
**/
|
|
78
|
+
poolSetupFee: u128 & AugmentedConst<ApiType>;
|
|
79
|
+
/**
|
|
80
|
+
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
|
|
81
|
+
**/
|
|
82
|
+
poolSetupFeeAsset: FrameSupportTokensFungibleUnionOfNativeOrWithId & AugmentedConst<ApiType>;
|
|
83
|
+
/**
|
|
84
|
+
* Generic const
|
|
85
|
+
**/
|
|
86
|
+
[key: string]: Codec;
|
|
87
|
+
};
|
|
88
|
+
assetRewards: {
|
|
89
|
+
/**
|
|
90
|
+
* The pallet's unique identifier, used to derive the pool's account ID.
|
|
91
|
+
*
|
|
92
|
+
* The account ID is derived once during pool creation and stored in the storage.
|
|
93
|
+
**/
|
|
94
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
95
|
+
/**
|
|
96
|
+
* Generic const
|
|
97
|
+
**/
|
|
98
|
+
[key: string]: Codec;
|
|
99
|
+
};
|
|
100
|
+
assets: {
|
|
101
|
+
/**
|
|
102
|
+
* The amount of funds that must be reserved when creating a new approval.
|
|
103
|
+
**/
|
|
104
|
+
approvalDeposit: u128 & AugmentedConst<ApiType>;
|
|
105
|
+
/**
|
|
106
|
+
* The amount of funds that must be reserved for a non-provider asset account to be
|
|
107
|
+
* maintained.
|
|
108
|
+
**/
|
|
109
|
+
assetAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
110
|
+
/**
|
|
111
|
+
* The basic amount of funds that must be reserved for an asset.
|
|
112
|
+
**/
|
|
113
|
+
assetDeposit: u128 & AugmentedConst<ApiType>;
|
|
114
|
+
/**
|
|
115
|
+
* The basic amount of funds that must be reserved when adding metadata to your asset.
|
|
116
|
+
**/
|
|
117
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
118
|
+
/**
|
|
119
|
+
* The additional funds that must be reserved for the number of bytes you store in your
|
|
120
|
+
* metadata.
|
|
121
|
+
**/
|
|
122
|
+
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
123
|
+
/**
|
|
124
|
+
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
|
125
|
+
*
|
|
126
|
+
* Must be configured to result in a weight that makes each call fit in a block.
|
|
127
|
+
**/
|
|
128
|
+
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
|
129
|
+
/**
|
|
130
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
131
|
+
**/
|
|
132
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
133
|
+
/**
|
|
134
|
+
* Generic const
|
|
135
|
+
**/
|
|
136
|
+
[key: string]: Codec;
|
|
137
|
+
};
|
|
138
|
+
babe: {
|
|
139
|
+
/**
|
|
140
|
+
* The amount of time, in slots, that each epoch should last.
|
|
141
|
+
* NOTE: Currently it is not possible to change the epoch duration after
|
|
142
|
+
* the chain has started. Attempting to do so will brick block production.
|
|
143
|
+
**/
|
|
144
|
+
epochDuration: u64 & AugmentedConst<ApiType>;
|
|
145
|
+
/**
|
|
146
|
+
* The expected average block time at which BABE should be creating
|
|
147
|
+
* blocks. Since BABE is probabilistic it is not trivial to figure out
|
|
148
|
+
* what the expected average block time should be based on the slot
|
|
149
|
+
* duration and the security parameter `c` (where `1 - c` represents
|
|
150
|
+
* the probability of a slot being empty).
|
|
151
|
+
**/
|
|
152
|
+
expectedBlockTime: u64 & AugmentedConst<ApiType>;
|
|
153
|
+
/**
|
|
154
|
+
* Max number of authorities allowed
|
|
155
|
+
**/
|
|
156
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
157
|
+
/**
|
|
158
|
+
* The maximum number of nominators for each validator.
|
|
159
|
+
**/
|
|
160
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
161
|
+
/**
|
|
162
|
+
* Generic const
|
|
163
|
+
**/
|
|
164
|
+
[key: string]: Codec;
|
|
165
|
+
};
|
|
166
|
+
balances: {
|
|
167
|
+
/**
|
|
168
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
169
|
+
*
|
|
170
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
171
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
172
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
173
|
+
* behaviour if you set this to zero.
|
|
174
|
+
*
|
|
175
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
176
|
+
**/
|
|
177
|
+
existentialDeposit: u128 & AugmentedConst<ApiType>;
|
|
178
|
+
/**
|
|
179
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
180
|
+
**/
|
|
181
|
+
maxFreezes: u32 & AugmentedConst<ApiType>;
|
|
182
|
+
/**
|
|
183
|
+
* The maximum number of locks that should exist on an account.
|
|
184
|
+
* Not strictly enforced, but used for weight estimation.
|
|
185
|
+
*
|
|
186
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
187
|
+
**/
|
|
188
|
+
maxLocks: u32 & AugmentedConst<ApiType>;
|
|
189
|
+
/**
|
|
190
|
+
* The maximum number of named reserves that can exist on an account.
|
|
191
|
+
*
|
|
192
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
193
|
+
**/
|
|
194
|
+
maxReserves: u32 & AugmentedConst<ApiType>;
|
|
195
|
+
/**
|
|
196
|
+
* Generic const
|
|
197
|
+
**/
|
|
198
|
+
[key: string]: Codec;
|
|
199
|
+
};
|
|
200
|
+
beefy: {
|
|
201
|
+
/**
|
|
202
|
+
* The maximum number of authorities that can be added.
|
|
203
|
+
**/
|
|
204
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
205
|
+
/**
|
|
206
|
+
* The maximum number of nominators for each validator.
|
|
207
|
+
**/
|
|
208
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
209
|
+
/**
|
|
210
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
211
|
+
*
|
|
212
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
213
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
214
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
215
|
+
* can be zero.
|
|
216
|
+
**/
|
|
217
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
218
|
+
/**
|
|
219
|
+
* Generic const
|
|
220
|
+
**/
|
|
221
|
+
[key: string]: Codec;
|
|
222
|
+
};
|
|
223
|
+
bounties: {
|
|
224
|
+
/**
|
|
225
|
+
* The amount held on deposit for placing a bounty proposal.
|
|
226
|
+
**/
|
|
227
|
+
bountyDepositBase: u128 & AugmentedConst<ApiType>;
|
|
228
|
+
/**
|
|
229
|
+
* The delay period for which a bounty beneficiary need to wait before claim the payout.
|
|
230
|
+
**/
|
|
231
|
+
bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
|
|
232
|
+
/**
|
|
233
|
+
* The time limit for a curator to act before a bounty expires.
|
|
234
|
+
*
|
|
235
|
+
* The period that starts when a curator is approved, during which they must execute or
|
|
236
|
+
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
|
|
237
|
+
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
|
|
238
|
+
* removing the need for `extend_bounty_expiry`.
|
|
239
|
+
**/
|
|
240
|
+
bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
|
|
241
|
+
/**
|
|
242
|
+
* Minimum value for a bounty.
|
|
243
|
+
**/
|
|
244
|
+
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
245
|
+
/**
|
|
246
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
247
|
+
**/
|
|
248
|
+
curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
|
|
249
|
+
/**
|
|
250
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
251
|
+
**/
|
|
252
|
+
curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
|
|
253
|
+
/**
|
|
254
|
+
* The curator deposit is calculated as a percentage of the curator fee.
|
|
255
|
+
*
|
|
256
|
+
* This deposit has optional upper and lower bounds with `CuratorDepositMax` and
|
|
257
|
+
* `CuratorDepositMin`.
|
|
258
|
+
**/
|
|
259
|
+
curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
|
|
260
|
+
/**
|
|
261
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
262
|
+
**/
|
|
263
|
+
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
264
|
+
/**
|
|
265
|
+
* Maximum acceptable reason length.
|
|
266
|
+
*
|
|
267
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
268
|
+
**/
|
|
269
|
+
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
|
270
|
+
/**
|
|
271
|
+
* Generic const
|
|
272
|
+
**/
|
|
273
|
+
[key: string]: Codec;
|
|
274
|
+
};
|
|
275
|
+
broker: {
|
|
276
|
+
/**
|
|
277
|
+
* Given that we are performing all auto-renewals in a single block, it has to be limited.
|
|
278
|
+
**/
|
|
279
|
+
maxAutoRenewals: u32 & AugmentedConst<ApiType>;
|
|
280
|
+
/**
|
|
281
|
+
* Maximum number of legacy leases.
|
|
282
|
+
**/
|
|
283
|
+
maxLeasedCores: u32 & AugmentedConst<ApiType>;
|
|
284
|
+
/**
|
|
285
|
+
* Maximum number of system cores.
|
|
286
|
+
**/
|
|
287
|
+
maxReservedCores: u32 & AugmentedConst<ApiType>;
|
|
288
|
+
/**
|
|
289
|
+
* The smallest amount of credits a user can purchase.
|
|
290
|
+
*
|
|
291
|
+
* Needed to prevent spam attacks.
|
|
292
|
+
**/
|
|
293
|
+
minimumCreditPurchase: u128 & AugmentedConst<ApiType>;
|
|
294
|
+
/**
|
|
295
|
+
* Identifier from which the internal Pot is generated.
|
|
296
|
+
**/
|
|
297
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
298
|
+
/**
|
|
299
|
+
* Number of Relay-chain blocks per timeslice.
|
|
300
|
+
**/
|
|
301
|
+
timeslicePeriod: u32 & AugmentedConst<ApiType>;
|
|
302
|
+
/**
|
|
303
|
+
* Generic const
|
|
304
|
+
**/
|
|
305
|
+
[key: string]: Codec;
|
|
306
|
+
};
|
|
307
|
+
childBounties: {
|
|
308
|
+
/**
|
|
309
|
+
* Minimum value for a child-bounty.
|
|
310
|
+
**/
|
|
311
|
+
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
312
|
+
/**
|
|
313
|
+
* Maximum number of child bounties that can be added to a parent bounty.
|
|
314
|
+
**/
|
|
315
|
+
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
|
316
|
+
/**
|
|
317
|
+
* Generic const
|
|
318
|
+
**/
|
|
319
|
+
[key: string]: Codec;
|
|
320
|
+
};
|
|
321
|
+
contracts: {
|
|
322
|
+
/**
|
|
323
|
+
* The version of the HostFn APIs that are available in the runtime.
|
|
324
|
+
*
|
|
325
|
+
* Only valid value is `()`.
|
|
326
|
+
**/
|
|
327
|
+
apiVersion: u16 & AugmentedConst<ApiType>;
|
|
328
|
+
/**
|
|
329
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
330
|
+
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
|
331
|
+
* protects the code from being removed. In order to prevent abuse these actions are
|
|
332
|
+
* protected with a percentage of the code deposit.
|
|
333
|
+
**/
|
|
334
|
+
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
|
|
335
|
+
/**
|
|
336
|
+
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
|
337
|
+
**/
|
|
338
|
+
defaultDepositLimit: u128 & AugmentedConst<ApiType>;
|
|
339
|
+
/**
|
|
340
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
341
|
+
*
|
|
342
|
+
* # Note
|
|
343
|
+
*
|
|
344
|
+
* Changing this value for an existing chain might need a storage migration.
|
|
345
|
+
**/
|
|
346
|
+
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
347
|
+
/**
|
|
348
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
349
|
+
*
|
|
350
|
+
* # Note
|
|
351
|
+
*
|
|
352
|
+
* Changing this value for an existing chain might need a storage migration.
|
|
353
|
+
**/
|
|
354
|
+
depositPerItem: u128 & AugmentedConst<ApiType>;
|
|
355
|
+
/**
|
|
356
|
+
* Type that bundles together all the runtime configurable interface types.
|
|
357
|
+
*
|
|
358
|
+
* This is not a real config. We just mention the type here as constant so that
|
|
359
|
+
* its type appears in the metadata. Only valid value is `()`.
|
|
360
|
+
**/
|
|
361
|
+
environment: PalletContractsEnvironment & AugmentedConst<ApiType>;
|
|
362
|
+
/**
|
|
363
|
+
* The maximum length of a contract code in bytes.
|
|
364
|
+
*
|
|
365
|
+
* The value should be chosen carefully taking into the account the overall memory limit
|
|
366
|
+
* your runtime has, as well as the [maximum allowed callstack
|
|
367
|
+
* depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
|
|
368
|
+
**/
|
|
369
|
+
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
|
370
|
+
/**
|
|
371
|
+
* The maximum length of the debug buffer in bytes.
|
|
372
|
+
**/
|
|
373
|
+
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
|
|
374
|
+
/**
|
|
375
|
+
* The maximum number of delegate_dependencies that a contract can lock with
|
|
376
|
+
* [`chain_extension::Ext::lock_delegate_dependency`].
|
|
377
|
+
**/
|
|
378
|
+
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
|
|
379
|
+
/**
|
|
380
|
+
* The maximum allowable length in bytes for storage keys.
|
|
381
|
+
**/
|
|
382
|
+
maxStorageKeyLen: u32 & AugmentedConst<ApiType>;
|
|
383
|
+
/**
|
|
384
|
+
* The maximum size of the transient storage in bytes.
|
|
385
|
+
* This includes keys, values, and previous entries used for storage rollback.
|
|
386
|
+
**/
|
|
387
|
+
maxTransientStorageSize: u32 & AugmentedConst<ApiType>;
|
|
388
|
+
/**
|
|
389
|
+
* Cost schedule and limits.
|
|
390
|
+
**/
|
|
391
|
+
schedule: PalletContractsSchedule & AugmentedConst<ApiType>;
|
|
392
|
+
/**
|
|
393
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
394
|
+
*
|
|
395
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
396
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
397
|
+
* experiment with new features.
|
|
398
|
+
*
|
|
399
|
+
* # Warning
|
|
400
|
+
*
|
|
401
|
+
* Do **not** set to `true` on productions chains.
|
|
402
|
+
**/
|
|
403
|
+
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
|
404
|
+
/**
|
|
405
|
+
* Generic const
|
|
406
|
+
**/
|
|
407
|
+
[key: string]: Codec;
|
|
408
|
+
};
|
|
409
|
+
convictionVoting: {
|
|
410
|
+
/**
|
|
411
|
+
* The maximum number of concurrent votes an account may have.
|
|
412
|
+
*
|
|
413
|
+
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
|
414
|
+
* weight estimation: see `delegate` for instance.
|
|
415
|
+
**/
|
|
416
|
+
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
417
|
+
/**
|
|
418
|
+
* The minimum period of vote locking.
|
|
419
|
+
*
|
|
420
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
421
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
422
|
+
**/
|
|
423
|
+
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
|
424
|
+
/**
|
|
425
|
+
* Generic const
|
|
426
|
+
**/
|
|
427
|
+
[key: string]: Codec;
|
|
428
|
+
};
|
|
429
|
+
coreFellowship: {
|
|
430
|
+
/**
|
|
431
|
+
* The maximum size in bytes submitted evidence is allowed to be.
|
|
432
|
+
**/
|
|
433
|
+
evidenceSize: u32 & AugmentedConst<ApiType>;
|
|
434
|
+
/**
|
|
435
|
+
* Represents the highest possible rank in this pallet.
|
|
436
|
+
*
|
|
437
|
+
* Increasing this value is supported, but decreasing it may lead to a broken state.
|
|
438
|
+
**/
|
|
439
|
+
maxRank: u32 & AugmentedConst<ApiType>;
|
|
440
|
+
/**
|
|
441
|
+
* Generic const
|
|
442
|
+
**/
|
|
443
|
+
[key: string]: Codec;
|
|
444
|
+
};
|
|
445
|
+
council: {
|
|
446
|
+
/**
|
|
447
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
448
|
+
**/
|
|
449
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
450
|
+
/**
|
|
451
|
+
* Generic const
|
|
452
|
+
**/
|
|
453
|
+
[key: string]: Codec;
|
|
454
|
+
};
|
|
455
|
+
delegatedStaking: {
|
|
456
|
+
/**
|
|
457
|
+
* Injected identifier for the pallet.
|
|
458
|
+
**/
|
|
459
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
460
|
+
/**
|
|
461
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
462
|
+
**/
|
|
463
|
+
slashRewardFraction: Perbill & AugmentedConst<ApiType>;
|
|
464
|
+
/**
|
|
465
|
+
* Generic const
|
|
466
|
+
**/
|
|
467
|
+
[key: string]: Codec;
|
|
468
|
+
};
|
|
469
|
+
democracy: {
|
|
470
|
+
/**
|
|
471
|
+
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
472
|
+
**/
|
|
473
|
+
cooloffPeriod: u32 & AugmentedConst<ApiType>;
|
|
474
|
+
/**
|
|
475
|
+
* The period between a proposal being approved and enacted.
|
|
476
|
+
*
|
|
477
|
+
* It should generally be a little more than the unstake period to ensure that
|
|
478
|
+
* voting stakers have an opportunity to remove themselves from the system in the case
|
|
479
|
+
* where they are on the losing side of a vote.
|
|
480
|
+
**/
|
|
481
|
+
enactmentPeriod: u32 & AugmentedConst<ApiType>;
|
|
482
|
+
/**
|
|
483
|
+
* Minimum voting period allowed for a fast-track referendum.
|
|
484
|
+
**/
|
|
485
|
+
fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
|
|
486
|
+
/**
|
|
487
|
+
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
|
488
|
+
* want to set this permanently to `false`, others may want to condition it on things such
|
|
489
|
+
* as an upgrade having happened recently.
|
|
490
|
+
**/
|
|
491
|
+
instantAllowed: bool & AugmentedConst<ApiType>;
|
|
492
|
+
/**
|
|
493
|
+
* How often (in blocks) new public referenda are launched.
|
|
494
|
+
**/
|
|
495
|
+
launchPeriod: u32 & AugmentedConst<ApiType>;
|
|
496
|
+
/**
|
|
497
|
+
* The maximum number of items which can be blacklisted.
|
|
498
|
+
**/
|
|
499
|
+
maxBlacklisted: u32 & AugmentedConst<ApiType>;
|
|
500
|
+
/**
|
|
501
|
+
* The maximum number of deposits a public proposal may have at any time.
|
|
502
|
+
**/
|
|
503
|
+
maxDeposits: u32 & AugmentedConst<ApiType>;
|
|
504
|
+
/**
|
|
505
|
+
* The maximum number of public proposals that can exist at any time.
|
|
506
|
+
**/
|
|
507
|
+
maxProposals: u32 & AugmentedConst<ApiType>;
|
|
508
|
+
/**
|
|
509
|
+
* The maximum number of votes for an account.
|
|
510
|
+
*
|
|
511
|
+
* Also used to compute weight, an overly big value can
|
|
512
|
+
* lead to extrinsic with very big weight: see `delegate` for instance.
|
|
513
|
+
**/
|
|
514
|
+
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
515
|
+
/**
|
|
516
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
517
|
+
**/
|
|
518
|
+
minimumDeposit: u128 & AugmentedConst<ApiType>;
|
|
519
|
+
/**
|
|
520
|
+
* The minimum period of vote locking.
|
|
521
|
+
*
|
|
522
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
523
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
524
|
+
**/
|
|
525
|
+
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
|
526
|
+
/**
|
|
527
|
+
* How often (in blocks) to check for new votes.
|
|
528
|
+
**/
|
|
529
|
+
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
530
|
+
/**
|
|
531
|
+
* Generic const
|
|
532
|
+
**/
|
|
533
|
+
[key: string]: Codec;
|
|
534
|
+
};
|
|
535
|
+
electionProviderMultiPhase: {
|
|
536
|
+
/**
|
|
537
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
538
|
+
* "better" in the Signed phase.
|
|
539
|
+
**/
|
|
540
|
+
betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
|
|
541
|
+
/**
|
|
542
|
+
* The maximum number of winners that can be elected by this `ElectionProvider`
|
|
543
|
+
* implementation.
|
|
544
|
+
*
|
|
545
|
+
* Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
|
|
546
|
+
**/
|
|
547
|
+
maxWinners: u32 & AugmentedConst<ApiType>;
|
|
548
|
+
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
549
|
+
minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
550
|
+
minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
551
|
+
minerMaxWinners: u32 & AugmentedConst<ApiType>;
|
|
552
|
+
/**
|
|
553
|
+
* The priority of the unsigned transaction submitted in the unsigned-phase
|
|
554
|
+
**/
|
|
555
|
+
minerTxPriority: u64 & AugmentedConst<ApiType>;
|
|
556
|
+
/**
|
|
557
|
+
* The repeat threshold of the offchain worker.
|
|
558
|
+
*
|
|
559
|
+
* For example, if it is 5, that means that at least 5 blocks will elapse between attempts
|
|
560
|
+
* to submit the worker's solution.
|
|
561
|
+
**/
|
|
562
|
+
offchainRepeat: u32 & AugmentedConst<ApiType>;
|
|
563
|
+
/**
|
|
564
|
+
* Per-byte deposit for a signed solution.
|
|
565
|
+
**/
|
|
566
|
+
signedDepositByte: u128 & AugmentedConst<ApiType>;
|
|
567
|
+
/**
|
|
568
|
+
* Per-weight deposit for a signed solution.
|
|
569
|
+
**/
|
|
570
|
+
signedDepositWeight: u128 & AugmentedConst<ApiType>;
|
|
571
|
+
/**
|
|
572
|
+
* The maximum amount of unchecked solutions to refund the call fee for.
|
|
573
|
+
**/
|
|
574
|
+
signedMaxRefunds: u32 & AugmentedConst<ApiType>;
|
|
575
|
+
/**
|
|
576
|
+
* Maximum number of signed submissions that can be queued.
|
|
577
|
+
*
|
|
578
|
+
* It is best to avoid adjusting this during an election, as it impacts downstream data
|
|
579
|
+
* structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
|
|
580
|
+
* update this value during an election, you _must_ ensure that
|
|
581
|
+
* `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
|
|
582
|
+
* attempts to submit new solutions may cause a runtime panic.
|
|
583
|
+
**/
|
|
584
|
+
signedMaxSubmissions: u32 & AugmentedConst<ApiType>;
|
|
585
|
+
/**
|
|
586
|
+
* Maximum weight of a signed solution.
|
|
587
|
+
*
|
|
588
|
+
* If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
|
|
589
|
+
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
|
590
|
+
* this value.
|
|
591
|
+
**/
|
|
592
|
+
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
593
|
+
/**
|
|
594
|
+
* Base reward for a signed solution
|
|
595
|
+
**/
|
|
596
|
+
signedRewardBase: u128 & AugmentedConst<ApiType>;
|
|
597
|
+
/**
|
|
598
|
+
* Generic const
|
|
599
|
+
**/
|
|
600
|
+
[key: string]: Codec;
|
|
601
|
+
};
|
|
602
|
+
elections: {
|
|
603
|
+
/**
|
|
604
|
+
* How much should be locked up in order to submit one's candidacy.
|
|
605
|
+
**/
|
|
606
|
+
candidacyBond: u128 & AugmentedConst<ApiType>;
|
|
607
|
+
/**
|
|
608
|
+
* Number of members to elect.
|
|
609
|
+
**/
|
|
610
|
+
desiredMembers: u32 & AugmentedConst<ApiType>;
|
|
611
|
+
/**
|
|
612
|
+
* Number of runners_up to keep.
|
|
613
|
+
**/
|
|
614
|
+
desiredRunnersUp: u32 & AugmentedConst<ApiType>;
|
|
615
|
+
/**
|
|
616
|
+
* The maximum number of candidates in a phragmen election.
|
|
617
|
+
*
|
|
618
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
619
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
620
|
+
*
|
|
621
|
+
* When this limit is reached no more candidates are accepted in the election.
|
|
622
|
+
**/
|
|
623
|
+
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
624
|
+
/**
|
|
625
|
+
* The maximum number of voters to allow in a phragmen election.
|
|
626
|
+
*
|
|
627
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
628
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
629
|
+
*
|
|
630
|
+
* When the limit is reached the new voters are ignored.
|
|
631
|
+
**/
|
|
632
|
+
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
633
|
+
/**
|
|
634
|
+
* Maximum numbers of votes per voter.
|
|
635
|
+
*
|
|
636
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
637
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
638
|
+
**/
|
|
639
|
+
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
640
|
+
/**
|
|
641
|
+
* Identifier for the elections-phragmen pallet's lock
|
|
642
|
+
**/
|
|
643
|
+
palletId: U8aFixed & AugmentedConst<ApiType>;
|
|
644
|
+
/**
|
|
645
|
+
* How long each seat is kept. This defines the next block number at which an election
|
|
646
|
+
* round will happen. If set to zero, no elections are ever triggered and the module will
|
|
647
|
+
* be in passive mode.
|
|
648
|
+
**/
|
|
649
|
+
termDuration: u32 & AugmentedConst<ApiType>;
|
|
650
|
+
/**
|
|
651
|
+
* Base deposit associated with voting.
|
|
652
|
+
*
|
|
653
|
+
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
|
654
|
+
* creating a gigantic number of votes.
|
|
655
|
+
**/
|
|
656
|
+
votingBondBase: u128 & AugmentedConst<ApiType>;
|
|
657
|
+
/**
|
|
658
|
+
* The amount of bond that need to be locked for each vote (32 bytes).
|
|
659
|
+
**/
|
|
660
|
+
votingBondFactor: u128 & AugmentedConst<ApiType>;
|
|
661
|
+
/**
|
|
662
|
+
* Generic const
|
|
663
|
+
**/
|
|
664
|
+
[key: string]: Codec;
|
|
665
|
+
};
|
|
666
|
+
fastUnstake: {
|
|
667
|
+
/**
|
|
668
|
+
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
|
669
|
+
* the costs of resources on unsuccessful unstake.
|
|
670
|
+
**/
|
|
671
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
672
|
+
/**
|
|
673
|
+
* Generic const
|
|
674
|
+
**/
|
|
675
|
+
[key: string]: Codec;
|
|
676
|
+
};
|
|
677
|
+
grandpa: {
|
|
678
|
+
/**
|
|
679
|
+
* Max Authorities in use
|
|
680
|
+
**/
|
|
681
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
682
|
+
/**
|
|
683
|
+
* The maximum number of nominators for each validator.
|
|
684
|
+
**/
|
|
685
|
+
maxNominators: u32 & AugmentedConst<ApiType>;
|
|
686
|
+
/**
|
|
687
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
688
|
+
*
|
|
689
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
690
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
691
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
692
|
+
* can be zero.
|
|
693
|
+
**/
|
|
694
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
695
|
+
/**
|
|
696
|
+
* Generic const
|
|
697
|
+
**/
|
|
698
|
+
[key: string]: Codec;
|
|
699
|
+
};
|
|
700
|
+
identity: {
|
|
701
|
+
/**
|
|
702
|
+
* The amount held on deposit for a registered identity.
|
|
703
|
+
**/
|
|
704
|
+
basicDeposit: u128 & AugmentedConst<ApiType>;
|
|
705
|
+
/**
|
|
706
|
+
* The amount held on deposit per encoded byte for a registered identity.
|
|
707
|
+
**/
|
|
708
|
+
byteDeposit: u128 & AugmentedConst<ApiType>;
|
|
709
|
+
/**
|
|
710
|
+
* Maximum number of registrars allowed in the system. Needed to bound the complexity
|
|
711
|
+
* of, e.g., updating judgements.
|
|
712
|
+
**/
|
|
713
|
+
maxRegistrars: u32 & AugmentedConst<ApiType>;
|
|
714
|
+
/**
|
|
715
|
+
* The maximum number of sub-accounts allowed per identified account.
|
|
716
|
+
**/
|
|
717
|
+
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
|
718
|
+
/**
|
|
719
|
+
* The maximum length of a suffix.
|
|
720
|
+
**/
|
|
721
|
+
maxSuffixLength: u32 & AugmentedConst<ApiType>;
|
|
722
|
+
/**
|
|
723
|
+
* The maximum length of a username, including its suffix and any system-added delimiters.
|
|
724
|
+
**/
|
|
725
|
+
maxUsernameLength: u32 & AugmentedConst<ApiType>;
|
|
726
|
+
/**
|
|
727
|
+
* The number of blocks within which a username grant must be accepted.
|
|
728
|
+
**/
|
|
729
|
+
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
|
|
730
|
+
/**
|
|
731
|
+
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
732
|
+
* that one storage item's value will increase by the size of an account ID, and there will
|
|
733
|
+
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
734
|
+
**/
|
|
735
|
+
subAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
736
|
+
/**
|
|
737
|
+
* The amount held on deposit per registered username. This value should change only in
|
|
738
|
+
* runtime upgrades with proper migration of existing deposits.
|
|
739
|
+
**/
|
|
740
|
+
usernameDeposit: u128 & AugmentedConst<ApiType>;
|
|
741
|
+
/**
|
|
742
|
+
* The number of blocks that must pass to enable the permanent deletion of a username by
|
|
743
|
+
* its respective authority.
|
|
744
|
+
**/
|
|
745
|
+
usernameGracePeriod: u32 & AugmentedConst<ApiType>;
|
|
746
|
+
/**
|
|
747
|
+
* Generic const
|
|
748
|
+
**/
|
|
749
|
+
[key: string]: Codec;
|
|
750
|
+
};
|
|
751
|
+
imOnline: {
|
|
752
|
+
/**
|
|
753
|
+
* A configuration for base priority of unsigned transactions.
|
|
754
|
+
*
|
|
755
|
+
* This is exposed so that it can be tuned for particular runtime, when
|
|
756
|
+
* multiple pallets send unsigned transactions.
|
|
757
|
+
**/
|
|
758
|
+
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
|
759
|
+
/**
|
|
760
|
+
* Generic const
|
|
761
|
+
**/
|
|
762
|
+
[key: string]: Codec;
|
|
763
|
+
};
|
|
764
|
+
indices: {
|
|
765
|
+
/**
|
|
766
|
+
* The deposit needed for reserving an index.
|
|
767
|
+
**/
|
|
768
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
769
|
+
/**
|
|
770
|
+
* Generic const
|
|
771
|
+
**/
|
|
772
|
+
[key: string]: Codec;
|
|
773
|
+
};
|
|
774
|
+
lottery: {
|
|
775
|
+
/**
|
|
776
|
+
* The max number of calls available in a single lottery.
|
|
777
|
+
**/
|
|
778
|
+
maxCalls: u32 & AugmentedConst<ApiType>;
|
|
779
|
+
/**
|
|
780
|
+
* Number of time we should try to generate a random number that has no modulo bias.
|
|
781
|
+
* The larger this number, the more potential computation is used for picking the winner,
|
|
782
|
+
* but also the more likely that the chosen winner is done fairly.
|
|
783
|
+
**/
|
|
784
|
+
maxGenerateRandom: u32 & AugmentedConst<ApiType>;
|
|
785
|
+
/**
|
|
786
|
+
* The Lottery's pallet id
|
|
787
|
+
**/
|
|
788
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
789
|
+
/**
|
|
790
|
+
* Generic const
|
|
791
|
+
**/
|
|
792
|
+
[key: string]: Codec;
|
|
793
|
+
};
|
|
794
|
+
messageQueue: {
|
|
795
|
+
/**
|
|
796
|
+
* The size of the page; this implies the maximum message size which can be sent.
|
|
797
|
+
*
|
|
798
|
+
* A good value depends on the expected message sizes, their weights, the weight that is
|
|
799
|
+
* available for processing them and the maximal needed message size. The maximal message
|
|
800
|
+
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
|
801
|
+
**/
|
|
802
|
+
heapSize: u32 & AugmentedConst<ApiType>;
|
|
803
|
+
/**
|
|
804
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
805
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
806
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
807
|
+
*
|
|
808
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
809
|
+
**/
|
|
810
|
+
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
|
811
|
+
/**
|
|
812
|
+
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
|
813
|
+
* can happen. Once there are more stale pages than this, then historical pages may be
|
|
814
|
+
* dropped, even if they contain unprocessed overweight messages.
|
|
815
|
+
**/
|
|
816
|
+
maxStale: u32 & AugmentedConst<ApiType>;
|
|
817
|
+
/**
|
|
818
|
+
* The amount of weight (if any) which should be provided to the message queue for
|
|
819
|
+
* servicing enqueued items `on_initialize`.
|
|
820
|
+
*
|
|
821
|
+
* This may be legitimately `None` in the case that you will call
|
|
822
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
823
|
+
* it run in `on_idle`.
|
|
824
|
+
**/
|
|
825
|
+
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
|
|
826
|
+
/**
|
|
827
|
+
* Generic const
|
|
828
|
+
**/
|
|
829
|
+
[key: string]: Codec;
|
|
830
|
+
};
|
|
831
|
+
mixnet: {
|
|
832
|
+
/**
|
|
833
|
+
* The maximum number of authorities per session.
|
|
834
|
+
**/
|
|
835
|
+
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
836
|
+
/**
|
|
837
|
+
* The maximum number of external addresses for a mixnode.
|
|
838
|
+
**/
|
|
839
|
+
maxExternalAddressesPerMixnode: u32 & AugmentedConst<ApiType>;
|
|
840
|
+
/**
|
|
841
|
+
* The maximum size of one of a mixnode's external addresses.
|
|
842
|
+
**/
|
|
843
|
+
maxExternalAddressSize: u32 & AugmentedConst<ApiType>;
|
|
844
|
+
/**
|
|
845
|
+
* Minimum number of mixnodes. If there are fewer than this many mixnodes registered for a
|
|
846
|
+
* session, the mixnet will not be active during the session.
|
|
847
|
+
**/
|
|
848
|
+
minMixnodes: u32 & AugmentedConst<ApiType>;
|
|
849
|
+
/**
|
|
850
|
+
* Length of the first phase of each session (`CoverToCurrent`), in blocks.
|
|
851
|
+
**/
|
|
852
|
+
numCoverToCurrentBlocks: u32 & AugmentedConst<ApiType>;
|
|
853
|
+
/**
|
|
854
|
+
* Length of the third phase of each session (`CoverToPrev`), in blocks.
|
|
855
|
+
**/
|
|
856
|
+
numCoverToPrevBlocks: u32 & AugmentedConst<ApiType>;
|
|
857
|
+
/**
|
|
858
|
+
* The number of "slack" blocks at the end of each session.
|
|
859
|
+
* [`maybe_register`](Pallet::maybe_register) will try to register before this slack
|
|
860
|
+
* period, but may post registration transactions during the slack period as a last
|
|
861
|
+
* resort.
|
|
862
|
+
**/
|
|
863
|
+
numRegisterEndSlackBlocks: u32 & AugmentedConst<ApiType>;
|
|
864
|
+
/**
|
|
865
|
+
* The number of "slack" blocks at the start of each session, during which
|
|
866
|
+
* [`maybe_register`](Pallet::maybe_register) will not attempt to post registration
|
|
867
|
+
* transactions.
|
|
868
|
+
**/
|
|
869
|
+
numRegisterStartSlackBlocks: u32 & AugmentedConst<ApiType>;
|
|
870
|
+
/**
|
|
871
|
+
* Length of the second phase of each session (`RequestsToCurrent`), in blocks.
|
|
872
|
+
**/
|
|
873
|
+
numRequestsToCurrentBlocks: u32 & AugmentedConst<ApiType>;
|
|
874
|
+
/**
|
|
875
|
+
* Priority of unsigned transactions used to register mixnodes.
|
|
876
|
+
**/
|
|
877
|
+
registrationPriority: u64 & AugmentedConst<ApiType>;
|
|
878
|
+
/**
|
|
879
|
+
* Generic const
|
|
880
|
+
**/
|
|
881
|
+
[key: string]: Codec;
|
|
882
|
+
};
|
|
883
|
+
multiBlockMigrations: {
|
|
884
|
+
/**
|
|
885
|
+
* The maximal length of an encoded cursor.
|
|
886
|
+
*
|
|
887
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
888
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
889
|
+
**/
|
|
890
|
+
cursorMaxLen: u32 & AugmentedConst<ApiType>;
|
|
891
|
+
/**
|
|
892
|
+
* The maximal length of an encoded identifier.
|
|
893
|
+
*
|
|
894
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
895
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
896
|
+
**/
|
|
897
|
+
identifierMaxLen: u32 & AugmentedConst<ApiType>;
|
|
898
|
+
/**
|
|
899
|
+
* Generic const
|
|
900
|
+
**/
|
|
901
|
+
[key: string]: Codec;
|
|
902
|
+
};
|
|
903
|
+
multisig: {
|
|
904
|
+
/**
|
|
905
|
+
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
906
|
+
* store a dispatch call for later.
|
|
907
|
+
*
|
|
908
|
+
* This is held for an additional storage item whose value size is
|
|
909
|
+
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
|
910
|
+
* `32 + sizeof(AccountId)` bytes.
|
|
911
|
+
**/
|
|
912
|
+
depositBase: u128 & AugmentedConst<ApiType>;
|
|
913
|
+
/**
|
|
914
|
+
* The amount of currency needed per unit threshold when creating a multisig execution.
|
|
915
|
+
*
|
|
916
|
+
* This is held for adding 32 bytes more into a pre-existing storage value.
|
|
917
|
+
**/
|
|
918
|
+
depositFactor: u128 & AugmentedConst<ApiType>;
|
|
919
|
+
/**
|
|
920
|
+
* The maximum amount of signatories allowed in the multisig.
|
|
921
|
+
**/
|
|
922
|
+
maxSignatories: u32 & AugmentedConst<ApiType>;
|
|
923
|
+
/**
|
|
924
|
+
* Generic const
|
|
925
|
+
**/
|
|
926
|
+
[key: string]: Codec;
|
|
927
|
+
};
|
|
928
|
+
nftFractionalization: {
|
|
929
|
+
/**
|
|
930
|
+
* The deposit paid by the user locking an NFT. The deposit is returned to the original NFT
|
|
931
|
+
* owner when the asset is unified and the NFT is unlocked.
|
|
932
|
+
**/
|
|
933
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
934
|
+
/**
|
|
935
|
+
* The newly created asset's name.
|
|
936
|
+
**/
|
|
937
|
+
newAssetName: Bytes & AugmentedConst<ApiType>;
|
|
938
|
+
/**
|
|
939
|
+
* The newly created asset's symbol.
|
|
940
|
+
**/
|
|
941
|
+
newAssetSymbol: Bytes & AugmentedConst<ApiType>;
|
|
942
|
+
/**
|
|
943
|
+
* The pallet's id, used for deriving its sovereign account ID.
|
|
944
|
+
**/
|
|
945
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
946
|
+
/**
|
|
947
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
948
|
+
**/
|
|
949
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
950
|
+
/**
|
|
951
|
+
* Generic const
|
|
952
|
+
**/
|
|
953
|
+
[key: string]: Codec;
|
|
954
|
+
};
|
|
955
|
+
nfts: {
|
|
956
|
+
/**
|
|
957
|
+
* The maximum approvals an item could have.
|
|
958
|
+
**/
|
|
959
|
+
approvalsLimit: u32 & AugmentedConst<ApiType>;
|
|
960
|
+
/**
|
|
961
|
+
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
|
962
|
+
**/
|
|
963
|
+
attributeDepositBase: u128 & AugmentedConst<ApiType>;
|
|
964
|
+
/**
|
|
965
|
+
* The basic amount of funds that must be reserved for collection.
|
|
966
|
+
**/
|
|
967
|
+
collectionDeposit: u128 & AugmentedConst<ApiType>;
|
|
968
|
+
/**
|
|
969
|
+
* The additional funds that must be reserved for the number of bytes store in metadata,
|
|
970
|
+
* either "normal" metadata or attribute metadata.
|
|
971
|
+
**/
|
|
972
|
+
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
973
|
+
/**
|
|
974
|
+
* Disables some of pallet's features.
|
|
975
|
+
**/
|
|
976
|
+
features: u64 & AugmentedConst<ApiType>;
|
|
977
|
+
/**
|
|
978
|
+
* The maximum attributes approvals an item could have.
|
|
979
|
+
**/
|
|
980
|
+
itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
|
|
981
|
+
/**
|
|
982
|
+
* The basic amount of funds that must be reserved for an item.
|
|
983
|
+
**/
|
|
984
|
+
itemDeposit: u128 & AugmentedConst<ApiType>;
|
|
985
|
+
/**
|
|
986
|
+
* The maximum length of an attribute key.
|
|
987
|
+
**/
|
|
988
|
+
keyLimit: u32 & AugmentedConst<ApiType>;
|
|
989
|
+
/**
|
|
990
|
+
* The max number of attributes a user could set per call.
|
|
991
|
+
**/
|
|
992
|
+
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
|
993
|
+
/**
|
|
994
|
+
* The max duration in blocks for deadlines.
|
|
995
|
+
**/
|
|
996
|
+
maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
|
|
997
|
+
/**
|
|
998
|
+
* The max number of tips a user could send.
|
|
999
|
+
**/
|
|
1000
|
+
maxTips: u32 & AugmentedConst<ApiType>;
|
|
1001
|
+
/**
|
|
1002
|
+
* The basic amount of funds that must be reserved when adding metadata to your item.
|
|
1003
|
+
**/
|
|
1004
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1005
|
+
/**
|
|
1006
|
+
* The maximum length of data stored on-chain.
|
|
1007
|
+
**/
|
|
1008
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
1009
|
+
/**
|
|
1010
|
+
* The maximum length of an attribute value.
|
|
1011
|
+
**/
|
|
1012
|
+
valueLimit: u32 & AugmentedConst<ApiType>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Generic const
|
|
1015
|
+
**/
|
|
1016
|
+
[key: string]: Codec;
|
|
1017
|
+
};
|
|
1018
|
+
nis: {
|
|
1019
|
+
/**
|
|
1020
|
+
* The base period for the duration queues. This is the common multiple across all
|
|
1021
|
+
* supported freezing durations that can be bid upon.
|
|
1022
|
+
**/
|
|
1023
|
+
basePeriod: u32 & AugmentedConst<ApiType>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Portion of the queue which is free from ordering and just a FIFO.
|
|
1026
|
+
*
|
|
1027
|
+
* Must be no greater than `MaxQueueLen`.
|
|
1028
|
+
**/
|
|
1029
|
+
fifoQueueLen: u32 & AugmentedConst<ApiType>;
|
|
1030
|
+
/**
|
|
1031
|
+
* The number of blocks between consecutive attempts to dequeue bids and create receipts.
|
|
1032
|
+
*
|
|
1033
|
+
* A larger value results in fewer storage hits each block, but a slower period to get to
|
|
1034
|
+
* the target.
|
|
1035
|
+
**/
|
|
1036
|
+
intakePeriod: u32 & AugmentedConst<ApiType>;
|
|
1037
|
+
/**
|
|
1038
|
+
* The maximum amount of bids that can consolidated into receipts in a single intake. A
|
|
1039
|
+
* larger value here means less of the block available for transactions should there be a
|
|
1040
|
+
* glut of bids.
|
|
1041
|
+
**/
|
|
1042
|
+
maxIntakeWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Maximum number of items that may be in each duration queue.
|
|
1045
|
+
*
|
|
1046
|
+
* Must be larger than zero.
|
|
1047
|
+
**/
|
|
1048
|
+
maxQueueLen: u32 & AugmentedConst<ApiType>;
|
|
1049
|
+
/**
|
|
1050
|
+
* The minimum amount of funds that may be placed in a bid. Note that this
|
|
1051
|
+
* does not actually limit the amount which may be represented in a receipt since bids may
|
|
1052
|
+
* be split up by the system.
|
|
1053
|
+
*
|
|
1054
|
+
* It should be at least big enough to ensure that there is no possible storage spam attack
|
|
1055
|
+
* or queue-filling attack.
|
|
1056
|
+
**/
|
|
1057
|
+
minBid: u128 & AugmentedConst<ApiType>;
|
|
1058
|
+
/**
|
|
1059
|
+
* The minimum amount of funds which may intentionally be left remaining under a single
|
|
1060
|
+
* receipt.
|
|
1061
|
+
**/
|
|
1062
|
+
minReceipt: Perquintill & AugmentedConst<ApiType>;
|
|
1063
|
+
/**
|
|
1064
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
1065
|
+
**/
|
|
1066
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Number of duration queues in total. This sets the maximum duration supported, which is
|
|
1069
|
+
* this value multiplied by `Period`.
|
|
1070
|
+
**/
|
|
1071
|
+
queueCount: u32 & AugmentedConst<ApiType>;
|
|
1072
|
+
/**
|
|
1073
|
+
* The maximum proportion which may be thawed and the period over which it is reset.
|
|
1074
|
+
**/
|
|
1075
|
+
thawThrottle: ITuple<[Perquintill, u32]> & AugmentedConst<ApiType>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Generic const
|
|
1078
|
+
**/
|
|
1079
|
+
[key: string]: Codec;
|
|
1080
|
+
};
|
|
1081
|
+
nominationPools: {
|
|
1082
|
+
/**
|
|
1083
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
1084
|
+
*
|
|
1085
|
+
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
1086
|
+
* ratio becomes disproportional.
|
|
1087
|
+
*
|
|
1088
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
1089
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
1090
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
1091
|
+
* the chain, in the absolute worse case.
|
|
1092
|
+
*
|
|
1093
|
+
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
1094
|
+
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
1095
|
+
**/
|
|
1096
|
+
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
|
1097
|
+
/**
|
|
1098
|
+
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
|
1099
|
+
**/
|
|
1100
|
+
maxUnbonding: u32 & AugmentedConst<ApiType>;
|
|
1101
|
+
/**
|
|
1102
|
+
* The nomination pool's pallet id.
|
|
1103
|
+
**/
|
|
1104
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Generic const
|
|
1107
|
+
**/
|
|
1108
|
+
[key: string]: Codec;
|
|
1109
|
+
};
|
|
1110
|
+
poolAssets: {
|
|
1111
|
+
/**
|
|
1112
|
+
* The amount of funds that must be reserved when creating a new approval.
|
|
1113
|
+
**/
|
|
1114
|
+
approvalDeposit: u128 & AugmentedConst<ApiType>;
|
|
1115
|
+
/**
|
|
1116
|
+
* The amount of funds that must be reserved for a non-provider asset account to be
|
|
1117
|
+
* maintained.
|
|
1118
|
+
**/
|
|
1119
|
+
assetAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
1120
|
+
/**
|
|
1121
|
+
* The basic amount of funds that must be reserved for an asset.
|
|
1122
|
+
**/
|
|
1123
|
+
assetDeposit: u128 & AugmentedConst<ApiType>;
|
|
1124
|
+
/**
|
|
1125
|
+
* The basic amount of funds that must be reserved when adding metadata to your asset.
|
|
1126
|
+
**/
|
|
1127
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1128
|
+
/**
|
|
1129
|
+
* The additional funds that must be reserved for the number of bytes you store in your
|
|
1130
|
+
* metadata.
|
|
1131
|
+
**/
|
|
1132
|
+
metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
|
1135
|
+
*
|
|
1136
|
+
* Must be configured to result in a weight that makes each call fit in a block.
|
|
1137
|
+
**/
|
|
1138
|
+
removeItemsLimit: u32 & AugmentedConst<ApiType>;
|
|
1139
|
+
/**
|
|
1140
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
1141
|
+
**/
|
|
1142
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Generic const
|
|
1145
|
+
**/
|
|
1146
|
+
[key: string]: Codec;
|
|
1147
|
+
};
|
|
1148
|
+
proxy: {
|
|
1149
|
+
/**
|
|
1150
|
+
* The base amount of currency needed to reserve for creating an announcement.
|
|
1151
|
+
*
|
|
1152
|
+
* This is held when a new storage item holding a `Balance` is created (typically 16
|
|
1153
|
+
* bytes).
|
|
1154
|
+
**/
|
|
1155
|
+
announcementDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1156
|
+
/**
|
|
1157
|
+
* The amount of currency needed per announcement made.
|
|
1158
|
+
*
|
|
1159
|
+
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
|
1160
|
+
* into a pre-existing storage value.
|
|
1161
|
+
**/
|
|
1162
|
+
announcementDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
1163
|
+
/**
|
|
1164
|
+
* The maximum amount of time-delayed announcements that are allowed to be pending.
|
|
1165
|
+
**/
|
|
1166
|
+
maxPending: u32 & AugmentedConst<ApiType>;
|
|
1167
|
+
/**
|
|
1168
|
+
* The maximum amount of proxies allowed for a single account.
|
|
1169
|
+
**/
|
|
1170
|
+
maxProxies: u32 & AugmentedConst<ApiType>;
|
|
1171
|
+
/**
|
|
1172
|
+
* The base amount of currency needed to reserve for creating a proxy.
|
|
1173
|
+
*
|
|
1174
|
+
* This is held for an additional storage item whose value size is
|
|
1175
|
+
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
|
1176
|
+
**/
|
|
1177
|
+
proxyDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1178
|
+
/**
|
|
1179
|
+
* The amount of currency needed per proxy added.
|
|
1180
|
+
*
|
|
1181
|
+
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
|
|
1182
|
+
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
|
|
1183
|
+
* into account `32 + proxy_type.encode().len()` bytes of data.
|
|
1184
|
+
**/
|
|
1185
|
+
proxyDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Generic const
|
|
1188
|
+
**/
|
|
1189
|
+
[key: string]: Codec;
|
|
1190
|
+
};
|
|
1191
|
+
rankedPolls: {
|
|
1192
|
+
/**
|
|
1193
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
1194
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
1195
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
1196
|
+
**/
|
|
1197
|
+
alarmInterval: u32 & AugmentedConst<ApiType>;
|
|
1198
|
+
/**
|
|
1199
|
+
* Maximum size of the referendum queue for a single track.
|
|
1200
|
+
**/
|
|
1201
|
+
maxQueued: u32 & AugmentedConst<ApiType>;
|
|
1202
|
+
/**
|
|
1203
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
1204
|
+
**/
|
|
1205
|
+
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
|
1206
|
+
/**
|
|
1207
|
+
* A list of tracks.
|
|
1208
|
+
*
|
|
1209
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
1210
|
+
**/
|
|
1211
|
+
tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
|
|
1212
|
+
/**
|
|
1213
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
1214
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
1215
|
+
**/
|
|
1216
|
+
undecidingTimeout: u32 & AugmentedConst<ApiType>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Generic const
|
|
1219
|
+
**/
|
|
1220
|
+
[key: string]: Codec;
|
|
1221
|
+
};
|
|
1222
|
+
recovery: {
|
|
1223
|
+
/**
|
|
1224
|
+
* The base amount of currency needed to reserve for creating a recovery configuration.
|
|
1225
|
+
*
|
|
1226
|
+
* This is held for an additional storage item whose value size is
|
|
1227
|
+
* `2 + sizeof(BlockNumber, Balance)` bytes.
|
|
1228
|
+
**/
|
|
1229
|
+
configDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1230
|
+
/**
|
|
1231
|
+
* The amount of currency needed per additional user when creating a recovery
|
|
1232
|
+
* configuration.
|
|
1233
|
+
*
|
|
1234
|
+
* This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
|
|
1235
|
+
* value.
|
|
1236
|
+
**/
|
|
1237
|
+
friendDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
1238
|
+
/**
|
|
1239
|
+
* The maximum amount of friends allowed in a recovery configuration.
|
|
1240
|
+
*
|
|
1241
|
+
* NOTE: The threshold programmed in this Pallet uses u16, so it does
|
|
1242
|
+
* not really make sense to have a limit here greater than u16::MAX.
|
|
1243
|
+
* But also, that is a lot more than you should probably set this value
|
|
1244
|
+
* to anyway...
|
|
1245
|
+
**/
|
|
1246
|
+
maxFriends: u32 & AugmentedConst<ApiType>;
|
|
1247
|
+
/**
|
|
1248
|
+
* The base amount of currency needed to reserve for starting a recovery.
|
|
1249
|
+
*
|
|
1250
|
+
* This is primarily held for deterring malicious recovery attempts, and should
|
|
1251
|
+
* have a value large enough that a bad actor would choose not to place this
|
|
1252
|
+
* deposit. It also acts to fund additional storage item whose value size is
|
|
1253
|
+
* `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
|
|
1254
|
+
* threshold.
|
|
1255
|
+
**/
|
|
1256
|
+
recoveryDeposit: u128 & AugmentedConst<ApiType>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Generic const
|
|
1259
|
+
**/
|
|
1260
|
+
[key: string]: Codec;
|
|
1261
|
+
};
|
|
1262
|
+
referenda: {
|
|
1263
|
+
/**
|
|
1264
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
1265
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
1266
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
1267
|
+
**/
|
|
1268
|
+
alarmInterval: u32 & AugmentedConst<ApiType>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Maximum size of the referendum queue for a single track.
|
|
1271
|
+
**/
|
|
1272
|
+
maxQueued: u32 & AugmentedConst<ApiType>;
|
|
1273
|
+
/**
|
|
1274
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
1275
|
+
**/
|
|
1276
|
+
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
|
1277
|
+
/**
|
|
1278
|
+
* A list of tracks.
|
|
1279
|
+
*
|
|
1280
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
1281
|
+
**/
|
|
1282
|
+
tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
|
|
1283
|
+
/**
|
|
1284
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
1285
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
1286
|
+
**/
|
|
1287
|
+
undecidingTimeout: u32 & AugmentedConst<ApiType>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Generic const
|
|
1290
|
+
**/
|
|
1291
|
+
[key: string]: Codec;
|
|
1292
|
+
};
|
|
1293
|
+
revive: {
|
|
1294
|
+
/**
|
|
1295
|
+
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
1296
|
+
*
|
|
1297
|
+
* This is a unique identifier assigned to each blockchain network,
|
|
1298
|
+
* preventing replay attacks.
|
|
1299
|
+
**/
|
|
1300
|
+
chainId: u64 & AugmentedConst<ApiType>;
|
|
1301
|
+
/**
|
|
1302
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
1303
|
+
* Instantiating a contract, protects the code from being removed. In order to prevent
|
|
1304
|
+
* abuse these actions are protected with a percentage of the code deposit.
|
|
1305
|
+
**/
|
|
1306
|
+
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
|
|
1307
|
+
/**
|
|
1308
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
1309
|
+
*
|
|
1310
|
+
* # Note
|
|
1311
|
+
*
|
|
1312
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1313
|
+
**/
|
|
1314
|
+
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
1315
|
+
/**
|
|
1316
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
1317
|
+
*
|
|
1318
|
+
* # Note
|
|
1319
|
+
*
|
|
1320
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1321
|
+
**/
|
|
1322
|
+
depositPerItem: u128 & AugmentedConst<ApiType>;
|
|
1323
|
+
/**
|
|
1324
|
+
* The ratio between the decimal representation of the native token and the ETH token.
|
|
1325
|
+
**/
|
|
1326
|
+
nativeToEthRatio: u32 & AugmentedConst<ApiType>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
1329
|
+
*
|
|
1330
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
1331
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
1332
|
+
* experiment with new features.
|
|
1333
|
+
*
|
|
1334
|
+
* # Warning
|
|
1335
|
+
*
|
|
1336
|
+
* Do **not** set to `true` on productions chains.
|
|
1337
|
+
**/
|
|
1338
|
+
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Generic const
|
|
1341
|
+
**/
|
|
1342
|
+
[key: string]: Codec;
|
|
1343
|
+
};
|
|
1344
|
+
safeMode: {
|
|
1345
|
+
/**
|
|
1346
|
+
* The amount that will be reserved upon calling [`Pallet::enter`].
|
|
1347
|
+
*
|
|
1348
|
+
* `None` disallows permissionlessly enabling the safe-mode and is a sane default.
|
|
1349
|
+
**/
|
|
1350
|
+
enterDepositAmount: Option<u128> & AugmentedConst<ApiType>;
|
|
1351
|
+
/**
|
|
1352
|
+
* For how many blocks the safe-mode will be entered by [`Pallet::enter`].
|
|
1353
|
+
**/
|
|
1354
|
+
enterDuration: u32 & AugmentedConst<ApiType>;
|
|
1355
|
+
/**
|
|
1356
|
+
* The amount that will be reserved upon calling [`Pallet::extend`].
|
|
1357
|
+
*
|
|
1358
|
+
* `None` disallows permissionlessly extending the safe-mode and is a sane default.
|
|
1359
|
+
**/
|
|
1360
|
+
extendDepositAmount: Option<u128> & AugmentedConst<ApiType>;
|
|
1361
|
+
/**
|
|
1362
|
+
* For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call.
|
|
1363
|
+
*
|
|
1364
|
+
* This does not impose a hard limit as the safe-mode can be extended multiple times.
|
|
1365
|
+
**/
|
|
1366
|
+
extendDuration: u32 & AugmentedConst<ApiType>;
|
|
1367
|
+
/**
|
|
1368
|
+
* The minimal duration a deposit will remain reserved after safe-mode is entered or
|
|
1369
|
+
* extended, unless [`Pallet::force_release_deposit`] is successfully called sooner.
|
|
1370
|
+
*
|
|
1371
|
+
* Every deposit is tied to a specific activation or extension, thus each deposit can be
|
|
1372
|
+
* released independently after the delay for it has passed.
|
|
1373
|
+
*
|
|
1374
|
+
* `None` disallows permissionlessly releasing the safe-mode deposits and is a sane
|
|
1375
|
+
* default.
|
|
1376
|
+
**/
|
|
1377
|
+
releaseDelay: Option<u32> & AugmentedConst<ApiType>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Generic const
|
|
1380
|
+
**/
|
|
1381
|
+
[key: string]: Codec;
|
|
1382
|
+
};
|
|
1383
|
+
salary: {
|
|
1384
|
+
/**
|
|
1385
|
+
* The total budget per cycle.
|
|
1386
|
+
*
|
|
1387
|
+
* This may change over the course of a cycle without any problem.
|
|
1388
|
+
**/
|
|
1389
|
+
budget: u128 & AugmentedConst<ApiType>;
|
|
1390
|
+
/**
|
|
1391
|
+
* The number of blocks within a cycle which accounts have to claim the payout.
|
|
1392
|
+
*
|
|
1393
|
+
* The number of blocks between sequential payout cycles is the sum of this and
|
|
1394
|
+
* `RegistrationPeriod`.
|
|
1395
|
+
**/
|
|
1396
|
+
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
|
1397
|
+
/**
|
|
1398
|
+
* The number of blocks within a cycle which accounts have to register their intent to
|
|
1399
|
+
* claim.
|
|
1400
|
+
*
|
|
1401
|
+
* The number of blocks between sequential payout cycles is the sum of this and
|
|
1402
|
+
* `PayoutPeriod`.
|
|
1403
|
+
**/
|
|
1404
|
+
registrationPeriod: u32 & AugmentedConst<ApiType>;
|
|
1405
|
+
/**
|
|
1406
|
+
* Generic const
|
|
1407
|
+
**/
|
|
1408
|
+
[key: string]: Codec;
|
|
1409
|
+
};
|
|
1410
|
+
scheduler: {
|
|
1411
|
+
/**
|
|
1412
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
1413
|
+
**/
|
|
1414
|
+
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
1415
|
+
/**
|
|
1416
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
1417
|
+
*
|
|
1418
|
+
* NOTE:
|
|
1419
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
1420
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
1421
|
+
**/
|
|
1422
|
+
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Generic const
|
|
1425
|
+
**/
|
|
1426
|
+
[key: string]: Codec;
|
|
1427
|
+
};
|
|
1428
|
+
society: {
|
|
1429
|
+
/**
|
|
1430
|
+
* The number of blocks between membership challenges.
|
|
1431
|
+
**/
|
|
1432
|
+
challengePeriod: u32 & AugmentedConst<ApiType>;
|
|
1433
|
+
/**
|
|
1434
|
+
* The number of blocks on which new candidates can claim their membership and be the
|
|
1435
|
+
* named head.
|
|
1436
|
+
**/
|
|
1437
|
+
claimPeriod: u32 & AugmentedConst<ApiType>;
|
|
1438
|
+
/**
|
|
1439
|
+
* The maximum number of strikes before a member gets funds slashed.
|
|
1440
|
+
**/
|
|
1441
|
+
graceStrikes: u32 & AugmentedConst<ApiType>;
|
|
1442
|
+
/**
|
|
1443
|
+
* The maximum number of bids at once.
|
|
1444
|
+
**/
|
|
1445
|
+
maxBids: u32 & AugmentedConst<ApiType>;
|
|
1446
|
+
/**
|
|
1447
|
+
* The maximum duration of the payout lock.
|
|
1448
|
+
**/
|
|
1449
|
+
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
|
1450
|
+
/**
|
|
1451
|
+
* The maximum number of payouts a member may have waiting unclaimed.
|
|
1452
|
+
**/
|
|
1453
|
+
maxPayouts: u32 & AugmentedConst<ApiType>;
|
|
1454
|
+
/**
|
|
1455
|
+
* The societies's pallet id
|
|
1456
|
+
**/
|
|
1457
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
1458
|
+
/**
|
|
1459
|
+
* The amount of incentive paid within each period. Doesn't include VoterTip.
|
|
1460
|
+
**/
|
|
1461
|
+
periodSpend: u128 & AugmentedConst<ApiType>;
|
|
1462
|
+
/**
|
|
1463
|
+
* The number of blocks on which new candidates should be voted on. Together with
|
|
1464
|
+
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
|
|
1465
|
+
**/
|
|
1466
|
+
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
1467
|
+
/**
|
|
1468
|
+
* Generic const
|
|
1469
|
+
**/
|
|
1470
|
+
[key: string]: Codec;
|
|
1471
|
+
};
|
|
1472
|
+
staking: {
|
|
1473
|
+
/**
|
|
1474
|
+
* Number of eras that staked funds must remain bonded for.
|
|
1475
|
+
**/
|
|
1476
|
+
bondingDuration: u32 & AugmentedConst<ApiType>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Number of eras to keep in history.
|
|
1479
|
+
*
|
|
1480
|
+
* Following information is kept for eras in `[current_era -
|
|
1481
|
+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
1482
|
+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
1483
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
|
|
1484
|
+
* `ErasStakersOverview`.
|
|
1485
|
+
*
|
|
1486
|
+
* Must be more than the number of eras delayed by session.
|
|
1487
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
1488
|
+
* current_era - history_depth` must be guaranteed.
|
|
1489
|
+
*
|
|
1490
|
+
* If migrating an existing pallet from storage value to config value,
|
|
1491
|
+
* this should be set to same value or greater as in storage.
|
|
1492
|
+
*
|
|
1493
|
+
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
|
1494
|
+
* item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
|
|
1495
|
+
* the existing value can lead to inconsistencies in the
|
|
1496
|
+
* `StakingLedger` and will need to be handled properly in a migration.
|
|
1497
|
+
* The test `reducing_history_depth_abrupt` shows this effect.
|
|
1498
|
+
**/
|
|
1499
|
+
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
1500
|
+
/**
|
|
1501
|
+
* The maximum size of each `T::ExposurePage`.
|
|
1502
|
+
*
|
|
1503
|
+
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
|
1504
|
+
* nominators.
|
|
1505
|
+
*
|
|
1506
|
+
* For older non-paged exposure, a reward payout was restricted to the top
|
|
1507
|
+
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
|
1508
|
+
* nominator payout.
|
|
1509
|
+
*
|
|
1510
|
+
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
|
|
1511
|
+
* without handling it in a migration.
|
|
1512
|
+
**/
|
|
1513
|
+
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
|
|
1514
|
+
/**
|
|
1515
|
+
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
1516
|
+
* have. Effectively determines how many unique eras a staker may be
|
|
1517
|
+
* unbonding in.
|
|
1518
|
+
*
|
|
1519
|
+
* Note: `MaxUnlockingChunks` is used as the upper bound for the
|
|
1520
|
+
* `BoundedVec` item `StakingLedger.unlocking`. Setting this value
|
|
1521
|
+
* lower than the existing value can lead to inconsistencies in the
|
|
1522
|
+
* `StakingLedger` and will need to be handled properly in a runtime
|
|
1523
|
+
* migration. The test `reducing_max_unlocking_chunks_abrupt` shows
|
|
1524
|
+
* this effect.
|
|
1525
|
+
**/
|
|
1526
|
+
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Number of sessions per era.
|
|
1529
|
+
**/
|
|
1530
|
+
sessionsPerEra: u32 & AugmentedConst<ApiType>;
|
|
1531
|
+
/**
|
|
1532
|
+
* Number of eras that slashes are deferred by, after computation.
|
|
1533
|
+
*
|
|
1534
|
+
* This should be less than the bonding duration. Set to 0 if slashes
|
|
1535
|
+
* should be applied immediately, without opportunity for intervention.
|
|
1536
|
+
**/
|
|
1537
|
+
slashDeferDuration: u32 & AugmentedConst<ApiType>;
|
|
1538
|
+
/**
|
|
1539
|
+
* Generic const
|
|
1540
|
+
**/
|
|
1541
|
+
[key: string]: Codec;
|
|
1542
|
+
};
|
|
1543
|
+
statement: {
|
|
1544
|
+
/**
|
|
1545
|
+
* Cost of data byte used for priority calculation.
|
|
1546
|
+
**/
|
|
1547
|
+
byteCost: u128 & AugmentedConst<ApiType>;
|
|
1548
|
+
/**
|
|
1549
|
+
* Maximum data bytes allowed per account.
|
|
1550
|
+
**/
|
|
1551
|
+
maxAllowedBytes: u32 & AugmentedConst<ApiType>;
|
|
1552
|
+
/**
|
|
1553
|
+
* Maximum number of statements allowed per account.
|
|
1554
|
+
**/
|
|
1555
|
+
maxAllowedStatements: u32 & AugmentedConst<ApiType>;
|
|
1556
|
+
/**
|
|
1557
|
+
* Minimum data bytes allowed per account.
|
|
1558
|
+
**/
|
|
1559
|
+
minAllowedBytes: u32 & AugmentedConst<ApiType>;
|
|
1560
|
+
/**
|
|
1561
|
+
* Minimum number of statements allowed per account.
|
|
1562
|
+
**/
|
|
1563
|
+
minAllowedStatements: u32 & AugmentedConst<ApiType>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Min balance for priority statements.
|
|
1566
|
+
**/
|
|
1567
|
+
statementCost: u128 & AugmentedConst<ApiType>;
|
|
1568
|
+
/**
|
|
1569
|
+
* Generic const
|
|
1570
|
+
**/
|
|
1571
|
+
[key: string]: Codec;
|
|
1572
|
+
};
|
|
1573
|
+
stateTrieMigration: {
|
|
1574
|
+
/**
|
|
1575
|
+
* Maximal number of bytes that a key can have.
|
|
1576
|
+
*
|
|
1577
|
+
* FRAME itself does not limit the key length.
|
|
1578
|
+
* The concrete value must therefore depend on your storage usage.
|
|
1579
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
1580
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
1581
|
+
*
|
|
1582
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
1583
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
1584
|
+
*
|
|
1585
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
1586
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
1587
|
+
* value. The default is 512 byte.
|
|
1588
|
+
*
|
|
1589
|
+
* Some key lengths for reference:
|
|
1590
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
1591
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
1592
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
1593
|
+
*
|
|
1594
|
+
* For more info see
|
|
1595
|
+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
1596
|
+
**/
|
|
1597
|
+
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
|
1598
|
+
/**
|
|
1599
|
+
* Generic const
|
|
1600
|
+
**/
|
|
1601
|
+
[key: string]: Codec;
|
|
1602
|
+
};
|
|
1603
|
+
system: {
|
|
1604
|
+
/**
|
|
1605
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
1606
|
+
**/
|
|
1607
|
+
blockHashCount: u32 & AugmentedConst<ApiType>;
|
|
1608
|
+
/**
|
|
1609
|
+
* The maximum length of a block (in bytes).
|
|
1610
|
+
**/
|
|
1611
|
+
blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
|
|
1612
|
+
/**
|
|
1613
|
+
* Block & extrinsics weights: base values and limits.
|
|
1614
|
+
**/
|
|
1615
|
+
blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
|
|
1616
|
+
/**
|
|
1617
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
1618
|
+
**/
|
|
1619
|
+
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
|
|
1620
|
+
/**
|
|
1621
|
+
* The designated SS58 prefix of this chain.
|
|
1622
|
+
*
|
|
1623
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
1624
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
1625
|
+
* an identifier of the chain.
|
|
1626
|
+
**/
|
|
1627
|
+
ss58Prefix: u16 & AugmentedConst<ApiType>;
|
|
1628
|
+
/**
|
|
1629
|
+
* Get the chain's in-code version.
|
|
1630
|
+
**/
|
|
1631
|
+
version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
|
|
1632
|
+
/**
|
|
1633
|
+
* Generic const
|
|
1634
|
+
**/
|
|
1635
|
+
[key: string]: Codec;
|
|
1636
|
+
};
|
|
1637
|
+
technicalCommittee: {
|
|
1638
|
+
/**
|
|
1639
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
1640
|
+
**/
|
|
1641
|
+
maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Generic const
|
|
1644
|
+
**/
|
|
1645
|
+
[key: string]: Codec;
|
|
1646
|
+
};
|
|
1647
|
+
timestamp: {
|
|
1648
|
+
/**
|
|
1649
|
+
* The minimum period between blocks.
|
|
1650
|
+
*
|
|
1651
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
1652
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
1653
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
1654
|
+
* period on default settings.
|
|
1655
|
+
**/
|
|
1656
|
+
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
1657
|
+
/**
|
|
1658
|
+
* Generic const
|
|
1659
|
+
**/
|
|
1660
|
+
[key: string]: Codec;
|
|
1661
|
+
};
|
|
1662
|
+
tips: {
|
|
1663
|
+
/**
|
|
1664
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
1665
|
+
**/
|
|
1666
|
+
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
1667
|
+
/**
|
|
1668
|
+
* Maximum acceptable reason length.
|
|
1669
|
+
*
|
|
1670
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
1671
|
+
**/
|
|
1672
|
+
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
|
1673
|
+
/**
|
|
1674
|
+
* The maximum amount for a single tip.
|
|
1675
|
+
**/
|
|
1676
|
+
maxTipAmount: u128 & AugmentedConst<ApiType>;
|
|
1677
|
+
/**
|
|
1678
|
+
* The period for which a tip remains open after is has achieved threshold tippers.
|
|
1679
|
+
**/
|
|
1680
|
+
tipCountdown: u32 & AugmentedConst<ApiType>;
|
|
1681
|
+
/**
|
|
1682
|
+
* The percent of the final tip which goes to the original reporter of the tip.
|
|
1683
|
+
**/
|
|
1684
|
+
tipFindersFee: Percent & AugmentedConst<ApiType>;
|
|
1685
|
+
/**
|
|
1686
|
+
* The non-zero amount held on deposit for placing a tip report.
|
|
1687
|
+
**/
|
|
1688
|
+
tipReportDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Generic const
|
|
1691
|
+
**/
|
|
1692
|
+
[key: string]: Codec;
|
|
1693
|
+
};
|
|
1694
|
+
transactionPayment: {
|
|
1695
|
+
/**
|
|
1696
|
+
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
1697
|
+
* `priority`
|
|
1698
|
+
*
|
|
1699
|
+
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
|
1700
|
+
* added to a tip component in regular `priority` calculations.
|
|
1701
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
1702
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
1703
|
+
*
|
|
1704
|
+
* ```rust,ignore
|
|
1705
|
+
* // For `Normal`
|
|
1706
|
+
* let priority = priority_calc(tip);
|
|
1707
|
+
*
|
|
1708
|
+
* // For `Operational`
|
|
1709
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
1710
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
1711
|
+
* ```
|
|
1712
|
+
*
|
|
1713
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
1714
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
1715
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
1716
|
+
* transactions.
|
|
1717
|
+
**/
|
|
1718
|
+
operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
|
|
1719
|
+
/**
|
|
1720
|
+
* Generic const
|
|
1721
|
+
**/
|
|
1722
|
+
[key: string]: Codec;
|
|
1723
|
+
};
|
|
1724
|
+
treasury: {
|
|
1725
|
+
/**
|
|
1726
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
1727
|
+
**/
|
|
1728
|
+
burn: Permill & AugmentedConst<ApiType>;
|
|
1729
|
+
/**
|
|
1730
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1731
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1732
|
+
*
|
|
1733
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
1734
|
+
*
|
|
1735
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
1736
|
+
**/
|
|
1737
|
+
maxApprovals: u32 & AugmentedConst<ApiType>;
|
|
1738
|
+
/**
|
|
1739
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
1740
|
+
**/
|
|
1741
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
1742
|
+
/**
|
|
1743
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
1744
|
+
**/
|
|
1745
|
+
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
|
1746
|
+
/**
|
|
1747
|
+
* Gets this pallet's derived pot account.
|
|
1748
|
+
**/
|
|
1749
|
+
potAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
1750
|
+
/**
|
|
1751
|
+
* Period between successive spends.
|
|
1752
|
+
**/
|
|
1753
|
+
spendPeriod: u32 & AugmentedConst<ApiType>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Generic const
|
|
1756
|
+
**/
|
|
1757
|
+
[key: string]: Codec;
|
|
1758
|
+
};
|
|
1759
|
+
txPause: {
|
|
1760
|
+
/**
|
|
1761
|
+
* Maximum length for pallet name and call name SCALE encoded string names.
|
|
1762
|
+
*
|
|
1763
|
+
* TOO LONG NAMES WILL BE TREATED AS PAUSED.
|
|
1764
|
+
**/
|
|
1765
|
+
maxNameLen: u32 & AugmentedConst<ApiType>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Generic const
|
|
1768
|
+
**/
|
|
1769
|
+
[key: string]: Codec;
|
|
1770
|
+
};
|
|
1771
|
+
uniques: {
|
|
1772
|
+
/**
|
|
1773
|
+
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
|
1774
|
+
**/
|
|
1775
|
+
attributeDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1776
|
+
/**
|
|
1777
|
+
* The basic amount of funds that must be reserved for collection.
|
|
1778
|
+
**/
|
|
1779
|
+
collectionDeposit: u128 & AugmentedConst<ApiType>;
|
|
1780
|
+
/**
|
|
1781
|
+
* The additional funds that must be reserved for the number of bytes store in metadata,
|
|
1782
|
+
* either "normal" metadata or attribute metadata.
|
|
1783
|
+
**/
|
|
1784
|
+
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
1785
|
+
/**
|
|
1786
|
+
* The basic amount of funds that must be reserved for an item.
|
|
1787
|
+
**/
|
|
1788
|
+
itemDeposit: u128 & AugmentedConst<ApiType>;
|
|
1789
|
+
/**
|
|
1790
|
+
* The maximum length of an attribute key.
|
|
1791
|
+
**/
|
|
1792
|
+
keyLimit: u32 & AugmentedConst<ApiType>;
|
|
1793
|
+
/**
|
|
1794
|
+
* The basic amount of funds that must be reserved when adding metadata to your item.
|
|
1795
|
+
**/
|
|
1796
|
+
metadataDepositBase: u128 & AugmentedConst<ApiType>;
|
|
1797
|
+
/**
|
|
1798
|
+
* The maximum length of data stored on-chain.
|
|
1799
|
+
**/
|
|
1800
|
+
stringLimit: u32 & AugmentedConst<ApiType>;
|
|
1801
|
+
/**
|
|
1802
|
+
* The maximum length of an attribute value.
|
|
1803
|
+
**/
|
|
1804
|
+
valueLimit: u32 & AugmentedConst<ApiType>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Generic const
|
|
1807
|
+
**/
|
|
1808
|
+
[key: string]: Codec;
|
|
1809
|
+
};
|
|
1810
|
+
utility: {
|
|
1811
|
+
/**
|
|
1812
|
+
* The limit on the number of batched calls.
|
|
1813
|
+
**/
|
|
1814
|
+
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
1815
|
+
/**
|
|
1816
|
+
* Generic const
|
|
1817
|
+
**/
|
|
1818
|
+
[key: string]: Codec;
|
|
1819
|
+
};
|
|
1820
|
+
vesting: {
|
|
1821
|
+
maxVestingSchedules: u32 & AugmentedConst<ApiType>;
|
|
1822
|
+
/**
|
|
1823
|
+
* The minimum amount transferred to call `vested_transfer`.
|
|
1824
|
+
**/
|
|
1825
|
+
minVestedTransfer: u128 & AugmentedConst<ApiType>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Generic const
|
|
1828
|
+
**/
|
|
1829
|
+
[key: string]: Codec;
|
|
1830
|
+
};
|
|
1831
|
+
voterList: {
|
|
1832
|
+
/**
|
|
1833
|
+
* The list of thresholds separating the various bags.
|
|
1834
|
+
*
|
|
1835
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
1836
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
1837
|
+
* is less than or equal to its upper threshold.
|
|
1838
|
+
*
|
|
1839
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
1840
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
1841
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
1842
|
+
*
|
|
1843
|
+
* # Expressing the constant
|
|
1844
|
+
*
|
|
1845
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
1846
|
+
* permitted.
|
|
1847
|
+
*
|
|
1848
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
1849
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
1850
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
1851
|
+
* lists will behave identically.
|
|
1852
|
+
*
|
|
1853
|
+
* # Calculation
|
|
1854
|
+
*
|
|
1855
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
1856
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
1857
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
1858
|
+
*
|
|
1859
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
1860
|
+
*
|
|
1861
|
+
* # Examples
|
|
1862
|
+
*
|
|
1863
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
1864
|
+
* iteration is strictly in insertion order.
|
|
1865
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
1866
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
1867
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
1868
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
1869
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
1870
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
1871
|
+
*
|
|
1872
|
+
* # Migration
|
|
1873
|
+
*
|
|
1874
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
1875
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
1876
|
+
**/
|
|
1877
|
+
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
1878
|
+
/**
|
|
1879
|
+
* Generic const
|
|
1880
|
+
**/
|
|
1881
|
+
[key: string]: Codec;
|
|
1882
|
+
};
|
|
1883
|
+
} // AugmentedConsts
|
|
1884
|
+
} // declare module
|