@dedot/chaintypes 0.132.0 → 0.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/paseo-hydration/consts.d.ts +49 -133
- package/paseo-hydration/errors.d.ts +209 -212
- package/paseo-hydration/events.d.ts +141 -158
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +101 -143
- package/paseo-hydration/runtime.d.ts +25 -0
- package/paseo-hydration/tx.d.ts +596 -682
- package/paseo-hydration/types.d.ts +945 -683
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.133.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "1403e839124cd1ed39ff8c6c9ac61724cae0b87c",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Permill,
|
|
4
|
+
import type { RuntimeVersion, Permill, AccountId32, FixedBytes, Perbill, FixedU128, Percent } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
@@ -370,97 +370,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
370
370
|
**/
|
|
371
371
|
[name: string]: any;
|
|
372
372
|
};
|
|
373
|
-
/**
|
|
374
|
-
* Pallet `Elections`'s constants
|
|
375
|
-
**/
|
|
376
|
-
elections: {
|
|
377
|
-
/**
|
|
378
|
-
* Identifier for the elections-phragmen pallet's lock
|
|
379
|
-
**/
|
|
380
|
-
palletId: FixedBytes<8>;
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* How much should be locked up in order to submit one's candidacy.
|
|
384
|
-
**/
|
|
385
|
-
candidacyBond: bigint;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Base deposit associated with voting.
|
|
389
|
-
*
|
|
390
|
-
* This should be sensibly high to economically ensure the pallet cannot be attacked by
|
|
391
|
-
* creating a gigantic number of votes.
|
|
392
|
-
**/
|
|
393
|
-
votingBondBase: bigint;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* The amount of bond that need to be locked for each vote (32 bytes).
|
|
397
|
-
**/
|
|
398
|
-
votingBondFactor: bigint;
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Number of members to elect.
|
|
402
|
-
**/
|
|
403
|
-
desiredMembers: number;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Number of runners_up to keep.
|
|
407
|
-
**/
|
|
408
|
-
desiredRunnersUp: number;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* How long each seat is kept. This defines the next block number at which an election
|
|
412
|
-
* round will happen. If set to zero, no elections are ever triggered and the module will
|
|
413
|
-
* be in passive mode.
|
|
414
|
-
**/
|
|
415
|
-
termDuration: number;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* The maximum number of candidates in a phragmen election.
|
|
419
|
-
*
|
|
420
|
-
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
421
|
-
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
422
|
-
*
|
|
423
|
-
* When this limit is reached no more candidates are accepted in the election.
|
|
424
|
-
**/
|
|
425
|
-
maxCandidates: number;
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* The maximum number of voters to allow in a phragmen election.
|
|
429
|
-
*
|
|
430
|
-
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
431
|
-
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
432
|
-
*
|
|
433
|
-
* When the limit is reached the new voters are ignored.
|
|
434
|
-
**/
|
|
435
|
-
maxVoters: number;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Maximum numbers of votes per voter.
|
|
439
|
-
*
|
|
440
|
-
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
441
|
-
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
442
|
-
**/
|
|
443
|
-
maxVotesPerVoter: number;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Generic pallet constant
|
|
447
|
-
**/
|
|
448
|
-
[name: string]: any;
|
|
449
|
-
};
|
|
450
|
-
/**
|
|
451
|
-
* Pallet `Council`'s constants
|
|
452
|
-
**/
|
|
453
|
-
council: {
|
|
454
|
-
/**
|
|
455
|
-
* The maximum weight of a dispatch call that can be proposed and executed.
|
|
456
|
-
**/
|
|
457
|
-
maxProposalWeight: SpWeightsWeightV2Weight;
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Generic pallet constant
|
|
461
|
-
**/
|
|
462
|
-
[name: string]: any;
|
|
463
|
-
};
|
|
464
373
|
/**
|
|
465
374
|
* Pallet `TechnicalCommittee`'s constants
|
|
466
375
|
**/
|
|
@@ -475,47 +384,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
475
384
|
**/
|
|
476
385
|
[name: string]: any;
|
|
477
386
|
};
|
|
478
|
-
/**
|
|
479
|
-
* Pallet `Tips`'s constants
|
|
480
|
-
**/
|
|
481
|
-
tips: {
|
|
482
|
-
/**
|
|
483
|
-
* Maximum acceptable reason length.
|
|
484
|
-
*
|
|
485
|
-
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
486
|
-
**/
|
|
487
|
-
maximumReasonLength: number;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
491
|
-
**/
|
|
492
|
-
dataDepositPerByte: bigint;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* The period for which a tip remains open after is has achieved threshold tippers.
|
|
496
|
-
**/
|
|
497
|
-
tipCountdown: number;
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* The percent of the final tip which goes to the original reporter of the tip.
|
|
501
|
-
**/
|
|
502
|
-
tipFindersFee: Percent;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* The non-zero amount held on deposit for placing a tip report.
|
|
506
|
-
**/
|
|
507
|
-
tipReportDepositBase: bigint;
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* The maximum amount for a single tip.
|
|
511
|
-
**/
|
|
512
|
-
maxTipAmount: bigint;
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* Generic pallet constant
|
|
516
|
-
**/
|
|
517
|
-
[name: string]: any;
|
|
518
|
-
};
|
|
519
387
|
/**
|
|
520
388
|
* Pallet `Proxy`'s constants
|
|
521
389
|
**/
|
|
@@ -1343,6 +1211,44 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1343
1211
|
**/
|
|
1344
1212
|
profitReceiver: AccountId32;
|
|
1345
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* Asset ID of Hollar
|
|
1216
|
+
**/
|
|
1217
|
+
hollarId: number;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Generic pallet constant
|
|
1221
|
+
**/
|
|
1222
|
+
[name: string]: any;
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* Pallet `HSM`'s constants
|
|
1226
|
+
**/
|
|
1227
|
+
hsm: {
|
|
1228
|
+
/**
|
|
1229
|
+
* Asset ID of Hollar
|
|
1230
|
+
**/
|
|
1231
|
+
hollarId: number;
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Pallet ID to determine HSM account
|
|
1235
|
+
**/
|
|
1236
|
+
palletId: FrameSupportPalletId;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* The gas limit for the execution of EVM calls
|
|
1240
|
+
**/
|
|
1241
|
+
gasLimit: bigint;
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Generic pallet constant
|
|
1245
|
+
**/
|
|
1246
|
+
[name: string]: any;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Pallet `Parameters`'s constants
|
|
1250
|
+
**/
|
|
1251
|
+
parameters: {
|
|
1346
1252
|
/**
|
|
1347
1253
|
* Generic pallet constant
|
|
1348
1254
|
**/
|
|
@@ -1454,6 +1360,16 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1454
1360
|
**/
|
|
1455
1361
|
nftCollectionId: bigint;
|
|
1456
1362
|
|
|
1363
|
+
/**
|
|
1364
|
+
* Oracle source identifier for this pallet.
|
|
1365
|
+
**/
|
|
1366
|
+
oracleSource: FixedBytes<8>;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Oracle's liquidity aggregation period.
|
|
1370
|
+
**/
|
|
1371
|
+
oraclePeriod: HydradxTraitsOracleOraclePeriod;
|
|
1372
|
+
|
|
1457
1373
|
/**
|
|
1458
1374
|
* Generic pallet constant
|
|
1459
1375
|
**/
|
|
@@ -596,164 +596,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
596
596
|
**/
|
|
597
597
|
[error: string]: GenericPalletError<Rv>;
|
|
598
598
|
};
|
|
599
|
-
/**
|
|
600
|
-
* Pallet `Elections`'s errors
|
|
601
|
-
**/
|
|
602
|
-
elections: {
|
|
603
|
-
/**
|
|
604
|
-
* Cannot vote when no candidates or members exist.
|
|
605
|
-
**/
|
|
606
|
-
UnableToVote: GenericPalletError<Rv>;
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* Must vote for at least one candidate.
|
|
610
|
-
**/
|
|
611
|
-
NoVotes: GenericPalletError<Rv>;
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* Cannot vote more than candidates.
|
|
615
|
-
**/
|
|
616
|
-
TooManyVotes: GenericPalletError<Rv>;
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* Cannot vote more than maximum allowed.
|
|
620
|
-
**/
|
|
621
|
-
MaximumVotesExceeded: GenericPalletError<Rv>;
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Cannot vote with stake less than minimum balance.
|
|
625
|
-
**/
|
|
626
|
-
LowBalance: GenericPalletError<Rv>;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Voter can not pay voting bond.
|
|
630
|
-
**/
|
|
631
|
-
UnableToPayBond: GenericPalletError<Rv>;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Must be a voter.
|
|
635
|
-
**/
|
|
636
|
-
MustBeVoter: GenericPalletError<Rv>;
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Duplicated candidate submission.
|
|
640
|
-
**/
|
|
641
|
-
DuplicatedCandidate: GenericPalletError<Rv>;
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* Too many candidates have been created.
|
|
645
|
-
**/
|
|
646
|
-
TooManyCandidates: GenericPalletError<Rv>;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Member cannot re-submit candidacy.
|
|
650
|
-
**/
|
|
651
|
-
MemberSubmit: GenericPalletError<Rv>;
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Runner cannot re-submit candidacy.
|
|
655
|
-
**/
|
|
656
|
-
RunnerUpSubmit: GenericPalletError<Rv>;
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* Candidate does not have enough funds.
|
|
660
|
-
**/
|
|
661
|
-
InsufficientCandidateFunds: GenericPalletError<Rv>;
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* Not a member.
|
|
665
|
-
**/
|
|
666
|
-
NotMember: GenericPalletError<Rv>;
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* The provided count of number of candidates is incorrect.
|
|
670
|
-
**/
|
|
671
|
-
InvalidWitnessData: GenericPalletError<Rv>;
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* The provided count of number of votes is incorrect.
|
|
675
|
-
**/
|
|
676
|
-
InvalidVoteCount: GenericPalletError<Rv>;
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* The renouncing origin presented a wrong `Renouncing` parameter.
|
|
680
|
-
**/
|
|
681
|
-
InvalidRenouncing: GenericPalletError<Rv>;
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* Prediction regarding replacement after member removal is wrong.
|
|
685
|
-
**/
|
|
686
|
-
InvalidReplacement: GenericPalletError<Rv>;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Generic pallet error
|
|
690
|
-
**/
|
|
691
|
-
[error: string]: GenericPalletError<Rv>;
|
|
692
|
-
};
|
|
693
|
-
/**
|
|
694
|
-
* Pallet `Council`'s errors
|
|
695
|
-
**/
|
|
696
|
-
council: {
|
|
697
|
-
/**
|
|
698
|
-
* Account is not a member
|
|
699
|
-
**/
|
|
700
|
-
NotMember: GenericPalletError<Rv>;
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* Duplicate proposals not allowed
|
|
704
|
-
**/
|
|
705
|
-
DuplicateProposal: GenericPalletError<Rv>;
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Proposal must exist
|
|
709
|
-
**/
|
|
710
|
-
ProposalMissing: GenericPalletError<Rv>;
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* Mismatched index
|
|
714
|
-
**/
|
|
715
|
-
WrongIndex: GenericPalletError<Rv>;
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* Duplicate vote ignored
|
|
719
|
-
**/
|
|
720
|
-
DuplicateVote: GenericPalletError<Rv>;
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Members are already initialized!
|
|
724
|
-
**/
|
|
725
|
-
AlreadyInitialized: GenericPalletError<Rv>;
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* The close call was made too early, before the end of the voting.
|
|
729
|
-
**/
|
|
730
|
-
TooEarly: GenericPalletError<Rv>;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* There can only be a maximum of `MaxProposals` active proposals.
|
|
734
|
-
**/
|
|
735
|
-
TooManyProposals: GenericPalletError<Rv>;
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* The given weight bound for the proposal was too low.
|
|
739
|
-
**/
|
|
740
|
-
WrongProposalWeight: GenericPalletError<Rv>;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* The given length bound for the proposal was too low.
|
|
744
|
-
**/
|
|
745
|
-
WrongProposalLength: GenericPalletError<Rv>;
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Prime account is not a member
|
|
749
|
-
**/
|
|
750
|
-
PrimeAccountNotMember: GenericPalletError<Rv>;
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* Generic pallet error
|
|
754
|
-
**/
|
|
755
|
-
[error: string]: GenericPalletError<Rv>;
|
|
756
|
-
};
|
|
757
599
|
/**
|
|
758
600
|
* Pallet `TechnicalCommittee`'s errors
|
|
759
601
|
**/
|
|
@@ -818,50 +660,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
818
660
|
**/
|
|
819
661
|
[error: string]: GenericPalletError<Rv>;
|
|
820
662
|
};
|
|
821
|
-
/**
|
|
822
|
-
* Pallet `Tips`'s errors
|
|
823
|
-
**/
|
|
824
|
-
tips: {
|
|
825
|
-
/**
|
|
826
|
-
* The reason given is just too big.
|
|
827
|
-
**/
|
|
828
|
-
ReasonTooBig: GenericPalletError<Rv>;
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* The tip was already found/started.
|
|
832
|
-
**/
|
|
833
|
-
AlreadyKnown: GenericPalletError<Rv>;
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* The tip hash is unknown.
|
|
837
|
-
**/
|
|
838
|
-
UnknownTip: GenericPalletError<Rv>;
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* The tip given was too generous.
|
|
842
|
-
**/
|
|
843
|
-
MaxTipAmountExceeded: GenericPalletError<Rv>;
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* The account attempting to retract the tip is not the finder of the tip.
|
|
847
|
-
**/
|
|
848
|
-
NotFinder: GenericPalletError<Rv>;
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
|
852
|
-
**/
|
|
853
|
-
StillOpen: GenericPalletError<Rv>;
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* The tip cannot be claimed/closed because it's still in the countdown period.
|
|
857
|
-
**/
|
|
858
|
-
Premature: GenericPalletError<Rv>;
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* Generic pallet error
|
|
862
|
-
**/
|
|
863
|
-
[error: string]: GenericPalletError<Rv>;
|
|
864
|
-
};
|
|
865
663
|
/**
|
|
866
664
|
* Pallet `Proxy`'s errors
|
|
867
665
|
**/
|
|
@@ -1700,11 +1498,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1700
1498
|
**/
|
|
1701
1499
|
LiquidityMiningIsNotStopped: GenericPalletError<Rv>;
|
|
1702
1500
|
|
|
1703
|
-
/**
|
|
1704
|
-
* LP shares amount is not valid.
|
|
1705
|
-
**/
|
|
1706
|
-
InvalidDepositAmount: GenericPalletError<Rv>;
|
|
1707
|
-
|
|
1708
1501
|
/**
|
|
1709
1502
|
* Account is not allowed to perform action.
|
|
1710
1503
|
**/
|
|
@@ -1952,6 +1745,23 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1952
1745
|
**/
|
|
1953
1746
|
NotAllowed: GenericPalletError<Rv>;
|
|
1954
1747
|
|
|
1748
|
+
/**
|
|
1749
|
+
* Asset still in lockdown as it reached the allowed deposit limit for the period
|
|
1750
|
+
* Query the `asset_lockdown_state` storage to determine until which block the asset is locked,
|
|
1751
|
+
* so that the deposit can be released afterward.
|
|
1752
|
+
**/
|
|
1753
|
+
AssetInLockdown: GenericPalletError<Rv>;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Asset is not in a lockdown
|
|
1757
|
+
**/
|
|
1758
|
+
AssetNotInLockdown: GenericPalletError<Rv>;
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* Invalid amount to save deposit
|
|
1762
|
+
**/
|
|
1763
|
+
InvalidAmount: GenericPalletError<Rv>;
|
|
1764
|
+
|
|
1955
1765
|
/**
|
|
1956
1766
|
* Generic pallet error
|
|
1957
1767
|
**/
|
|
@@ -2020,6 +1830,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2020
1830
|
* Pallet `DynamicFees`'s errors
|
|
2021
1831
|
**/
|
|
2022
1832
|
dynamicFees: {
|
|
1833
|
+
/**
|
|
1834
|
+
* Invalid fee parameters provided
|
|
1835
|
+
**/
|
|
1836
|
+
InvalidFeeParameters: GenericPalletError<Rv>;
|
|
1837
|
+
|
|
2023
1838
|
/**
|
|
2024
1839
|
* Generic pallet error
|
|
2025
1840
|
**/
|
|
@@ -2239,6 +2054,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2239
2054
|
**/
|
|
2240
2055
|
IncorrectAssetDecimals: GenericPalletError<Rv>;
|
|
2241
2056
|
|
|
2057
|
+
/**
|
|
2058
|
+
* Pool does not have pegs configured.
|
|
2059
|
+
**/
|
|
2060
|
+
NoPegSource: GenericPalletError<Rv>;
|
|
2061
|
+
|
|
2242
2062
|
/**
|
|
2243
2063
|
* Generic pallet error
|
|
2244
2064
|
**/
|
|
@@ -2700,6 +2520,173 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2700
2520
|
**/
|
|
2701
2521
|
NotProfitable: GenericPalletError<Rv>;
|
|
2702
2522
|
|
|
2523
|
+
/**
|
|
2524
|
+
* Flash minter contract address not set. It is required for Hollar liquidations.
|
|
2525
|
+
**/
|
|
2526
|
+
FlashMinterNotSet: GenericPalletError<Rv>;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* Invalid liquidation data provided
|
|
2530
|
+
**/
|
|
2531
|
+
InvalidLiquidationData: GenericPalletError<Rv>;
|
|
2532
|
+
|
|
2533
|
+
/**
|
|
2534
|
+
* Generic pallet error
|
|
2535
|
+
**/
|
|
2536
|
+
[error: string]: GenericPalletError<Rv>;
|
|
2537
|
+
};
|
|
2538
|
+
/**
|
|
2539
|
+
* Pallet `HSM`'s errors
|
|
2540
|
+
**/
|
|
2541
|
+
hsm: {
|
|
2542
|
+
/**
|
|
2543
|
+
* Asset is not approved as collateral
|
|
2544
|
+
*
|
|
2545
|
+
* The operation attempted to use an asset that is not registered as an approved collateral.
|
|
2546
|
+
**/
|
|
2547
|
+
AssetNotApproved: GenericPalletError<Rv>;
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* Asset is already approved as collateral
|
|
2551
|
+
*
|
|
2552
|
+
* Attempted to add an asset that is already registered as a collateral.
|
|
2553
|
+
**/
|
|
2554
|
+
AssetAlreadyApproved: GenericPalletError<Rv>;
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Another asset from the same pool is already approved
|
|
2558
|
+
*
|
|
2559
|
+
* Only one asset from each StableSwap pool can be used as collateral.
|
|
2560
|
+
**/
|
|
2561
|
+
PoolAlreadyHasCollateral: GenericPalletError<Rv>;
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* Invalid asset pair, must be Hollar and approved collateral
|
|
2565
|
+
*
|
|
2566
|
+
* The asset pair for buy/sell operations must include Hollar as one side and an approved collateral as the other.
|
|
2567
|
+
**/
|
|
2568
|
+
InvalidAssetPair: GenericPalletError<Rv>;
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Max buy price exceeded
|
|
2572
|
+
*
|
|
2573
|
+
* The calculated buy price exceeds the maximum allowed buy price for the collateral.
|
|
2574
|
+
**/
|
|
2575
|
+
MaxBuyPriceExceeded: GenericPalletError<Rv>;
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* Max buy back amount in single block exceeded
|
|
2579
|
+
*
|
|
2580
|
+
* The amount of Hollar being sold to HSM exceeds the maximum allowed in a single block for this collateral.
|
|
2581
|
+
**/
|
|
2582
|
+
MaxBuyBackExceeded: GenericPalletError<Rv>;
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* Max holding amount for collateral exceeded
|
|
2586
|
+
*
|
|
2587
|
+
* The operation would cause the HSM to hold more of the collateral than the configured maximum.
|
|
2588
|
+
**/
|
|
2589
|
+
MaxHoldingExceeded: GenericPalletError<Rv>;
|
|
2590
|
+
|
|
2591
|
+
/**
|
|
2592
|
+
* Slippage limit exceeded
|
|
2593
|
+
*
|
|
2594
|
+
* The calculated amount is worse than the provided slippage limit.
|
|
2595
|
+
**/
|
|
2596
|
+
SlippageLimitExceeded: GenericPalletError<Rv>;
|
|
2597
|
+
|
|
2598
|
+
/**
|
|
2599
|
+
* Invalid EVM contract interaction
|
|
2600
|
+
*
|
|
2601
|
+
* The call to the EVM contract (GHO Hollar token) failed.
|
|
2602
|
+
**/
|
|
2603
|
+
InvalidEVMInteraction: GenericPalletError<Rv>;
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Decimal retrieval failed
|
|
2607
|
+
*
|
|
2608
|
+
* Failed to retrieve the decimal information for an asset.
|
|
2609
|
+
**/
|
|
2610
|
+
DecimalRetrievalFailed: GenericPalletError<Rv>;
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* No arbitrage opportunity
|
|
2614
|
+
*
|
|
2615
|
+
* There is no profitable arbitrage opportunity for the specified collateral.
|
|
2616
|
+
**/
|
|
2617
|
+
NoArbitrageOpportunity: GenericPalletError<Rv>;
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* Offchain lock error
|
|
2621
|
+
*
|
|
2622
|
+
* Failed to acquire the lock for offchain workers, likely because another operation is in progress.
|
|
2623
|
+
**/
|
|
2624
|
+
OffchainLockError: GenericPalletError<Rv>;
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* Asset not in the pool
|
|
2628
|
+
*
|
|
2629
|
+
* The specified asset was not found in the pool.
|
|
2630
|
+
**/
|
|
2631
|
+
AssetNotFound: GenericPalletError<Rv>;
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* Provided pool state is invalid
|
|
2635
|
+
*
|
|
2636
|
+
* The retrieved pool state has inconsistent or invalid data.
|
|
2637
|
+
**/
|
|
2638
|
+
InvalidPoolState: GenericPalletError<Rv>;
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* Collateral is not empty
|
|
2642
|
+
*
|
|
2643
|
+
* Cannot remove a collateral asset that still has a non-zero balance in the HSM account.
|
|
2644
|
+
**/
|
|
2645
|
+
CollateralNotEmpty: GenericPalletError<Rv>;
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* Asset not in the pool
|
|
2649
|
+
*
|
|
2650
|
+
* The collateral asset is not present in the specified pool.
|
|
2651
|
+
**/
|
|
2652
|
+
AssetNotInPool: GenericPalletError<Rv>;
|
|
2653
|
+
|
|
2654
|
+
/**
|
|
2655
|
+
* Hollar is not in the pool
|
|
2656
|
+
*
|
|
2657
|
+
* The Hollar asset is not present in the specified pool.
|
|
2658
|
+
**/
|
|
2659
|
+
HollarNotInPool: GenericPalletError<Rv>;
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* Insufficient collateral balance
|
|
2663
|
+
*
|
|
2664
|
+
* The HSM does not have enough of the collateral asset to complete the operation.
|
|
2665
|
+
**/
|
|
2666
|
+
InsufficientCollateralBalance: GenericPalletError<Rv>;
|
|
2667
|
+
|
|
2668
|
+
/**
|
|
2669
|
+
* GHO Contract address not found
|
|
2670
|
+
*
|
|
2671
|
+
* The EVM address for the GHO (Hollar) token contract was not found.
|
|
2672
|
+
**/
|
|
2673
|
+
HollarContractAddressNotFound: GenericPalletError<Rv>;
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* HSM contains maximum number of allowed collateral assets.
|
|
2677
|
+
**/
|
|
2678
|
+
MaxNumberOfCollateralsReached: GenericPalletError<Rv>;
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* Flash minter address not set
|
|
2682
|
+
**/
|
|
2683
|
+
FlashMinterNotSet: GenericPalletError<Rv>;
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* Provided arbitrage data is invalid
|
|
2687
|
+
**/
|
|
2688
|
+
InvalidArbitrageData: GenericPalletError<Rv>;
|
|
2689
|
+
|
|
2703
2690
|
/**
|
|
2704
2691
|
* Generic pallet error
|
|
2705
2692
|
**/
|
|
@@ -3004,6 +2991,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3004
2991
|
**/
|
|
3005
2992
|
NoFarmsSpecified: GenericPalletError<Rv>;
|
|
3006
2993
|
|
|
2994
|
+
/**
|
|
2995
|
+
* Failed to calculate value of xyk shares
|
|
2996
|
+
**/
|
|
2997
|
+
FailedToValueShares: GenericPalletError<Rv>;
|
|
2998
|
+
|
|
3007
2999
|
/**
|
|
3008
3000
|
* Generic pallet error
|
|
3009
3001
|
**/
|
|
@@ -3043,11 +3035,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3043
3035
|
**/
|
|
3044
3036
|
LiquidityMiningIsNotStopped: GenericPalletError<Rv>;
|
|
3045
3037
|
|
|
3046
|
-
/**
|
|
3047
|
-
* LP shares amount is not valid.
|
|
3048
|
-
**/
|
|
3049
|
-
InvalidDepositAmount: GenericPalletError<Rv>;
|
|
3050
|
-
|
|
3051
3038
|
/**
|
|
3052
3039
|
* Account is not allowed to perform action.
|
|
3053
3040
|
**/
|
|
@@ -3268,6 +3255,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3268
3255
|
**/
|
|
3269
3256
|
StabilityThresholdTooHigh: GenericPalletError<Rv>;
|
|
3270
3257
|
|
|
3258
|
+
/**
|
|
3259
|
+
* User still has active DCA schedules and cannot unlock reserves
|
|
3260
|
+
**/
|
|
3261
|
+
HasActiveSchedules: GenericPalletError<Rv>;
|
|
3262
|
+
|
|
3263
|
+
/**
|
|
3264
|
+
* No reserves are locked for the user for the given asset
|
|
3265
|
+
**/
|
|
3266
|
+
NoReservesLocked: GenericPalletError<Rv>;
|
|
3267
|
+
|
|
3271
3268
|
/**
|
|
3272
3269
|
* Generic pallet error
|
|
3273
3270
|
**/
|