@galacticcouncil/descriptors 1.1.0 → 1.1.1

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