@galacticcouncil/descriptors 1.1.1 → 1.2.0

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