@dedot/chaintypes 0.99.0 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/basilisk/consts.d.ts +1183 -0
- package/basilisk/errors.d.ts +2631 -0
- package/basilisk/events.d.ts +3297 -0
- package/basilisk/index.d.ts +31 -0
- package/basilisk/json-rpc.d.ts +92 -0
- package/basilisk/query.d.ts +2380 -0
- package/basilisk/runtime.d.ts +272 -0
- package/basilisk/tx.d.ts +9095 -0
- package/basilisk/types.d.ts +13749 -0
- package/hydration/consts.d.ts +1854 -0
- package/hydration/errors.d.ts +3914 -0
- package/hydration/events.d.ts +4364 -0
- package/hydration/index.d.ts +31 -0
- package/hydration/json-rpc.d.ts +141 -0
- package/hydration/query.d.ts +3243 -0
- package/hydration/runtime.d.ts +940 -0
- package/hydration/tx.d.ts +12766 -0
- package/hydration/types.d.ts +18995 -0
- package/index.d.ts +11 -4
- package/package.json +18 -3
- package/paseo-hydration/consts.d.ts +1854 -0
- package/paseo-hydration/errors.d.ts +3919 -0
- package/paseo-hydration/events.d.ts +4367 -0
- package/paseo-hydration/index.d.ts +31 -0
- package/paseo-hydration/json-rpc.d.ts +138 -0
- package/paseo-hydration/query.d.ts +3256 -0
- package/paseo-hydration/runtime.d.ts +968 -0
- package/paseo-hydration/tx.d.ts +12848 -0
- package/paseo-hydration/types.d.ts +19032 -0
|
@@ -0,0 +1,1854 @@
|
|
|
1
|
+
// Generated by dedot cli
|
|
2
|
+
|
|
3
|
+
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { RuntimeVersion, Permill, FixedBytes, Percent, AccountId32, Perbill, FixedU128 } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
FrameSystemLimitsBlockWeights,
|
|
7
|
+
FrameSystemLimitsBlockLength,
|
|
8
|
+
SpWeightsRuntimeDbWeight,
|
|
9
|
+
FrameSupportPalletId,
|
|
10
|
+
SpWeightsWeightV2Weight,
|
|
11
|
+
PalletReferendaTrackInfo,
|
|
12
|
+
HydradxTraitsOracleOraclePeriod,
|
|
13
|
+
PalletDynamicFeesFeeParams,
|
|
14
|
+
NonZeroU16,
|
|
15
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
16
|
+
StagingXcmV4Location,
|
|
17
|
+
} from './types.js';
|
|
18
|
+
|
|
19
|
+
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
20
|
+
/**
|
|
21
|
+
* Pallet `System`'s constants
|
|
22
|
+
**/
|
|
23
|
+
system: {
|
|
24
|
+
/**
|
|
25
|
+
* Block & extrinsics weights: base values and limits.
|
|
26
|
+
**/
|
|
27
|
+
blockWeights: FrameSystemLimitsBlockWeights;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The maximum length of a block (in bytes).
|
|
31
|
+
**/
|
|
32
|
+
blockLength: FrameSystemLimitsBlockLength;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
36
|
+
**/
|
|
37
|
+
blockHashCount: number;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
41
|
+
**/
|
|
42
|
+
dbWeight: SpWeightsRuntimeDbWeight;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Get the chain's in-code version.
|
|
46
|
+
**/
|
|
47
|
+
version: RuntimeVersion;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The designated SS58 prefix of this chain.
|
|
51
|
+
*
|
|
52
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
53
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
54
|
+
* an identifier of the chain.
|
|
55
|
+
**/
|
|
56
|
+
ss58Prefix: number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generic pallet constant
|
|
60
|
+
**/
|
|
61
|
+
[name: string]: any;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Pallet `Timestamp`'s constants
|
|
65
|
+
**/
|
|
66
|
+
timestamp: {
|
|
67
|
+
/**
|
|
68
|
+
* The minimum period between blocks.
|
|
69
|
+
*
|
|
70
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
71
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
72
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
73
|
+
* period on default settings.
|
|
74
|
+
**/
|
|
75
|
+
minimumPeriod: bigint;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Generic pallet constant
|
|
79
|
+
**/
|
|
80
|
+
[name: string]: any;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Pallet `Balances`'s constants
|
|
84
|
+
**/
|
|
85
|
+
balances: {
|
|
86
|
+
/**
|
|
87
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
88
|
+
*
|
|
89
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
90
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
91
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
92
|
+
* behaviour if you set this to zero.
|
|
93
|
+
*
|
|
94
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
95
|
+
**/
|
|
96
|
+
existentialDeposit: bigint;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The maximum number of locks that should exist on an account.
|
|
100
|
+
* Not strictly enforced, but used for weight estimation.
|
|
101
|
+
*
|
|
102
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
103
|
+
**/
|
|
104
|
+
maxLocks: number;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The maximum number of named reserves that can exist on an account.
|
|
108
|
+
*
|
|
109
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
110
|
+
**/
|
|
111
|
+
maxReserves: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
115
|
+
**/
|
|
116
|
+
maxFreezes: number;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Generic pallet constant
|
|
120
|
+
**/
|
|
121
|
+
[name: string]: any;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Pallet `TransactionPayment`'s constants
|
|
125
|
+
**/
|
|
126
|
+
transactionPayment: {
|
|
127
|
+
/**
|
|
128
|
+
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
129
|
+
* `priority`
|
|
130
|
+
*
|
|
131
|
+
* This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
|
|
132
|
+
* added to a tip component in regular `priority` calculations.
|
|
133
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
134
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
135
|
+
*
|
|
136
|
+
* ```rust,ignore
|
|
137
|
+
* // For `Normal`
|
|
138
|
+
* let priority = priority_calc(tip);
|
|
139
|
+
*
|
|
140
|
+
* // For `Operational`
|
|
141
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
142
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
146
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
147
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
148
|
+
* transactions.
|
|
149
|
+
**/
|
|
150
|
+
operationalFeeMultiplier: number;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Generic pallet constant
|
|
154
|
+
**/
|
|
155
|
+
[name: string]: any;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Pallet `MultiTransactionPayment`'s constants
|
|
159
|
+
**/
|
|
160
|
+
multiTransactionPayment: {
|
|
161
|
+
/**
|
|
162
|
+
* Native Asset
|
|
163
|
+
**/
|
|
164
|
+
nativeAssetId: number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Polkadot Native Asset (DOT)
|
|
168
|
+
**/
|
|
169
|
+
polkadotNativeAssetId: number;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* EVM Asset
|
|
173
|
+
**/
|
|
174
|
+
evmAssetId: number;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Generic pallet constant
|
|
178
|
+
**/
|
|
179
|
+
[name: string]: any;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Pallet `Treasury`'s constants
|
|
183
|
+
**/
|
|
184
|
+
treasury: {
|
|
185
|
+
/**
|
|
186
|
+
* Period between successive spends.
|
|
187
|
+
**/
|
|
188
|
+
spendPeriod: number;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
192
|
+
**/
|
|
193
|
+
burn: Permill;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
197
|
+
**/
|
|
198
|
+
palletId: FrameSupportPalletId;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
202
|
+
*
|
|
203
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
204
|
+
**/
|
|
205
|
+
maxApprovals: number;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
209
|
+
**/
|
|
210
|
+
payoutPeriod: number;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Generic pallet constant
|
|
214
|
+
**/
|
|
215
|
+
[name: string]: any;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Pallet `Utility`'s constants
|
|
219
|
+
**/
|
|
220
|
+
utility: {
|
|
221
|
+
/**
|
|
222
|
+
* The limit on the number of batched calls.
|
|
223
|
+
**/
|
|
224
|
+
batchedCallsLimit: number;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Generic pallet constant
|
|
228
|
+
**/
|
|
229
|
+
[name: string]: any;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Pallet `Preimage`'s constants
|
|
233
|
+
**/
|
|
234
|
+
preimage: {
|
|
235
|
+
/**
|
|
236
|
+
* Generic pallet constant
|
|
237
|
+
**/
|
|
238
|
+
[name: string]: any;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Pallet `Identity`'s constants
|
|
242
|
+
**/
|
|
243
|
+
identity: {
|
|
244
|
+
/**
|
|
245
|
+
* The amount held on deposit for a registered identity.
|
|
246
|
+
**/
|
|
247
|
+
basicDeposit: bigint;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The amount held on deposit per encoded byte for a registered identity.
|
|
251
|
+
**/
|
|
252
|
+
byteDeposit: bigint;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
256
|
+
* that one storage item's value will increase by the size of an account ID, and there will
|
|
257
|
+
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
258
|
+
**/
|
|
259
|
+
subAccountDeposit: bigint;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The maximum number of sub-accounts allowed per identified account.
|
|
263
|
+
**/
|
|
264
|
+
maxSubAccounts: number;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Maximum number of registrars allowed in the system. Needed to bound the complexity
|
|
268
|
+
* of, e.g., updating judgements.
|
|
269
|
+
**/
|
|
270
|
+
maxRegistrars: number;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The number of blocks within which a username grant must be accepted.
|
|
274
|
+
**/
|
|
275
|
+
pendingUsernameExpiration: number;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The maximum length of a suffix.
|
|
279
|
+
**/
|
|
280
|
+
maxSuffixLength: number;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The maximum length of a username, including its suffix and any system-added delimiters.
|
|
284
|
+
**/
|
|
285
|
+
maxUsernameLength: number;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Generic pallet constant
|
|
289
|
+
**/
|
|
290
|
+
[name: string]: any;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Pallet `Democracy`'s constants
|
|
294
|
+
**/
|
|
295
|
+
democracy: {
|
|
296
|
+
/**
|
|
297
|
+
* The period between a proposal being approved and enacted.
|
|
298
|
+
*
|
|
299
|
+
* It should generally be a little more than the unstake period to ensure that
|
|
300
|
+
* voting stakers have an opportunity to remove themselves from the system in the case
|
|
301
|
+
* where they are on the losing side of a vote.
|
|
302
|
+
**/
|
|
303
|
+
enactmentPeriod: number;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* How often (in blocks) new public referenda are launched.
|
|
307
|
+
**/
|
|
308
|
+
launchPeriod: number;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* How often (in blocks) to check for new votes.
|
|
312
|
+
**/
|
|
313
|
+
votingPeriod: number;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* The minimum period of vote locking.
|
|
317
|
+
*
|
|
318
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
319
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
320
|
+
**/
|
|
321
|
+
voteLockingPeriod: number;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
325
|
+
**/
|
|
326
|
+
minimumDeposit: bigint;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Indicator for whether an emergency origin is even allowed to happen. Some chains may
|
|
330
|
+
* want to set this permanently to `false`, others may want to condition it on things such
|
|
331
|
+
* as an upgrade having happened recently.
|
|
332
|
+
**/
|
|
333
|
+
instantAllowed: boolean;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Minimum voting period allowed for a fast-track referendum.
|
|
337
|
+
**/
|
|
338
|
+
fastTrackVotingPeriod: number;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
342
|
+
**/
|
|
343
|
+
cooloffPeriod: number;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* The maximum number of votes for an account.
|
|
347
|
+
*
|
|
348
|
+
* Also used to compute weight, an overly big value can
|
|
349
|
+
* lead to extrinsic with very big weight: see `delegate` for instance.
|
|
350
|
+
**/
|
|
351
|
+
maxVotes: number;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The maximum number of public proposals that can exist at any time.
|
|
355
|
+
**/
|
|
356
|
+
maxProposals: number;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* The maximum number of deposits a public proposal may have at any time.
|
|
360
|
+
**/
|
|
361
|
+
maxDeposits: number;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* The maximum number of items which can be blacklisted.
|
|
365
|
+
**/
|
|
366
|
+
maxBlacklisted: number;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Generic pallet constant
|
|
370
|
+
**/
|
|
371
|
+
[name: string]: any;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Pallet `Elections`'s constants
|
|
375
|
+
**/
|
|
376
|
+
elections: {
|
|
377
|
+
/**
|
|
378
|
+
* Identifier for the elections-phragmen pallet's lock
|
|
379
|
+
**/
|
|
380
|
+
palletId: FixedBytes<8>;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* How much should be locked up in order to submit one's candidacy.
|
|
384
|
+
**/
|
|
385
|
+
candidacyBond: bigint;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Base deposit associated with voting.
|
|
389
|
+
*
|
|
390
|
+
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
|
391
|
+
* creating a gigantic number of votes.
|
|
392
|
+
**/
|
|
393
|
+
votingBondBase: bigint;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* The amount of bond that need to be locked for each vote (32 bytes).
|
|
397
|
+
**/
|
|
398
|
+
votingBondFactor: bigint;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Number of members to elect.
|
|
402
|
+
**/
|
|
403
|
+
desiredMembers: number;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Number of runners_up to keep.
|
|
407
|
+
**/
|
|
408
|
+
desiredRunnersUp: number;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* How long each seat is kept. This defines the next block number at which an election
|
|
412
|
+
* round will happen. If set to zero, no elections are ever triggered and the module will
|
|
413
|
+
* be in passive mode.
|
|
414
|
+
**/
|
|
415
|
+
termDuration: number;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The maximum number of candidates in a phragmen election.
|
|
419
|
+
*
|
|
420
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
421
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
422
|
+
*
|
|
423
|
+
* When this limit is reached no more candidates are accepted in the election.
|
|
424
|
+
**/
|
|
425
|
+
maxCandidates: number;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* The maximum number of voters to allow in a phragmen election.
|
|
429
|
+
*
|
|
430
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
431
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
432
|
+
*
|
|
433
|
+
* When the limit is reached the new voters are ignored.
|
|
434
|
+
**/
|
|
435
|
+
maxVoters: number;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Maximum numbers of votes per voter.
|
|
439
|
+
*
|
|
440
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
441
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
442
|
+
**/
|
|
443
|
+
maxVotesPerVoter: number;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Generic pallet constant
|
|
447
|
+
**/
|
|
448
|
+
[name: string]: any;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Pallet `Council`'s constants
|
|
452
|
+
**/
|
|
453
|
+
council: {
|
|
454
|
+
/**
|
|
455
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
456
|
+
**/
|
|
457
|
+
maxProposalWeight: SpWeightsWeightV2Weight;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Generic pallet constant
|
|
461
|
+
**/
|
|
462
|
+
[name: string]: any;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Pallet `TechnicalCommittee`'s constants
|
|
466
|
+
**/
|
|
467
|
+
technicalCommittee: {
|
|
468
|
+
/**
|
|
469
|
+
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
470
|
+
**/
|
|
471
|
+
maxProposalWeight: SpWeightsWeightV2Weight;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Generic pallet constant
|
|
475
|
+
**/
|
|
476
|
+
[name: string]: any;
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* Pallet `Tips`'s constants
|
|
480
|
+
**/
|
|
481
|
+
tips: {
|
|
482
|
+
/**
|
|
483
|
+
* Maximum acceptable reason length.
|
|
484
|
+
*
|
|
485
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
486
|
+
**/
|
|
487
|
+
maximumReasonLength: number;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
491
|
+
**/
|
|
492
|
+
dataDepositPerByte: bigint;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* The period for which a tip remains open after is has achieved threshold tippers.
|
|
496
|
+
**/
|
|
497
|
+
tipCountdown: number;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* The percent of the final tip which goes to the original reporter of the tip.
|
|
501
|
+
**/
|
|
502
|
+
tipFindersFee: Percent;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* The non-zero amount held on deposit for placing a tip report.
|
|
506
|
+
**/
|
|
507
|
+
tipReportDepositBase: bigint;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* The maximum amount for a single tip.
|
|
511
|
+
**/
|
|
512
|
+
maxTipAmount: bigint;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Generic pallet constant
|
|
516
|
+
**/
|
|
517
|
+
[name: string]: any;
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Pallet `Proxy`'s constants
|
|
521
|
+
**/
|
|
522
|
+
proxy: {
|
|
523
|
+
/**
|
|
524
|
+
* The base amount of currency needed to reserve for creating a proxy.
|
|
525
|
+
*
|
|
526
|
+
* This is held for an additional storage item whose value size is
|
|
527
|
+
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
|
528
|
+
**/
|
|
529
|
+
proxyDepositBase: bigint;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* The amount of currency needed per proxy added.
|
|
533
|
+
*
|
|
534
|
+
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
|
|
535
|
+
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
|
|
536
|
+
* into account `32 + proxy_type.encode().len()` bytes of data.
|
|
537
|
+
**/
|
|
538
|
+
proxyDepositFactor: bigint;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* The maximum amount of proxies allowed for a single account.
|
|
542
|
+
**/
|
|
543
|
+
maxProxies: number;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* The maximum amount of time-delayed announcements that are allowed to be pending.
|
|
547
|
+
**/
|
|
548
|
+
maxPending: number;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* The base amount of currency needed to reserve for creating an announcement.
|
|
552
|
+
*
|
|
553
|
+
* This is held when a new storage item holding a `Balance` is created (typically 16
|
|
554
|
+
* bytes).
|
|
555
|
+
**/
|
|
556
|
+
announcementDepositBase: bigint;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* The amount of currency needed per announcement made.
|
|
560
|
+
*
|
|
561
|
+
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
|
562
|
+
* into a pre-existing storage value.
|
|
563
|
+
**/
|
|
564
|
+
announcementDepositFactor: bigint;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Generic pallet constant
|
|
568
|
+
**/
|
|
569
|
+
[name: string]: any;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Pallet `Multisig`'s constants
|
|
573
|
+
**/
|
|
574
|
+
multisig: {
|
|
575
|
+
/**
|
|
576
|
+
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
577
|
+
* store a dispatch call for later.
|
|
578
|
+
*
|
|
579
|
+
* This is held for an additional storage item whose value size is
|
|
580
|
+
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
|
581
|
+
* `32 + sizeof(AccountId)` bytes.
|
|
582
|
+
**/
|
|
583
|
+
depositBase: bigint;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* The amount of currency needed per unit threshold when creating a multisig execution.
|
|
587
|
+
*
|
|
588
|
+
* This is held for adding 32 bytes more into a pre-existing storage value.
|
|
589
|
+
**/
|
|
590
|
+
depositFactor: bigint;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* The maximum amount of signatories allowed in the multisig.
|
|
594
|
+
**/
|
|
595
|
+
maxSignatories: number;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Generic pallet constant
|
|
599
|
+
**/
|
|
600
|
+
[name: string]: any;
|
|
601
|
+
};
|
|
602
|
+
/**
|
|
603
|
+
* Pallet `Uniques`'s constants
|
|
604
|
+
**/
|
|
605
|
+
uniques: {
|
|
606
|
+
/**
|
|
607
|
+
* The basic amount of funds that must be reserved for collection.
|
|
608
|
+
**/
|
|
609
|
+
collectionDeposit: bigint;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* The basic amount of funds that must be reserved for an item.
|
|
613
|
+
**/
|
|
614
|
+
itemDeposit: bigint;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* The basic amount of funds that must be reserved when adding metadata to your item.
|
|
618
|
+
**/
|
|
619
|
+
metadataDepositBase: bigint;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
|
623
|
+
**/
|
|
624
|
+
attributeDepositBase: bigint;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* The additional funds that must be reserved for the number of bytes store in metadata,
|
|
628
|
+
* either "normal" metadata or attribute metadata.
|
|
629
|
+
**/
|
|
630
|
+
depositPerByte: bigint;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* The maximum length of data stored on-chain.
|
|
634
|
+
**/
|
|
635
|
+
stringLimit: number;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* The maximum length of an attribute key.
|
|
639
|
+
**/
|
|
640
|
+
keyLimit: number;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* The maximum length of an attribute value.
|
|
644
|
+
**/
|
|
645
|
+
valueLimit: number;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Generic pallet constant
|
|
649
|
+
**/
|
|
650
|
+
[name: string]: any;
|
|
651
|
+
};
|
|
652
|
+
/**
|
|
653
|
+
* Pallet `StateTrieMigration`'s constants
|
|
654
|
+
**/
|
|
655
|
+
stateTrieMigration: {
|
|
656
|
+
/**
|
|
657
|
+
* Maximal number of bytes that a key can have.
|
|
658
|
+
*
|
|
659
|
+
* FRAME itself does not limit the key length.
|
|
660
|
+
* The concrete value must therefore depend on your storage usage.
|
|
661
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
662
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
663
|
+
*
|
|
664
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
665
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
666
|
+
*
|
|
667
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
668
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
669
|
+
* value. The default is 512 byte.
|
|
670
|
+
*
|
|
671
|
+
* Some key lengths for reference:
|
|
672
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
673
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
674
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
675
|
+
*
|
|
676
|
+
* For more info see
|
|
677
|
+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
678
|
+
**/
|
|
679
|
+
maxKeyLen: number;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Generic pallet constant
|
|
683
|
+
**/
|
|
684
|
+
[name: string]: any;
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* Pallet `ConvictionVoting`'s constants
|
|
688
|
+
**/
|
|
689
|
+
convictionVoting: {
|
|
690
|
+
/**
|
|
691
|
+
* The maximum number of concurrent votes an account may have.
|
|
692
|
+
*
|
|
693
|
+
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
|
694
|
+
* weight estimation: see `delegate` for instance.
|
|
695
|
+
**/
|
|
696
|
+
maxVotes: number;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* The minimum period of vote locking.
|
|
700
|
+
*
|
|
701
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
702
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
703
|
+
**/
|
|
704
|
+
voteLockingPeriod: number;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Generic pallet constant
|
|
708
|
+
**/
|
|
709
|
+
[name: string]: any;
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* Pallet `Referenda`'s constants
|
|
713
|
+
**/
|
|
714
|
+
referenda: {
|
|
715
|
+
/**
|
|
716
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
717
|
+
**/
|
|
718
|
+
submissionDeposit: bigint;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Maximum size of the referendum queue for a single track.
|
|
722
|
+
**/
|
|
723
|
+
maxQueued: number;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
727
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
728
|
+
**/
|
|
729
|
+
undecidingTimeout: number;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
733
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
734
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
735
|
+
**/
|
|
736
|
+
alarmInterval: number;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Information concerning the different referendum tracks.
|
|
740
|
+
**/
|
|
741
|
+
tracks: Array<[number, PalletReferendaTrackInfo]>;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Generic pallet constant
|
|
745
|
+
**/
|
|
746
|
+
[name: string]: any;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* Pallet `Origins`'s constants
|
|
750
|
+
**/
|
|
751
|
+
origins: {
|
|
752
|
+
/**
|
|
753
|
+
* Generic pallet constant
|
|
754
|
+
**/
|
|
755
|
+
[name: string]: any;
|
|
756
|
+
};
|
|
757
|
+
/**
|
|
758
|
+
* Pallet `Whitelist`'s constants
|
|
759
|
+
**/
|
|
760
|
+
whitelist: {
|
|
761
|
+
/**
|
|
762
|
+
* Generic pallet constant
|
|
763
|
+
**/
|
|
764
|
+
[name: string]: any;
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* Pallet `Dispatcher`'s constants
|
|
768
|
+
**/
|
|
769
|
+
dispatcher: {
|
|
770
|
+
/**
|
|
771
|
+
* Generic pallet constant
|
|
772
|
+
**/
|
|
773
|
+
[name: string]: any;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* Pallet `AssetRegistry`'s constants
|
|
777
|
+
**/
|
|
778
|
+
assetRegistry: {
|
|
779
|
+
sequentialIdStartAt: number;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
783
|
+
**/
|
|
784
|
+
stringLimit: number;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The min length of a name or symbol stored on-chain.
|
|
788
|
+
**/
|
|
789
|
+
minStringLimit: number;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Weight multiplier for `register_external` extrinsic
|
|
793
|
+
**/
|
|
794
|
+
regExternalWeightMultiplier: bigint;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Generic pallet constant
|
|
798
|
+
**/
|
|
799
|
+
[name: string]: any;
|
|
800
|
+
};
|
|
801
|
+
/**
|
|
802
|
+
* Pallet `Claims`'s constants
|
|
803
|
+
**/
|
|
804
|
+
claims: {
|
|
805
|
+
/**
|
|
806
|
+
* Generic pallet constant
|
|
807
|
+
**/
|
|
808
|
+
[name: string]: any;
|
|
809
|
+
};
|
|
810
|
+
/**
|
|
811
|
+
* Pallet `GenesisHistory`'s constants
|
|
812
|
+
**/
|
|
813
|
+
genesisHistory: {
|
|
814
|
+
/**
|
|
815
|
+
* Generic pallet constant
|
|
816
|
+
**/
|
|
817
|
+
[name: string]: any;
|
|
818
|
+
};
|
|
819
|
+
/**
|
|
820
|
+
* Pallet `CollatorRewards`'s constants
|
|
821
|
+
**/
|
|
822
|
+
collatorRewards: {
|
|
823
|
+
/**
|
|
824
|
+
* Reward amount per one collator.
|
|
825
|
+
**/
|
|
826
|
+
rewardPerCollator: bigint;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Reward Asset Id
|
|
830
|
+
**/
|
|
831
|
+
rewardCurrencyId: number;
|
|
832
|
+
rewardsBag: AccountId32;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Generic pallet constant
|
|
836
|
+
**/
|
|
837
|
+
[name: string]: any;
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Pallet `Omnipool`'s constants
|
|
841
|
+
**/
|
|
842
|
+
omnipool: {
|
|
843
|
+
/**
|
|
844
|
+
* Native Asset ID
|
|
845
|
+
**/
|
|
846
|
+
hdxAssetId: number;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Hub Asset ID
|
|
850
|
+
**/
|
|
851
|
+
hubAssetId: number;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Minimum withdrawal fee
|
|
855
|
+
**/
|
|
856
|
+
minWithdrawalFee: Permill;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Minimum trading limit
|
|
860
|
+
**/
|
|
861
|
+
minimumTradingLimit: bigint;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Minimum pool liquidity which can be added
|
|
865
|
+
**/
|
|
866
|
+
minimumPoolLiquidity: bigint;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Max fraction of asset reserve to sell in single transaction
|
|
870
|
+
**/
|
|
871
|
+
maxInRatio: bigint;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Max fraction of asset reserve to buy in single transaction
|
|
875
|
+
**/
|
|
876
|
+
maxOutRatio: bigint;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Non fungible class id
|
|
880
|
+
**/
|
|
881
|
+
nftCollectionId: bigint;
|
|
882
|
+
burnProtocolFee: Permill;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Generic pallet constant
|
|
886
|
+
**/
|
|
887
|
+
[name: string]: any;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* Pallet `TransactionPause`'s constants
|
|
891
|
+
**/
|
|
892
|
+
transactionPause: {
|
|
893
|
+
/**
|
|
894
|
+
* Generic pallet constant
|
|
895
|
+
**/
|
|
896
|
+
[name: string]: any;
|
|
897
|
+
};
|
|
898
|
+
/**
|
|
899
|
+
* Pallet `Duster`'s constants
|
|
900
|
+
**/
|
|
901
|
+
duster: {
|
|
902
|
+
/**
|
|
903
|
+
* Reward amount
|
|
904
|
+
**/
|
|
905
|
+
reward: bigint;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Native Asset Id
|
|
909
|
+
**/
|
|
910
|
+
nativeCurrencyId: number;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Default account for `reward_account` and `dust_account` in genesis config.
|
|
914
|
+
**/
|
|
915
|
+
treasuryAccountId: AccountId32;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Generic pallet constant
|
|
919
|
+
**/
|
|
920
|
+
[name: string]: any;
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* Pallet `OmnipoolWarehouseLM`'s constants
|
|
924
|
+
**/
|
|
925
|
+
omnipoolWarehouseLM: {
|
|
926
|
+
/**
|
|
927
|
+
* Pallet id.
|
|
928
|
+
**/
|
|
929
|
+
palletId: FrameSupportPalletId;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Treasury account to receive claimed rewards lower than ED
|
|
933
|
+
**/
|
|
934
|
+
treasuryAccountId: AccountId32;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Minimum total rewards to distribute from global farm during liquidity mining.
|
|
938
|
+
**/
|
|
939
|
+
minTotalFarmRewards: bigint;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Minimum number of periods to run liquidity mining program.
|
|
943
|
+
**/
|
|
944
|
+
minPlannedYieldingPeriods: number;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Maximum number of yield farms same LP shares can be re/deposited into. This value always
|
|
948
|
+
* MUST BE >= 1.
|
|
949
|
+
**/
|
|
950
|
+
maxFarmEntriesPerDeposit: number;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Max number of yield farms can exist in global farm. This includes all farms in the
|
|
954
|
+
* storage(active, stopped, terminated).
|
|
955
|
+
**/
|
|
956
|
+
maxYieldFarmsPerGlobalFarm: number;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Generic pallet constant
|
|
960
|
+
**/
|
|
961
|
+
[name: string]: any;
|
|
962
|
+
};
|
|
963
|
+
/**
|
|
964
|
+
* Pallet `OmnipoolLiquidityMining`'s constants
|
|
965
|
+
**/
|
|
966
|
+
omnipoolLiquidityMining: {
|
|
967
|
+
/**
|
|
968
|
+
* NFT collection id for liquidity mining's deposit nfts.
|
|
969
|
+
**/
|
|
970
|
+
nftCollectionId: bigint;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Identifier of oracle data soruce
|
|
974
|
+
**/
|
|
975
|
+
oracleSource: FixedBytes<8>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Oracle's price aggregation period.
|
|
979
|
+
**/
|
|
980
|
+
oraclePeriod: HydradxTraitsOracleOraclePeriod;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Generic pallet constant
|
|
984
|
+
**/
|
|
985
|
+
[name: string]: any;
|
|
986
|
+
};
|
|
987
|
+
/**
|
|
988
|
+
* Pallet `OTC`'s constants
|
|
989
|
+
**/
|
|
990
|
+
otc: {
|
|
991
|
+
/**
|
|
992
|
+
* Multiplier used to compute minimal amounts of asset_in and asset_out in an OTC.
|
|
993
|
+
**/
|
|
994
|
+
existentialDepositMultiplier: number;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Fee deducted from amount_out.
|
|
998
|
+
**/
|
|
999
|
+
fee: Permill;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Fee receiver.
|
|
1003
|
+
**/
|
|
1004
|
+
feeReceiver: AccountId32;
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Generic pallet constant
|
|
1008
|
+
**/
|
|
1009
|
+
[name: string]: any;
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* Pallet `CircuitBreaker`'s constants
|
|
1013
|
+
**/
|
|
1014
|
+
circuitBreaker: {
|
|
1015
|
+
/**
|
|
1016
|
+
* The maximum percentage of a pool's liquidity that can be traded in a block.
|
|
1017
|
+
* Represented as a non-zero fraction (nominator, denominator) with the max value being 10_000.
|
|
1018
|
+
**/
|
|
1019
|
+
defaultMaxNetTradeVolumeLimitPerBlock: [number, number];
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* The maximum percentage of a pool's liquidity that can be added in a block.
|
|
1023
|
+
* Represented as an optional non-zero fraction (nominator, denominator) with the max value being 10_000.
|
|
1024
|
+
* If set to None, the limits are not enforced.
|
|
1025
|
+
**/
|
|
1026
|
+
defaultMaxAddLiquidityLimitPerBlock: [number, number] | undefined;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* The maximum percentage of a pool's liquidity that can be removed in a block.
|
|
1030
|
+
* Represented as an optional non-zero fraction (nominator, denominator) with the max value being 10_000.
|
|
1031
|
+
* If set to None, the limits are not enforced.
|
|
1032
|
+
**/
|
|
1033
|
+
defaultMaxRemoveLiquidityLimitPerBlock: [number, number] | undefined;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Generic pallet constant
|
|
1037
|
+
**/
|
|
1038
|
+
[name: string]: any;
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* Pallet `Router`'s constants
|
|
1042
|
+
**/
|
|
1043
|
+
router: {
|
|
1044
|
+
/**
|
|
1045
|
+
* Native Asset Id
|
|
1046
|
+
**/
|
|
1047
|
+
nativeAssetId: number;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Oracle's price aggregation period.
|
|
1051
|
+
**/
|
|
1052
|
+
oraclePeriod: HydradxTraitsOracleOraclePeriod;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Generic pallet constant
|
|
1056
|
+
**/
|
|
1057
|
+
[name: string]: any;
|
|
1058
|
+
};
|
|
1059
|
+
/**
|
|
1060
|
+
* Pallet `DynamicFees`'s constants
|
|
1061
|
+
**/
|
|
1062
|
+
dynamicFees: {
|
|
1063
|
+
assetFeeParameters: PalletDynamicFeesFeeParams;
|
|
1064
|
+
protocolFeeParameters: PalletDynamicFeesFeeParams;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Generic pallet constant
|
|
1068
|
+
**/
|
|
1069
|
+
[name: string]: any;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Pallet `Staking`'s constants
|
|
1073
|
+
**/
|
|
1074
|
+
staking: {
|
|
1075
|
+
/**
|
|
1076
|
+
* Staking period length in blocks.
|
|
1077
|
+
**/
|
|
1078
|
+
periodLength: number;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Pallet id.
|
|
1082
|
+
**/
|
|
1083
|
+
palletId: FrameSupportPalletId;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Native Asset ID.
|
|
1087
|
+
**/
|
|
1088
|
+
nativeAssetId: number;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Min amount user must stake.
|
|
1092
|
+
**/
|
|
1093
|
+
minStake: bigint;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Weight of the time points in total points calculations.
|
|
1097
|
+
**/
|
|
1098
|
+
timePointsWeight: Permill;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Weight of the action points in total points calculations.
|
|
1102
|
+
**/
|
|
1103
|
+
actionPointsWeight: Perbill;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Number of time points users receive for each period.
|
|
1107
|
+
**/
|
|
1108
|
+
timePointsPerPeriod: number;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Number of periods user can't claim rewards for. User can exit but won't receive any rewards.
|
|
1112
|
+
* If he stay longer than `UnclaimablePeriods` he will receive rewards also for these periods.
|
|
1113
|
+
**/
|
|
1114
|
+
unclaimablePeriods: bigint;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Weight of the actual stake in slash points calculation. Bigger the value lower the calculated slash points.
|
|
1118
|
+
**/
|
|
1119
|
+
currentStakeWeight: number;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Max amount of votes the user can have at any time.
|
|
1123
|
+
**/
|
|
1124
|
+
maxVotes: number;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* NFT collection id.
|
|
1128
|
+
**/
|
|
1129
|
+
nftCollectionId: bigint;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Generic pallet constant
|
|
1133
|
+
**/
|
|
1134
|
+
[name: string]: any;
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Pallet `Stableswap`'s constants
|
|
1138
|
+
**/
|
|
1139
|
+
stableswap: {
|
|
1140
|
+
/**
|
|
1141
|
+
* Minimum pool liquidity
|
|
1142
|
+
**/
|
|
1143
|
+
minPoolLiquidity: bigint;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Minimum trading amount
|
|
1147
|
+
**/
|
|
1148
|
+
minTradingLimit: bigint;
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Amplification inclusive range. Pool's amp can be selected from the range only.
|
|
1152
|
+
**/
|
|
1153
|
+
amplificationRange: { start: NonZeroU16; end: NonZeroU16 };
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Generic pallet constant
|
|
1157
|
+
**/
|
|
1158
|
+
[name: string]: any;
|
|
1159
|
+
};
|
|
1160
|
+
/**
|
|
1161
|
+
* Pallet `Bonds`'s constants
|
|
1162
|
+
**/
|
|
1163
|
+
bonds: {
|
|
1164
|
+
/**
|
|
1165
|
+
* The pallet id, used for deriving its sovereign account ID.
|
|
1166
|
+
**/
|
|
1167
|
+
palletId: FrameSupportPalletId;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Protocol fee.
|
|
1171
|
+
**/
|
|
1172
|
+
protocolFee: Permill;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Protocol fee receiver.
|
|
1176
|
+
**/
|
|
1177
|
+
feeReceiver: AccountId32;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Generic pallet constant
|
|
1181
|
+
**/
|
|
1182
|
+
[name: string]: any;
|
|
1183
|
+
};
|
|
1184
|
+
/**
|
|
1185
|
+
* Pallet `OtcSettlements`'s constants
|
|
1186
|
+
**/
|
|
1187
|
+
otcSettlements: {
|
|
1188
|
+
/**
|
|
1189
|
+
* Account who receives the profit.
|
|
1190
|
+
**/
|
|
1191
|
+
profitReceiver: AccountId32;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Minimum profit in terms of percentage.
|
|
1195
|
+
**/
|
|
1196
|
+
minProfitPercentage: Perbill;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Determines when we consider an arbitrage as closed.
|
|
1200
|
+
**/
|
|
1201
|
+
pricePrecision: FixedU128;
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* Minimum trading limit.
|
|
1205
|
+
**/
|
|
1206
|
+
minTradingLimit: bigint;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* Maximum number of iterations used in the binary search algorithm to find the trade amount.
|
|
1210
|
+
**/
|
|
1211
|
+
maxIterations: number;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Generic pallet constant
|
|
1215
|
+
**/
|
|
1216
|
+
[name: string]: any;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* Pallet `LBP`'s constants
|
|
1220
|
+
**/
|
|
1221
|
+
lbp: {
|
|
1222
|
+
/**
|
|
1223
|
+
* Minimum trading limit, sole purpose of this is to keep the math working
|
|
1224
|
+
**/
|
|
1225
|
+
minTradingLimit: bigint;
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Minimum pool liquidity, sole purpose of this is to keep the math working
|
|
1229
|
+
**/
|
|
1230
|
+
minPoolLiquidity: bigint;
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Max fraction of pool to sell in single transaction
|
|
1234
|
+
**/
|
|
1235
|
+
maxInRatio: bigint;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Max fraction of pool to buy in single transaction
|
|
1239
|
+
**/
|
|
1240
|
+
maxOutRatio: bigint;
|
|
1241
|
+
repayFee: [number, number];
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Generic pallet constant
|
|
1245
|
+
**/
|
|
1246
|
+
[name: string]: any;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Pallet `XYK`'s constants
|
|
1250
|
+
**/
|
|
1251
|
+
xyk: {
|
|
1252
|
+
/**
|
|
1253
|
+
* Native Asset Id
|
|
1254
|
+
**/
|
|
1255
|
+
nativeAssetId: number;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Trading fee rate
|
|
1259
|
+
**/
|
|
1260
|
+
getExchangeFee: [number, number];
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Minimum trading limit
|
|
1264
|
+
**/
|
|
1265
|
+
minTradingLimit: bigint;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Minimum pool liquidity
|
|
1269
|
+
**/
|
|
1270
|
+
minPoolLiquidity: bigint;
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Max fraction of pool to sell in single transaction
|
|
1274
|
+
**/
|
|
1275
|
+
maxInRatio: bigint;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Max fraction of pool to buy in single transaction
|
|
1279
|
+
**/
|
|
1280
|
+
maxOutRatio: bigint;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Oracle source identifier for this pallet.
|
|
1284
|
+
**/
|
|
1285
|
+
oracleSource: FixedBytes<8>;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Generic pallet constant
|
|
1289
|
+
**/
|
|
1290
|
+
[name: string]: any;
|
|
1291
|
+
};
|
|
1292
|
+
/**
|
|
1293
|
+
* Pallet `Referrals`'s constants
|
|
1294
|
+
**/
|
|
1295
|
+
referrals: {
|
|
1296
|
+
/**
|
|
1297
|
+
* ID of an asset that is used to distribute rewards in.
|
|
1298
|
+
**/
|
|
1299
|
+
rewardAsset: number;
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* Pallet id. Determines account which holds accumulated rewards in various assets.
|
|
1303
|
+
**/
|
|
1304
|
+
palletId: FrameSupportPalletId;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* Registration fee details.
|
|
1308
|
+
* (ID of an asset which fee is to be paid in, Amount, Beneficiary account)
|
|
1309
|
+
**/
|
|
1310
|
+
registrationFee: [number, bigint, AccountId32];
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Maximum referral code length.
|
|
1314
|
+
**/
|
|
1315
|
+
codeLength: number;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Minimum referral code length.
|
|
1319
|
+
**/
|
|
1320
|
+
minCodeLength: number;
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Seed amount that was sent to the reward pot.
|
|
1324
|
+
**/
|
|
1325
|
+
seedNativeAmount: bigint;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Generic pallet constant
|
|
1329
|
+
**/
|
|
1330
|
+
[name: string]: any;
|
|
1331
|
+
};
|
|
1332
|
+
/**
|
|
1333
|
+
* Pallet `Liquidation`'s constants
|
|
1334
|
+
**/
|
|
1335
|
+
liquidation: {
|
|
1336
|
+
/**
|
|
1337
|
+
* The gas limit for the execution of the liquidation call.
|
|
1338
|
+
**/
|
|
1339
|
+
gasLimit: bigint;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Account who receives the profit.
|
|
1343
|
+
**/
|
|
1344
|
+
profitReceiver: AccountId32;
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Generic pallet constant
|
|
1348
|
+
**/
|
|
1349
|
+
[name: string]: any;
|
|
1350
|
+
};
|
|
1351
|
+
/**
|
|
1352
|
+
* Pallet `Tokens`'s constants
|
|
1353
|
+
**/
|
|
1354
|
+
tokens: {
|
|
1355
|
+
maxLocks: number;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* The maximum number of named reserves that can exist on an account.
|
|
1359
|
+
**/
|
|
1360
|
+
maxReserves: number;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Generic pallet constant
|
|
1364
|
+
**/
|
|
1365
|
+
[name: string]: any;
|
|
1366
|
+
};
|
|
1367
|
+
/**
|
|
1368
|
+
* Pallet `Currencies`'s constants
|
|
1369
|
+
**/
|
|
1370
|
+
currencies: {
|
|
1371
|
+
reserveAccount: AccountId32;
|
|
1372
|
+
getNativeCurrencyId: number;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Generic pallet constant
|
|
1376
|
+
**/
|
|
1377
|
+
[name: string]: any;
|
|
1378
|
+
};
|
|
1379
|
+
/**
|
|
1380
|
+
* Pallet `Vesting`'s constants
|
|
1381
|
+
**/
|
|
1382
|
+
vesting: {
|
|
1383
|
+
/**
|
|
1384
|
+
* The minimum amount transferred to call `vested_transfer`.
|
|
1385
|
+
**/
|
|
1386
|
+
minVestedTransfer: bigint;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Generic pallet constant
|
|
1390
|
+
**/
|
|
1391
|
+
[name: string]: any;
|
|
1392
|
+
};
|
|
1393
|
+
/**
|
|
1394
|
+
* Pallet `EVM`'s constants
|
|
1395
|
+
**/
|
|
1396
|
+
evm: {
|
|
1397
|
+
/**
|
|
1398
|
+
* Generic pallet constant
|
|
1399
|
+
**/
|
|
1400
|
+
[name: string]: any;
|
|
1401
|
+
};
|
|
1402
|
+
/**
|
|
1403
|
+
* Pallet `EVMChainId`'s constants
|
|
1404
|
+
**/
|
|
1405
|
+
evmChainId: {
|
|
1406
|
+
/**
|
|
1407
|
+
* Generic pallet constant
|
|
1408
|
+
**/
|
|
1409
|
+
[name: string]: any;
|
|
1410
|
+
};
|
|
1411
|
+
/**
|
|
1412
|
+
* Pallet `Ethereum`'s constants
|
|
1413
|
+
**/
|
|
1414
|
+
ethereum: {
|
|
1415
|
+
/**
|
|
1416
|
+
* Generic pallet constant
|
|
1417
|
+
**/
|
|
1418
|
+
[name: string]: any;
|
|
1419
|
+
};
|
|
1420
|
+
/**
|
|
1421
|
+
* Pallet `EVMAccounts`'s constants
|
|
1422
|
+
**/
|
|
1423
|
+
evmAccounts: {
|
|
1424
|
+
/**
|
|
1425
|
+
* Fee multiplier for the binding of addresses.
|
|
1426
|
+
**/
|
|
1427
|
+
feeMultiplier: number;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Generic pallet constant
|
|
1431
|
+
**/
|
|
1432
|
+
[name: string]: any;
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* Pallet `DynamicEvmFee`'s constants
|
|
1436
|
+
**/
|
|
1437
|
+
dynamicEvmFee: {
|
|
1438
|
+
/**
|
|
1439
|
+
* WETH Asset Id
|
|
1440
|
+
**/
|
|
1441
|
+
wethAssetId: number;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Generic pallet constant
|
|
1445
|
+
**/
|
|
1446
|
+
[name: string]: any;
|
|
1447
|
+
};
|
|
1448
|
+
/**
|
|
1449
|
+
* Pallet `XYKLiquidityMining`'s constants
|
|
1450
|
+
**/
|
|
1451
|
+
xykLiquidityMining: {
|
|
1452
|
+
/**
|
|
1453
|
+
* NFT collection id for liquidity mining's deposit nfts.
|
|
1454
|
+
**/
|
|
1455
|
+
nftCollectionId: bigint;
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* Generic pallet constant
|
|
1459
|
+
**/
|
|
1460
|
+
[name: string]: any;
|
|
1461
|
+
};
|
|
1462
|
+
/**
|
|
1463
|
+
* Pallet `XYKWarehouseLM`'s constants
|
|
1464
|
+
**/
|
|
1465
|
+
xykWarehouseLM: {
|
|
1466
|
+
/**
|
|
1467
|
+
* Pallet id.
|
|
1468
|
+
**/
|
|
1469
|
+
palletId: FrameSupportPalletId;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Treasury account to receive claimed rewards lower than ED
|
|
1473
|
+
**/
|
|
1474
|
+
treasuryAccountId: AccountId32;
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Minimum total rewards to distribute from global farm during liquidity mining.
|
|
1478
|
+
**/
|
|
1479
|
+
minTotalFarmRewards: bigint;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Minimum number of periods to run liquidity mining program.
|
|
1483
|
+
**/
|
|
1484
|
+
minPlannedYieldingPeriods: number;
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Maximum number of yield farms same LP shares can be re/deposited into. This value always
|
|
1488
|
+
* MUST BE >= 1.
|
|
1489
|
+
**/
|
|
1490
|
+
maxFarmEntriesPerDeposit: number;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Max number of yield farms can exist in global farm. This includes all farms in the
|
|
1494
|
+
* storage(active, stopped, terminated).
|
|
1495
|
+
**/
|
|
1496
|
+
maxYieldFarmsPerGlobalFarm: number;
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* Generic pallet constant
|
|
1500
|
+
**/
|
|
1501
|
+
[name: string]: any;
|
|
1502
|
+
};
|
|
1503
|
+
/**
|
|
1504
|
+
* Pallet `RelayChainInfo`'s constants
|
|
1505
|
+
**/
|
|
1506
|
+
relayChainInfo: {
|
|
1507
|
+
/**
|
|
1508
|
+
* Generic pallet constant
|
|
1509
|
+
**/
|
|
1510
|
+
[name: string]: any;
|
|
1511
|
+
};
|
|
1512
|
+
/**
|
|
1513
|
+
* Pallet `DCA`'s constants
|
|
1514
|
+
**/
|
|
1515
|
+
dca: {
|
|
1516
|
+
/**
|
|
1517
|
+
* Max price difference allowed between blocks
|
|
1518
|
+
**/
|
|
1519
|
+
maxPriceDifferenceBetweenBlocks: Permill;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Max configurable price difference allowed between blocks
|
|
1523
|
+
**/
|
|
1524
|
+
maxConfigurablePriceDifferenceBetweenBlocks: Permill;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* The number of max schedules to be executed per block
|
|
1528
|
+
**/
|
|
1529
|
+
maxSchedulePerBlock: number;
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* The number of max retries in case of trade limit error
|
|
1533
|
+
**/
|
|
1534
|
+
maxNumberOfRetriesOnError: number;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Minimal period between executions
|
|
1538
|
+
**/
|
|
1539
|
+
minimalPeriod: number;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Chance of the random rescheduling
|
|
1543
|
+
**/
|
|
1544
|
+
bumpChance: Percent;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Minimum trading limit for a single trade
|
|
1548
|
+
**/
|
|
1549
|
+
minimumTradingLimit: bigint;
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Native Asset Id
|
|
1553
|
+
**/
|
|
1554
|
+
nativeAssetId: number;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Polkadot Native Asset Id (DOT)
|
|
1558
|
+
**/
|
|
1559
|
+
polkadotNativeAssetId: number;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Minimum budget to be able to schedule a DCA, specified in native currency
|
|
1563
|
+
**/
|
|
1564
|
+
minBudgetInNativeCurrency: bigint;
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
* The fee receiver for transaction fees
|
|
1568
|
+
**/
|
|
1569
|
+
feeReceiver: AccountId32;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Named reserve identifier to store named reserves for orders of each users
|
|
1573
|
+
**/
|
|
1574
|
+
namedReserveId: FixedBytes<8>;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Generic pallet constant
|
|
1578
|
+
**/
|
|
1579
|
+
[name: string]: any;
|
|
1580
|
+
};
|
|
1581
|
+
/**
|
|
1582
|
+
* Pallet `Scheduler`'s constants
|
|
1583
|
+
**/
|
|
1584
|
+
scheduler: {
|
|
1585
|
+
/**
|
|
1586
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
1587
|
+
**/
|
|
1588
|
+
maximumWeight: SpWeightsWeightV2Weight;
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
1592
|
+
*
|
|
1593
|
+
* NOTE:
|
|
1594
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
1595
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
1596
|
+
**/
|
|
1597
|
+
maxScheduledPerBlock: number;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* Generic pallet constant
|
|
1601
|
+
**/
|
|
1602
|
+
[name: string]: any;
|
|
1603
|
+
};
|
|
1604
|
+
/**
|
|
1605
|
+
* Pallet `ParachainSystem`'s constants
|
|
1606
|
+
**/
|
|
1607
|
+
parachainSystem: {
|
|
1608
|
+
/**
|
|
1609
|
+
* Returns the parachain ID we are running with.
|
|
1610
|
+
**/
|
|
1611
|
+
selfParaId: PolkadotParachainPrimitivesPrimitivesId;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Generic pallet constant
|
|
1615
|
+
**/
|
|
1616
|
+
[name: string]: any;
|
|
1617
|
+
};
|
|
1618
|
+
/**
|
|
1619
|
+
* Pallet `ParachainInfo`'s constants
|
|
1620
|
+
**/
|
|
1621
|
+
parachainInfo: {
|
|
1622
|
+
/**
|
|
1623
|
+
* Generic pallet constant
|
|
1624
|
+
**/
|
|
1625
|
+
[name: string]: any;
|
|
1626
|
+
};
|
|
1627
|
+
/**
|
|
1628
|
+
* Pallet `PolkadotXcm`'s constants
|
|
1629
|
+
**/
|
|
1630
|
+
polkadotXcm: {
|
|
1631
|
+
/**
|
|
1632
|
+
* Generic pallet constant
|
|
1633
|
+
**/
|
|
1634
|
+
[name: string]: any;
|
|
1635
|
+
};
|
|
1636
|
+
/**
|
|
1637
|
+
* Pallet `CumulusXcm`'s constants
|
|
1638
|
+
**/
|
|
1639
|
+
cumulusXcm: {
|
|
1640
|
+
/**
|
|
1641
|
+
* Generic pallet constant
|
|
1642
|
+
**/
|
|
1643
|
+
[name: string]: any;
|
|
1644
|
+
};
|
|
1645
|
+
/**
|
|
1646
|
+
* Pallet `XcmpQueue`'s constants
|
|
1647
|
+
**/
|
|
1648
|
+
xcmpQueue: {
|
|
1649
|
+
/**
|
|
1650
|
+
* The maximum number of inbound XCMP channels that can be suspended simultaneously.
|
|
1651
|
+
*
|
|
1652
|
+
* Any further channel suspensions will fail and messages may get dropped without further
|
|
1653
|
+
* notice. Choosing a high value (1000) is okay; the trade-off that is described in
|
|
1654
|
+
* [`InboundXcmpSuspended`] still applies at that scale.
|
|
1655
|
+
**/
|
|
1656
|
+
maxInboundSuspended: number;
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* Maximal number of outbound XCMP channels that can have messages queued at the same time.
|
|
1660
|
+
*
|
|
1661
|
+
* If this is reached, then no further messages can be sent to channels that do not yet
|
|
1662
|
+
* have a message queued. This should be set to the expected maximum of outbound channels
|
|
1663
|
+
* which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
|
|
1664
|
+
* since otherwise the congestion control protocol will not work as intended and messages
|
|
1665
|
+
* may be dropped. This value increases the PoV and should therefore not be picked too
|
|
1666
|
+
* high. Governance needs to pay attention to not open more channels than this value.
|
|
1667
|
+
**/
|
|
1668
|
+
maxActiveOutboundChannels: number;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* The maximal page size for HRMP message pages.
|
|
1672
|
+
*
|
|
1673
|
+
* A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
|
|
1674
|
+
* benchmarking. The limit for the size of a message is slightly below this, since some
|
|
1675
|
+
* overhead is incurred for encoding the format.
|
|
1676
|
+
**/
|
|
1677
|
+
maxPageSize: number;
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* Generic pallet constant
|
|
1681
|
+
**/
|
|
1682
|
+
[name: string]: any;
|
|
1683
|
+
};
|
|
1684
|
+
/**
|
|
1685
|
+
* Pallet `MessageQueue`'s constants
|
|
1686
|
+
**/
|
|
1687
|
+
messageQueue: {
|
|
1688
|
+
/**
|
|
1689
|
+
* The size of the page; this implies the maximum message size which can be sent.
|
|
1690
|
+
*
|
|
1691
|
+
* A good value depends on the expected message sizes, their weights, the weight that is
|
|
1692
|
+
* available for processing them and the maximal needed message size. The maximal message
|
|
1693
|
+
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
|
|
1694
|
+
**/
|
|
1695
|
+
heapSize: number;
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
|
|
1699
|
+
* can happen. Once there are more stale pages than this, then historical pages may be
|
|
1700
|
+
* dropped, even if they contain unprocessed overweight messages.
|
|
1701
|
+
**/
|
|
1702
|
+
maxStale: number;
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* The amount of weight (if any) which should be provided to the message queue for
|
|
1706
|
+
* servicing enqueued items `on_initialize`.
|
|
1707
|
+
*
|
|
1708
|
+
* This may be legitimately `None` in the case that you will call
|
|
1709
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
1710
|
+
* it run in `on_idle`.
|
|
1711
|
+
**/
|
|
1712
|
+
serviceWeight: SpWeightsWeightV2Weight | undefined;
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
1716
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
1717
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
1718
|
+
*
|
|
1719
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
1720
|
+
**/
|
|
1721
|
+
idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Generic pallet constant
|
|
1725
|
+
**/
|
|
1726
|
+
[name: string]: any;
|
|
1727
|
+
};
|
|
1728
|
+
/**
|
|
1729
|
+
* Pallet `OrmlXcm`'s constants
|
|
1730
|
+
**/
|
|
1731
|
+
ormlXcm: {
|
|
1732
|
+
/**
|
|
1733
|
+
* Generic pallet constant
|
|
1734
|
+
**/
|
|
1735
|
+
[name: string]: any;
|
|
1736
|
+
};
|
|
1737
|
+
/**
|
|
1738
|
+
* Pallet `XTokens`'s constants
|
|
1739
|
+
**/
|
|
1740
|
+
xTokens: {
|
|
1741
|
+
/**
|
|
1742
|
+
* Self chain location.
|
|
1743
|
+
**/
|
|
1744
|
+
selfLocation: StagingXcmV4Location;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Base XCM weight.
|
|
1748
|
+
*
|
|
1749
|
+
* The actually weight for an XCM message is `T::BaseXcmWeight +
|
|
1750
|
+
* T::Weigher::weight(&msg)`.
|
|
1751
|
+
**/
|
|
1752
|
+
baseXcmWeight: SpWeightsWeightV2Weight;
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* The id of the RateLimiter.
|
|
1756
|
+
**/
|
|
1757
|
+
rateLimiterId: [];
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* Generic pallet constant
|
|
1761
|
+
**/
|
|
1762
|
+
[name: string]: any;
|
|
1763
|
+
};
|
|
1764
|
+
/**
|
|
1765
|
+
* Pallet `UnknownTokens`'s constants
|
|
1766
|
+
**/
|
|
1767
|
+
unknownTokens: {
|
|
1768
|
+
/**
|
|
1769
|
+
* Generic pallet constant
|
|
1770
|
+
**/
|
|
1771
|
+
[name: string]: any;
|
|
1772
|
+
};
|
|
1773
|
+
/**
|
|
1774
|
+
* Pallet `Authorship`'s constants
|
|
1775
|
+
**/
|
|
1776
|
+
authorship: {
|
|
1777
|
+
/**
|
|
1778
|
+
* Generic pallet constant
|
|
1779
|
+
**/
|
|
1780
|
+
[name: string]: any;
|
|
1781
|
+
};
|
|
1782
|
+
/**
|
|
1783
|
+
* Pallet `CollatorSelection`'s constants
|
|
1784
|
+
**/
|
|
1785
|
+
collatorSelection: {
|
|
1786
|
+
/**
|
|
1787
|
+
* Generic pallet constant
|
|
1788
|
+
**/
|
|
1789
|
+
[name: string]: any;
|
|
1790
|
+
};
|
|
1791
|
+
/**
|
|
1792
|
+
* Pallet `Session`'s constants
|
|
1793
|
+
**/
|
|
1794
|
+
session: {
|
|
1795
|
+
/**
|
|
1796
|
+
* Generic pallet constant
|
|
1797
|
+
**/
|
|
1798
|
+
[name: string]: any;
|
|
1799
|
+
};
|
|
1800
|
+
/**
|
|
1801
|
+
* Pallet `Aura`'s constants
|
|
1802
|
+
**/
|
|
1803
|
+
aura: {
|
|
1804
|
+
/**
|
|
1805
|
+
* The slot duration Aura should run with, expressed in milliseconds.
|
|
1806
|
+
* The effective value of this type should not change while the chain is running.
|
|
1807
|
+
*
|
|
1808
|
+
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
1809
|
+
**/
|
|
1810
|
+
slotDuration: bigint;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Generic pallet constant
|
|
1814
|
+
**/
|
|
1815
|
+
[name: string]: any;
|
|
1816
|
+
};
|
|
1817
|
+
/**
|
|
1818
|
+
* Pallet `AuraExt`'s constants
|
|
1819
|
+
**/
|
|
1820
|
+
auraExt: {
|
|
1821
|
+
/**
|
|
1822
|
+
* Generic pallet constant
|
|
1823
|
+
**/
|
|
1824
|
+
[name: string]: any;
|
|
1825
|
+
};
|
|
1826
|
+
/**
|
|
1827
|
+
* Pallet `EmaOracle`'s constants
|
|
1828
|
+
**/
|
|
1829
|
+
emaOracle: {
|
|
1830
|
+
/**
|
|
1831
|
+
* Maximum allowed percentage difference for bifrost oracle price update
|
|
1832
|
+
**/
|
|
1833
|
+
maxAllowedPriceDifference: Permill;
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Maximum number of unique oracle entries expected in one block.
|
|
1837
|
+
**/
|
|
1838
|
+
maxUniqueEntries: number;
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Generic pallet constant
|
|
1842
|
+
**/
|
|
1843
|
+
[name: string]: any;
|
|
1844
|
+
};
|
|
1845
|
+
/**
|
|
1846
|
+
* Pallet `Broadcast`'s constants
|
|
1847
|
+
**/
|
|
1848
|
+
broadcast: {
|
|
1849
|
+
/**
|
|
1850
|
+
* Generic pallet constant
|
|
1851
|
+
**/
|
|
1852
|
+
[name: string]: any;
|
|
1853
|
+
};
|
|
1854
|
+
}
|