@galacticcouncil/descriptors 1.1.1 → 1.3.0-pr169-f6a2e2d
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/build/common-types.d.ts +6784 -748
- package/build/descriptors-K5JMSMTY.mjs +27 -0
- package/build/hydration.d.ts +3104 -90
- package/build/hydration_metadata-R2ASQUSJ.mjs +6 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +22 -4
- package/build/index.mjs +22 -4
- package/build/metadataTypes-NPT7EASO.mjs +6 -0
- package/build/metadataTypes.d.ts +1 -1
- package/package.json +1 -1
- package/build/descriptors-EQZCHQZV.mjs +0 -27
- package/build/hydration_metadata-GU77SOMT.mjs +0 -6
- package/build/metadataTypes-FLIXV2CP.mjs +0 -6
package/build/hydration.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StorageDescriptor, PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeBinary, Binary, FixedSizeArray } from "polkadot-api";
|
|
2
|
-
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q,
|
|
2
|
+
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q, I5ugnv0dol8v8t, I1ksaufim9dq1c, Ielgh4t8o7rcvt, I9jd27rnpm8ttv, Ibn3i0ad6beo5l, I1p5pqg6bllgtl, I4ojmnsk1dchql, Iesq88051ch8ht, Ic02kut0350gb0, I6ouflveob4eli, Id32h28hjj1tch, Ifn6q3equiq9qi, Ifmar1ir5rft6l, I1os9h4ivict7u, In7a38730s6qs, If15el53dd76v9, I9s0ave7t0vnrk, Ic6nglu2db2c36, Ie5fbn0f5capo3, Ia9ai1mp1viqjd, I4q47u65qosg7e, Icbccs0ug47ilf, I11jcgems8sdco, Ievca65alkkho9, I2qkf9i0e8mf1f, Ib0voua2mn0e9p, I2lu1qfhumniu5, Ii64qoo6q5lth, I2pi935s6uqbh, Ib9aiguc778ujf, If1007933akv96, Ifmc9boeeia623, Ibplkiqg5rvr3e, Icnmrtlo128skq, Icojqvn3afk41n, I4g15ko4u63fja, I8rbu1vdc38cnp, Ick2k1hvh0bm22, I4e4rvm2fqc561, XcmVersionedLocation, XcmVersionedXcm, Id2luorng6dtg7, I95g6i7ilua7lq, I35p85j063s0il, Id5qsstfl1fkb3, I3ii6nera7pkr8 } from "./common-types";
|
|
3
3
|
type AnonymousEnum<T extends {}> = T & {
|
|
4
4
|
__anonymous: true;
|
|
5
5
|
};
|
|
@@ -41,6 +41,20 @@ type IStorage = {
|
|
|
41
41
|
*/
|
|
42
42
|
HubAssetTradability: StorageDescriptor<[], number, false, never>;
|
|
43
43
|
};
|
|
44
|
+
OmnipoolWarehouseLM: {
|
|
45
|
+
/**
|
|
46
|
+
|
|
47
|
+
*/
|
|
48
|
+
GlobalFarm: StorageDescriptor<[Key: number], Anonymize<I5ugnv0dol8v8t>, true, never>;
|
|
49
|
+
/**
|
|
50
|
+
* Yield farm details.
|
|
51
|
+
*/
|
|
52
|
+
YieldFarm: StorageDescriptor<Anonymize<Ielgh4t8o7rcvt>, Anonymize<I1ksaufim9dq1c>, true, never>;
|
|
53
|
+
/**
|
|
54
|
+
* Active(farms able to receive LP shares deposits) yield farms.
|
|
55
|
+
*/
|
|
56
|
+
ActiveYieldFarm: StorageDescriptor<Anonymize<I9jd27rnpm8ttv>, number, true, never>;
|
|
57
|
+
};
|
|
44
58
|
DynamicFees: {
|
|
45
59
|
/**
|
|
46
60
|
* Stores last calculated fee of an asset and block number in which it was changed..
|
|
@@ -92,6 +106,20 @@ type IStorage = {
|
|
|
92
106
|
*/
|
|
93
107
|
Accounts: StorageDescriptor<Anonymize<I6ouflveob4eli>, Anonymize<Ic02kut0350gb0>, false, never>;
|
|
94
108
|
};
|
|
109
|
+
XYKWarehouseLM: {
|
|
110
|
+
/**
|
|
111
|
+
|
|
112
|
+
*/
|
|
113
|
+
GlobalFarm: StorageDescriptor<[Key: number], Anonymize<I5ugnv0dol8v8t>, true, never>;
|
|
114
|
+
/**
|
|
115
|
+
* Yield farm details.
|
|
116
|
+
*/
|
|
117
|
+
YieldFarm: StorageDescriptor<Anonymize<Id32h28hjj1tch>, Anonymize<I1ksaufim9dq1c>, true, never>;
|
|
118
|
+
/**
|
|
119
|
+
* Active(farms able to receive LP shares deposits) yield farms.
|
|
120
|
+
*/
|
|
121
|
+
ActiveYieldFarm: StorageDescriptor<Anonymize<I6ouflveob4eli>, number, true, never>;
|
|
122
|
+
};
|
|
95
123
|
ParachainSystem: {
|
|
96
124
|
/**
|
|
97
125
|
* The [`PersistedValidationData`] set for this block.
|
|
@@ -100,8 +128,42 @@ type IStorage = {
|
|
|
100
128
|
*/
|
|
101
129
|
ValidationData: StorageDescriptor<[], Anonymize<Ifn6q3equiq9qi>, true, never>;
|
|
102
130
|
};
|
|
131
|
+
EmaOracle: {
|
|
132
|
+
/**
|
|
133
|
+
* Oracle storage keyed by data source, involved asset ids and the period length of the oracle.
|
|
134
|
+
*
|
|
135
|
+
* Stores the data entry as well as the block number when the oracle was first initialized.
|
|
136
|
+
*/
|
|
137
|
+
Oracles: StorageDescriptor<Anonymize<I1os9h4ivict7u>, Anonymize<Ifmar1ir5rft6l>, true, never>;
|
|
138
|
+
};
|
|
103
139
|
};
|
|
104
140
|
type ICalls = {
|
|
141
|
+
Dispatcher: {
|
|
142
|
+
/**
|
|
143
|
+
|
|
144
|
+
*/
|
|
145
|
+
dispatch_as_treasury: TxDescriptor<Anonymize<I4q47u65qosg7e>>;
|
|
146
|
+
/**
|
|
147
|
+
|
|
148
|
+
*/
|
|
149
|
+
dispatch_as_aave_manager: TxDescriptor<Anonymize<I4q47u65qosg7e>>;
|
|
150
|
+
/**
|
|
151
|
+
* Sets the Aave manager account to be used as origin for dispatching calls.
|
|
152
|
+
*
|
|
153
|
+
* This doesn't actually changes any ACL in the pool.
|
|
154
|
+
*
|
|
155
|
+
* This is intented to be mainly used in testnet environments, where the manager account
|
|
156
|
+
* can be different.
|
|
157
|
+
*/
|
|
158
|
+
note_aave_manager: TxDescriptor<Anonymize<Icbccs0ug47ilf>>;
|
|
159
|
+
/**
|
|
160
|
+
* Dispatch a call with extra gas.
|
|
161
|
+
*
|
|
162
|
+
* This allows executing calls with additional weight (gas) limit.
|
|
163
|
+
* The extra gas is not refunded, even if not used.
|
|
164
|
+
*/
|
|
165
|
+
dispatch_with_extra_gas: TxDescriptor<Anonymize<I11jcgems8sdco>>;
|
|
166
|
+
};
|
|
105
167
|
Omnipool: {
|
|
106
168
|
/**
|
|
107
169
|
* Execute a swap of `asset_in` for `asset_out`.
|
|
@@ -195,6 +257,50 @@ type ICalls = {
|
|
|
195
257
|
*/
|
|
196
258
|
sell_all: TxDescriptor<Anonymize<Ii64qoo6q5lth>>;
|
|
197
259
|
};
|
|
260
|
+
DCA: {
|
|
261
|
+
/**
|
|
262
|
+
* Creates a new DCA (Dollar-Cost Averaging) schedule and plans the next execution
|
|
263
|
+
* for the specified block.
|
|
264
|
+
*
|
|
265
|
+
* If the block is not specified, the execution is planned for the next block.
|
|
266
|
+
* If the given block is full, the execution will be planned in the subsequent block.
|
|
267
|
+
*
|
|
268
|
+
* Once the schedule is created, the specified `total_amount` will be reserved for DCA.
|
|
269
|
+
* The reservation currency will be the `amount_in` currency of the order.
|
|
270
|
+
*
|
|
271
|
+
* Trades are executed as long as there is budget remaining
|
|
272
|
+
* from the initial `total_amount` allocation, unless `total_amount` is 0, then trades
|
|
273
|
+
* are executed until schedule is terminated.
|
|
274
|
+
*
|
|
275
|
+
* If a trade fails due to slippage limit or price stability errors, it will be retried.
|
|
276
|
+
* If the number of retries reaches the maximum allowed,
|
|
277
|
+
* the schedule will be terminated permanently.
|
|
278
|
+
* In the case of a successful trade, the retry counter is reset.
|
|
279
|
+
*
|
|
280
|
+
* Parameters:
|
|
281
|
+
* - `origin`: schedule owner
|
|
282
|
+
* - `schedule`: schedule details
|
|
283
|
+
* - `start_execution_block`: first possible execution block for the schedule
|
|
284
|
+
*
|
|
285
|
+
* Emits `Scheduled` and `ExecutionPlanned` event when successful.
|
|
286
|
+
*
|
|
287
|
+
*/
|
|
288
|
+
schedule: TxDescriptor<Anonymize<I2pi935s6uqbh>>;
|
|
289
|
+
/**
|
|
290
|
+
* Terminates a DCA schedule and remove it completely from the chain.
|
|
291
|
+
*
|
|
292
|
+
* This can be called by both schedule owner or the configured `T::TerminateOrigin`
|
|
293
|
+
*
|
|
294
|
+
* Parameters:
|
|
295
|
+
* - `origin`: schedule owner
|
|
296
|
+
* - `schedule_id`: schedule id
|
|
297
|
+
* - `next_execution_block`: block number where the schedule is planned.
|
|
298
|
+
*
|
|
299
|
+
* Emits `Terminated` event when successful.
|
|
300
|
+
*
|
|
301
|
+
*/
|
|
302
|
+
terminate: TxDescriptor<Anonymize<Ib9aiguc778ujf>>;
|
|
303
|
+
};
|
|
198
304
|
};
|
|
199
305
|
type IEvent = {
|
|
200
306
|
Router: {
|
|
@@ -210,171 +316,3079 @@ type IEvent = {
|
|
|
210
316
|
Log: PlainDescriptor<Anonymize<Ifmc9boeeia623>>;
|
|
211
317
|
};
|
|
212
318
|
};
|
|
213
|
-
type IError = {
|
|
214
|
-
type IConstants = {
|
|
319
|
+
type IError = {
|
|
215
320
|
System: {
|
|
216
321
|
/**
|
|
217
|
-
*
|
|
322
|
+
* The name of specification does not match between the current runtime
|
|
323
|
+
* and the new runtime.
|
|
218
324
|
*/
|
|
219
|
-
|
|
325
|
+
InvalidSpecName: PlainDescriptor<undefined>;
|
|
220
326
|
/**
|
|
221
|
-
* The
|
|
327
|
+
* The specification version is not allowed to decrease between the current runtime
|
|
328
|
+
* and the new runtime.
|
|
222
329
|
*/
|
|
223
|
-
|
|
330
|
+
SpecVersionNeedsToIncrease: PlainDescriptor<undefined>;
|
|
224
331
|
/**
|
|
225
|
-
*
|
|
332
|
+
* Failed to extract the runtime version from the new runtime.
|
|
333
|
+
*
|
|
334
|
+
* Either calling `Core_version` or decoding `RuntimeVersion` failed.
|
|
226
335
|
*/
|
|
227
|
-
|
|
336
|
+
FailedToExtractRuntimeVersion: PlainDescriptor<undefined>;
|
|
228
337
|
/**
|
|
229
|
-
*
|
|
338
|
+
* Suicide called when the account has non-default composite data.
|
|
230
339
|
*/
|
|
231
|
-
|
|
340
|
+
NonDefaultComposite: PlainDescriptor<undefined>;
|
|
232
341
|
/**
|
|
233
|
-
*
|
|
342
|
+
* There is a non-zero reference count preventing the account from being purged.
|
|
234
343
|
*/
|
|
235
|
-
|
|
344
|
+
NonZeroRefCount: PlainDescriptor<undefined>;
|
|
236
345
|
/**
|
|
237
|
-
* The
|
|
238
|
-
*
|
|
239
|
-
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
240
|
-
* that the runtime should know about the prefix in order to make use of it as
|
|
241
|
-
* an identifier of the chain.
|
|
346
|
+
* The origin filter prevent the call to be dispatched.
|
|
242
347
|
*/
|
|
243
|
-
|
|
348
|
+
CallFiltered: PlainDescriptor<undefined>;
|
|
349
|
+
/**
|
|
350
|
+
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
351
|
+
*/
|
|
352
|
+
MultiBlockMigrationsOngoing: PlainDescriptor<undefined>;
|
|
353
|
+
/**
|
|
354
|
+
* No upgrade authorized.
|
|
355
|
+
*/
|
|
356
|
+
NothingAuthorized: PlainDescriptor<undefined>;
|
|
357
|
+
/**
|
|
358
|
+
* The submitted code is not authorized.
|
|
359
|
+
*/
|
|
360
|
+
Unauthorized: PlainDescriptor<undefined>;
|
|
244
361
|
};
|
|
245
|
-
|
|
362
|
+
Balances: {
|
|
246
363
|
/**
|
|
247
|
-
*
|
|
364
|
+
* Vesting balance too high to send value.
|
|
248
365
|
*/
|
|
249
|
-
|
|
366
|
+
VestingBalance: PlainDescriptor<undefined>;
|
|
250
367
|
/**
|
|
251
|
-
*
|
|
368
|
+
* Account liquidity restrictions prevent withdrawal.
|
|
252
369
|
*/
|
|
253
|
-
|
|
370
|
+
LiquidityRestrictions: PlainDescriptor<undefined>;
|
|
254
371
|
/**
|
|
255
|
-
*
|
|
372
|
+
* Balance too low to send value.
|
|
256
373
|
*/
|
|
257
|
-
|
|
374
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
258
375
|
/**
|
|
259
|
-
*
|
|
376
|
+
* Value too low to create account due to existential deposit.
|
|
260
377
|
*/
|
|
261
|
-
|
|
378
|
+
ExistentialDeposit: PlainDescriptor<undefined>;
|
|
262
379
|
/**
|
|
263
|
-
*
|
|
380
|
+
* Transfer/payment would kill account.
|
|
264
381
|
*/
|
|
265
|
-
|
|
382
|
+
Expendability: PlainDescriptor<undefined>;
|
|
266
383
|
/**
|
|
267
|
-
*
|
|
384
|
+
* A vesting schedule already exists for this account.
|
|
268
385
|
*/
|
|
269
|
-
|
|
386
|
+
ExistingVestingSchedule: PlainDescriptor<undefined>;
|
|
270
387
|
/**
|
|
271
|
-
*
|
|
388
|
+
* Beneficiary account must pre-exist.
|
|
272
389
|
*/
|
|
273
|
-
|
|
390
|
+
DeadAccount: PlainDescriptor<undefined>;
|
|
274
391
|
/**
|
|
275
|
-
*
|
|
392
|
+
* Number of named reserves exceed `MaxReserves`.
|
|
276
393
|
*/
|
|
277
|
-
|
|
394
|
+
TooManyReserves: PlainDescriptor<undefined>;
|
|
278
395
|
/**
|
|
279
|
-
|
|
396
|
+
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
|
280
397
|
*/
|
|
281
|
-
|
|
398
|
+
TooManyHolds: PlainDescriptor<undefined>;
|
|
399
|
+
/**
|
|
400
|
+
* Number of freezes exceed `MaxFreezes`.
|
|
401
|
+
*/
|
|
402
|
+
TooManyFreezes: PlainDescriptor<undefined>;
|
|
403
|
+
/**
|
|
404
|
+
* The issuance cannot be modified since it is already deactivated.
|
|
405
|
+
*/
|
|
406
|
+
IssuanceDeactivated: PlainDescriptor<undefined>;
|
|
407
|
+
/**
|
|
408
|
+
* The delta cannot be zero.
|
|
409
|
+
*/
|
|
410
|
+
DeltaZero: PlainDescriptor<undefined>;
|
|
282
411
|
};
|
|
283
|
-
|
|
412
|
+
MultiTransactionPayment: {
|
|
284
413
|
/**
|
|
285
|
-
|
|
414
|
+
* Selected currency is not supported.
|
|
286
415
|
*/
|
|
287
|
-
|
|
416
|
+
UnsupportedCurrency: PlainDescriptor<undefined>;
|
|
288
417
|
/**
|
|
289
|
-
|
|
418
|
+
* Account balance should be non-zero.
|
|
290
419
|
*/
|
|
291
|
-
|
|
420
|
+
ZeroBalance: PlainDescriptor<undefined>;
|
|
421
|
+
/**
|
|
422
|
+
* Currency is already in the list of accepted currencies.
|
|
423
|
+
*/
|
|
424
|
+
AlreadyAccepted: PlainDescriptor<undefined>;
|
|
425
|
+
/**
|
|
426
|
+
* It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design.
|
|
427
|
+
*/
|
|
428
|
+
CoreAssetNotAllowed: PlainDescriptor<undefined>;
|
|
429
|
+
/**
|
|
430
|
+
* Fallback price cannot be zero.
|
|
431
|
+
*/
|
|
432
|
+
ZeroPrice: PlainDescriptor<undefined>;
|
|
433
|
+
/**
|
|
434
|
+
* Fallback price was not found.
|
|
435
|
+
*/
|
|
436
|
+
FallbackPriceNotFound: PlainDescriptor<undefined>;
|
|
437
|
+
/**
|
|
438
|
+
* Math overflow
|
|
439
|
+
*/
|
|
440
|
+
Overflow: PlainDescriptor<undefined>;
|
|
441
|
+
/**
|
|
442
|
+
* It is not allowed to change payment currency of an EVM account.
|
|
443
|
+
*/
|
|
444
|
+
EvmAccountNotAllowed: PlainDescriptor<undefined>;
|
|
445
|
+
/**
|
|
446
|
+
* EVM permit expired.
|
|
447
|
+
*/
|
|
448
|
+
EvmPermitExpired: PlainDescriptor<undefined>;
|
|
449
|
+
/**
|
|
450
|
+
* EVM permit is invalid.
|
|
451
|
+
*/
|
|
452
|
+
EvmPermitInvalid: PlainDescriptor<undefined>;
|
|
453
|
+
/**
|
|
454
|
+
* EVM permit call failed.
|
|
455
|
+
*/
|
|
456
|
+
EvmPermitCallExecutionError: PlainDescriptor<undefined>;
|
|
457
|
+
/**
|
|
458
|
+
* EVM permit call failed.
|
|
459
|
+
*/
|
|
460
|
+
EvmPermitRunnerError: PlainDescriptor<undefined>;
|
|
292
461
|
};
|
|
293
|
-
|
|
462
|
+
Treasury: {
|
|
294
463
|
/**
|
|
295
|
-
*
|
|
464
|
+
* No proposal, bounty or spend at that index.
|
|
296
465
|
*/
|
|
297
|
-
|
|
466
|
+
InvalidIndex: PlainDescriptor<undefined>;
|
|
298
467
|
/**
|
|
299
|
-
*
|
|
468
|
+
* Too many approvals in the queue.
|
|
300
469
|
*/
|
|
301
|
-
|
|
470
|
+
TooManyApprovals: PlainDescriptor<undefined>;
|
|
302
471
|
/**
|
|
303
|
-
*
|
|
472
|
+
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
473
|
+
* amount to be spent.
|
|
304
474
|
*/
|
|
305
|
-
|
|
475
|
+
InsufficientPermission: PlainDescriptor<undefined>;
|
|
476
|
+
/**
|
|
477
|
+
* Proposal has not been approved.
|
|
478
|
+
*/
|
|
479
|
+
ProposalNotApproved: PlainDescriptor<undefined>;
|
|
480
|
+
/**
|
|
481
|
+
* The balance of the asset kind is not convertible to the balance of the native asset.
|
|
482
|
+
*/
|
|
483
|
+
FailedToConvertBalance: PlainDescriptor<undefined>;
|
|
484
|
+
/**
|
|
485
|
+
* The spend has expired and cannot be claimed.
|
|
486
|
+
*/
|
|
487
|
+
SpendExpired: PlainDescriptor<undefined>;
|
|
488
|
+
/**
|
|
489
|
+
* The spend is not yet eligible for payout.
|
|
490
|
+
*/
|
|
491
|
+
EarlyPayout: PlainDescriptor<undefined>;
|
|
492
|
+
/**
|
|
493
|
+
* The payment has already been attempted.
|
|
494
|
+
*/
|
|
495
|
+
AlreadyAttempted: PlainDescriptor<undefined>;
|
|
496
|
+
/**
|
|
497
|
+
* There was some issue with the mechanism of payment.
|
|
498
|
+
*/
|
|
499
|
+
PayoutError: PlainDescriptor<undefined>;
|
|
500
|
+
/**
|
|
501
|
+
* The payout was not yet attempted/claimed.
|
|
502
|
+
*/
|
|
503
|
+
NotAttempted: PlainDescriptor<undefined>;
|
|
504
|
+
/**
|
|
505
|
+
* The payment has neither failed nor succeeded yet.
|
|
506
|
+
*/
|
|
507
|
+
Inconclusive: PlainDescriptor<undefined>;
|
|
306
508
|
};
|
|
307
|
-
|
|
509
|
+
Utility: {
|
|
308
510
|
/**
|
|
309
|
-
*
|
|
511
|
+
* Too many calls batched.
|
|
310
512
|
*/
|
|
311
|
-
|
|
513
|
+
TooManyCalls: PlainDescriptor<undefined>;
|
|
514
|
+
};
|
|
515
|
+
Preimage: {
|
|
312
516
|
/**
|
|
313
|
-
*
|
|
517
|
+
* Preimage is too large to store on-chain.
|
|
314
518
|
*/
|
|
315
|
-
|
|
519
|
+
TooBig: PlainDescriptor<undefined>;
|
|
316
520
|
/**
|
|
317
|
-
*
|
|
521
|
+
* Preimage has already been noted on-chain.
|
|
318
522
|
*/
|
|
319
|
-
|
|
523
|
+
AlreadyNoted: PlainDescriptor<undefined>;
|
|
320
524
|
/**
|
|
321
|
-
*
|
|
525
|
+
* The user is not authorized to perform this action.
|
|
322
526
|
*/
|
|
323
|
-
|
|
527
|
+
NotAuthorized: PlainDescriptor<undefined>;
|
|
324
528
|
/**
|
|
325
|
-
|
|
529
|
+
* The preimage cannot be removed since it has not yet been noted.
|
|
326
530
|
*/
|
|
327
|
-
|
|
531
|
+
NotNoted: PlainDescriptor<undefined>;
|
|
532
|
+
/**
|
|
533
|
+
* A preimage may not be removed when there are outstanding requests.
|
|
534
|
+
*/
|
|
535
|
+
Requested: PlainDescriptor<undefined>;
|
|
536
|
+
/**
|
|
537
|
+
* The preimage request cannot be removed since no outstanding requests exist.
|
|
538
|
+
*/
|
|
539
|
+
NotRequested: PlainDescriptor<undefined>;
|
|
540
|
+
/**
|
|
541
|
+
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
|
542
|
+
*/
|
|
543
|
+
TooMany: PlainDescriptor<undefined>;
|
|
544
|
+
/**
|
|
545
|
+
* Too few hashes were requested to be upgraded (i.e. zero).
|
|
546
|
+
*/
|
|
547
|
+
TooFew: PlainDescriptor<undefined>;
|
|
328
548
|
};
|
|
329
|
-
|
|
549
|
+
Identity: {
|
|
330
550
|
/**
|
|
331
|
-
*
|
|
551
|
+
* Too many subs-accounts.
|
|
332
552
|
*/
|
|
333
|
-
|
|
553
|
+
TooManySubAccounts: PlainDescriptor<undefined>;
|
|
334
554
|
/**
|
|
335
|
-
*
|
|
555
|
+
* Account isn't found.
|
|
336
556
|
*/
|
|
337
|
-
|
|
557
|
+
NotFound: PlainDescriptor<undefined>;
|
|
338
558
|
/**
|
|
339
|
-
*
|
|
559
|
+
* Account isn't named.
|
|
340
560
|
*/
|
|
341
|
-
|
|
561
|
+
NotNamed: PlainDescriptor<undefined>;
|
|
342
562
|
/**
|
|
343
|
-
*
|
|
563
|
+
* Empty index.
|
|
344
564
|
*/
|
|
345
|
-
|
|
565
|
+
EmptyIndex: PlainDescriptor<undefined>;
|
|
346
566
|
/**
|
|
347
|
-
*
|
|
567
|
+
* Fee is changed.
|
|
348
568
|
*/
|
|
349
|
-
|
|
569
|
+
FeeChanged: PlainDescriptor<undefined>;
|
|
350
570
|
/**
|
|
351
|
-
*
|
|
571
|
+
* No identity found.
|
|
352
572
|
*/
|
|
353
|
-
|
|
573
|
+
NoIdentity: PlainDescriptor<undefined>;
|
|
354
574
|
/**
|
|
355
|
-
*
|
|
575
|
+
* Sticky judgement.
|
|
356
576
|
*/
|
|
357
|
-
|
|
577
|
+
StickyJudgement: PlainDescriptor<undefined>;
|
|
578
|
+
/**
|
|
579
|
+
* Judgement given.
|
|
580
|
+
*/
|
|
581
|
+
JudgementGiven: PlainDescriptor<undefined>;
|
|
582
|
+
/**
|
|
583
|
+
* Invalid judgement.
|
|
584
|
+
*/
|
|
585
|
+
InvalidJudgement: PlainDescriptor<undefined>;
|
|
586
|
+
/**
|
|
587
|
+
* The index is invalid.
|
|
588
|
+
*/
|
|
589
|
+
InvalidIndex: PlainDescriptor<undefined>;
|
|
590
|
+
/**
|
|
591
|
+
* The target is invalid.
|
|
592
|
+
*/
|
|
593
|
+
InvalidTarget: PlainDescriptor<undefined>;
|
|
594
|
+
/**
|
|
595
|
+
* Maximum amount of registrars reached. Cannot add any more.
|
|
596
|
+
*/
|
|
597
|
+
TooManyRegistrars: PlainDescriptor<undefined>;
|
|
598
|
+
/**
|
|
599
|
+
* Account ID is already named.
|
|
600
|
+
*/
|
|
601
|
+
AlreadyClaimed: PlainDescriptor<undefined>;
|
|
602
|
+
/**
|
|
603
|
+
* Sender is not a sub-account.
|
|
604
|
+
*/
|
|
605
|
+
NotSub: PlainDescriptor<undefined>;
|
|
606
|
+
/**
|
|
607
|
+
* Sub-account isn't owned by sender.
|
|
608
|
+
*/
|
|
609
|
+
NotOwned: PlainDescriptor<undefined>;
|
|
610
|
+
/**
|
|
611
|
+
* The provided judgement was for a different identity.
|
|
612
|
+
*/
|
|
613
|
+
JudgementForDifferentIdentity: PlainDescriptor<undefined>;
|
|
614
|
+
/**
|
|
615
|
+
* Error that occurs when there is an issue paying for judgement.
|
|
616
|
+
*/
|
|
617
|
+
JudgementPaymentFailed: PlainDescriptor<undefined>;
|
|
618
|
+
/**
|
|
619
|
+
* The provided suffix is too long.
|
|
620
|
+
*/
|
|
621
|
+
InvalidSuffix: PlainDescriptor<undefined>;
|
|
622
|
+
/**
|
|
623
|
+
* The sender does not have permission to issue a username.
|
|
624
|
+
*/
|
|
625
|
+
NotUsernameAuthority: PlainDescriptor<undefined>;
|
|
626
|
+
/**
|
|
627
|
+
* The authority cannot allocate any more usernames.
|
|
628
|
+
*/
|
|
629
|
+
NoAllocation: PlainDescriptor<undefined>;
|
|
630
|
+
/**
|
|
631
|
+
* The signature on a username was not valid.
|
|
632
|
+
*/
|
|
633
|
+
InvalidSignature: PlainDescriptor<undefined>;
|
|
634
|
+
/**
|
|
635
|
+
* Setting this username requires a signature, but none was provided.
|
|
636
|
+
*/
|
|
637
|
+
RequiresSignature: PlainDescriptor<undefined>;
|
|
638
|
+
/**
|
|
639
|
+
* The username does not meet the requirements.
|
|
640
|
+
*/
|
|
641
|
+
InvalidUsername: PlainDescriptor<undefined>;
|
|
642
|
+
/**
|
|
643
|
+
* The username is already taken.
|
|
644
|
+
*/
|
|
645
|
+
UsernameTaken: PlainDescriptor<undefined>;
|
|
646
|
+
/**
|
|
647
|
+
* The requested username does not exist.
|
|
648
|
+
*/
|
|
649
|
+
NoUsername: PlainDescriptor<undefined>;
|
|
650
|
+
/**
|
|
651
|
+
* The username cannot be forcefully removed because it can still be accepted.
|
|
652
|
+
*/
|
|
653
|
+
NotExpired: PlainDescriptor<undefined>;
|
|
358
654
|
};
|
|
359
|
-
|
|
360
|
-
type IViewFns = {};
|
|
361
|
-
type IRuntimeCalls = {
|
|
362
|
-
/**
|
|
363
|
-
|
|
364
|
-
*/
|
|
365
|
-
CurrenciesApi: {
|
|
655
|
+
Democracy: {
|
|
366
656
|
/**
|
|
367
|
-
|
|
657
|
+
* Value too low
|
|
368
658
|
*/
|
|
369
|
-
|
|
659
|
+
ValueLow: PlainDescriptor<undefined>;
|
|
370
660
|
/**
|
|
371
|
-
|
|
661
|
+
* Proposal does not exist
|
|
372
662
|
*/
|
|
373
|
-
|
|
663
|
+
ProposalMissing: PlainDescriptor<undefined>;
|
|
374
664
|
/**
|
|
375
|
-
|
|
665
|
+
* Cannot cancel the same proposal twice
|
|
376
666
|
*/
|
|
377
|
-
|
|
667
|
+
AlreadyCanceled: PlainDescriptor<undefined>;
|
|
668
|
+
/**
|
|
669
|
+
* Proposal already made
|
|
670
|
+
*/
|
|
671
|
+
DuplicateProposal: PlainDescriptor<undefined>;
|
|
672
|
+
/**
|
|
673
|
+
* Proposal still blacklisted
|
|
674
|
+
*/
|
|
675
|
+
ProposalBlacklisted: PlainDescriptor<undefined>;
|
|
676
|
+
/**
|
|
677
|
+
* Next external proposal not simple majority
|
|
678
|
+
*/
|
|
679
|
+
NotSimpleMajority: PlainDescriptor<undefined>;
|
|
680
|
+
/**
|
|
681
|
+
* Invalid hash
|
|
682
|
+
*/
|
|
683
|
+
InvalidHash: PlainDescriptor<undefined>;
|
|
684
|
+
/**
|
|
685
|
+
* No external proposal
|
|
686
|
+
*/
|
|
687
|
+
NoProposal: PlainDescriptor<undefined>;
|
|
688
|
+
/**
|
|
689
|
+
* Identity may not veto a proposal twice
|
|
690
|
+
*/
|
|
691
|
+
AlreadyVetoed: PlainDescriptor<undefined>;
|
|
692
|
+
/**
|
|
693
|
+
* Vote given for invalid referendum
|
|
694
|
+
*/
|
|
695
|
+
ReferendumInvalid: PlainDescriptor<undefined>;
|
|
696
|
+
/**
|
|
697
|
+
* No proposals waiting
|
|
698
|
+
*/
|
|
699
|
+
NoneWaiting: PlainDescriptor<undefined>;
|
|
700
|
+
/**
|
|
701
|
+
* The given account did not vote on the referendum.
|
|
702
|
+
*/
|
|
703
|
+
NotVoter: PlainDescriptor<undefined>;
|
|
704
|
+
/**
|
|
705
|
+
* The actor has no permission to conduct the action.
|
|
706
|
+
*/
|
|
707
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
708
|
+
/**
|
|
709
|
+
* The account is already delegating.
|
|
710
|
+
*/
|
|
711
|
+
AlreadyDelegating: PlainDescriptor<undefined>;
|
|
712
|
+
/**
|
|
713
|
+
* Too high a balance was provided that the account cannot afford.
|
|
714
|
+
*/
|
|
715
|
+
InsufficientFunds: PlainDescriptor<undefined>;
|
|
716
|
+
/**
|
|
717
|
+
* The account is not currently delegating.
|
|
718
|
+
*/
|
|
719
|
+
NotDelegating: PlainDescriptor<undefined>;
|
|
720
|
+
/**
|
|
721
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
722
|
+
* these are removed, either through `unvote` or `reap_vote`.
|
|
723
|
+
*/
|
|
724
|
+
VotesExist: PlainDescriptor<undefined>;
|
|
725
|
+
/**
|
|
726
|
+
* The instant referendum origin is currently disallowed.
|
|
727
|
+
*/
|
|
728
|
+
InstantNotAllowed: PlainDescriptor<undefined>;
|
|
729
|
+
/**
|
|
730
|
+
* Delegation to oneself makes no sense.
|
|
731
|
+
*/
|
|
732
|
+
Nonsense: PlainDescriptor<undefined>;
|
|
733
|
+
/**
|
|
734
|
+
* Invalid upper bound.
|
|
735
|
+
*/
|
|
736
|
+
WrongUpperBound: PlainDescriptor<undefined>;
|
|
737
|
+
/**
|
|
738
|
+
* Maximum number of votes reached.
|
|
739
|
+
*/
|
|
740
|
+
MaxVotesReached: PlainDescriptor<undefined>;
|
|
741
|
+
/**
|
|
742
|
+
* Maximum number of items reached.
|
|
743
|
+
*/
|
|
744
|
+
TooMany: PlainDescriptor<undefined>;
|
|
745
|
+
/**
|
|
746
|
+
* Voting period too low
|
|
747
|
+
*/
|
|
748
|
+
VotingPeriodLow: PlainDescriptor<undefined>;
|
|
749
|
+
/**
|
|
750
|
+
* The preimage does not exist.
|
|
751
|
+
*/
|
|
752
|
+
PreimageNotExist: PlainDescriptor<undefined>;
|
|
753
|
+
};
|
|
754
|
+
Elections: {
|
|
755
|
+
/**
|
|
756
|
+
* Cannot vote when no candidates or members exist.
|
|
757
|
+
*/
|
|
758
|
+
UnableToVote: PlainDescriptor<undefined>;
|
|
759
|
+
/**
|
|
760
|
+
* Must vote for at least one candidate.
|
|
761
|
+
*/
|
|
762
|
+
NoVotes: PlainDescriptor<undefined>;
|
|
763
|
+
/**
|
|
764
|
+
* Cannot vote more than candidates.
|
|
765
|
+
*/
|
|
766
|
+
TooManyVotes: PlainDescriptor<undefined>;
|
|
767
|
+
/**
|
|
768
|
+
* Cannot vote more than maximum allowed.
|
|
769
|
+
*/
|
|
770
|
+
MaximumVotesExceeded: PlainDescriptor<undefined>;
|
|
771
|
+
/**
|
|
772
|
+
* Cannot vote with stake less than minimum balance.
|
|
773
|
+
*/
|
|
774
|
+
LowBalance: PlainDescriptor<undefined>;
|
|
775
|
+
/**
|
|
776
|
+
* Voter can not pay voting bond.
|
|
777
|
+
*/
|
|
778
|
+
UnableToPayBond: PlainDescriptor<undefined>;
|
|
779
|
+
/**
|
|
780
|
+
* Must be a voter.
|
|
781
|
+
*/
|
|
782
|
+
MustBeVoter: PlainDescriptor<undefined>;
|
|
783
|
+
/**
|
|
784
|
+
* Duplicated candidate submission.
|
|
785
|
+
*/
|
|
786
|
+
DuplicatedCandidate: PlainDescriptor<undefined>;
|
|
787
|
+
/**
|
|
788
|
+
* Too many candidates have been created.
|
|
789
|
+
*/
|
|
790
|
+
TooManyCandidates: PlainDescriptor<undefined>;
|
|
791
|
+
/**
|
|
792
|
+
* Member cannot re-submit candidacy.
|
|
793
|
+
*/
|
|
794
|
+
MemberSubmit: PlainDescriptor<undefined>;
|
|
795
|
+
/**
|
|
796
|
+
* Runner cannot re-submit candidacy.
|
|
797
|
+
*/
|
|
798
|
+
RunnerUpSubmit: PlainDescriptor<undefined>;
|
|
799
|
+
/**
|
|
800
|
+
* Candidate does not have enough funds.
|
|
801
|
+
*/
|
|
802
|
+
InsufficientCandidateFunds: PlainDescriptor<undefined>;
|
|
803
|
+
/**
|
|
804
|
+
* Not a member.
|
|
805
|
+
*/
|
|
806
|
+
NotMember: PlainDescriptor<undefined>;
|
|
807
|
+
/**
|
|
808
|
+
* The provided count of number of candidates is incorrect.
|
|
809
|
+
*/
|
|
810
|
+
InvalidWitnessData: PlainDescriptor<undefined>;
|
|
811
|
+
/**
|
|
812
|
+
* The provided count of number of votes is incorrect.
|
|
813
|
+
*/
|
|
814
|
+
InvalidVoteCount: PlainDescriptor<undefined>;
|
|
815
|
+
/**
|
|
816
|
+
* The renouncing origin presented a wrong `Renouncing` parameter.
|
|
817
|
+
*/
|
|
818
|
+
InvalidRenouncing: PlainDescriptor<undefined>;
|
|
819
|
+
/**
|
|
820
|
+
* Prediction regarding replacement after member removal is wrong.
|
|
821
|
+
*/
|
|
822
|
+
InvalidReplacement: PlainDescriptor<undefined>;
|
|
823
|
+
};
|
|
824
|
+
Council: {
|
|
825
|
+
/**
|
|
826
|
+
* Account is not a member
|
|
827
|
+
*/
|
|
828
|
+
NotMember: PlainDescriptor<undefined>;
|
|
829
|
+
/**
|
|
830
|
+
* Duplicate proposals not allowed
|
|
831
|
+
*/
|
|
832
|
+
DuplicateProposal: PlainDescriptor<undefined>;
|
|
833
|
+
/**
|
|
834
|
+
* Proposal must exist
|
|
835
|
+
*/
|
|
836
|
+
ProposalMissing: PlainDescriptor<undefined>;
|
|
837
|
+
/**
|
|
838
|
+
* Mismatched index
|
|
839
|
+
*/
|
|
840
|
+
WrongIndex: PlainDescriptor<undefined>;
|
|
841
|
+
/**
|
|
842
|
+
* Duplicate vote ignored
|
|
843
|
+
*/
|
|
844
|
+
DuplicateVote: PlainDescriptor<undefined>;
|
|
845
|
+
/**
|
|
846
|
+
* Members are already initialized!
|
|
847
|
+
*/
|
|
848
|
+
AlreadyInitialized: PlainDescriptor<undefined>;
|
|
849
|
+
/**
|
|
850
|
+
* The close call was made too early, before the end of the voting.
|
|
851
|
+
*/
|
|
852
|
+
TooEarly: PlainDescriptor<undefined>;
|
|
853
|
+
/**
|
|
854
|
+
* There can only be a maximum of `MaxProposals` active proposals.
|
|
855
|
+
*/
|
|
856
|
+
TooManyProposals: PlainDescriptor<undefined>;
|
|
857
|
+
/**
|
|
858
|
+
* The given weight bound for the proposal was too low.
|
|
859
|
+
*/
|
|
860
|
+
WrongProposalWeight: PlainDescriptor<undefined>;
|
|
861
|
+
/**
|
|
862
|
+
* The given length bound for the proposal was too low.
|
|
863
|
+
*/
|
|
864
|
+
WrongProposalLength: PlainDescriptor<undefined>;
|
|
865
|
+
/**
|
|
866
|
+
* Prime account is not a member
|
|
867
|
+
*/
|
|
868
|
+
PrimeAccountNotMember: PlainDescriptor<undefined>;
|
|
869
|
+
};
|
|
870
|
+
TechnicalCommittee: {
|
|
871
|
+
/**
|
|
872
|
+
* Account is not a member
|
|
873
|
+
*/
|
|
874
|
+
NotMember: PlainDescriptor<undefined>;
|
|
875
|
+
/**
|
|
876
|
+
* Duplicate proposals not allowed
|
|
877
|
+
*/
|
|
878
|
+
DuplicateProposal: PlainDescriptor<undefined>;
|
|
879
|
+
/**
|
|
880
|
+
* Proposal must exist
|
|
881
|
+
*/
|
|
882
|
+
ProposalMissing: PlainDescriptor<undefined>;
|
|
883
|
+
/**
|
|
884
|
+
* Mismatched index
|
|
885
|
+
*/
|
|
886
|
+
WrongIndex: PlainDescriptor<undefined>;
|
|
887
|
+
/**
|
|
888
|
+
* Duplicate vote ignored
|
|
889
|
+
*/
|
|
890
|
+
DuplicateVote: PlainDescriptor<undefined>;
|
|
891
|
+
/**
|
|
892
|
+
* Members are already initialized!
|
|
893
|
+
*/
|
|
894
|
+
AlreadyInitialized: PlainDescriptor<undefined>;
|
|
895
|
+
/**
|
|
896
|
+
* The close call was made too early, before the end of the voting.
|
|
897
|
+
*/
|
|
898
|
+
TooEarly: PlainDescriptor<undefined>;
|
|
899
|
+
/**
|
|
900
|
+
* There can only be a maximum of `MaxProposals` active proposals.
|
|
901
|
+
*/
|
|
902
|
+
TooManyProposals: PlainDescriptor<undefined>;
|
|
903
|
+
/**
|
|
904
|
+
* The given weight bound for the proposal was too low.
|
|
905
|
+
*/
|
|
906
|
+
WrongProposalWeight: PlainDescriptor<undefined>;
|
|
907
|
+
/**
|
|
908
|
+
* The given length bound for the proposal was too low.
|
|
909
|
+
*/
|
|
910
|
+
WrongProposalLength: PlainDescriptor<undefined>;
|
|
911
|
+
/**
|
|
912
|
+
* Prime account is not a member
|
|
913
|
+
*/
|
|
914
|
+
PrimeAccountNotMember: PlainDescriptor<undefined>;
|
|
915
|
+
};
|
|
916
|
+
Tips: {
|
|
917
|
+
/**
|
|
918
|
+
* The reason given is just too big.
|
|
919
|
+
*/
|
|
920
|
+
ReasonTooBig: PlainDescriptor<undefined>;
|
|
921
|
+
/**
|
|
922
|
+
* The tip was already found/started.
|
|
923
|
+
*/
|
|
924
|
+
AlreadyKnown: PlainDescriptor<undefined>;
|
|
925
|
+
/**
|
|
926
|
+
* The tip hash is unknown.
|
|
927
|
+
*/
|
|
928
|
+
UnknownTip: PlainDescriptor<undefined>;
|
|
929
|
+
/**
|
|
930
|
+
* The tip given was too generous.
|
|
931
|
+
*/
|
|
932
|
+
MaxTipAmountExceeded: PlainDescriptor<undefined>;
|
|
933
|
+
/**
|
|
934
|
+
* The account attempting to retract the tip is not the finder of the tip.
|
|
935
|
+
*/
|
|
936
|
+
NotFinder: PlainDescriptor<undefined>;
|
|
937
|
+
/**
|
|
938
|
+
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
|
939
|
+
*/
|
|
940
|
+
StillOpen: PlainDescriptor<undefined>;
|
|
941
|
+
/**
|
|
942
|
+
* The tip cannot be claimed/closed because it's still in the countdown period.
|
|
943
|
+
*/
|
|
944
|
+
Premature: PlainDescriptor<undefined>;
|
|
945
|
+
};
|
|
946
|
+
Proxy: {
|
|
947
|
+
/**
|
|
948
|
+
* There are too many proxies registered or too many announcements pending.
|
|
949
|
+
*/
|
|
950
|
+
TooMany: PlainDescriptor<undefined>;
|
|
951
|
+
/**
|
|
952
|
+
* Proxy registration not found.
|
|
953
|
+
*/
|
|
954
|
+
NotFound: PlainDescriptor<undefined>;
|
|
955
|
+
/**
|
|
956
|
+
* Sender is not a proxy of the account to be proxied.
|
|
957
|
+
*/
|
|
958
|
+
NotProxy: PlainDescriptor<undefined>;
|
|
959
|
+
/**
|
|
960
|
+
* A call which is incompatible with the proxy type's filter was attempted.
|
|
961
|
+
*/
|
|
962
|
+
Unproxyable: PlainDescriptor<undefined>;
|
|
963
|
+
/**
|
|
964
|
+
* Account is already a proxy.
|
|
965
|
+
*/
|
|
966
|
+
Duplicate: PlainDescriptor<undefined>;
|
|
967
|
+
/**
|
|
968
|
+
* Call may not be made by proxy because it may escalate its privileges.
|
|
969
|
+
*/
|
|
970
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
971
|
+
/**
|
|
972
|
+
* Announcement, if made at all, was made too recently.
|
|
973
|
+
*/
|
|
974
|
+
Unannounced: PlainDescriptor<undefined>;
|
|
975
|
+
/**
|
|
976
|
+
* Cannot add self as proxy.
|
|
977
|
+
*/
|
|
978
|
+
NoSelfProxy: PlainDescriptor<undefined>;
|
|
979
|
+
};
|
|
980
|
+
Multisig: {
|
|
981
|
+
/**
|
|
982
|
+
* Threshold must be 2 or greater.
|
|
983
|
+
*/
|
|
984
|
+
MinimumThreshold: PlainDescriptor<undefined>;
|
|
985
|
+
/**
|
|
986
|
+
* Call is already approved by this signatory.
|
|
987
|
+
*/
|
|
988
|
+
AlreadyApproved: PlainDescriptor<undefined>;
|
|
989
|
+
/**
|
|
990
|
+
* Call doesn't need any (more) approvals.
|
|
991
|
+
*/
|
|
992
|
+
NoApprovalsNeeded: PlainDescriptor<undefined>;
|
|
993
|
+
/**
|
|
994
|
+
* There are too few signatories in the list.
|
|
995
|
+
*/
|
|
996
|
+
TooFewSignatories: PlainDescriptor<undefined>;
|
|
997
|
+
/**
|
|
998
|
+
* There are too many signatories in the list.
|
|
999
|
+
*/
|
|
1000
|
+
TooManySignatories: PlainDescriptor<undefined>;
|
|
1001
|
+
/**
|
|
1002
|
+
* The signatories were provided out of order; they should be ordered.
|
|
1003
|
+
*/
|
|
1004
|
+
SignatoriesOutOfOrder: PlainDescriptor<undefined>;
|
|
1005
|
+
/**
|
|
1006
|
+
* The sender was contained in the other signatories; it shouldn't be.
|
|
1007
|
+
*/
|
|
1008
|
+
SenderInSignatories: PlainDescriptor<undefined>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Multisig operation not found when attempting to cancel.
|
|
1011
|
+
*/
|
|
1012
|
+
NotFound: PlainDescriptor<undefined>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Only the account that originally created the multisig is able to cancel it.
|
|
1015
|
+
*/
|
|
1016
|
+
NotOwner: PlainDescriptor<undefined>;
|
|
1017
|
+
/**
|
|
1018
|
+
* No timepoint was given, yet the multisig operation is already underway.
|
|
1019
|
+
*/
|
|
1020
|
+
NoTimepoint: PlainDescriptor<undefined>;
|
|
1021
|
+
/**
|
|
1022
|
+
* A different timepoint was given to the multisig operation that is underway.
|
|
1023
|
+
*/
|
|
1024
|
+
WrongTimepoint: PlainDescriptor<undefined>;
|
|
1025
|
+
/**
|
|
1026
|
+
* A timepoint was given, yet no multisig operation is underway.
|
|
1027
|
+
*/
|
|
1028
|
+
UnexpectedTimepoint: PlainDescriptor<undefined>;
|
|
1029
|
+
/**
|
|
1030
|
+
* The maximum weight information provided was too low.
|
|
1031
|
+
*/
|
|
1032
|
+
MaxWeightTooLow: PlainDescriptor<undefined>;
|
|
1033
|
+
/**
|
|
1034
|
+
* The data to be stored is already stored.
|
|
1035
|
+
*/
|
|
1036
|
+
AlreadyStored: PlainDescriptor<undefined>;
|
|
1037
|
+
};
|
|
1038
|
+
Uniques: {
|
|
1039
|
+
/**
|
|
1040
|
+
* The signing account has no permission to do the operation.
|
|
1041
|
+
*/
|
|
1042
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1043
|
+
/**
|
|
1044
|
+
* The given item ID is unknown.
|
|
1045
|
+
*/
|
|
1046
|
+
UnknownCollection: PlainDescriptor<undefined>;
|
|
1047
|
+
/**
|
|
1048
|
+
* The item ID has already been used for an item.
|
|
1049
|
+
*/
|
|
1050
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
1051
|
+
/**
|
|
1052
|
+
* The owner turned out to be different to what was expected.
|
|
1053
|
+
*/
|
|
1054
|
+
WrongOwner: PlainDescriptor<undefined>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Invalid witness data given.
|
|
1057
|
+
*/
|
|
1058
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
1059
|
+
/**
|
|
1060
|
+
* The item ID is already taken.
|
|
1061
|
+
*/
|
|
1062
|
+
InUse: PlainDescriptor<undefined>;
|
|
1063
|
+
/**
|
|
1064
|
+
* The item or collection is frozen.
|
|
1065
|
+
*/
|
|
1066
|
+
Frozen: PlainDescriptor<undefined>;
|
|
1067
|
+
/**
|
|
1068
|
+
* The delegate turned out to be different to what was expected.
|
|
1069
|
+
*/
|
|
1070
|
+
WrongDelegate: PlainDescriptor<undefined>;
|
|
1071
|
+
/**
|
|
1072
|
+
* There is no delegate approved.
|
|
1073
|
+
*/
|
|
1074
|
+
NoDelegate: PlainDescriptor<undefined>;
|
|
1075
|
+
/**
|
|
1076
|
+
* No approval exists that would allow the transfer.
|
|
1077
|
+
*/
|
|
1078
|
+
Unapproved: PlainDescriptor<undefined>;
|
|
1079
|
+
/**
|
|
1080
|
+
* The named owner has not signed ownership of the collection is acceptable.
|
|
1081
|
+
*/
|
|
1082
|
+
Unaccepted: PlainDescriptor<undefined>;
|
|
1083
|
+
/**
|
|
1084
|
+
* The item is locked.
|
|
1085
|
+
*/
|
|
1086
|
+
Locked: PlainDescriptor<undefined>;
|
|
1087
|
+
/**
|
|
1088
|
+
* All items have been minted.
|
|
1089
|
+
*/
|
|
1090
|
+
MaxSupplyReached: PlainDescriptor<undefined>;
|
|
1091
|
+
/**
|
|
1092
|
+
* The max supply has already been set.
|
|
1093
|
+
*/
|
|
1094
|
+
MaxSupplyAlreadySet: PlainDescriptor<undefined>;
|
|
1095
|
+
/**
|
|
1096
|
+
* The provided max supply is less to the amount of items a collection already has.
|
|
1097
|
+
*/
|
|
1098
|
+
MaxSupplyTooSmall: PlainDescriptor<undefined>;
|
|
1099
|
+
/**
|
|
1100
|
+
* The given item ID is unknown.
|
|
1101
|
+
*/
|
|
1102
|
+
UnknownItem: PlainDescriptor<undefined>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Item is not for sale.
|
|
1105
|
+
*/
|
|
1106
|
+
NotForSale: PlainDescriptor<undefined>;
|
|
1107
|
+
/**
|
|
1108
|
+
* The provided bid is too low.
|
|
1109
|
+
*/
|
|
1110
|
+
BidTooLow: PlainDescriptor<undefined>;
|
|
1111
|
+
};
|
|
1112
|
+
StateTrieMigration: {
|
|
1113
|
+
/**
|
|
1114
|
+
* Max signed limits not respected.
|
|
1115
|
+
*/
|
|
1116
|
+
MaxSignedLimits: PlainDescriptor<undefined>;
|
|
1117
|
+
/**
|
|
1118
|
+
* A key was longer than the configured maximum.
|
|
1119
|
+
*
|
|
1120
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
1121
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
1122
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
1123
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
1124
|
+
* stored [`crate::Progress::LastKey`].
|
|
1125
|
+
*/
|
|
1126
|
+
KeyTooLong: PlainDescriptor<undefined>;
|
|
1127
|
+
/**
|
|
1128
|
+
* submitter does not have enough funds.
|
|
1129
|
+
*/
|
|
1130
|
+
NotEnoughFunds: PlainDescriptor<undefined>;
|
|
1131
|
+
/**
|
|
1132
|
+
* Bad witness data provided.
|
|
1133
|
+
*/
|
|
1134
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
1135
|
+
/**
|
|
1136
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1137
|
+
*/
|
|
1138
|
+
SignedMigrationNotAllowed: PlainDescriptor<undefined>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Bad child root provided.
|
|
1141
|
+
*/
|
|
1142
|
+
BadChildRoot: PlainDescriptor<undefined>;
|
|
1143
|
+
};
|
|
1144
|
+
ConvictionVoting: {
|
|
1145
|
+
/**
|
|
1146
|
+
* Poll is not ongoing.
|
|
1147
|
+
*/
|
|
1148
|
+
NotOngoing: PlainDescriptor<undefined>;
|
|
1149
|
+
/**
|
|
1150
|
+
* The given account did not vote on the poll.
|
|
1151
|
+
*/
|
|
1152
|
+
NotVoter: PlainDescriptor<undefined>;
|
|
1153
|
+
/**
|
|
1154
|
+
* The actor has no permission to conduct the action.
|
|
1155
|
+
*/
|
|
1156
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1157
|
+
/**
|
|
1158
|
+
* The actor has no permission to conduct the action right now but will do in the future.
|
|
1159
|
+
*/
|
|
1160
|
+
NoPermissionYet: PlainDescriptor<undefined>;
|
|
1161
|
+
/**
|
|
1162
|
+
* The account is already delegating.
|
|
1163
|
+
*/
|
|
1164
|
+
AlreadyDelegating: PlainDescriptor<undefined>;
|
|
1165
|
+
/**
|
|
1166
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
1167
|
+
* these are removed through `remove_vote`.
|
|
1168
|
+
*/
|
|
1169
|
+
AlreadyVoting: PlainDescriptor<undefined>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Too high a balance was provided that the account cannot afford.
|
|
1172
|
+
*/
|
|
1173
|
+
InsufficientFunds: PlainDescriptor<undefined>;
|
|
1174
|
+
/**
|
|
1175
|
+
* The account is not currently delegating.
|
|
1176
|
+
*/
|
|
1177
|
+
NotDelegating: PlainDescriptor<undefined>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Delegation to oneself makes no sense.
|
|
1180
|
+
*/
|
|
1181
|
+
Nonsense: PlainDescriptor<undefined>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Maximum number of votes reached.
|
|
1184
|
+
*/
|
|
1185
|
+
MaxVotesReached: PlainDescriptor<undefined>;
|
|
1186
|
+
/**
|
|
1187
|
+
* The class must be supplied since it is not easily determinable from the state.
|
|
1188
|
+
*/
|
|
1189
|
+
ClassNeeded: PlainDescriptor<undefined>;
|
|
1190
|
+
/**
|
|
1191
|
+
* The class ID supplied is invalid.
|
|
1192
|
+
*/
|
|
1193
|
+
BadClass: PlainDescriptor<undefined>;
|
|
1194
|
+
};
|
|
1195
|
+
Referenda: {
|
|
1196
|
+
/**
|
|
1197
|
+
* Referendum is not ongoing.
|
|
1198
|
+
*/
|
|
1199
|
+
NotOngoing: PlainDescriptor<undefined>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Referendum's decision deposit is already paid.
|
|
1202
|
+
*/
|
|
1203
|
+
HasDeposit: PlainDescriptor<undefined>;
|
|
1204
|
+
/**
|
|
1205
|
+
* The track identifier given was invalid.
|
|
1206
|
+
*/
|
|
1207
|
+
BadTrack: PlainDescriptor<undefined>;
|
|
1208
|
+
/**
|
|
1209
|
+
* There are already a full complement of referenda in progress for this track.
|
|
1210
|
+
*/
|
|
1211
|
+
Full: PlainDescriptor<undefined>;
|
|
1212
|
+
/**
|
|
1213
|
+
* The queue of the track is empty.
|
|
1214
|
+
*/
|
|
1215
|
+
QueueEmpty: PlainDescriptor<undefined>;
|
|
1216
|
+
/**
|
|
1217
|
+
* The referendum index provided is invalid in this context.
|
|
1218
|
+
*/
|
|
1219
|
+
BadReferendum: PlainDescriptor<undefined>;
|
|
1220
|
+
/**
|
|
1221
|
+
* There was nothing to do in the advancement.
|
|
1222
|
+
*/
|
|
1223
|
+
NothingToDo: PlainDescriptor<undefined>;
|
|
1224
|
+
/**
|
|
1225
|
+
* No track exists for the proposal origin.
|
|
1226
|
+
*/
|
|
1227
|
+
NoTrack: PlainDescriptor<undefined>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Any deposit cannot be refunded until after the decision is over.
|
|
1230
|
+
*/
|
|
1231
|
+
Unfinished: PlainDescriptor<undefined>;
|
|
1232
|
+
/**
|
|
1233
|
+
* The deposit refunder is not the depositor.
|
|
1234
|
+
*/
|
|
1235
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1236
|
+
/**
|
|
1237
|
+
* The deposit cannot be refunded since none was made.
|
|
1238
|
+
*/
|
|
1239
|
+
NoDeposit: PlainDescriptor<undefined>;
|
|
1240
|
+
/**
|
|
1241
|
+
* The referendum status is invalid for this operation.
|
|
1242
|
+
*/
|
|
1243
|
+
BadStatus: PlainDescriptor<undefined>;
|
|
1244
|
+
/**
|
|
1245
|
+
* The preimage does not exist.
|
|
1246
|
+
*/
|
|
1247
|
+
PreimageNotExist: PlainDescriptor<undefined>;
|
|
1248
|
+
/**
|
|
1249
|
+
* The preimage is stored with a different length than the one provided.
|
|
1250
|
+
*/
|
|
1251
|
+
PreimageStoredWithDifferentLength: PlainDescriptor<undefined>;
|
|
1252
|
+
};
|
|
1253
|
+
Whitelist: {
|
|
1254
|
+
/**
|
|
1255
|
+
* The preimage of the call hash could not be loaded.
|
|
1256
|
+
*/
|
|
1257
|
+
UnavailablePreImage: PlainDescriptor<undefined>;
|
|
1258
|
+
/**
|
|
1259
|
+
* The call could not be decoded.
|
|
1260
|
+
*/
|
|
1261
|
+
UndecodableCall: PlainDescriptor<undefined>;
|
|
1262
|
+
/**
|
|
1263
|
+
* The weight of the decoded call was higher than the witness.
|
|
1264
|
+
*/
|
|
1265
|
+
InvalidCallWeightWitness: PlainDescriptor<undefined>;
|
|
1266
|
+
/**
|
|
1267
|
+
* The call was not whitelisted.
|
|
1268
|
+
*/
|
|
1269
|
+
CallIsNotWhitelisted: PlainDescriptor<undefined>;
|
|
1270
|
+
/**
|
|
1271
|
+
* The call was already whitelisted; No-Op.
|
|
1272
|
+
*/
|
|
1273
|
+
CallAlreadyWhitelisted: PlainDescriptor<undefined>;
|
|
1274
|
+
};
|
|
1275
|
+
AssetRegistry: {
|
|
1276
|
+
/**
|
|
1277
|
+
* Asset ID is not available. This only happens when it reaches the MAX value of given id type.
|
|
1278
|
+
*/
|
|
1279
|
+
NoIdAvailable: PlainDescriptor<undefined>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Invalid asset name or symbol.
|
|
1282
|
+
*/
|
|
1283
|
+
AssetNotFound: PlainDescriptor<undefined>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Length of name or symbol is less than min. length.
|
|
1286
|
+
*/
|
|
1287
|
+
TooShort: PlainDescriptor<undefined>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Asset's symbol can't contain whitespace characters .
|
|
1290
|
+
*/
|
|
1291
|
+
InvalidSymbol: PlainDescriptor<undefined>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Asset ID is not registered in the asset-registry.
|
|
1294
|
+
*/
|
|
1295
|
+
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Asset is already registered.
|
|
1298
|
+
*/
|
|
1299
|
+
AssetAlreadyRegistered: PlainDescriptor<undefined>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Incorrect number of assets provided to create shared asset.
|
|
1302
|
+
*/
|
|
1303
|
+
InvalidSharedAssetLen: PlainDescriptor<undefined>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Cannot update asset location.
|
|
1306
|
+
*/
|
|
1307
|
+
CannotUpdateLocation: PlainDescriptor<undefined>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Selected asset id is out of reserved range.
|
|
1310
|
+
*/
|
|
1311
|
+
NotInReservedRange: PlainDescriptor<undefined>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Location already registered with different asset.
|
|
1314
|
+
*/
|
|
1315
|
+
LocationAlreadyRegistered: PlainDescriptor<undefined>;
|
|
1316
|
+
/**
|
|
1317
|
+
* Origin is forbidden to set/update value.
|
|
1318
|
+
*/
|
|
1319
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Balance too low.
|
|
1322
|
+
*/
|
|
1323
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1324
|
+
/**
|
|
1325
|
+
* Sufficient assets can't be changed to insufficient.
|
|
1326
|
+
*/
|
|
1327
|
+
ForbiddenSufficiencyChange: PlainDescriptor<undefined>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Asset is already banned.
|
|
1330
|
+
*/
|
|
1331
|
+
AssetAlreadyBanned: PlainDescriptor<undefined>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Asset is not banned.
|
|
1334
|
+
*/
|
|
1335
|
+
AssetNotBanned: PlainDescriptor<undefined>;
|
|
1336
|
+
};
|
|
1337
|
+
Claims: {
|
|
1338
|
+
/**
|
|
1339
|
+
* Ethereum signature is not valid
|
|
1340
|
+
*/
|
|
1341
|
+
InvalidEthereumSignature: PlainDescriptor<undefined>;
|
|
1342
|
+
/**
|
|
1343
|
+
* Claim is not valid
|
|
1344
|
+
*/
|
|
1345
|
+
NoClaimOrAlreadyClaimed: PlainDescriptor<undefined>;
|
|
1346
|
+
/**
|
|
1347
|
+
* Value reached maximum and cannot be incremented further
|
|
1348
|
+
*/
|
|
1349
|
+
BalanceOverflow: PlainDescriptor<undefined>;
|
|
1350
|
+
};
|
|
1351
|
+
Omnipool: {
|
|
1352
|
+
/**
|
|
1353
|
+
* Balance too low
|
|
1354
|
+
*/
|
|
1355
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Asset is already in omnipool
|
|
1358
|
+
*/
|
|
1359
|
+
AssetAlreadyAdded: PlainDescriptor<undefined>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Asset is not in omnipool
|
|
1362
|
+
*/
|
|
1363
|
+
AssetNotFound: PlainDescriptor<undefined>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Failed to add token to Omnipool due to insufficient initial liquidity.
|
|
1366
|
+
*/
|
|
1367
|
+
MissingBalance: PlainDescriptor<undefined>;
|
|
1368
|
+
/**
|
|
1369
|
+
* Invalid initial asset price.
|
|
1370
|
+
*/
|
|
1371
|
+
InvalidInitialAssetPrice: PlainDescriptor<undefined>;
|
|
1372
|
+
/**
|
|
1373
|
+
* Slippage protection - minimum limit has not been reached.
|
|
1374
|
+
*/
|
|
1375
|
+
BuyLimitNotReached: PlainDescriptor<undefined>;
|
|
1376
|
+
/**
|
|
1377
|
+
* Slippage protection - maximum limit has been exceeded.
|
|
1378
|
+
*/
|
|
1379
|
+
SellLimitExceeded: PlainDescriptor<undefined>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Position has not been found.
|
|
1382
|
+
*/
|
|
1383
|
+
PositionNotFound: PlainDescriptor<undefined>;
|
|
1384
|
+
/**
|
|
1385
|
+
* Insufficient shares in position
|
|
1386
|
+
*/
|
|
1387
|
+
InsufficientShares: PlainDescriptor<undefined>;
|
|
1388
|
+
/**
|
|
1389
|
+
* Asset is not allowed to be traded.
|
|
1390
|
+
*/
|
|
1391
|
+
NotAllowed: PlainDescriptor<undefined>;
|
|
1392
|
+
/**
|
|
1393
|
+
* Signed account is not owner of position instance.
|
|
1394
|
+
*/
|
|
1395
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Asset weight cap has been exceeded.
|
|
1398
|
+
*/
|
|
1399
|
+
AssetWeightCapExceeded: PlainDescriptor<undefined>;
|
|
1400
|
+
/**
|
|
1401
|
+
* Asset is not registered in asset registry
|
|
1402
|
+
*/
|
|
1403
|
+
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Provided liquidity is below minimum allowed limit
|
|
1406
|
+
*/
|
|
1407
|
+
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Traded amount is below minimum allowed limit
|
|
1410
|
+
*/
|
|
1411
|
+
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
1412
|
+
/**
|
|
1413
|
+
* Sell or buy with same asset ids is not allowed.
|
|
1414
|
+
*/
|
|
1415
|
+
SameAssetTradeNotAllowed: PlainDescriptor<undefined>;
|
|
1416
|
+
/**
|
|
1417
|
+
* LRNA update after trade results in positive value.
|
|
1418
|
+
*/
|
|
1419
|
+
HubAssetUpdateError: PlainDescriptor<undefined>;
|
|
1420
|
+
/**
|
|
1421
|
+
* Amount of shares provided cannot be 0.
|
|
1422
|
+
*/
|
|
1423
|
+
InvalidSharesAmount: PlainDescriptor<undefined>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Hub asset is only allowed to be sold.
|
|
1426
|
+
*/
|
|
1427
|
+
InvalidHubAssetTradableState: PlainDescriptor<undefined>;
|
|
1428
|
+
/**
|
|
1429
|
+
* Asset is not allowed to be refunded.
|
|
1430
|
+
*/
|
|
1431
|
+
AssetRefundNotAllowed: PlainDescriptor<undefined>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Max fraction of asset to buy has been exceeded.
|
|
1434
|
+
*/
|
|
1435
|
+
MaxOutRatioExceeded: PlainDescriptor<undefined>;
|
|
1436
|
+
/**
|
|
1437
|
+
* Max fraction of asset to sell has been exceeded.
|
|
1438
|
+
*/
|
|
1439
|
+
MaxInRatioExceeded: PlainDescriptor<undefined>;
|
|
1440
|
+
/**
|
|
1441
|
+
* Max allowed price difference has been exceeded.
|
|
1442
|
+
*/
|
|
1443
|
+
PriceDifferenceTooHigh: PlainDescriptor<undefined>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Invalid oracle price - division by zero.
|
|
1446
|
+
*/
|
|
1447
|
+
InvalidOraclePrice: PlainDescriptor<undefined>;
|
|
1448
|
+
/**
|
|
1449
|
+
* Failed to calculate withdrawal fee.
|
|
1450
|
+
*/
|
|
1451
|
+
InvalidWithdrawalFee: PlainDescriptor<undefined>;
|
|
1452
|
+
/**
|
|
1453
|
+
* More than allowed amount of fee has been transferred.
|
|
1454
|
+
*/
|
|
1455
|
+
FeeOverdraft: PlainDescriptor<undefined>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Token cannot be removed from Omnipool due to shares still owned by other users.
|
|
1458
|
+
*/
|
|
1459
|
+
SharesRemaining: PlainDescriptor<undefined>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Token cannot be removed from Omnipool because asset is not frozen.
|
|
1462
|
+
*/
|
|
1463
|
+
AssetNotFrozen: PlainDescriptor<undefined>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Calculated amount out from sell trade is zero.
|
|
1466
|
+
*/
|
|
1467
|
+
ZeroAmountOut: PlainDescriptor<undefined>;
|
|
1468
|
+
/**
|
|
1469
|
+
* Existential deposit of asset is not available.
|
|
1470
|
+
*/
|
|
1471
|
+
ExistentialDepositNotAvailable: PlainDescriptor<undefined>;
|
|
1472
|
+
/**
|
|
1473
|
+
* Slippage protection
|
|
1474
|
+
*/
|
|
1475
|
+
SlippageLimit: PlainDescriptor<undefined>;
|
|
1476
|
+
/**
|
|
1477
|
+
* Extra protocol fee has not been consumed.
|
|
1478
|
+
*/
|
|
1479
|
+
ProtocolFeeNotConsumed: PlainDescriptor<undefined>;
|
|
1480
|
+
};
|
|
1481
|
+
TransactionPause: {
|
|
1482
|
+
/**
|
|
1483
|
+
* can not pause
|
|
1484
|
+
*/
|
|
1485
|
+
CannotPause: PlainDescriptor<undefined>;
|
|
1486
|
+
/**
|
|
1487
|
+
* invalid character encoding
|
|
1488
|
+
*/
|
|
1489
|
+
InvalidCharacter: PlainDescriptor<undefined>;
|
|
1490
|
+
/**
|
|
1491
|
+
* pallet name or function name is too long
|
|
1492
|
+
*/
|
|
1493
|
+
NameTooLong: PlainDescriptor<undefined>;
|
|
1494
|
+
};
|
|
1495
|
+
Duster: {
|
|
1496
|
+
/**
|
|
1497
|
+
* Account is excluded from dusting.
|
|
1498
|
+
*/
|
|
1499
|
+
AccountBlacklisted: PlainDescriptor<undefined>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Account is not present in the non-dustable list.
|
|
1502
|
+
*/
|
|
1503
|
+
AccountNotBlacklisted: PlainDescriptor<undefined>;
|
|
1504
|
+
/**
|
|
1505
|
+
* The balance is zero.
|
|
1506
|
+
*/
|
|
1507
|
+
ZeroBalance: PlainDescriptor<undefined>;
|
|
1508
|
+
/**
|
|
1509
|
+
* The balance is sufficient to keep account open.
|
|
1510
|
+
*/
|
|
1511
|
+
BalanceSufficient: PlainDescriptor<undefined>;
|
|
1512
|
+
/**
|
|
1513
|
+
* Dust account is not set.
|
|
1514
|
+
*/
|
|
1515
|
+
DustAccountNotSet: PlainDescriptor<undefined>;
|
|
1516
|
+
/**
|
|
1517
|
+
* Reserve account is not set.
|
|
1518
|
+
*/
|
|
1519
|
+
ReserveAccountNotSet: PlainDescriptor<undefined>;
|
|
1520
|
+
};
|
|
1521
|
+
OmnipoolWarehouseLM: {
|
|
1522
|
+
/**
|
|
1523
|
+
* Global farm does not exist.
|
|
1524
|
+
*/
|
|
1525
|
+
GlobalFarmNotFound: PlainDescriptor<undefined>;
|
|
1526
|
+
/**
|
|
1527
|
+
* Yield farm does not exist.
|
|
1528
|
+
*/
|
|
1529
|
+
YieldFarmNotFound: PlainDescriptor<undefined>;
|
|
1530
|
+
/**
|
|
1531
|
+
* Multiple claims in the same period is not allowed.
|
|
1532
|
+
*/
|
|
1533
|
+
DoubleClaimInPeriod: PlainDescriptor<undefined>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Liquidity mining is canceled.
|
|
1536
|
+
*/
|
|
1537
|
+
LiquidityMiningCanceled: PlainDescriptor<undefined>;
|
|
1538
|
+
/**
|
|
1539
|
+
* Liquidity mining is not canceled.
|
|
1540
|
+
*/
|
|
1541
|
+
LiquidityMiningIsActive: PlainDescriptor<undefined>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
1544
|
+
*/
|
|
1545
|
+
LiquidityMiningIsNotStopped: PlainDescriptor<undefined>;
|
|
1546
|
+
/**
|
|
1547
|
+
* LP shares amount is not valid.
|
|
1548
|
+
*/
|
|
1549
|
+
InvalidDepositAmount: PlainDescriptor<undefined>;
|
|
1550
|
+
/**
|
|
1551
|
+
* Account is not allowed to perform action.
|
|
1552
|
+
*/
|
|
1553
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Yield farm multiplier can't be 0.
|
|
1556
|
+
*/
|
|
1557
|
+
InvalidMultiplier: PlainDescriptor<undefined>;
|
|
1558
|
+
/**
|
|
1559
|
+
* Yield farm with given `amm_pool_id` already exists in global farm.
|
|
1560
|
+
*/
|
|
1561
|
+
YieldFarmAlreadyExists: PlainDescriptor<undefined>;
|
|
1562
|
+
/**
|
|
1563
|
+
* Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
1564
|
+
*/
|
|
1565
|
+
InvalidInitialRewardPercentage: PlainDescriptor<undefined>;
|
|
1566
|
+
/**
|
|
1567
|
+
* One or more yield farms exist in global farm.
|
|
1568
|
+
*/
|
|
1569
|
+
GlobalFarmIsNotEmpty: PlainDescriptor<undefined>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Farm's `incentivized_asset` is missing in provided asset pair.
|
|
1572
|
+
*/
|
|
1573
|
+
MissingIncentivizedAsset: PlainDescriptor<undefined>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Reward currency balance is not sufficient.
|
|
1576
|
+
*/
|
|
1577
|
+
InsufficientRewardCurrencyBalance: PlainDescriptor<undefined>;
|
|
1578
|
+
/**
|
|
1579
|
+
* Blocks per period can't be 0.
|
|
1580
|
+
*/
|
|
1581
|
+
InvalidBlocksPerPeriod: PlainDescriptor<undefined>;
|
|
1582
|
+
/**
|
|
1583
|
+
* Yield per period can't be 0.
|
|
1584
|
+
*/
|
|
1585
|
+
InvalidYieldPerPeriod: PlainDescriptor<undefined>;
|
|
1586
|
+
/**
|
|
1587
|
+
* Total rewards is less than `MinTotalFarmRewards`.
|
|
1588
|
+
*/
|
|
1589
|
+
InvalidTotalRewards: PlainDescriptor<undefined>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
1592
|
+
*/
|
|
1593
|
+
InvalidPlannedYieldingPeriods: PlainDescriptor<undefined>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Maximum number of locks reached for deposit.
|
|
1596
|
+
*/
|
|
1597
|
+
MaxEntriesPerDeposit: PlainDescriptor<undefined>;
|
|
1598
|
+
/**
|
|
1599
|
+
* Trying to lock LP shares into already locked yield farm.
|
|
1600
|
+
*/
|
|
1601
|
+
DoubleLock: PlainDescriptor<undefined>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Yield farm entry doesn't exist for given deposit.
|
|
1604
|
+
*/
|
|
1605
|
+
YieldFarmEntryNotFound: PlainDescriptor<undefined>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
1608
|
+
* yield farms until some yield farm is not removed from storage.
|
|
1609
|
+
*/
|
|
1610
|
+
GlobalFarmIsFull: PlainDescriptor<undefined>;
|
|
1611
|
+
/**
|
|
1612
|
+
* Invalid min. deposit was set for global farm.
|
|
1613
|
+
*/
|
|
1614
|
+
InvalidMinDeposit: PlainDescriptor<undefined>;
|
|
1615
|
+
/**
|
|
1616
|
+
* Price adjustment multiplier can't be 0.
|
|
1617
|
+
*/
|
|
1618
|
+
InvalidPriceAdjustment: PlainDescriptor<undefined>;
|
|
1619
|
+
/**
|
|
1620
|
+
* Account creation from id failed.
|
|
1621
|
+
*/
|
|
1622
|
+
ErrorGetAccountId: PlainDescriptor<undefined>;
|
|
1623
|
+
/**
|
|
1624
|
+
* Value of deposited shares amount in reward currency is bellow min. limit.
|
|
1625
|
+
*/
|
|
1626
|
+
IncorrectValuedShares: PlainDescriptor<undefined>;
|
|
1627
|
+
/**
|
|
1628
|
+
* `reward_currency` is not registered in asset registry.
|
|
1629
|
+
*/
|
|
1630
|
+
RewardCurrencyNotRegistered: PlainDescriptor<undefined>;
|
|
1631
|
+
/**
|
|
1632
|
+
* `incentivized_asset` is not registered in asset registry.
|
|
1633
|
+
*/
|
|
1634
|
+
IncentivizedAssetNotRegistered: PlainDescriptor<undefined>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1637
|
+
* to protocol maintainers.
|
|
1638
|
+
*/
|
|
1639
|
+
InconsistentState: PlainDescriptor<Anonymize<Ibplkiqg5rvr3e>>;
|
|
1640
|
+
};
|
|
1641
|
+
OmnipoolLiquidityMining: {
|
|
1642
|
+
/**
|
|
1643
|
+
* Asset is not in the omnipool.
|
|
1644
|
+
*/
|
|
1645
|
+
AssetNotFound: PlainDescriptor<undefined>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Signed account is not owner of the deposit.
|
|
1648
|
+
*/
|
|
1649
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
1650
|
+
/**
|
|
1651
|
+
* Rewards to claim are 0.
|
|
1652
|
+
*/
|
|
1653
|
+
ZeroClaimedRewards: PlainDescriptor<undefined>;
|
|
1654
|
+
/**
|
|
1655
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1656
|
+
* to protocol maintainers.
|
|
1657
|
+
*/
|
|
1658
|
+
InconsistentState: PlainDescriptor<Anonymize<Icnmrtlo128skq>>;
|
|
1659
|
+
/**
|
|
1660
|
+
* Oracle could not be found for requested assets.
|
|
1661
|
+
*/
|
|
1662
|
+
OracleNotAvailable: PlainDescriptor<undefined>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Oracle providing `price_adjustment` could not be found for requested assets.
|
|
1665
|
+
*/
|
|
1666
|
+
PriceAdjustmentNotAvailable: PlainDescriptor<undefined>;
|
|
1667
|
+
/**
|
|
1668
|
+
* No farms specified to join
|
|
1669
|
+
*/
|
|
1670
|
+
NoFarmEntriesSpecified: PlainDescriptor<undefined>;
|
|
1671
|
+
};
|
|
1672
|
+
OTC: {
|
|
1673
|
+
/**
|
|
1674
|
+
* Asset does not exist in registry
|
|
1675
|
+
*/
|
|
1676
|
+
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Order cannot be found
|
|
1679
|
+
*/
|
|
1680
|
+
OrderNotFound: PlainDescriptor<undefined>;
|
|
1681
|
+
/**
|
|
1682
|
+
* Size of order ID exceeds the bound
|
|
1683
|
+
*/
|
|
1684
|
+
OrderIdOutOfBound: PlainDescriptor<undefined>;
|
|
1685
|
+
/**
|
|
1686
|
+
* Cannot partially fill an order which is not partially fillable
|
|
1687
|
+
*/
|
|
1688
|
+
OrderNotPartiallyFillable: PlainDescriptor<undefined>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Order amount_in and amount_out must at all times be greater than the existential deposit
|
|
1691
|
+
* for the asset multiplied by the ExistentialDepositMultiplier.
|
|
1692
|
+
* A fill order may not leave behind amounts smaller than this.
|
|
1693
|
+
*/
|
|
1694
|
+
OrderAmountTooSmall: PlainDescriptor<undefined>;
|
|
1695
|
+
/**
|
|
1696
|
+
* Error with math calculations
|
|
1697
|
+
*/
|
|
1698
|
+
MathError: PlainDescriptor<undefined>;
|
|
1699
|
+
/**
|
|
1700
|
+
* The caller does not have permission to complete the action
|
|
1701
|
+
*/
|
|
1702
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
1703
|
+
/**
|
|
1704
|
+
* Reserved amount not sufficient.
|
|
1705
|
+
*/
|
|
1706
|
+
InsufficientReservedAmount: PlainDescriptor<undefined>;
|
|
1707
|
+
};
|
|
1708
|
+
CircuitBreaker: {
|
|
1709
|
+
/**
|
|
1710
|
+
* Invalid value for a limit. Limit must be non-zero.
|
|
1711
|
+
*/
|
|
1712
|
+
InvalidLimitValue: PlainDescriptor<undefined>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Allowed liquidity limit is not stored for asset
|
|
1715
|
+
*/
|
|
1716
|
+
LiquidityLimitNotStoredForAsset: PlainDescriptor<undefined>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Token trade outflow per block has been reached
|
|
1719
|
+
*/
|
|
1720
|
+
TokenOutflowLimitReached: PlainDescriptor<undefined>;
|
|
1721
|
+
/**
|
|
1722
|
+
* Token trade influx per block has been reached
|
|
1723
|
+
*/
|
|
1724
|
+
TokenInfluxLimitReached: PlainDescriptor<undefined>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Maximum pool's liquidity limit per block has been reached
|
|
1727
|
+
*/
|
|
1728
|
+
MaxLiquidityLimitPerBlockReached: PlainDescriptor<undefined>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Asset is not allowed to have a limit
|
|
1731
|
+
*/
|
|
1732
|
+
NotAllowed: PlainDescriptor<undefined>;
|
|
1733
|
+
};
|
|
1734
|
+
Router: {
|
|
1735
|
+
/**
|
|
1736
|
+
* The trading limit has been reached
|
|
1737
|
+
*/
|
|
1738
|
+
TradingLimitReached: PlainDescriptor<undefined>;
|
|
1739
|
+
/**
|
|
1740
|
+
* The the max number of trades limit is reached
|
|
1741
|
+
*/
|
|
1742
|
+
MaxTradesExceeded: PlainDescriptor<undefined>;
|
|
1743
|
+
/**
|
|
1744
|
+
* The AMM pool is not supported for executing trades
|
|
1745
|
+
*/
|
|
1746
|
+
PoolNotSupported: PlainDescriptor<undefined>;
|
|
1747
|
+
/**
|
|
1748
|
+
* The user has not enough balance to execute the trade
|
|
1749
|
+
*/
|
|
1750
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1751
|
+
/**
|
|
1752
|
+
* The calculation of route trade amounts failed in the underlying AMM
|
|
1753
|
+
*/
|
|
1754
|
+
RouteCalculationFailed: PlainDescriptor<undefined>;
|
|
1755
|
+
/**
|
|
1756
|
+
* The route is invalid
|
|
1757
|
+
*/
|
|
1758
|
+
InvalidRoute: PlainDescriptor<undefined>;
|
|
1759
|
+
/**
|
|
1760
|
+
* The route update was not successful
|
|
1761
|
+
*/
|
|
1762
|
+
RouteUpdateIsNotSuccessful: PlainDescriptor<undefined>;
|
|
1763
|
+
/**
|
|
1764
|
+
* Route contains assets that has no oracle data
|
|
1765
|
+
*/
|
|
1766
|
+
RouteHasNoOracle: PlainDescriptor<undefined>;
|
|
1767
|
+
/**
|
|
1768
|
+
* The route execution failed in the underlying AMM
|
|
1769
|
+
*/
|
|
1770
|
+
InvalidRouteExecution: PlainDescriptor<undefined>;
|
|
1771
|
+
/**
|
|
1772
|
+
* Trading same assets is not allowed.
|
|
1773
|
+
*/
|
|
1774
|
+
NotAllowed: PlainDescriptor<undefined>;
|
|
1775
|
+
};
|
|
1776
|
+
Staking: {
|
|
1777
|
+
/**
|
|
1778
|
+
* Balance is too low.
|
|
1779
|
+
*/
|
|
1780
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1781
|
+
/**
|
|
1782
|
+
* Staked amount is too low.
|
|
1783
|
+
*/
|
|
1784
|
+
InsufficientStake: PlainDescriptor<undefined>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Staking position has not been found.
|
|
1787
|
+
*/
|
|
1788
|
+
PositionNotFound: PlainDescriptor<undefined>;
|
|
1789
|
+
/**
|
|
1790
|
+
* Maximum amount of votes were reached for staking position.
|
|
1791
|
+
*/
|
|
1792
|
+
MaxVotesReached: PlainDescriptor<undefined>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Staking is not initialized.
|
|
1795
|
+
*/
|
|
1796
|
+
NotInitialized: PlainDescriptor<undefined>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Staking is already initialized.
|
|
1799
|
+
*/
|
|
1800
|
+
AlreadyInitialized: PlainDescriptor<undefined>;
|
|
1801
|
+
/**
|
|
1802
|
+
* Arithmetic error.
|
|
1803
|
+
*/
|
|
1804
|
+
Arithmetic: PlainDescriptor<undefined>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Pot's balance is zero.
|
|
1807
|
+
*/
|
|
1808
|
+
MissingPotBalance: PlainDescriptor<undefined>;
|
|
1809
|
+
/**
|
|
1810
|
+
* Account's position already exists.
|
|
1811
|
+
*/
|
|
1812
|
+
PositionAlreadyExists: PlainDescriptor<undefined>;
|
|
1813
|
+
/**
|
|
1814
|
+
* Signer is not an owner of the staking position.
|
|
1815
|
+
*/
|
|
1816
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Position contains registered votes.
|
|
1819
|
+
*/
|
|
1820
|
+
ExistingVotes: PlainDescriptor<undefined>;
|
|
1821
|
+
/**
|
|
1822
|
+
* Position contains processed votes. Removed these votes first before increasing stake or claiming.
|
|
1823
|
+
*/
|
|
1824
|
+
ExistingProcessedVotes: PlainDescriptor<undefined>;
|
|
1825
|
+
/**
|
|
1826
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1827
|
+
* to protocol maintainers.
|
|
1828
|
+
*/
|
|
1829
|
+
InconsistentState: PlainDescriptor<Anonymize<Icojqvn3afk41n>>;
|
|
1830
|
+
};
|
|
1831
|
+
Stableswap: {
|
|
1832
|
+
/**
|
|
1833
|
+
* Creating a pool with same assets or less than 2 assets is not allowed.
|
|
1834
|
+
*/
|
|
1835
|
+
IncorrectAssets: PlainDescriptor<undefined>;
|
|
1836
|
+
/**
|
|
1837
|
+
* Maximum number of assets has been exceeded.
|
|
1838
|
+
*/
|
|
1839
|
+
MaxAssetsExceeded: PlainDescriptor<undefined>;
|
|
1840
|
+
/**
|
|
1841
|
+
* A pool with given assets does not exist.
|
|
1842
|
+
*/
|
|
1843
|
+
PoolNotFound: PlainDescriptor<undefined>;
|
|
1844
|
+
/**
|
|
1845
|
+
* A pool with given assets already exists.
|
|
1846
|
+
*/
|
|
1847
|
+
PoolExists: PlainDescriptor<undefined>;
|
|
1848
|
+
/**
|
|
1849
|
+
* Asset is not in the pool.
|
|
1850
|
+
*/
|
|
1851
|
+
AssetNotInPool: PlainDescriptor<undefined>;
|
|
1852
|
+
/**
|
|
1853
|
+
* Share asset is not registered in Registry.
|
|
1854
|
+
*/
|
|
1855
|
+
ShareAssetNotRegistered: PlainDescriptor<undefined>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Share asset is amount assets when creating a pool.
|
|
1858
|
+
*/
|
|
1859
|
+
ShareAssetInPoolAssets: PlainDescriptor<undefined>;
|
|
1860
|
+
/**
|
|
1861
|
+
* One or more assets are not registered in AssetRegistry
|
|
1862
|
+
*/
|
|
1863
|
+
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1864
|
+
/**
|
|
1865
|
+
* Invalid asset amount provided. Amount must be greater than zero.
|
|
1866
|
+
*/
|
|
1867
|
+
InvalidAssetAmount: PlainDescriptor<undefined>;
|
|
1868
|
+
/**
|
|
1869
|
+
* Balance of an asset is not sufficient to perform a trade.
|
|
1870
|
+
*/
|
|
1871
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1872
|
+
/**
|
|
1873
|
+
* Balance of a share asset is not sufficient to withdraw liquidity.
|
|
1874
|
+
*/
|
|
1875
|
+
InsufficientShares: PlainDescriptor<undefined>;
|
|
1876
|
+
/**
|
|
1877
|
+
* Liquidity has not reached the required minimum.
|
|
1878
|
+
*/
|
|
1879
|
+
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
1880
|
+
/**
|
|
1881
|
+
* Insufficient liquidity left in the pool after withdrawal.
|
|
1882
|
+
*/
|
|
1883
|
+
InsufficientLiquidityRemaining: PlainDescriptor<undefined>;
|
|
1884
|
+
/**
|
|
1885
|
+
* Amount is less than the minimum trading amount configured.
|
|
1886
|
+
*/
|
|
1887
|
+
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Minimum limit has not been reached during trade.
|
|
1890
|
+
*/
|
|
1891
|
+
BuyLimitNotReached: PlainDescriptor<undefined>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Maximum limit has been exceeded during trade.
|
|
1894
|
+
*/
|
|
1895
|
+
SellLimitExceeded: PlainDescriptor<undefined>;
|
|
1896
|
+
/**
|
|
1897
|
+
* Initial liquidity of asset must be > 0.
|
|
1898
|
+
*/
|
|
1899
|
+
InvalidInitialLiquidity: PlainDescriptor<undefined>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Amplification is outside configured range.
|
|
1902
|
+
*/
|
|
1903
|
+
InvalidAmplification: PlainDescriptor<undefined>;
|
|
1904
|
+
/**
|
|
1905
|
+
* Remaining balance of share asset is below asset's existential deposit.
|
|
1906
|
+
*/
|
|
1907
|
+
InsufficientShareBalance: PlainDescriptor<undefined>;
|
|
1908
|
+
/**
|
|
1909
|
+
* Not allowed to perform an operation on given asset.
|
|
1910
|
+
*/
|
|
1911
|
+
NotAllowed: PlainDescriptor<undefined>;
|
|
1912
|
+
/**
|
|
1913
|
+
* Future block number is in the past.
|
|
1914
|
+
*/
|
|
1915
|
+
PastBlock: PlainDescriptor<undefined>;
|
|
1916
|
+
/**
|
|
1917
|
+
* New amplification is equal to the previous value.
|
|
1918
|
+
*/
|
|
1919
|
+
SameAmplification: PlainDescriptor<undefined>;
|
|
1920
|
+
/**
|
|
1921
|
+
* Slippage protection.
|
|
1922
|
+
*/
|
|
1923
|
+
SlippageLimit: PlainDescriptor<undefined>;
|
|
1924
|
+
/**
|
|
1925
|
+
* Failed to retrieve asset decimals.
|
|
1926
|
+
*/
|
|
1927
|
+
UnknownDecimals: PlainDescriptor<undefined>;
|
|
1928
|
+
/**
|
|
1929
|
+
* List of provided pegs is incorrect.
|
|
1930
|
+
*/
|
|
1931
|
+
IncorrectInitialPegs: PlainDescriptor<undefined>;
|
|
1932
|
+
/**
|
|
1933
|
+
* Failed to retrieve oracle entry.
|
|
1934
|
+
*/
|
|
1935
|
+
MissingTargetPegOracle: PlainDescriptor<undefined>;
|
|
1936
|
+
/**
|
|
1937
|
+
* Creating pool with pegs is not allowed for asset with different decimals.
|
|
1938
|
+
*/
|
|
1939
|
+
IncorrectAssetDecimals: PlainDescriptor<undefined>;
|
|
1940
|
+
};
|
|
1941
|
+
Bonds: {
|
|
1942
|
+
/**
|
|
1943
|
+
* Bond not registered
|
|
1944
|
+
*/
|
|
1945
|
+
NotRegistered: PlainDescriptor<undefined>;
|
|
1946
|
+
/**
|
|
1947
|
+
* Bond is not mature
|
|
1948
|
+
*/
|
|
1949
|
+
NotMature: PlainDescriptor<undefined>;
|
|
1950
|
+
/**
|
|
1951
|
+
* Maturity not long enough
|
|
1952
|
+
*/
|
|
1953
|
+
InvalidMaturity: PlainDescriptor<undefined>;
|
|
1954
|
+
/**
|
|
1955
|
+
* Asset type not allowed for underlying asset
|
|
1956
|
+
*/
|
|
1957
|
+
DisallowedAsset: PlainDescriptor<undefined>;
|
|
1958
|
+
/**
|
|
1959
|
+
* Asset is not registered in `AssetRegistry`
|
|
1960
|
+
*/
|
|
1961
|
+
AssetNotFound: PlainDescriptor<undefined>;
|
|
1962
|
+
/**
|
|
1963
|
+
* Generated name is not valid.
|
|
1964
|
+
*/
|
|
1965
|
+
InvalidBondName: PlainDescriptor<undefined>;
|
|
1966
|
+
/**
|
|
1967
|
+
* Bond's name parsing was now successful
|
|
1968
|
+
*/
|
|
1969
|
+
FailToParseName: PlainDescriptor<undefined>;
|
|
1970
|
+
};
|
|
1971
|
+
OtcSettlements: {
|
|
1972
|
+
/**
|
|
1973
|
+
* Otc order not found
|
|
1974
|
+
*/
|
|
1975
|
+
OrderNotFound: PlainDescriptor<undefined>;
|
|
1976
|
+
/**
|
|
1977
|
+
* OTC order is not partially fillable
|
|
1978
|
+
*/
|
|
1979
|
+
NotPartiallyFillable: PlainDescriptor<undefined>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Provided route doesn't match the existing route
|
|
1982
|
+
*/
|
|
1983
|
+
InvalidRoute: PlainDescriptor<undefined>;
|
|
1984
|
+
/**
|
|
1985
|
+
* Initial and final balance are different
|
|
1986
|
+
*/
|
|
1987
|
+
BalanceInconsistency: PlainDescriptor<undefined>;
|
|
1988
|
+
/**
|
|
1989
|
+
* Trade amount higher than necessary
|
|
1990
|
+
*/
|
|
1991
|
+
TradeAmountTooHigh: PlainDescriptor<undefined>;
|
|
1992
|
+
/**
|
|
1993
|
+
* Trade amount lower than necessary
|
|
1994
|
+
*/
|
|
1995
|
+
TradeAmountTooLow: PlainDescriptor<undefined>;
|
|
1996
|
+
/**
|
|
1997
|
+
* Price for a route is not available
|
|
1998
|
+
*/
|
|
1999
|
+
PriceNotAvailable: PlainDescriptor<undefined>;
|
|
2000
|
+
};
|
|
2001
|
+
LBP: {
|
|
2002
|
+
/**
|
|
2003
|
+
* Pool assets can not be the same
|
|
2004
|
+
*/
|
|
2005
|
+
CannotCreatePoolWithSameAssets: PlainDescriptor<undefined>;
|
|
2006
|
+
/**
|
|
2007
|
+
* Account is not a pool owner
|
|
2008
|
+
*/
|
|
2009
|
+
NotOwner: PlainDescriptor<undefined>;
|
|
2010
|
+
/**
|
|
2011
|
+
* Sale already started
|
|
2012
|
+
*/
|
|
2013
|
+
SaleStarted: PlainDescriptor<undefined>;
|
|
2014
|
+
/**
|
|
2015
|
+
* Sale is still in progress
|
|
2016
|
+
*/
|
|
2017
|
+
SaleNotEnded: PlainDescriptor<undefined>;
|
|
2018
|
+
/**
|
|
2019
|
+
* Sale is not running
|
|
2020
|
+
*/
|
|
2021
|
+
SaleIsNotRunning: PlainDescriptor<undefined>;
|
|
2022
|
+
/**
|
|
2023
|
+
* Sale duration is too long
|
|
2024
|
+
*/
|
|
2025
|
+
MaxSaleDurationExceeded: PlainDescriptor<undefined>;
|
|
2026
|
+
/**
|
|
2027
|
+
* Liquidity being added should not be zero
|
|
2028
|
+
*/
|
|
2029
|
+
CannotAddZeroLiquidity: PlainDescriptor<undefined>;
|
|
2030
|
+
/**
|
|
2031
|
+
* Asset balance too low
|
|
2032
|
+
*/
|
|
2033
|
+
InsufficientAssetBalance: PlainDescriptor<undefined>;
|
|
2034
|
+
/**
|
|
2035
|
+
* Pool does not exist
|
|
2036
|
+
*/
|
|
2037
|
+
PoolNotFound: PlainDescriptor<undefined>;
|
|
2038
|
+
/**
|
|
2039
|
+
* Pool has been already created
|
|
2040
|
+
*/
|
|
2041
|
+
PoolAlreadyExists: PlainDescriptor<undefined>;
|
|
2042
|
+
/**
|
|
2043
|
+
* Invalid block range
|
|
2044
|
+
*/
|
|
2045
|
+
InvalidBlockRange: PlainDescriptor<undefined>;
|
|
2046
|
+
/**
|
|
2047
|
+
* Calculation error
|
|
2048
|
+
*/
|
|
2049
|
+
WeightCalculationError: PlainDescriptor<undefined>;
|
|
2050
|
+
/**
|
|
2051
|
+
* Weight set is out of range
|
|
2052
|
+
*/
|
|
2053
|
+
InvalidWeight: PlainDescriptor<undefined>;
|
|
2054
|
+
/**
|
|
2055
|
+
* Can not perform a trade with zero amount
|
|
2056
|
+
*/
|
|
2057
|
+
ZeroAmount: PlainDescriptor<undefined>;
|
|
2058
|
+
/**
|
|
2059
|
+
* Trade amount is too high
|
|
2060
|
+
*/
|
|
2061
|
+
MaxInRatioExceeded: PlainDescriptor<undefined>;
|
|
2062
|
+
/**
|
|
2063
|
+
* Trade amount is too high
|
|
2064
|
+
*/
|
|
2065
|
+
MaxOutRatioExceeded: PlainDescriptor<undefined>;
|
|
2066
|
+
/**
|
|
2067
|
+
* Invalid fee amount
|
|
2068
|
+
*/
|
|
2069
|
+
FeeAmountInvalid: PlainDescriptor<undefined>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Trading limit reached
|
|
2072
|
+
*/
|
|
2073
|
+
TradingLimitReached: PlainDescriptor<undefined>;
|
|
2074
|
+
/**
|
|
2075
|
+
* An unexpected integer overflow occurred
|
|
2076
|
+
*/
|
|
2077
|
+
Overflow: PlainDescriptor<undefined>;
|
|
2078
|
+
/**
|
|
2079
|
+
* Nothing to update
|
|
2080
|
+
*/
|
|
2081
|
+
NothingToUpdate: PlainDescriptor<undefined>;
|
|
2082
|
+
/**
|
|
2083
|
+
* Liquidity has not reached the required minimum.
|
|
2084
|
+
*/
|
|
2085
|
+
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
2086
|
+
/**
|
|
2087
|
+
* Amount is less than minimum trading limit.
|
|
2088
|
+
*/
|
|
2089
|
+
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
2090
|
+
/**
|
|
2091
|
+
* Not more than one fee collector per asset id
|
|
2092
|
+
*/
|
|
2093
|
+
FeeCollectorWithAssetAlreadyUsed: PlainDescriptor<undefined>;
|
|
2094
|
+
};
|
|
2095
|
+
XYK: {
|
|
2096
|
+
/**
|
|
2097
|
+
* It is not allowed to create a pool between same assets.
|
|
2098
|
+
*/
|
|
2099
|
+
CannotCreatePoolWithSameAssets: PlainDescriptor<undefined>;
|
|
2100
|
+
/**
|
|
2101
|
+
* Liquidity has not reached the required minimum.
|
|
2102
|
+
*/
|
|
2103
|
+
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
2104
|
+
/**
|
|
2105
|
+
* Amount is less than min trading limit.
|
|
2106
|
+
*/
|
|
2107
|
+
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
2108
|
+
/**
|
|
2109
|
+
* Liquidity is zero.
|
|
2110
|
+
*/
|
|
2111
|
+
ZeroLiquidity: PlainDescriptor<undefined>;
|
|
2112
|
+
/**
|
|
2113
|
+
* It is not allowed to create a pool with zero initial price.
|
|
2114
|
+
* Not used, kept for backward compatibility
|
|
2115
|
+
*/
|
|
2116
|
+
ZeroInitialPrice: PlainDescriptor<undefined>;
|
|
2117
|
+
/**
|
|
2118
|
+
* Overflow
|
|
2119
|
+
* Not used, kept for backward compatibility
|
|
2120
|
+
*/
|
|
2121
|
+
CreatePoolAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2122
|
+
/**
|
|
2123
|
+
* Overflow
|
|
2124
|
+
*/
|
|
2125
|
+
InvalidMintedLiquidity: PlainDescriptor<undefined>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Overflow
|
|
2128
|
+
*/
|
|
2129
|
+
InvalidLiquidityAmount: PlainDescriptor<undefined>;
|
|
2130
|
+
/**
|
|
2131
|
+
* Asset amount has exceeded given limit.
|
|
2132
|
+
*/
|
|
2133
|
+
AssetAmountExceededLimit: PlainDescriptor<undefined>;
|
|
2134
|
+
/**
|
|
2135
|
+
* Asset amount has not reached given limit.
|
|
2136
|
+
*/
|
|
2137
|
+
AssetAmountNotReachedLimit: PlainDescriptor<undefined>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Asset balance is not sufficient.
|
|
2140
|
+
*/
|
|
2141
|
+
InsufficientAssetBalance: PlainDescriptor<undefined>;
|
|
2142
|
+
/**
|
|
2143
|
+
* Not enough asset liquidity in the pool.
|
|
2144
|
+
*/
|
|
2145
|
+
InsufficientPoolAssetBalance: PlainDescriptor<undefined>;
|
|
2146
|
+
/**
|
|
2147
|
+
* Not enough core asset liquidity in the pool.
|
|
2148
|
+
*/
|
|
2149
|
+
InsufficientNativeCurrencyBalance: PlainDescriptor<undefined>;
|
|
2150
|
+
/**
|
|
2151
|
+
* Liquidity pool for given assets does not exist.
|
|
2152
|
+
*/
|
|
2153
|
+
TokenPoolNotFound: PlainDescriptor<undefined>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Liquidity pool for given assets already exists.
|
|
2156
|
+
*/
|
|
2157
|
+
TokenPoolAlreadyExists: PlainDescriptor<undefined>;
|
|
2158
|
+
/**
|
|
2159
|
+
* Overflow
|
|
2160
|
+
*/
|
|
2161
|
+
AddAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2162
|
+
/**
|
|
2163
|
+
* Overflow
|
|
2164
|
+
*/
|
|
2165
|
+
RemoveAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2166
|
+
/**
|
|
2167
|
+
* Overflow
|
|
2168
|
+
*/
|
|
2169
|
+
SellAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Overflow
|
|
2172
|
+
*/
|
|
2173
|
+
BuyAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2174
|
+
/**
|
|
2175
|
+
* Overflow
|
|
2176
|
+
*/
|
|
2177
|
+
FeeAmountInvalid: PlainDescriptor<undefined>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Overflow
|
|
2180
|
+
*/
|
|
2181
|
+
CannotApplyDiscount: PlainDescriptor<undefined>;
|
|
2182
|
+
/**
|
|
2183
|
+
* Max fraction of pool to buy in single transaction has been exceeded.
|
|
2184
|
+
*/
|
|
2185
|
+
MaxOutRatioExceeded: PlainDescriptor<undefined>;
|
|
2186
|
+
/**
|
|
2187
|
+
* Max fraction of pool to sell in single transaction has been exceeded.
|
|
2188
|
+
*/
|
|
2189
|
+
MaxInRatioExceeded: PlainDescriptor<undefined>;
|
|
2190
|
+
/**
|
|
2191
|
+
* Overflow
|
|
2192
|
+
*/
|
|
2193
|
+
Overflow: PlainDescriptor<undefined>;
|
|
2194
|
+
/**
|
|
2195
|
+
* Pool cannot be created due to outside factors.
|
|
2196
|
+
*/
|
|
2197
|
+
CannotCreatePool: PlainDescriptor<undefined>;
|
|
2198
|
+
/**
|
|
2199
|
+
* Slippage protection.
|
|
2200
|
+
*/
|
|
2201
|
+
SlippageLimit: PlainDescriptor<undefined>;
|
|
2202
|
+
};
|
|
2203
|
+
Referrals: {
|
|
2204
|
+
/**
|
|
2205
|
+
* Referral code is too long.
|
|
2206
|
+
*/
|
|
2207
|
+
TooLong: PlainDescriptor<undefined>;
|
|
2208
|
+
/**
|
|
2209
|
+
* Referral code is too short.
|
|
2210
|
+
*/
|
|
2211
|
+
TooShort: PlainDescriptor<undefined>;
|
|
2212
|
+
/**
|
|
2213
|
+
* Referral code contains invalid character. Only alphanumeric characters are allowed.
|
|
2214
|
+
*/
|
|
2215
|
+
InvalidCharacter: PlainDescriptor<undefined>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Referral code already exists.
|
|
2218
|
+
*/
|
|
2219
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Provided referral code is invalid. Either does not exist or is too long.
|
|
2222
|
+
*/
|
|
2223
|
+
InvalidCode: PlainDescriptor<undefined>;
|
|
2224
|
+
/**
|
|
2225
|
+
* Account is already linked to another referral account.
|
|
2226
|
+
*/
|
|
2227
|
+
AlreadyLinked: PlainDescriptor<undefined>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Nothing in the referral pot account for the asset.
|
|
2230
|
+
*/
|
|
2231
|
+
ZeroAmount: PlainDescriptor<undefined>;
|
|
2232
|
+
/**
|
|
2233
|
+
* Linking an account to the same referral account is not allowed.
|
|
2234
|
+
*/
|
|
2235
|
+
LinkNotAllowed: PlainDescriptor<undefined>;
|
|
2236
|
+
/**
|
|
2237
|
+
* Calculated rewards are more than the fee amount. This can happen if percentages are incorrectly set.
|
|
2238
|
+
*/
|
|
2239
|
+
IncorrectRewardCalculation: PlainDescriptor<undefined>;
|
|
2240
|
+
/**
|
|
2241
|
+
* Given referrer and trader percentages exceeds 100% percent.
|
|
2242
|
+
*/
|
|
2243
|
+
IncorrectRewardPercentage: PlainDescriptor<undefined>;
|
|
2244
|
+
/**
|
|
2245
|
+
* The account has already a code registered.
|
|
2246
|
+
*/
|
|
2247
|
+
AlreadyRegistered: PlainDescriptor<undefined>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Price for given asset pair not found.
|
|
2250
|
+
*/
|
|
2251
|
+
PriceNotFound: PlainDescriptor<undefined>;
|
|
2252
|
+
/**
|
|
2253
|
+
* Minimum trading amount for conversion has not been reached.
|
|
2254
|
+
*/
|
|
2255
|
+
ConversionMinTradingAmountNotReached: PlainDescriptor<undefined>;
|
|
2256
|
+
/**
|
|
2257
|
+
* Zero amount received from conversion.
|
|
2258
|
+
*/
|
|
2259
|
+
ConversionZeroAmountReceived: PlainDescriptor<undefined>;
|
|
2260
|
+
};
|
|
2261
|
+
Liquidation: {
|
|
2262
|
+
/**
|
|
2263
|
+
* AssetId to EVM address conversion failed
|
|
2264
|
+
*/
|
|
2265
|
+
AssetConversionFailed: PlainDescriptor<undefined>;
|
|
2266
|
+
/**
|
|
2267
|
+
* Liquidation call failed
|
|
2268
|
+
*/
|
|
2269
|
+
LiquidationCallFailed: PlainDescriptor<undefined>;
|
|
2270
|
+
/**
|
|
2271
|
+
* Provided route doesn't match the existing route
|
|
2272
|
+
*/
|
|
2273
|
+
InvalidRoute: PlainDescriptor<undefined>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Liquidation was not profitable enough to repay flash loan
|
|
2276
|
+
*/
|
|
2277
|
+
NotProfitable: PlainDescriptor<undefined>;
|
|
2278
|
+
};
|
|
2279
|
+
Tokens: {
|
|
2280
|
+
/**
|
|
2281
|
+
* The balance is too low
|
|
2282
|
+
*/
|
|
2283
|
+
BalanceTooLow: PlainDescriptor<undefined>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Cannot convert Amount into Balance type
|
|
2286
|
+
*/
|
|
2287
|
+
AmountIntoBalanceFailed: PlainDescriptor<undefined>;
|
|
2288
|
+
/**
|
|
2289
|
+
* Failed because liquidity restrictions due to locking
|
|
2290
|
+
*/
|
|
2291
|
+
LiquidityRestrictions: PlainDescriptor<undefined>;
|
|
2292
|
+
/**
|
|
2293
|
+
* Failed because the maximum locks was exceeded
|
|
2294
|
+
*/
|
|
2295
|
+
MaxLocksExceeded: PlainDescriptor<undefined>;
|
|
2296
|
+
/**
|
|
2297
|
+
* Transfer/payment would kill account
|
|
2298
|
+
*/
|
|
2299
|
+
KeepAlive: PlainDescriptor<undefined>;
|
|
2300
|
+
/**
|
|
2301
|
+
* Value too low to create account due to existential deposit
|
|
2302
|
+
*/
|
|
2303
|
+
ExistentialDeposit: PlainDescriptor<undefined>;
|
|
2304
|
+
/**
|
|
2305
|
+
* Beneficiary account must pre-exist
|
|
2306
|
+
*/
|
|
2307
|
+
DeadAccount: PlainDescriptor<undefined>;
|
|
2308
|
+
/**
|
|
2309
|
+
|
|
2310
|
+
*/
|
|
2311
|
+
TooManyReserves: PlainDescriptor<undefined>;
|
|
2312
|
+
};
|
|
2313
|
+
Currencies: {
|
|
2314
|
+
/**
|
|
2315
|
+
* Unable to convert the Amount type into Balance.
|
|
2316
|
+
*/
|
|
2317
|
+
AmountIntoBalanceFailed: PlainDescriptor<undefined>;
|
|
2318
|
+
/**
|
|
2319
|
+
* Balance is too low.
|
|
2320
|
+
*/
|
|
2321
|
+
BalanceTooLow: PlainDescriptor<undefined>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Deposit result is not expected
|
|
2324
|
+
*/
|
|
2325
|
+
DepositFailed: PlainDescriptor<undefined>;
|
|
2326
|
+
/**
|
|
2327
|
+
* Operation is not supported for this currency
|
|
2328
|
+
*/
|
|
2329
|
+
NotSupported: PlainDescriptor<undefined>;
|
|
2330
|
+
};
|
|
2331
|
+
Vesting: {
|
|
2332
|
+
/**
|
|
2333
|
+
* Vesting period is zero
|
|
2334
|
+
*/
|
|
2335
|
+
ZeroVestingPeriod: PlainDescriptor<undefined>;
|
|
2336
|
+
/**
|
|
2337
|
+
* Number of vests is zero
|
|
2338
|
+
*/
|
|
2339
|
+
ZeroVestingPeriodCount: PlainDescriptor<undefined>;
|
|
2340
|
+
/**
|
|
2341
|
+
* Insufficient amount of balance to lock
|
|
2342
|
+
*/
|
|
2343
|
+
InsufficientBalanceToLock: PlainDescriptor<undefined>;
|
|
2344
|
+
/**
|
|
2345
|
+
* This account have too many vesting schedules
|
|
2346
|
+
*/
|
|
2347
|
+
TooManyVestingSchedules: PlainDescriptor<undefined>;
|
|
2348
|
+
/**
|
|
2349
|
+
* The vested transfer amount is too low
|
|
2350
|
+
*/
|
|
2351
|
+
AmountLow: PlainDescriptor<undefined>;
|
|
2352
|
+
/**
|
|
2353
|
+
* Failed because the maximum vesting schedules was exceeded
|
|
2354
|
+
*/
|
|
2355
|
+
MaxVestingSchedulesExceeded: PlainDescriptor<undefined>;
|
|
2356
|
+
};
|
|
2357
|
+
EVM: {
|
|
2358
|
+
/**
|
|
2359
|
+
* Not enough balance to perform action
|
|
2360
|
+
*/
|
|
2361
|
+
BalanceLow: PlainDescriptor<undefined>;
|
|
2362
|
+
/**
|
|
2363
|
+
* Calculating total fee overflowed
|
|
2364
|
+
*/
|
|
2365
|
+
FeeOverflow: PlainDescriptor<undefined>;
|
|
2366
|
+
/**
|
|
2367
|
+
* Calculating total payment overflowed
|
|
2368
|
+
*/
|
|
2369
|
+
PaymentOverflow: PlainDescriptor<undefined>;
|
|
2370
|
+
/**
|
|
2371
|
+
* Withdraw fee failed
|
|
2372
|
+
*/
|
|
2373
|
+
WithdrawFailed: PlainDescriptor<undefined>;
|
|
2374
|
+
/**
|
|
2375
|
+
* Gas price is too low.
|
|
2376
|
+
*/
|
|
2377
|
+
GasPriceTooLow: PlainDescriptor<undefined>;
|
|
2378
|
+
/**
|
|
2379
|
+
* Nonce is invalid
|
|
2380
|
+
*/
|
|
2381
|
+
InvalidNonce: PlainDescriptor<undefined>;
|
|
2382
|
+
/**
|
|
2383
|
+
* Gas limit is too low.
|
|
2384
|
+
*/
|
|
2385
|
+
GasLimitTooLow: PlainDescriptor<undefined>;
|
|
2386
|
+
/**
|
|
2387
|
+
* Gas limit is too high.
|
|
2388
|
+
*/
|
|
2389
|
+
GasLimitTooHigh: PlainDescriptor<undefined>;
|
|
2390
|
+
/**
|
|
2391
|
+
* The chain id is invalid.
|
|
2392
|
+
*/
|
|
2393
|
+
InvalidChainId: PlainDescriptor<undefined>;
|
|
2394
|
+
/**
|
|
2395
|
+
* the signature is invalid.
|
|
2396
|
+
*/
|
|
2397
|
+
InvalidSignature: PlainDescriptor<undefined>;
|
|
2398
|
+
/**
|
|
2399
|
+
* EVM reentrancy
|
|
2400
|
+
*/
|
|
2401
|
+
Reentrancy: PlainDescriptor<undefined>;
|
|
2402
|
+
/**
|
|
2403
|
+
* EIP-3607,
|
|
2404
|
+
*/
|
|
2405
|
+
TransactionMustComeFromEOA: PlainDescriptor<undefined>;
|
|
2406
|
+
/**
|
|
2407
|
+
* Undefined error.
|
|
2408
|
+
*/
|
|
2409
|
+
Undefined: PlainDescriptor<undefined>;
|
|
2410
|
+
};
|
|
2411
|
+
Ethereum: {
|
|
2412
|
+
/**
|
|
2413
|
+
* Signature is invalid.
|
|
2414
|
+
*/
|
|
2415
|
+
InvalidSignature: PlainDescriptor<undefined>;
|
|
2416
|
+
/**
|
|
2417
|
+
* Pre-log is present, therefore transact is not allowed.
|
|
2418
|
+
*/
|
|
2419
|
+
PreLogExists: PlainDescriptor<undefined>;
|
|
2420
|
+
};
|
|
2421
|
+
EVMAccounts: {
|
|
2422
|
+
/**
|
|
2423
|
+
* Active EVM account cannot be bound
|
|
2424
|
+
*/
|
|
2425
|
+
TruncatedAccountAlreadyUsed: PlainDescriptor<undefined>;
|
|
2426
|
+
/**
|
|
2427
|
+
* Address is already bound
|
|
2428
|
+
*/
|
|
2429
|
+
AddressAlreadyBound: PlainDescriptor<undefined>;
|
|
2430
|
+
/**
|
|
2431
|
+
* Bound address cannot be used
|
|
2432
|
+
*/
|
|
2433
|
+
BoundAddressCannotBeUsed: PlainDescriptor<undefined>;
|
|
2434
|
+
/**
|
|
2435
|
+
* Address not whitelisted
|
|
2436
|
+
*/
|
|
2437
|
+
AddressNotWhitelisted: PlainDescriptor<undefined>;
|
|
2438
|
+
};
|
|
2439
|
+
XYKLiquidityMining: {
|
|
2440
|
+
/**
|
|
2441
|
+
* Nft pallet didn't return an owner.
|
|
2442
|
+
*/
|
|
2443
|
+
CantFindDepositOwner: PlainDescriptor<undefined>;
|
|
2444
|
+
/**
|
|
2445
|
+
* Account balance of XYK pool shares is not sufficient.
|
|
2446
|
+
*/
|
|
2447
|
+
InsufficientXykSharesBalance: PlainDescriptor<undefined>;
|
|
2448
|
+
/**
|
|
2449
|
+
* XYK pool does not exist
|
|
2450
|
+
*/
|
|
2451
|
+
XykPoolDoesntExist: PlainDescriptor<undefined>;
|
|
2452
|
+
/**
|
|
2453
|
+
* Account is not deposit owner.
|
|
2454
|
+
*/
|
|
2455
|
+
NotDepositOwner: PlainDescriptor<undefined>;
|
|
2456
|
+
/**
|
|
2457
|
+
* XYK did not return assets for given pool id
|
|
2458
|
+
*/
|
|
2459
|
+
CantGetXykAssets: PlainDescriptor<undefined>;
|
|
2460
|
+
/**
|
|
2461
|
+
* Deposit data not found
|
|
2462
|
+
*/
|
|
2463
|
+
DepositDataNotFound: PlainDescriptor<undefined>;
|
|
2464
|
+
/**
|
|
2465
|
+
* Calculated reward to claim is 0.
|
|
2466
|
+
*/
|
|
2467
|
+
ZeroClaimedRewards: PlainDescriptor<undefined>;
|
|
2468
|
+
/**
|
|
2469
|
+
* Asset is not in the `AssetPair`.
|
|
2470
|
+
*/
|
|
2471
|
+
AssetNotInAssetPair: PlainDescriptor<undefined>;
|
|
2472
|
+
/**
|
|
2473
|
+
* Provided `AssetPair` is not used by the deposit.
|
|
2474
|
+
*/
|
|
2475
|
+
InvalidAssetPair: PlainDescriptor<undefined>;
|
|
2476
|
+
/**
|
|
2477
|
+
* Asset is not registered in asset registry.
|
|
2478
|
+
*/
|
|
2479
|
+
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
2480
|
+
/**
|
|
2481
|
+
* Failed to calculate `pot`'s account.
|
|
2482
|
+
*/
|
|
2483
|
+
FailToGetPotId: PlainDescriptor<undefined>;
|
|
2484
|
+
/**
|
|
2485
|
+
* No global farm - yield farm pairs specified to join
|
|
2486
|
+
*/
|
|
2487
|
+
NoFarmsSpecified: PlainDescriptor<undefined>;
|
|
2488
|
+
};
|
|
2489
|
+
XYKWarehouseLM: {
|
|
2490
|
+
/**
|
|
2491
|
+
* Global farm does not exist.
|
|
2492
|
+
*/
|
|
2493
|
+
GlobalFarmNotFound: PlainDescriptor<undefined>;
|
|
2494
|
+
/**
|
|
2495
|
+
* Yield farm does not exist.
|
|
2496
|
+
*/
|
|
2497
|
+
YieldFarmNotFound: PlainDescriptor<undefined>;
|
|
2498
|
+
/**
|
|
2499
|
+
* Multiple claims in the same period is not allowed.
|
|
2500
|
+
*/
|
|
2501
|
+
DoubleClaimInPeriod: PlainDescriptor<undefined>;
|
|
2502
|
+
/**
|
|
2503
|
+
* Liquidity mining is canceled.
|
|
2504
|
+
*/
|
|
2505
|
+
LiquidityMiningCanceled: PlainDescriptor<undefined>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Liquidity mining is not canceled.
|
|
2508
|
+
*/
|
|
2509
|
+
LiquidityMiningIsActive: PlainDescriptor<undefined>;
|
|
2510
|
+
/**
|
|
2511
|
+
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
2512
|
+
*/
|
|
2513
|
+
LiquidityMiningIsNotStopped: PlainDescriptor<undefined>;
|
|
2514
|
+
/**
|
|
2515
|
+
* LP shares amount is not valid.
|
|
2516
|
+
*/
|
|
2517
|
+
InvalidDepositAmount: PlainDescriptor<undefined>;
|
|
2518
|
+
/**
|
|
2519
|
+
* Account is not allowed to perform action.
|
|
2520
|
+
*/
|
|
2521
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
2522
|
+
/**
|
|
2523
|
+
* Yield farm multiplier can't be 0.
|
|
2524
|
+
*/
|
|
2525
|
+
InvalidMultiplier: PlainDescriptor<undefined>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Yield farm with given `amm_pool_id` already exists in global farm.
|
|
2528
|
+
*/
|
|
2529
|
+
YieldFarmAlreadyExists: PlainDescriptor<undefined>;
|
|
2530
|
+
/**
|
|
2531
|
+
* Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
2532
|
+
*/
|
|
2533
|
+
InvalidInitialRewardPercentage: PlainDescriptor<undefined>;
|
|
2534
|
+
/**
|
|
2535
|
+
* One or more yield farms exist in global farm.
|
|
2536
|
+
*/
|
|
2537
|
+
GlobalFarmIsNotEmpty: PlainDescriptor<undefined>;
|
|
2538
|
+
/**
|
|
2539
|
+
* Farm's `incentivized_asset` is missing in provided asset pair.
|
|
2540
|
+
*/
|
|
2541
|
+
MissingIncentivizedAsset: PlainDescriptor<undefined>;
|
|
2542
|
+
/**
|
|
2543
|
+
* Reward currency balance is not sufficient.
|
|
2544
|
+
*/
|
|
2545
|
+
InsufficientRewardCurrencyBalance: PlainDescriptor<undefined>;
|
|
2546
|
+
/**
|
|
2547
|
+
* Blocks per period can't be 0.
|
|
2548
|
+
*/
|
|
2549
|
+
InvalidBlocksPerPeriod: PlainDescriptor<undefined>;
|
|
2550
|
+
/**
|
|
2551
|
+
* Yield per period can't be 0.
|
|
2552
|
+
*/
|
|
2553
|
+
InvalidYieldPerPeriod: PlainDescriptor<undefined>;
|
|
2554
|
+
/**
|
|
2555
|
+
* Total rewards is less than `MinTotalFarmRewards`.
|
|
2556
|
+
*/
|
|
2557
|
+
InvalidTotalRewards: PlainDescriptor<undefined>;
|
|
2558
|
+
/**
|
|
2559
|
+
* Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
2560
|
+
*/
|
|
2561
|
+
InvalidPlannedYieldingPeriods: PlainDescriptor<undefined>;
|
|
2562
|
+
/**
|
|
2563
|
+
* Maximum number of locks reached for deposit.
|
|
2564
|
+
*/
|
|
2565
|
+
MaxEntriesPerDeposit: PlainDescriptor<undefined>;
|
|
2566
|
+
/**
|
|
2567
|
+
* Trying to lock LP shares into already locked yield farm.
|
|
2568
|
+
*/
|
|
2569
|
+
DoubleLock: PlainDescriptor<undefined>;
|
|
2570
|
+
/**
|
|
2571
|
+
* Yield farm entry doesn't exist for given deposit.
|
|
2572
|
+
*/
|
|
2573
|
+
YieldFarmEntryNotFound: PlainDescriptor<undefined>;
|
|
2574
|
+
/**
|
|
2575
|
+
* Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
2576
|
+
* yield farms until some yield farm is not removed from storage.
|
|
2577
|
+
*/
|
|
2578
|
+
GlobalFarmIsFull: PlainDescriptor<undefined>;
|
|
2579
|
+
/**
|
|
2580
|
+
* Invalid min. deposit was set for global farm.
|
|
2581
|
+
*/
|
|
2582
|
+
InvalidMinDeposit: PlainDescriptor<undefined>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Price adjustment multiplier can't be 0.
|
|
2585
|
+
*/
|
|
2586
|
+
InvalidPriceAdjustment: PlainDescriptor<undefined>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Account creation from id failed.
|
|
2589
|
+
*/
|
|
2590
|
+
ErrorGetAccountId: PlainDescriptor<undefined>;
|
|
2591
|
+
/**
|
|
2592
|
+
* Value of deposited shares amount in reward currency is bellow min. limit.
|
|
2593
|
+
*/
|
|
2594
|
+
IncorrectValuedShares: PlainDescriptor<undefined>;
|
|
2595
|
+
/**
|
|
2596
|
+
* `reward_currency` is not registered in asset registry.
|
|
2597
|
+
*/
|
|
2598
|
+
RewardCurrencyNotRegistered: PlainDescriptor<undefined>;
|
|
2599
|
+
/**
|
|
2600
|
+
* `incentivized_asset` is not registered in asset registry.
|
|
2601
|
+
*/
|
|
2602
|
+
IncentivizedAssetNotRegistered: PlainDescriptor<undefined>;
|
|
2603
|
+
/**
|
|
2604
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
2605
|
+
* to protocol maintainers.
|
|
2606
|
+
*/
|
|
2607
|
+
InconsistentState: PlainDescriptor<Anonymize<Ibplkiqg5rvr3e>>;
|
|
2608
|
+
};
|
|
2609
|
+
DCA: {
|
|
2610
|
+
/**
|
|
2611
|
+
* Schedule not exist
|
|
2612
|
+
*/
|
|
2613
|
+
ScheduleNotFound: PlainDescriptor<undefined>;
|
|
2614
|
+
/**
|
|
2615
|
+
* The min trade amount is not reached
|
|
2616
|
+
*/
|
|
2617
|
+
MinTradeAmountNotReached: PlainDescriptor<undefined>;
|
|
2618
|
+
/**
|
|
2619
|
+
* Forbidden as the user is not the owner of the schedule
|
|
2620
|
+
*/
|
|
2621
|
+
Forbidden: PlainDescriptor<undefined>;
|
|
2622
|
+
/**
|
|
2623
|
+
* The next execution block number is not in the future
|
|
2624
|
+
*/
|
|
2625
|
+
BlockNumberIsNotInFuture: PlainDescriptor<undefined>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Price is unstable as price change from oracle data is bigger than max allowed
|
|
2628
|
+
*/
|
|
2629
|
+
PriceUnstable: PlainDescriptor<undefined>;
|
|
2630
|
+
/**
|
|
2631
|
+
* Order was randomly rescheduled to next block
|
|
2632
|
+
*/
|
|
2633
|
+
Bumped: PlainDescriptor<undefined>;
|
|
2634
|
+
/**
|
|
2635
|
+
* Error occurred when calculating price
|
|
2636
|
+
*/
|
|
2637
|
+
CalculatingPriceError: PlainDescriptor<undefined>;
|
|
2638
|
+
/**
|
|
2639
|
+
* The total amount to be reserved is smaller than min budget
|
|
2640
|
+
*/
|
|
2641
|
+
TotalAmountIsSmallerThanMinBudget: PlainDescriptor<undefined>;
|
|
2642
|
+
/**
|
|
2643
|
+
* The budget is too low for executing at least two orders
|
|
2644
|
+
*/
|
|
2645
|
+
BudgetTooLow: PlainDescriptor<undefined>;
|
|
2646
|
+
/**
|
|
2647
|
+
* There is no free block found to plan DCA execution
|
|
2648
|
+
*/
|
|
2649
|
+
NoFreeBlockFound: PlainDescriptor<undefined>;
|
|
2650
|
+
/**
|
|
2651
|
+
* The DCA schedule has been manually terminated
|
|
2652
|
+
*/
|
|
2653
|
+
ManuallyTerminated: PlainDescriptor<undefined>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Max number of retries reached for schedule
|
|
2656
|
+
*/
|
|
2657
|
+
MaxRetryReached: PlainDescriptor<undefined>;
|
|
2658
|
+
/**
|
|
2659
|
+
* Absolutely trade limit reached, leading to retry
|
|
2660
|
+
*/
|
|
2661
|
+
TradeLimitReached: PlainDescriptor<undefined>;
|
|
2662
|
+
/**
|
|
2663
|
+
* Slippage limit calculated from oracle is reached, leading to retry
|
|
2664
|
+
*/
|
|
2665
|
+
SlippageLimitReached: PlainDescriptor<undefined>;
|
|
2666
|
+
/**
|
|
2667
|
+
* No parent hash has been found from relay chain
|
|
2668
|
+
*/
|
|
2669
|
+
NoParentHashFound: PlainDescriptor<undefined>;
|
|
2670
|
+
/**
|
|
2671
|
+
* Error that should not really happen only in case of invalid state of the schedule storage entries
|
|
2672
|
+
*/
|
|
2673
|
+
InvalidState: PlainDescriptor<undefined>;
|
|
2674
|
+
/**
|
|
2675
|
+
* Period should be longer than 5 blocks
|
|
2676
|
+
*/
|
|
2677
|
+
PeriodTooShort: PlainDescriptor<undefined>;
|
|
2678
|
+
/**
|
|
2679
|
+
* Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock`
|
|
2680
|
+
*/
|
|
2681
|
+
StabilityThresholdTooHigh: PlainDescriptor<undefined>;
|
|
2682
|
+
};
|
|
2683
|
+
Scheduler: {
|
|
2684
|
+
/**
|
|
2685
|
+
* Failed to schedule a call
|
|
2686
|
+
*/
|
|
2687
|
+
FailedToSchedule: PlainDescriptor<undefined>;
|
|
2688
|
+
/**
|
|
2689
|
+
* Cannot find the scheduled call.
|
|
2690
|
+
*/
|
|
2691
|
+
NotFound: PlainDescriptor<undefined>;
|
|
2692
|
+
/**
|
|
2693
|
+
* Given target block number is in the past.
|
|
2694
|
+
*/
|
|
2695
|
+
TargetBlockNumberInPast: PlainDescriptor<undefined>;
|
|
2696
|
+
/**
|
|
2697
|
+
* Reschedule failed because it does not change scheduled time.
|
|
2698
|
+
*/
|
|
2699
|
+
RescheduleNoChange: PlainDescriptor<undefined>;
|
|
2700
|
+
/**
|
|
2701
|
+
* Attempt to use a non-named function on a named task.
|
|
2702
|
+
*/
|
|
2703
|
+
Named: PlainDescriptor<undefined>;
|
|
2704
|
+
};
|
|
2705
|
+
ParachainSystem: {
|
|
2706
|
+
/**
|
|
2707
|
+
* Attempt to upgrade validation function while existing upgrade pending.
|
|
2708
|
+
*/
|
|
2709
|
+
OverlappingUpgrades: PlainDescriptor<undefined>;
|
|
2710
|
+
/**
|
|
2711
|
+
* Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
2712
|
+
*/
|
|
2713
|
+
ProhibitedByPolkadot: PlainDescriptor<undefined>;
|
|
2714
|
+
/**
|
|
2715
|
+
* The supplied validation function has compiled into a blob larger than Polkadot is
|
|
2716
|
+
* willing to run.
|
|
2717
|
+
*/
|
|
2718
|
+
TooBig: PlainDescriptor<undefined>;
|
|
2719
|
+
/**
|
|
2720
|
+
* The inherent which supplies the validation data did not run this block.
|
|
2721
|
+
*/
|
|
2722
|
+
ValidationDataNotAvailable: PlainDescriptor<undefined>;
|
|
2723
|
+
/**
|
|
2724
|
+
* The inherent which supplies the host configuration did not run this block.
|
|
2725
|
+
*/
|
|
2726
|
+
HostConfigurationNotAvailable: PlainDescriptor<undefined>;
|
|
2727
|
+
/**
|
|
2728
|
+
* No validation function upgrade is currently scheduled.
|
|
2729
|
+
*/
|
|
2730
|
+
NotScheduled: PlainDescriptor<undefined>;
|
|
2731
|
+
/**
|
|
2732
|
+
* No code upgrade has been authorized.
|
|
2733
|
+
*/
|
|
2734
|
+
NothingAuthorized: PlainDescriptor<undefined>;
|
|
2735
|
+
/**
|
|
2736
|
+
* The given code upgrade has not been authorized.
|
|
2737
|
+
*/
|
|
2738
|
+
Unauthorized: PlainDescriptor<undefined>;
|
|
2739
|
+
};
|
|
2740
|
+
PolkadotXcm: {
|
|
2741
|
+
/**
|
|
2742
|
+
* The desired destination was unreachable, generally because there is a no way of routing
|
|
2743
|
+
* to it.
|
|
2744
|
+
*/
|
|
2745
|
+
Unreachable: PlainDescriptor<undefined>;
|
|
2746
|
+
/**
|
|
2747
|
+
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
2748
|
+
* Perhaps a lack of space for buffering the message.
|
|
2749
|
+
*/
|
|
2750
|
+
SendFailure: PlainDescriptor<undefined>;
|
|
2751
|
+
/**
|
|
2752
|
+
* The message execution fails the filter.
|
|
2753
|
+
*/
|
|
2754
|
+
Filtered: PlainDescriptor<undefined>;
|
|
2755
|
+
/**
|
|
2756
|
+
* The message's weight could not be determined.
|
|
2757
|
+
*/
|
|
2758
|
+
UnweighableMessage: PlainDescriptor<undefined>;
|
|
2759
|
+
/**
|
|
2760
|
+
* The destination `Location` provided cannot be inverted.
|
|
2761
|
+
*/
|
|
2762
|
+
DestinationNotInvertible: PlainDescriptor<undefined>;
|
|
2763
|
+
/**
|
|
2764
|
+
* The assets to be sent are empty.
|
|
2765
|
+
*/
|
|
2766
|
+
Empty: PlainDescriptor<undefined>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Could not re-anchor the assets to declare the fees for the destination chain.
|
|
2769
|
+
*/
|
|
2770
|
+
CannotReanchor: PlainDescriptor<undefined>;
|
|
2771
|
+
/**
|
|
2772
|
+
* Too many assets have been attempted for transfer.
|
|
2773
|
+
*/
|
|
2774
|
+
TooManyAssets: PlainDescriptor<undefined>;
|
|
2775
|
+
/**
|
|
2776
|
+
* Origin is invalid for sending.
|
|
2777
|
+
*/
|
|
2778
|
+
InvalidOrigin: PlainDescriptor<undefined>;
|
|
2779
|
+
/**
|
|
2780
|
+
* The version of the `Versioned` value used is not able to be interpreted.
|
|
2781
|
+
*/
|
|
2782
|
+
BadVersion: PlainDescriptor<undefined>;
|
|
2783
|
+
/**
|
|
2784
|
+
* The given location could not be used (e.g. because it cannot be expressed in the
|
|
2785
|
+
* desired version of XCM).
|
|
2786
|
+
*/
|
|
2787
|
+
BadLocation: PlainDescriptor<undefined>;
|
|
2788
|
+
/**
|
|
2789
|
+
* The referenced subscription could not be found.
|
|
2790
|
+
*/
|
|
2791
|
+
NoSubscription: PlainDescriptor<undefined>;
|
|
2792
|
+
/**
|
|
2793
|
+
* The location is invalid since it already has a subscription from us.
|
|
2794
|
+
*/
|
|
2795
|
+
AlreadySubscribed: PlainDescriptor<undefined>;
|
|
2796
|
+
/**
|
|
2797
|
+
* Could not check-out the assets for teleportation to the destination chain.
|
|
2798
|
+
*/
|
|
2799
|
+
CannotCheckOutTeleport: PlainDescriptor<undefined>;
|
|
2800
|
+
/**
|
|
2801
|
+
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
2802
|
+
*/
|
|
2803
|
+
LowBalance: PlainDescriptor<undefined>;
|
|
2804
|
+
/**
|
|
2805
|
+
* The asset owner has too many locks on the asset.
|
|
2806
|
+
*/
|
|
2807
|
+
TooManyLocks: PlainDescriptor<undefined>;
|
|
2808
|
+
/**
|
|
2809
|
+
* The given account is not an identifiable sovereign account for any location.
|
|
2810
|
+
*/
|
|
2811
|
+
AccountNotSovereign: PlainDescriptor<undefined>;
|
|
2812
|
+
/**
|
|
2813
|
+
* The operation required fees to be paid which the initiator could not meet.
|
|
2814
|
+
*/
|
|
2815
|
+
FeesNotMet: PlainDescriptor<undefined>;
|
|
2816
|
+
/**
|
|
2817
|
+
* A remote lock with the corresponding data could not be found.
|
|
2818
|
+
*/
|
|
2819
|
+
LockNotFound: PlainDescriptor<undefined>;
|
|
2820
|
+
/**
|
|
2821
|
+
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
2822
|
+
*/
|
|
2823
|
+
InUse: PlainDescriptor<undefined>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Invalid asset, reserve chain could not be determined for it.
|
|
2826
|
+
*/
|
|
2827
|
+
InvalidAssetUnknownReserve: PlainDescriptor<undefined>;
|
|
2828
|
+
/**
|
|
2829
|
+
* Invalid asset, do not support remote asset reserves with different fees reserves.
|
|
2830
|
+
*/
|
|
2831
|
+
InvalidAssetUnsupportedReserve: PlainDescriptor<undefined>;
|
|
2832
|
+
/**
|
|
2833
|
+
* Too many assets with different reserve locations have been attempted for transfer.
|
|
2834
|
+
*/
|
|
2835
|
+
TooManyReserves: PlainDescriptor<undefined>;
|
|
2836
|
+
/**
|
|
2837
|
+
* Local XCM execution incomplete.
|
|
2838
|
+
*/
|
|
2839
|
+
LocalExecutionIncomplete: PlainDescriptor<undefined>;
|
|
2840
|
+
};
|
|
2841
|
+
XcmpQueue: {
|
|
2842
|
+
/**
|
|
2843
|
+
* Setting the queue config failed since one of its values was invalid.
|
|
2844
|
+
*/
|
|
2845
|
+
BadQueueConfig: PlainDescriptor<undefined>;
|
|
2846
|
+
/**
|
|
2847
|
+
* The execution is already suspended.
|
|
2848
|
+
*/
|
|
2849
|
+
AlreadySuspended: PlainDescriptor<undefined>;
|
|
2850
|
+
/**
|
|
2851
|
+
* The execution is already resumed.
|
|
2852
|
+
*/
|
|
2853
|
+
AlreadyResumed: PlainDescriptor<undefined>;
|
|
2854
|
+
/**
|
|
2855
|
+
* There are too many active outbound channels.
|
|
2856
|
+
*/
|
|
2857
|
+
TooManyActiveOutboundChannels: PlainDescriptor<undefined>;
|
|
2858
|
+
/**
|
|
2859
|
+
* The message is too big.
|
|
2860
|
+
*/
|
|
2861
|
+
TooBig: PlainDescriptor<undefined>;
|
|
2862
|
+
};
|
|
2863
|
+
MessageQueue: {
|
|
2864
|
+
/**
|
|
2865
|
+
* Page is not reapable because it has items remaining to be processed and is not old
|
|
2866
|
+
* enough.
|
|
2867
|
+
*/
|
|
2868
|
+
NotReapable: PlainDescriptor<undefined>;
|
|
2869
|
+
/**
|
|
2870
|
+
* Page to be reaped does not exist.
|
|
2871
|
+
*/
|
|
2872
|
+
NoPage: PlainDescriptor<undefined>;
|
|
2873
|
+
/**
|
|
2874
|
+
* The referenced message could not be found.
|
|
2875
|
+
*/
|
|
2876
|
+
NoMessage: PlainDescriptor<undefined>;
|
|
2877
|
+
/**
|
|
2878
|
+
* The message was already processed and cannot be processed again.
|
|
2879
|
+
*/
|
|
2880
|
+
AlreadyProcessed: PlainDescriptor<undefined>;
|
|
2881
|
+
/**
|
|
2882
|
+
* The message is queued for future execution.
|
|
2883
|
+
*/
|
|
2884
|
+
Queued: PlainDescriptor<undefined>;
|
|
2885
|
+
/**
|
|
2886
|
+
* There is temporarily not enough weight to continue servicing messages.
|
|
2887
|
+
*/
|
|
2888
|
+
InsufficientWeight: PlainDescriptor<undefined>;
|
|
2889
|
+
/**
|
|
2890
|
+
* This message is temporarily unprocessable.
|
|
2891
|
+
*
|
|
2892
|
+
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
2893
|
+
* retrying.
|
|
2894
|
+
*/
|
|
2895
|
+
TemporarilyUnprocessable: PlainDescriptor<undefined>;
|
|
2896
|
+
/**
|
|
2897
|
+
* The queue is paused and no message can be executed from it.
|
|
2898
|
+
*
|
|
2899
|
+
* This can change at any time and may resolve in the future by re-trying.
|
|
2900
|
+
*/
|
|
2901
|
+
QueuePaused: PlainDescriptor<undefined>;
|
|
2902
|
+
/**
|
|
2903
|
+
* Another call is in progress and needs to finish before this call can happen.
|
|
2904
|
+
*/
|
|
2905
|
+
RecursiveDisallowed: PlainDescriptor<undefined>;
|
|
2906
|
+
};
|
|
2907
|
+
OrmlXcm: {
|
|
2908
|
+
/**
|
|
2909
|
+
* The message and destination combination was not recognized as being
|
|
2910
|
+
* reachable.
|
|
2911
|
+
*/
|
|
2912
|
+
Unreachable: PlainDescriptor<undefined>;
|
|
2913
|
+
/**
|
|
2914
|
+
* The message and destination was recognized as being reachable but
|
|
2915
|
+
* the operation could not be completed.
|
|
2916
|
+
*/
|
|
2917
|
+
SendFailure: PlainDescriptor<undefined>;
|
|
2918
|
+
/**
|
|
2919
|
+
* The version of the `Versioned` value used is not able to be
|
|
2920
|
+
* interpreted.
|
|
2921
|
+
*/
|
|
2922
|
+
BadVersion: PlainDescriptor<undefined>;
|
|
2923
|
+
};
|
|
2924
|
+
XTokens: {
|
|
2925
|
+
/**
|
|
2926
|
+
* Asset has no reserve location.
|
|
2927
|
+
*/
|
|
2928
|
+
AssetHasNoReserve: PlainDescriptor<undefined>;
|
|
2929
|
+
/**
|
|
2930
|
+
* Not cross-chain transfer.
|
|
2931
|
+
*/
|
|
2932
|
+
NotCrossChainTransfer: PlainDescriptor<undefined>;
|
|
2933
|
+
/**
|
|
2934
|
+
* Invalid transfer destination.
|
|
2935
|
+
*/
|
|
2936
|
+
InvalidDest: PlainDescriptor<undefined>;
|
|
2937
|
+
/**
|
|
2938
|
+
* Currency is not cross-chain transferable.
|
|
2939
|
+
*/
|
|
2940
|
+
NotCrossChainTransferableCurrency: PlainDescriptor<undefined>;
|
|
2941
|
+
/**
|
|
2942
|
+
* The message's weight could not be determined.
|
|
2943
|
+
*/
|
|
2944
|
+
UnweighableMessage: PlainDescriptor<undefined>;
|
|
2945
|
+
/**
|
|
2946
|
+
* XCM execution failed.
|
|
2947
|
+
*/
|
|
2948
|
+
XcmExecutionFailed: PlainDescriptor<undefined>;
|
|
2949
|
+
/**
|
|
2950
|
+
* Could not re-anchor the assets to declare the fees for the
|
|
2951
|
+
* destination chain.
|
|
2952
|
+
*/
|
|
2953
|
+
CannotReanchor: PlainDescriptor<undefined>;
|
|
2954
|
+
/**
|
|
2955
|
+
* Could not get ancestry of asset reserve location.
|
|
2956
|
+
*/
|
|
2957
|
+
InvalidAncestry: PlainDescriptor<undefined>;
|
|
2958
|
+
/**
|
|
2959
|
+
* The Asset is invalid.
|
|
2960
|
+
*/
|
|
2961
|
+
InvalidAsset: PlainDescriptor<undefined>;
|
|
2962
|
+
/**
|
|
2963
|
+
* The destination `Location` provided cannot be inverted.
|
|
2964
|
+
*/
|
|
2965
|
+
DestinationNotInvertible: PlainDescriptor<undefined>;
|
|
2966
|
+
/**
|
|
2967
|
+
* The version of the `Versioned` value used is not able to be
|
|
2968
|
+
* interpreted.
|
|
2969
|
+
*/
|
|
2970
|
+
BadVersion: PlainDescriptor<undefined>;
|
|
2971
|
+
/**
|
|
2972
|
+
* We tried sending distinct asset and fee but they have different
|
|
2973
|
+
* reserve chains.
|
|
2974
|
+
*/
|
|
2975
|
+
DistinctReserveForAssetAndFee: PlainDescriptor<undefined>;
|
|
2976
|
+
/**
|
|
2977
|
+
* The fee is zero.
|
|
2978
|
+
*/
|
|
2979
|
+
ZeroFee: PlainDescriptor<undefined>;
|
|
2980
|
+
/**
|
|
2981
|
+
* The transfering asset amount is zero.
|
|
2982
|
+
*/
|
|
2983
|
+
ZeroAmount: PlainDescriptor<undefined>;
|
|
2984
|
+
/**
|
|
2985
|
+
* The number of assets to be sent is over the maximum.
|
|
2986
|
+
*/
|
|
2987
|
+
TooManyAssetsBeingSent: PlainDescriptor<undefined>;
|
|
2988
|
+
/**
|
|
2989
|
+
* The specified index does not exist in a Assets struct.
|
|
2990
|
+
*/
|
|
2991
|
+
AssetIndexNonExistent: PlainDescriptor<undefined>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Fee is not enough.
|
|
2994
|
+
*/
|
|
2995
|
+
FeeNotEnough: PlainDescriptor<undefined>;
|
|
2996
|
+
/**
|
|
2997
|
+
* Not supported Location
|
|
2998
|
+
*/
|
|
2999
|
+
NotSupportedLocation: PlainDescriptor<undefined>;
|
|
3000
|
+
/**
|
|
3001
|
+
* MinXcmFee not registered for certain reserve location
|
|
3002
|
+
*/
|
|
3003
|
+
MinXcmFeeNotDefined: PlainDescriptor<undefined>;
|
|
3004
|
+
/**
|
|
3005
|
+
* Asset transfer is limited by RateLimiter.
|
|
3006
|
+
*/
|
|
3007
|
+
RateLimited: PlainDescriptor<undefined>;
|
|
3008
|
+
};
|
|
3009
|
+
UnknownTokens: {
|
|
3010
|
+
/**
|
|
3011
|
+
* The balance is too low.
|
|
3012
|
+
*/
|
|
3013
|
+
BalanceTooLow: PlainDescriptor<undefined>;
|
|
3014
|
+
/**
|
|
3015
|
+
* The operation will cause balance to overflow.
|
|
3016
|
+
*/
|
|
3017
|
+
BalanceOverflow: PlainDescriptor<undefined>;
|
|
3018
|
+
/**
|
|
3019
|
+
* Unhandled asset.
|
|
3020
|
+
*/
|
|
3021
|
+
UnhandledAsset: PlainDescriptor<undefined>;
|
|
3022
|
+
};
|
|
3023
|
+
CollatorSelection: {
|
|
3024
|
+
/**
|
|
3025
|
+
* The pallet has too many candidates.
|
|
3026
|
+
*/
|
|
3027
|
+
TooManyCandidates: PlainDescriptor<undefined>;
|
|
3028
|
+
/**
|
|
3029
|
+
* Leaving would result in too few candidates.
|
|
3030
|
+
*/
|
|
3031
|
+
TooFewEligibleCollators: PlainDescriptor<undefined>;
|
|
3032
|
+
/**
|
|
3033
|
+
* Account is already a candidate.
|
|
3034
|
+
*/
|
|
3035
|
+
AlreadyCandidate: PlainDescriptor<undefined>;
|
|
3036
|
+
/**
|
|
3037
|
+
* Account is not a candidate.
|
|
3038
|
+
*/
|
|
3039
|
+
NotCandidate: PlainDescriptor<undefined>;
|
|
3040
|
+
/**
|
|
3041
|
+
* There are too many Invulnerables.
|
|
3042
|
+
*/
|
|
3043
|
+
TooManyInvulnerables: PlainDescriptor<undefined>;
|
|
3044
|
+
/**
|
|
3045
|
+
* Account is already an Invulnerable.
|
|
3046
|
+
*/
|
|
3047
|
+
AlreadyInvulnerable: PlainDescriptor<undefined>;
|
|
3048
|
+
/**
|
|
3049
|
+
* Account is not an Invulnerable.
|
|
3050
|
+
*/
|
|
3051
|
+
NotInvulnerable: PlainDescriptor<undefined>;
|
|
3052
|
+
/**
|
|
3053
|
+
* Account has no associated validator ID.
|
|
3054
|
+
*/
|
|
3055
|
+
NoAssociatedValidatorId: PlainDescriptor<undefined>;
|
|
3056
|
+
/**
|
|
3057
|
+
* Validator ID is not yet registered.
|
|
3058
|
+
*/
|
|
3059
|
+
ValidatorNotRegistered: PlainDescriptor<undefined>;
|
|
3060
|
+
/**
|
|
3061
|
+
* Could not insert in the candidate list.
|
|
3062
|
+
*/
|
|
3063
|
+
InsertToCandidateListFailed: PlainDescriptor<undefined>;
|
|
3064
|
+
/**
|
|
3065
|
+
* Could not remove from the candidate list.
|
|
3066
|
+
*/
|
|
3067
|
+
RemoveFromCandidateListFailed: PlainDescriptor<undefined>;
|
|
3068
|
+
/**
|
|
3069
|
+
* New deposit amount would be below the minimum candidacy bond.
|
|
3070
|
+
*/
|
|
3071
|
+
DepositTooLow: PlainDescriptor<undefined>;
|
|
3072
|
+
/**
|
|
3073
|
+
* Could not update the candidate list.
|
|
3074
|
+
*/
|
|
3075
|
+
UpdateCandidateListFailed: PlainDescriptor<undefined>;
|
|
3076
|
+
/**
|
|
3077
|
+
* Deposit amount is too low to take the target's slot in the candidate list.
|
|
3078
|
+
*/
|
|
3079
|
+
InsufficientBond: PlainDescriptor<undefined>;
|
|
3080
|
+
/**
|
|
3081
|
+
* The target account to be replaced in the candidate list is not a candidate.
|
|
3082
|
+
*/
|
|
3083
|
+
TargetIsNotCandidate: PlainDescriptor<undefined>;
|
|
3084
|
+
/**
|
|
3085
|
+
* The updated deposit amount is equal to the amount already reserved.
|
|
3086
|
+
*/
|
|
3087
|
+
IdenticalDeposit: PlainDescriptor<undefined>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Cannot lower candidacy bond while occupying a future collator slot in the list.
|
|
3090
|
+
*/
|
|
3091
|
+
InvalidUnreserve: PlainDescriptor<undefined>;
|
|
3092
|
+
};
|
|
3093
|
+
Session: {
|
|
3094
|
+
/**
|
|
3095
|
+
* Invalid ownership proof.
|
|
3096
|
+
*/
|
|
3097
|
+
InvalidProof: PlainDescriptor<undefined>;
|
|
3098
|
+
/**
|
|
3099
|
+
* No associated validator ID for account.
|
|
3100
|
+
*/
|
|
3101
|
+
NoAssociatedValidatorId: PlainDescriptor<undefined>;
|
|
3102
|
+
/**
|
|
3103
|
+
* Registered duplicate key.
|
|
3104
|
+
*/
|
|
3105
|
+
DuplicatedKey: PlainDescriptor<undefined>;
|
|
3106
|
+
/**
|
|
3107
|
+
* No keys are associated with this account.
|
|
3108
|
+
*/
|
|
3109
|
+
NoKeys: PlainDescriptor<undefined>;
|
|
3110
|
+
/**
|
|
3111
|
+
* Key setting account is not live, so it's impossible to associate keys.
|
|
3112
|
+
*/
|
|
3113
|
+
NoAccount: PlainDescriptor<undefined>;
|
|
3114
|
+
};
|
|
3115
|
+
EmaOracle: {
|
|
3116
|
+
/**
|
|
3117
|
+
|
|
3118
|
+
*/
|
|
3119
|
+
TooManyUniqueEntries: PlainDescriptor<undefined>;
|
|
3120
|
+
/**
|
|
3121
|
+
|
|
3122
|
+
*/
|
|
3123
|
+
OnTradeValueZero: PlainDescriptor<undefined>;
|
|
3124
|
+
/**
|
|
3125
|
+
|
|
3126
|
+
*/
|
|
3127
|
+
OracleNotFound: PlainDescriptor<undefined>;
|
|
3128
|
+
/**
|
|
3129
|
+
* Asset not found
|
|
3130
|
+
*/
|
|
3131
|
+
AssetNotFound: PlainDescriptor<undefined>;
|
|
3132
|
+
/**
|
|
3133
|
+
* The new price is outside the max allowed range
|
|
3134
|
+
*/
|
|
3135
|
+
PriceOutsideAllowedRange: PlainDescriptor<undefined>;
|
|
3136
|
+
};
|
|
3137
|
+
Broadcast: {
|
|
3138
|
+
/**
|
|
3139
|
+
* The execution context call stack has reached its maximum size
|
|
3140
|
+
*/
|
|
3141
|
+
ExecutionCallStackOverflow: PlainDescriptor<undefined>;
|
|
3142
|
+
/**
|
|
3143
|
+
* The execution context call stack is empty, unable to decrease level
|
|
3144
|
+
*/
|
|
3145
|
+
ExecutionCallStackUnderflow: PlainDescriptor<undefined>;
|
|
3146
|
+
};
|
|
3147
|
+
};
|
|
3148
|
+
type IConstants = {
|
|
3149
|
+
System: {
|
|
3150
|
+
/**
|
|
3151
|
+
* Block & extrinsics weights: base values and limits.
|
|
3152
|
+
*/
|
|
3153
|
+
BlockWeights: PlainDescriptor<Anonymize<In7a38730s6qs>>;
|
|
3154
|
+
/**
|
|
3155
|
+
* The maximum length of a block (in bytes).
|
|
3156
|
+
*/
|
|
3157
|
+
BlockLength: PlainDescriptor<Anonymize<If15el53dd76v9>>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
3160
|
+
*/
|
|
3161
|
+
BlockHashCount: PlainDescriptor<number>;
|
|
3162
|
+
/**
|
|
3163
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
3164
|
+
*/
|
|
3165
|
+
DbWeight: PlainDescriptor<Anonymize<I9s0ave7t0vnrk>>;
|
|
3166
|
+
/**
|
|
3167
|
+
* Get the chain's in-code version.
|
|
3168
|
+
*/
|
|
3169
|
+
Version: PlainDescriptor<Anonymize<Ic6nglu2db2c36>>;
|
|
3170
|
+
/**
|
|
3171
|
+
* The designated SS58 prefix of this chain.
|
|
3172
|
+
*
|
|
3173
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
3174
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
3175
|
+
* an identifier of the chain.
|
|
3176
|
+
*/
|
|
3177
|
+
SS58Prefix: PlainDescriptor<number>;
|
|
3178
|
+
};
|
|
3179
|
+
Omnipool: {
|
|
3180
|
+
/**
|
|
3181
|
+
* Native Asset ID
|
|
3182
|
+
*/
|
|
3183
|
+
HdxAssetId: PlainDescriptor<number>;
|
|
3184
|
+
/**
|
|
3185
|
+
* Hub Asset ID
|
|
3186
|
+
*/
|
|
3187
|
+
HubAssetId: PlainDescriptor<number>;
|
|
3188
|
+
/**
|
|
3189
|
+
* Minimum withdrawal fee
|
|
3190
|
+
*/
|
|
3191
|
+
MinWithdrawalFee: PlainDescriptor<number>;
|
|
3192
|
+
/**
|
|
3193
|
+
* Minimum trading limit
|
|
3194
|
+
*/
|
|
3195
|
+
MinimumTradingLimit: PlainDescriptor<bigint>;
|
|
3196
|
+
/**
|
|
3197
|
+
* Minimum pool liquidity which can be added
|
|
3198
|
+
*/
|
|
3199
|
+
MinimumPoolLiquidity: PlainDescriptor<bigint>;
|
|
3200
|
+
/**
|
|
3201
|
+
* Max fraction of asset reserve to sell in single transaction
|
|
3202
|
+
*/
|
|
3203
|
+
MaxInRatio: PlainDescriptor<bigint>;
|
|
3204
|
+
/**
|
|
3205
|
+
* Max fraction of asset reserve to buy in single transaction
|
|
3206
|
+
*/
|
|
3207
|
+
MaxOutRatio: PlainDescriptor<bigint>;
|
|
3208
|
+
/**
|
|
3209
|
+
* Non fungible class id
|
|
3210
|
+
*/
|
|
3211
|
+
NFTCollectionId: PlainDescriptor<bigint>;
|
|
3212
|
+
/**
|
|
3213
|
+
|
|
3214
|
+
*/
|
|
3215
|
+
BurnProtocolFee: PlainDescriptor<number>;
|
|
3216
|
+
};
|
|
3217
|
+
DynamicFees: {
|
|
3218
|
+
/**
|
|
3219
|
+
|
|
3220
|
+
*/
|
|
3221
|
+
AssetFeeParameters: PlainDescriptor<Anonymize<Ie5fbn0f5capo3>>;
|
|
3222
|
+
/**
|
|
3223
|
+
|
|
3224
|
+
*/
|
|
3225
|
+
ProtocolFeeParameters: PlainDescriptor<Anonymize<Ie5fbn0f5capo3>>;
|
|
3226
|
+
};
|
|
3227
|
+
Stableswap: {
|
|
3228
|
+
/**
|
|
3229
|
+
* Minimum pool liquidity
|
|
3230
|
+
*/
|
|
3231
|
+
MinPoolLiquidity: PlainDescriptor<bigint>;
|
|
3232
|
+
/**
|
|
3233
|
+
* Minimum trading amount
|
|
3234
|
+
*/
|
|
3235
|
+
MinTradingLimit: PlainDescriptor<bigint>;
|
|
3236
|
+
/**
|
|
3237
|
+
* Amplification inclusive range. Pool's amp can be selected from the range only.
|
|
3238
|
+
*/
|
|
3239
|
+
AmplificationRange: PlainDescriptor<Anonymize<Ia9ai1mp1viqjd>>;
|
|
3240
|
+
};
|
|
3241
|
+
LBP: {
|
|
3242
|
+
/**
|
|
3243
|
+
* Minimum trading limit, sole purpose of this is to keep the math working
|
|
3244
|
+
*/
|
|
3245
|
+
MinTradingLimit: PlainDescriptor<bigint>;
|
|
3246
|
+
/**
|
|
3247
|
+
* Minimum pool liquidity, sole purpose of this is to keep the math working
|
|
3248
|
+
*/
|
|
3249
|
+
MinPoolLiquidity: PlainDescriptor<bigint>;
|
|
3250
|
+
/**
|
|
3251
|
+
* Max fraction of pool to sell in single transaction
|
|
3252
|
+
*/
|
|
3253
|
+
MaxInRatio: PlainDescriptor<bigint>;
|
|
3254
|
+
/**
|
|
3255
|
+
* Max fraction of pool to buy in single transaction
|
|
3256
|
+
*/
|
|
3257
|
+
MaxOutRatio: PlainDescriptor<bigint>;
|
|
3258
|
+
/**
|
|
3259
|
+
|
|
3260
|
+
*/
|
|
3261
|
+
repay_fee: PlainDescriptor<Anonymize<I9jd27rnpm8ttv>>;
|
|
3262
|
+
};
|
|
3263
|
+
XYK: {
|
|
3264
|
+
/**
|
|
3265
|
+
* Native Asset Id
|
|
3266
|
+
*/
|
|
3267
|
+
NativeAssetId: PlainDescriptor<number>;
|
|
3268
|
+
/**
|
|
3269
|
+
* Trading fee rate
|
|
3270
|
+
*/
|
|
3271
|
+
GetExchangeFee: PlainDescriptor<Anonymize<I9jd27rnpm8ttv>>;
|
|
3272
|
+
/**
|
|
3273
|
+
* Minimum trading limit
|
|
3274
|
+
*/
|
|
3275
|
+
MinTradingLimit: PlainDescriptor<bigint>;
|
|
3276
|
+
/**
|
|
3277
|
+
* Minimum pool liquidity
|
|
3278
|
+
*/
|
|
3279
|
+
MinPoolLiquidity: PlainDescriptor<bigint>;
|
|
3280
|
+
/**
|
|
3281
|
+
* Max fraction of pool to sell in single transaction
|
|
3282
|
+
*/
|
|
3283
|
+
MaxInRatio: PlainDescriptor<bigint>;
|
|
3284
|
+
/**
|
|
3285
|
+
* Max fraction of pool to buy in single transaction
|
|
3286
|
+
*/
|
|
3287
|
+
MaxOutRatio: PlainDescriptor<bigint>;
|
|
3288
|
+
/**
|
|
3289
|
+
* Oracle source identifier for this pallet.
|
|
3290
|
+
*/
|
|
3291
|
+
OracleSource: PlainDescriptor<FixedSizeBinary<8>>;
|
|
3292
|
+
};
|
|
3293
|
+
DCA: {
|
|
3294
|
+
/**
|
|
3295
|
+
* Max price difference allowed between blocks
|
|
3296
|
+
*/
|
|
3297
|
+
MaxPriceDifferenceBetweenBlocks: PlainDescriptor<number>;
|
|
3298
|
+
/**
|
|
3299
|
+
* Max configurable price difference allowed between blocks
|
|
3300
|
+
*/
|
|
3301
|
+
MaxConfigurablePriceDifferenceBetweenBlocks: PlainDescriptor<number>;
|
|
3302
|
+
/**
|
|
3303
|
+
* The number of max schedules to be executed per block
|
|
3304
|
+
*/
|
|
3305
|
+
MaxSchedulePerBlock: PlainDescriptor<number>;
|
|
3306
|
+
/**
|
|
3307
|
+
* The number of max retries in case of trade limit error
|
|
3308
|
+
*/
|
|
3309
|
+
MaxNumberOfRetriesOnError: PlainDescriptor<number>;
|
|
3310
|
+
/**
|
|
3311
|
+
* Minimal period between executions
|
|
3312
|
+
*/
|
|
3313
|
+
MinimalPeriod: PlainDescriptor<number>;
|
|
3314
|
+
/**
|
|
3315
|
+
* Chance of the random rescheduling
|
|
3316
|
+
*/
|
|
3317
|
+
BumpChance: PlainDescriptor<number>;
|
|
3318
|
+
/**
|
|
3319
|
+
* Minimum trading limit for a single trade
|
|
3320
|
+
*/
|
|
3321
|
+
MinimumTradingLimit: PlainDescriptor<bigint>;
|
|
3322
|
+
/**
|
|
3323
|
+
* Native Asset Id
|
|
3324
|
+
*/
|
|
3325
|
+
NativeAssetId: PlainDescriptor<number>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Polkadot Native Asset Id (DOT)
|
|
3328
|
+
*/
|
|
3329
|
+
PolkadotNativeAssetId: PlainDescriptor<number>;
|
|
3330
|
+
/**
|
|
3331
|
+
* Minimum budget to be able to schedule a DCA, specified in native currency
|
|
3332
|
+
*/
|
|
3333
|
+
MinBudgetInNativeCurrency: PlainDescriptor<bigint>;
|
|
3334
|
+
/**
|
|
3335
|
+
* The fee receiver for transaction fees
|
|
3336
|
+
*/
|
|
3337
|
+
FeeReceiver: PlainDescriptor<SS58String>;
|
|
3338
|
+
/**
|
|
3339
|
+
* Named reserve identifier to store named reserves for orders of each users
|
|
3340
|
+
*/
|
|
3341
|
+
NamedReserveId: PlainDescriptor<FixedSizeBinary<8>>;
|
|
3342
|
+
};
|
|
3343
|
+
Aura: {
|
|
3344
|
+
/**
|
|
3345
|
+
* The slot duration Aura should run with, expressed in milliseconds.
|
|
3346
|
+
* The effective value of this type should not change while the chain is running.
|
|
3347
|
+
*
|
|
3348
|
+
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
3349
|
+
*/
|
|
3350
|
+
SlotDuration: PlainDescriptor<bigint>;
|
|
3351
|
+
};
|
|
3352
|
+
};
|
|
3353
|
+
type IViewFns = {};
|
|
3354
|
+
type IRuntimeCalls = {
|
|
3355
|
+
/**
|
|
3356
|
+
|
|
3357
|
+
*/
|
|
3358
|
+
CurrenciesApi: {
|
|
3359
|
+
/**
|
|
3360
|
+
|
|
3361
|
+
*/
|
|
3362
|
+
account: RuntimeDescriptor<[asset_id: number, who: SS58String], Anonymize<Ic02kut0350gb0>>;
|
|
3363
|
+
/**
|
|
3364
|
+
|
|
3365
|
+
*/
|
|
3366
|
+
accounts: RuntimeDescriptor<[who: SS58String], Anonymize<I4g15ko4u63fja>>;
|
|
3367
|
+
/**
|
|
3368
|
+
|
|
3369
|
+
*/
|
|
3370
|
+
free_balance: RuntimeDescriptor<[asset_id: number, who: SS58String], bigint>;
|
|
3371
|
+
};
|
|
3372
|
+
/**
|
|
3373
|
+
* API for dry-running extrinsics and XCM programs to get the programs that need to be passed to the fees API.
|
|
3374
|
+
*
|
|
3375
|
+
* All calls return a vector of tuples (location, xcm) where each "xcm" is executed in "location".
|
|
3376
|
+
* If there's local execution, the location will be "Here".
|
|
3377
|
+
* This vector can be used to calculate both execution and delivery fees.
|
|
3378
|
+
*
|
|
3379
|
+
* Calls or XCMs might fail when executed, this doesn't mean the result of these calls will be an `Err`.
|
|
3380
|
+
* In those cases, there might still be a valid result, with the execution error inside it.
|
|
3381
|
+
* The only reasons why these calls might return an error are listed in the [`Error`] enum.
|
|
3382
|
+
*/
|
|
3383
|
+
DryRunApi: {
|
|
3384
|
+
/**
|
|
3385
|
+
* Dry run call.
|
|
3386
|
+
*/
|
|
3387
|
+
dry_run_call: RuntimeDescriptor<[origin: Anonymize<I8rbu1vdc38cnp>, call: Anonymize<Ick2k1hvh0bm22>], Anonymize<I4e4rvm2fqc561>>;
|
|
3388
|
+
/**
|
|
3389
|
+
* Dry run XCM program
|
|
3390
|
+
*/
|
|
3391
|
+
dry_run_xcm: RuntimeDescriptor<[origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm], Anonymize<Id2luorng6dtg7>>;
|
|
378
3392
|
};
|
|
379
3393
|
/**
|
|
380
3394
|
|
|
@@ -427,7 +3441,7 @@ export type HydrationEvents = EventsFromPalletsDef<PalletsTypedef>;
|
|
|
427
3441
|
export type HydrationErrors = ErrorsFromPalletsDef<PalletsTypedef>;
|
|
428
3442
|
export type HydrationConstants = ConstFromPalletsDef<PalletsTypedef>;
|
|
429
3443
|
export type HydrationViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
|
|
430
|
-
export type HydrationCallData = Anonymize<
|
|
3444
|
+
export type HydrationCallData = Anonymize<Ick2k1hvh0bm22> & {
|
|
431
3445
|
value: {
|
|
432
3446
|
type: string;
|
|
433
3447
|
};
|