@dedot/chaintypes 0.133.0 → 0.134.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/hydration/consts.d.ts +20 -133
- package/hydration/errors.d.ts +37 -202
- package/hydration/events.d.ts +36 -158
- package/hydration/index.d.ts +1 -1
- package/hydration/query.d.ts +51 -143
- package/hydration/runtime.d.ts +25 -0
- package/hydration/tx.d.ts +292 -786
- package/hydration/types.d.ts +248 -669
- package/package.json +2 -2
package/hydration/types.d.ts
CHANGED
|
@@ -62,10 +62,7 @@ export type HydradxRuntimeRuntimeEvent =
|
|
|
62
62
|
| { pallet: 'Preimage'; palletEvent: PalletPreimageEvent }
|
|
63
63
|
| { pallet: 'Identity'; palletEvent: PalletIdentityEvent }
|
|
64
64
|
| { pallet: 'Democracy'; palletEvent: PalletDemocracyEvent }
|
|
65
|
-
| { pallet: 'Elections'; palletEvent: PalletElectionsPhragmenEvent }
|
|
66
|
-
| { pallet: 'Council'; palletEvent: PalletCollectiveEvent }
|
|
67
65
|
| { pallet: 'TechnicalCommittee'; palletEvent: PalletCollectiveEvent }
|
|
68
|
-
| { pallet: 'Tips'; palletEvent: PalletTipsEvent }
|
|
69
66
|
| { pallet: 'Proxy'; palletEvent: PalletProxyEvent }
|
|
70
67
|
| { pallet: 'Multisig'; palletEvent: PalletMultisigEvent }
|
|
71
68
|
| { pallet: 'Uniques'; palletEvent: PalletUniquesEvent }
|
|
@@ -621,48 +618,6 @@ export type PalletDemocracyMetadataOwner =
|
|
|
621
618
|
| { type: 'Proposal'; value: number }
|
|
622
619
|
| { type: 'Referendum'; value: number };
|
|
623
620
|
|
|
624
|
-
/**
|
|
625
|
-
* The `Event` enum of this pallet
|
|
626
|
-
**/
|
|
627
|
-
export type PalletElectionsPhragmenEvent =
|
|
628
|
-
/**
|
|
629
|
-
* A new term with new_members. This indicates that enough candidates existed to run
|
|
630
|
-
* the election, not that enough have has been elected. The inner value must be examined
|
|
631
|
-
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
|
632
|
-
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
|
633
|
-
* begin with.
|
|
634
|
-
**/
|
|
635
|
-
| { name: 'NewTerm'; data: { newMembers: Array<[AccountId32, bigint]> } }
|
|
636
|
-
/**
|
|
637
|
-
* No (or not enough) candidates existed for this round. This is different from
|
|
638
|
-
* `NewTerm(\[\])`. See the description of `NewTerm`.
|
|
639
|
-
**/
|
|
640
|
-
| { name: 'EmptyTerm' }
|
|
641
|
-
/**
|
|
642
|
-
* Internal error happened while trying to perform election.
|
|
643
|
-
**/
|
|
644
|
-
| { name: 'ElectionError' }
|
|
645
|
-
/**
|
|
646
|
-
* A member has been removed. This should always be followed by either `NewTerm` or
|
|
647
|
-
* `EmptyTerm`.
|
|
648
|
-
**/
|
|
649
|
-
| { name: 'MemberKicked'; data: { member: AccountId32 } }
|
|
650
|
-
/**
|
|
651
|
-
* Someone has renounced their candidacy.
|
|
652
|
-
**/
|
|
653
|
-
| { name: 'Renounced'; data: { candidate: AccountId32 } }
|
|
654
|
-
/**
|
|
655
|
-
* A candidate was slashed by amount due to failing to obtain a seat as member or
|
|
656
|
-
* runner-up.
|
|
657
|
-
*
|
|
658
|
-
* Note that old members and runners-up are also candidates.
|
|
659
|
-
**/
|
|
660
|
-
| { name: 'CandidateSlashed'; data: { candidate: AccountId32; amount: bigint } }
|
|
661
|
-
/**
|
|
662
|
-
* A seat holder was slashed by amount by being forcefully removed from the set.
|
|
663
|
-
**/
|
|
664
|
-
| { name: 'SeatHolderSlashed'; data: { seatHolder: AccountId32; amount: bigint } };
|
|
665
|
-
|
|
666
621
|
/**
|
|
667
622
|
* The `Event` enum of this pallet
|
|
668
623
|
**/
|
|
@@ -698,31 +653,6 @@ export type PalletCollectiveEvent =
|
|
|
698
653
|
**/
|
|
699
654
|
| { name: 'Closed'; data: { proposalHash: H256; yes: number; no: number } };
|
|
700
655
|
|
|
701
|
-
/**
|
|
702
|
-
* The `Event` enum of this pallet
|
|
703
|
-
**/
|
|
704
|
-
export type PalletTipsEvent =
|
|
705
|
-
/**
|
|
706
|
-
* A new tip suggestion has been opened.
|
|
707
|
-
**/
|
|
708
|
-
| { name: 'NewTip'; data: { tipHash: H256 } }
|
|
709
|
-
/**
|
|
710
|
-
* A tip suggestion has reached threshold and is closing.
|
|
711
|
-
**/
|
|
712
|
-
| { name: 'TipClosing'; data: { tipHash: H256 } }
|
|
713
|
-
/**
|
|
714
|
-
* A tip suggestion has been closed.
|
|
715
|
-
**/
|
|
716
|
-
| { name: 'TipClosed'; data: { tipHash: H256; who: AccountId32; payout: bigint } }
|
|
717
|
-
/**
|
|
718
|
-
* A tip suggestion has been retracted.
|
|
719
|
-
**/
|
|
720
|
-
| { name: 'TipRetracted'; data: { tipHash: H256 } }
|
|
721
|
-
/**
|
|
722
|
-
* A tip suggestion has been slashed.
|
|
723
|
-
**/
|
|
724
|
-
| { name: 'TipSlashed'; data: { tipHash: H256; finder: AccountId32; deposit: bigint } };
|
|
725
|
-
|
|
726
656
|
/**
|
|
727
657
|
* The `Event` enum of this pallet
|
|
728
658
|
**/
|
|
@@ -1328,10 +1258,7 @@ export type HydradxRuntimeRuntimeCall =
|
|
|
1328
1258
|
| { pallet: 'Preimage'; palletCall: PalletPreimageCall }
|
|
1329
1259
|
| { pallet: 'Identity'; palletCall: PalletIdentityCall }
|
|
1330
1260
|
| { pallet: 'Democracy'; palletCall: PalletDemocracyCall }
|
|
1331
|
-
| { pallet: 'Elections'; palletCall: PalletElectionsPhragmenCall }
|
|
1332
|
-
| { pallet: 'Council'; palletCall: PalletCollectiveCall }
|
|
1333
1261
|
| { pallet: 'TechnicalCommittee'; palletCall: PalletCollectiveCall }
|
|
1334
|
-
| { pallet: 'Tips'; palletCall: PalletTipsCall }
|
|
1335
1262
|
| { pallet: 'Proxy'; palletCall: PalletProxyCall }
|
|
1336
1263
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCall }
|
|
1337
1264
|
| { pallet: 'Uniques'; palletCall: PalletUniquesCall }
|
|
@@ -1394,10 +1321,7 @@ export type HydradxRuntimeRuntimeCallLike =
|
|
|
1394
1321
|
| { pallet: 'Preimage'; palletCall: PalletPreimageCallLike }
|
|
1395
1322
|
| { pallet: 'Identity'; palletCall: PalletIdentityCallLike }
|
|
1396
1323
|
| { pallet: 'Democracy'; palletCall: PalletDemocracyCallLike }
|
|
1397
|
-
| { pallet: 'Elections'; palletCall: PalletElectionsPhragmenCallLike }
|
|
1398
|
-
| { pallet: 'Council'; palletCall: PalletCollectiveCallLike }
|
|
1399
1324
|
| { pallet: 'TechnicalCommittee'; palletCall: PalletCollectiveCallLike }
|
|
1400
|
-
| { pallet: 'Tips'; palletCall: PalletTipsCallLike }
|
|
1401
1325
|
| { pallet: 'Proxy'; palletCall: PalletProxyCallLike }
|
|
1402
1326
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
|
|
1403
1327
|
| { pallet: 'Uniques'; palletCall: PalletUniquesCallLike }
|
|
@@ -2424,7 +2348,6 @@ export type PalletUtilityCallLike =
|
|
|
2424
2348
|
|
|
2425
2349
|
export type HydradxRuntimeOriginCaller =
|
|
2426
2350
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
2427
|
-
| { type: 'Council'; value: PalletCollectiveRawOrigin }
|
|
2428
2351
|
| { type: 'TechnicalCommittee'; value: PalletCollectiveRawOrigin }
|
|
2429
2352
|
| { type: 'Origins'; value: HydradxRuntimeGovernanceOriginsPalletCustomOriginsOrigin }
|
|
2430
2353
|
| { type: 'Ethereum'; value: PalletEthereumRawOrigin }
|
|
@@ -3686,222 +3609,6 @@ export type PalletDemocracyConviction =
|
|
|
3686
3609
|
| 'Locked5x'
|
|
3687
3610
|
| 'Locked6x';
|
|
3688
3611
|
|
|
3689
|
-
/**
|
|
3690
|
-
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3691
|
-
**/
|
|
3692
|
-
export type PalletElectionsPhragmenCall =
|
|
3693
|
-
/**
|
|
3694
|
-
* Vote for a set of candidates for the upcoming round of election. This can be called to
|
|
3695
|
-
* set the initial votes, or update already existing votes.
|
|
3696
|
-
*
|
|
3697
|
-
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
3698
|
-
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
3699
|
-
*
|
|
3700
|
-
* The `votes` should:
|
|
3701
|
-
* - not be empty.
|
|
3702
|
-
* - be less than the number of possible candidates. Note that all current members and
|
|
3703
|
-
* runners-up are also automatically candidates for the next round.
|
|
3704
|
-
*
|
|
3705
|
-
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
|
3706
|
-
*
|
|
3707
|
-
* The dispatch origin of this call must be signed.
|
|
3708
|
-
*
|
|
3709
|
-
* ### Warning
|
|
3710
|
-
*
|
|
3711
|
-
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
3712
|
-
* lock and keep some for further operations.
|
|
3713
|
-
**/
|
|
3714
|
-
| { name: 'Vote'; params: { votes: Array<AccountId32>; value: bigint } }
|
|
3715
|
-
/**
|
|
3716
|
-
* Remove `origin` as a voter.
|
|
3717
|
-
*
|
|
3718
|
-
* This removes the lock and returns the deposit.
|
|
3719
|
-
*
|
|
3720
|
-
* The dispatch origin of this call must be signed and be a voter.
|
|
3721
|
-
**/
|
|
3722
|
-
| { name: 'RemoveVoter' }
|
|
3723
|
-
/**
|
|
3724
|
-
* Submit oneself for candidacy. A fixed amount of deposit is recorded.
|
|
3725
|
-
*
|
|
3726
|
-
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
3727
|
-
* or leave the system while their deposit is slashed.
|
|
3728
|
-
*
|
|
3729
|
-
* The dispatch origin of this call must be signed.
|
|
3730
|
-
*
|
|
3731
|
-
* ### Warning
|
|
3732
|
-
*
|
|
3733
|
-
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3734
|
-
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3735
|
-
*
|
|
3736
|
-
* The number of current candidates must be provided as witness data.
|
|
3737
|
-
* ## Complexity
|
|
3738
|
-
* O(C + log(C)) where C is candidate_count.
|
|
3739
|
-
**/
|
|
3740
|
-
| { name: 'SubmitCandidacy'; params: { candidateCount: number } }
|
|
3741
|
-
/**
|
|
3742
|
-
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
3743
|
-
* outcomes exist:
|
|
3744
|
-
*
|
|
3745
|
-
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
3746
|
-
* unreserved, returned and origin is removed as a candidate.
|
|
3747
|
-
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
3748
|
-
* origin is removed as a runner-up.
|
|
3749
|
-
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
3750
|
-
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
3751
|
-
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
3752
|
-
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
3753
|
-
* next round.
|
|
3754
|
-
*
|
|
3755
|
-
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3756
|
-
* The type of renouncing must be provided as witness data.
|
|
3757
|
-
*
|
|
3758
|
-
* ## Complexity
|
|
3759
|
-
* - Renouncing::Candidate(count): O(count + log(count))
|
|
3760
|
-
* - Renouncing::Member: O(1)
|
|
3761
|
-
* - Renouncing::RunnerUp: O(1)
|
|
3762
|
-
**/
|
|
3763
|
-
| { name: 'RenounceCandidacy'; params: { renouncing: PalletElectionsPhragmenRenouncing } }
|
|
3764
|
-
/**
|
|
3765
|
-
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
3766
|
-
* the outgoing member is slashed.
|
|
3767
|
-
*
|
|
3768
|
-
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
3769
|
-
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
3770
|
-
* started, else, nothing happens.
|
|
3771
|
-
*
|
|
3772
|
-
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
3773
|
-
* it is returned.
|
|
3774
|
-
*
|
|
3775
|
-
* The dispatch origin of this call must be root.
|
|
3776
|
-
*
|
|
3777
|
-
* Note that this does not affect the designated block number of the next election.
|
|
3778
|
-
*
|
|
3779
|
-
* ## Complexity
|
|
3780
|
-
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
3781
|
-
**/
|
|
3782
|
-
| { name: 'RemoveMember'; params: { who: AccountId32; slashBond: boolean; rerunElection: boolean } }
|
|
3783
|
-
/**
|
|
3784
|
-
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
3785
|
-
* deposit of the removed voters are returned.
|
|
3786
|
-
*
|
|
3787
|
-
* This is an root function to be used only for cleaning the state.
|
|
3788
|
-
*
|
|
3789
|
-
* The dispatch origin of this call must be root.
|
|
3790
|
-
*
|
|
3791
|
-
* ## Complexity
|
|
3792
|
-
* - Check is_defunct_voter() details.
|
|
3793
|
-
**/
|
|
3794
|
-
| { name: 'CleanDefunctVoters'; params: { numVoters: number; numDefunct: number } };
|
|
3795
|
-
|
|
3796
|
-
export type PalletElectionsPhragmenCallLike =
|
|
3797
|
-
/**
|
|
3798
|
-
* Vote for a set of candidates for the upcoming round of election. This can be called to
|
|
3799
|
-
* set the initial votes, or update already existing votes.
|
|
3800
|
-
*
|
|
3801
|
-
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
3802
|
-
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
3803
|
-
*
|
|
3804
|
-
* The `votes` should:
|
|
3805
|
-
* - not be empty.
|
|
3806
|
-
* - be less than the number of possible candidates. Note that all current members and
|
|
3807
|
-
* runners-up are also automatically candidates for the next round.
|
|
3808
|
-
*
|
|
3809
|
-
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
|
3810
|
-
*
|
|
3811
|
-
* The dispatch origin of this call must be signed.
|
|
3812
|
-
*
|
|
3813
|
-
* ### Warning
|
|
3814
|
-
*
|
|
3815
|
-
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
3816
|
-
* lock and keep some for further operations.
|
|
3817
|
-
**/
|
|
3818
|
-
| { name: 'Vote'; params: { votes: Array<AccountId32Like>; value: bigint } }
|
|
3819
|
-
/**
|
|
3820
|
-
* Remove `origin` as a voter.
|
|
3821
|
-
*
|
|
3822
|
-
* This removes the lock and returns the deposit.
|
|
3823
|
-
*
|
|
3824
|
-
* The dispatch origin of this call must be signed and be a voter.
|
|
3825
|
-
**/
|
|
3826
|
-
| { name: 'RemoveVoter' }
|
|
3827
|
-
/**
|
|
3828
|
-
* Submit oneself for candidacy. A fixed amount of deposit is recorded.
|
|
3829
|
-
*
|
|
3830
|
-
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
3831
|
-
* or leave the system while their deposit is slashed.
|
|
3832
|
-
*
|
|
3833
|
-
* The dispatch origin of this call must be signed.
|
|
3834
|
-
*
|
|
3835
|
-
* ### Warning
|
|
3836
|
-
*
|
|
3837
|
-
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3838
|
-
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3839
|
-
*
|
|
3840
|
-
* The number of current candidates must be provided as witness data.
|
|
3841
|
-
* ## Complexity
|
|
3842
|
-
* O(C + log(C)) where C is candidate_count.
|
|
3843
|
-
**/
|
|
3844
|
-
| { name: 'SubmitCandidacy'; params: { candidateCount: number } }
|
|
3845
|
-
/**
|
|
3846
|
-
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
3847
|
-
* outcomes exist:
|
|
3848
|
-
*
|
|
3849
|
-
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
3850
|
-
* unreserved, returned and origin is removed as a candidate.
|
|
3851
|
-
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
3852
|
-
* origin is removed as a runner-up.
|
|
3853
|
-
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
3854
|
-
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
3855
|
-
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
3856
|
-
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
3857
|
-
* next round.
|
|
3858
|
-
*
|
|
3859
|
-
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3860
|
-
* The type of renouncing must be provided as witness data.
|
|
3861
|
-
*
|
|
3862
|
-
* ## Complexity
|
|
3863
|
-
* - Renouncing::Candidate(count): O(count + log(count))
|
|
3864
|
-
* - Renouncing::Member: O(1)
|
|
3865
|
-
* - Renouncing::RunnerUp: O(1)
|
|
3866
|
-
**/
|
|
3867
|
-
| { name: 'RenounceCandidacy'; params: { renouncing: PalletElectionsPhragmenRenouncing } }
|
|
3868
|
-
/**
|
|
3869
|
-
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
3870
|
-
* the outgoing member is slashed.
|
|
3871
|
-
*
|
|
3872
|
-
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
3873
|
-
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
3874
|
-
* started, else, nothing happens.
|
|
3875
|
-
*
|
|
3876
|
-
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
3877
|
-
* it is returned.
|
|
3878
|
-
*
|
|
3879
|
-
* The dispatch origin of this call must be root.
|
|
3880
|
-
*
|
|
3881
|
-
* Note that this does not affect the designated block number of the next election.
|
|
3882
|
-
*
|
|
3883
|
-
* ## Complexity
|
|
3884
|
-
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
3885
|
-
**/
|
|
3886
|
-
| { name: 'RemoveMember'; params: { who: AccountId32Like; slashBond: boolean; rerunElection: boolean } }
|
|
3887
|
-
/**
|
|
3888
|
-
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
3889
|
-
* deposit of the removed voters are returned.
|
|
3890
|
-
*
|
|
3891
|
-
* This is an root function to be used only for cleaning the state.
|
|
3892
|
-
*
|
|
3893
|
-
* The dispatch origin of this call must be root.
|
|
3894
|
-
*
|
|
3895
|
-
* ## Complexity
|
|
3896
|
-
* - Check is_defunct_voter() details.
|
|
3897
|
-
**/
|
|
3898
|
-
| { name: 'CleanDefunctVoters'; params: { numVoters: number; numDefunct: number } };
|
|
3899
|
-
|
|
3900
|
-
export type PalletElectionsPhragmenRenouncing =
|
|
3901
|
-
| { type: 'Member' }
|
|
3902
|
-
| { type: 'RunnerUp' }
|
|
3903
|
-
| { type: 'Candidate'; value: number };
|
|
3904
|
-
|
|
3905
3612
|
/**
|
|
3906
3613
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3907
3614
|
**/
|
|
@@ -4137,239 +3844,6 @@ export type PalletCollectiveCallLike =
|
|
|
4137
3844
|
params: { proposalHash: H256; index: number; proposalWeightBound: SpWeightsWeightV2Weight; lengthBound: number };
|
|
4138
3845
|
};
|
|
4139
3846
|
|
|
4140
|
-
/**
|
|
4141
|
-
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4142
|
-
**/
|
|
4143
|
-
export type PalletTipsCall =
|
|
4144
|
-
/**
|
|
4145
|
-
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
4146
|
-
*
|
|
4147
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4148
|
-
*
|
|
4149
|
-
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
4150
|
-
* `DataDepositPerByte` for each byte in `reason`.
|
|
4151
|
-
*
|
|
4152
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4153
|
-
* a UTF-8-encoded URL.
|
|
4154
|
-
* - `who`: The account which should be credited for the tip.
|
|
4155
|
-
*
|
|
4156
|
-
* Emits `NewTip` if successful.
|
|
4157
|
-
*
|
|
4158
|
-
* ## Complexity
|
|
4159
|
-
* - `O(R)` where `R` length of `reason`.
|
|
4160
|
-
* - encoding and hashing of 'reason'
|
|
4161
|
-
**/
|
|
4162
|
-
| { name: 'ReportAwesome'; params: { reason: Bytes; who: AccountId32 } }
|
|
4163
|
-
/**
|
|
4164
|
-
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
4165
|
-
*
|
|
4166
|
-
* If successful, the original deposit will be unreserved.
|
|
4167
|
-
*
|
|
4168
|
-
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
4169
|
-
* must have been reported by the signing account through `report_awesome` (and not
|
|
4170
|
-
* through `tip_new`).
|
|
4171
|
-
*
|
|
4172
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4173
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4174
|
-
*
|
|
4175
|
-
* Emits `TipRetracted` if successful.
|
|
4176
|
-
*
|
|
4177
|
-
* ## Complexity
|
|
4178
|
-
* - `O(1)`
|
|
4179
|
-
* - Depends on the length of `T::Hash` which is fixed.
|
|
4180
|
-
**/
|
|
4181
|
-
| { name: 'RetractTip'; params: { hash: H256 } }
|
|
4182
|
-
/**
|
|
4183
|
-
* Give a tip for something new; no finder's fee will be taken.
|
|
4184
|
-
*
|
|
4185
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4186
|
-
* member of the `Tippers` set.
|
|
4187
|
-
*
|
|
4188
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4189
|
-
* a UTF-8-encoded URL.
|
|
4190
|
-
* - `who`: The account which should be credited for the tip.
|
|
4191
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4192
|
-
* value of active tippers will be given to the `who`.
|
|
4193
|
-
*
|
|
4194
|
-
* Emits `NewTip` if successful.
|
|
4195
|
-
*
|
|
4196
|
-
* ## Complexity
|
|
4197
|
-
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
4198
|
-
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
4199
|
-
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
4200
|
-
* `T::Tippers`.
|
|
4201
|
-
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
4202
|
-
**/
|
|
4203
|
-
| { name: 'TipNew'; params: { reason: Bytes; who: AccountId32; tipValue: bigint } }
|
|
4204
|
-
/**
|
|
4205
|
-
* Declare a tip value for an already-open tip.
|
|
4206
|
-
*
|
|
4207
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4208
|
-
* member of the `Tippers` set.
|
|
4209
|
-
*
|
|
4210
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4211
|
-
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
4212
|
-
* account ID.
|
|
4213
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4214
|
-
* value of active tippers will be given to the `who`.
|
|
4215
|
-
*
|
|
4216
|
-
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
4217
|
-
* has started.
|
|
4218
|
-
*
|
|
4219
|
-
* ## Complexity
|
|
4220
|
-
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
4221
|
-
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
4222
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
4223
|
-
*
|
|
4224
|
-
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
4225
|
-
* is weighted as if almost full i.e of length `T-1`.
|
|
4226
|
-
**/
|
|
4227
|
-
| { name: 'Tip'; params: { hash: H256; tipValue: bigint } }
|
|
4228
|
-
/**
|
|
4229
|
-
* Close and payout a tip.
|
|
4230
|
-
*
|
|
4231
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4232
|
-
*
|
|
4233
|
-
* The tip identified by `hash` must have finished its countdown period.
|
|
4234
|
-
*
|
|
4235
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4236
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4237
|
-
*
|
|
4238
|
-
* ## Complexity
|
|
4239
|
-
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
4240
|
-
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
4241
|
-
* the implementation of `T::Tippers`.
|
|
4242
|
-
**/
|
|
4243
|
-
| { name: 'CloseTip'; params: { hash: H256 } }
|
|
4244
|
-
/**
|
|
4245
|
-
* Remove and slash an already-open tip.
|
|
4246
|
-
*
|
|
4247
|
-
* May only be called from `T::RejectOrigin`.
|
|
4248
|
-
*
|
|
4249
|
-
* As a result, the finder is slashed and the deposits are lost.
|
|
4250
|
-
*
|
|
4251
|
-
* Emits `TipSlashed` if successful.
|
|
4252
|
-
*
|
|
4253
|
-
* ## Complexity
|
|
4254
|
-
* - O(1).
|
|
4255
|
-
**/
|
|
4256
|
-
| { name: 'SlashTip'; params: { hash: H256 } };
|
|
4257
|
-
|
|
4258
|
-
export type PalletTipsCallLike =
|
|
4259
|
-
/**
|
|
4260
|
-
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
4261
|
-
*
|
|
4262
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4263
|
-
*
|
|
4264
|
-
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
4265
|
-
* `DataDepositPerByte` for each byte in `reason`.
|
|
4266
|
-
*
|
|
4267
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4268
|
-
* a UTF-8-encoded URL.
|
|
4269
|
-
* - `who`: The account which should be credited for the tip.
|
|
4270
|
-
*
|
|
4271
|
-
* Emits `NewTip` if successful.
|
|
4272
|
-
*
|
|
4273
|
-
* ## Complexity
|
|
4274
|
-
* - `O(R)` where `R` length of `reason`.
|
|
4275
|
-
* - encoding and hashing of 'reason'
|
|
4276
|
-
**/
|
|
4277
|
-
| { name: 'ReportAwesome'; params: { reason: BytesLike; who: AccountId32Like } }
|
|
4278
|
-
/**
|
|
4279
|
-
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
4280
|
-
*
|
|
4281
|
-
* If successful, the original deposit will be unreserved.
|
|
4282
|
-
*
|
|
4283
|
-
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
4284
|
-
* must have been reported by the signing account through `report_awesome` (and not
|
|
4285
|
-
* through `tip_new`).
|
|
4286
|
-
*
|
|
4287
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4288
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4289
|
-
*
|
|
4290
|
-
* Emits `TipRetracted` if successful.
|
|
4291
|
-
*
|
|
4292
|
-
* ## Complexity
|
|
4293
|
-
* - `O(1)`
|
|
4294
|
-
* - Depends on the length of `T::Hash` which is fixed.
|
|
4295
|
-
**/
|
|
4296
|
-
| { name: 'RetractTip'; params: { hash: H256 } }
|
|
4297
|
-
/**
|
|
4298
|
-
* Give a tip for something new; no finder's fee will be taken.
|
|
4299
|
-
*
|
|
4300
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4301
|
-
* member of the `Tippers` set.
|
|
4302
|
-
*
|
|
4303
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4304
|
-
* a UTF-8-encoded URL.
|
|
4305
|
-
* - `who`: The account which should be credited for the tip.
|
|
4306
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4307
|
-
* value of active tippers will be given to the `who`.
|
|
4308
|
-
*
|
|
4309
|
-
* Emits `NewTip` if successful.
|
|
4310
|
-
*
|
|
4311
|
-
* ## Complexity
|
|
4312
|
-
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
4313
|
-
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
4314
|
-
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
4315
|
-
* `T::Tippers`.
|
|
4316
|
-
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
4317
|
-
**/
|
|
4318
|
-
| { name: 'TipNew'; params: { reason: BytesLike; who: AccountId32Like; tipValue: bigint } }
|
|
4319
|
-
/**
|
|
4320
|
-
* Declare a tip value for an already-open tip.
|
|
4321
|
-
*
|
|
4322
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4323
|
-
* member of the `Tippers` set.
|
|
4324
|
-
*
|
|
4325
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4326
|
-
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
4327
|
-
* account ID.
|
|
4328
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4329
|
-
* value of active tippers will be given to the `who`.
|
|
4330
|
-
*
|
|
4331
|
-
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
4332
|
-
* has started.
|
|
4333
|
-
*
|
|
4334
|
-
* ## Complexity
|
|
4335
|
-
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
4336
|
-
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
4337
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
4338
|
-
*
|
|
4339
|
-
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
4340
|
-
* is weighted as if almost full i.e of length `T-1`.
|
|
4341
|
-
**/
|
|
4342
|
-
| { name: 'Tip'; params: { hash: H256; tipValue: bigint } }
|
|
4343
|
-
/**
|
|
4344
|
-
* Close and payout a tip.
|
|
4345
|
-
*
|
|
4346
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4347
|
-
*
|
|
4348
|
-
* The tip identified by `hash` must have finished its countdown period.
|
|
4349
|
-
*
|
|
4350
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4351
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4352
|
-
*
|
|
4353
|
-
* ## Complexity
|
|
4354
|
-
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
4355
|
-
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
4356
|
-
* the implementation of `T::Tippers`.
|
|
4357
|
-
**/
|
|
4358
|
-
| { name: 'CloseTip'; params: { hash: H256 } }
|
|
4359
|
-
/**
|
|
4360
|
-
* Remove and slash an already-open tip.
|
|
4361
|
-
*
|
|
4362
|
-
* May only be called from `T::RejectOrigin`.
|
|
4363
|
-
*
|
|
4364
|
-
* As a result, the finder is slashed and the deposits are lost.
|
|
4365
|
-
*
|
|
4366
|
-
* Emits `TipSlashed` if successful.
|
|
4367
|
-
*
|
|
4368
|
-
* ## Complexity
|
|
4369
|
-
* - O(1).
|
|
4370
|
-
**/
|
|
4371
|
-
| { name: 'SlashTip'; params: { hash: H256 } };
|
|
4372
|
-
|
|
4373
3847
|
/**
|
|
4374
3848
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4375
3849
|
**/
|
|
@@ -8243,7 +7717,50 @@ export type PalletCircuitBreakerCall =
|
|
|
8243
7717
|
* Emits `RemoveLiquidityLimitChanged` event when successful.
|
|
8244
7718
|
*
|
|
8245
7719
|
**/
|
|
8246
|
-
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7720
|
+
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7721
|
+
/**
|
|
7722
|
+
* Lockdown an asset for minting
|
|
7723
|
+
*
|
|
7724
|
+
* Can be called only by an authority origin
|
|
7725
|
+
*
|
|
7726
|
+
* Parameters:
|
|
7727
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7728
|
+
* - `asset_id`: The identifier of an asset
|
|
7729
|
+
* - `until`: The block number until which the asset is locked
|
|
7730
|
+
*
|
|
7731
|
+
* /// Emits `AssetLockdowned` event when successful.
|
|
7732
|
+
**/
|
|
7733
|
+
| { name: 'LockdownAsset'; params: { assetId: number; until: number } }
|
|
7734
|
+
/**
|
|
7735
|
+
* Remove asset lockdown regardless of the state.
|
|
7736
|
+
*
|
|
7737
|
+
* Can be called only by an authority origin
|
|
7738
|
+
*
|
|
7739
|
+
* Parameters:
|
|
7740
|
+
*
|
|
7741
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7742
|
+
* - `asset_id`: The identifier of an asset
|
|
7743
|
+
*
|
|
7744
|
+
* Emits `AssetLockdownRemoved` event when successful.
|
|
7745
|
+
**/
|
|
7746
|
+
| { name: 'ForceLiftLockdown'; params: { assetId: number } }
|
|
7747
|
+
/**
|
|
7748
|
+
* Release deposit of an asset.
|
|
7749
|
+
*
|
|
7750
|
+
* It releases all the pallet reserved balance of the asset for the given account
|
|
7751
|
+
*
|
|
7752
|
+
* Can be called by any origin, but only if the asset is not in active lockdown.
|
|
7753
|
+
*
|
|
7754
|
+
* The caller does not pay for this call if successful.
|
|
7755
|
+
*
|
|
7756
|
+
* Parameters:
|
|
7757
|
+
* - `origin`: The dispatch origin for this call. Can be signed or root.
|
|
7758
|
+
* - `who`: The account that is saving the deposit.
|
|
7759
|
+
* - `asset_id`: The identifier of the asset.
|
|
7760
|
+
*
|
|
7761
|
+
* Emits `DepositReleased` event when successful.
|
|
7762
|
+
**/
|
|
7763
|
+
| { name: 'ReleaseDeposit'; params: { who: AccountId32; assetId: number } };
|
|
8247
7764
|
|
|
8248
7765
|
export type PalletCircuitBreakerCallLike =
|
|
8249
7766
|
/**
|
|
@@ -8281,7 +7798,50 @@ export type PalletCircuitBreakerCallLike =
|
|
|
8281
7798
|
* Emits `RemoveLiquidityLimitChanged` event when successful.
|
|
8282
7799
|
*
|
|
8283
7800
|
**/
|
|
8284
|
-
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7801
|
+
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7802
|
+
/**
|
|
7803
|
+
* Lockdown an asset for minting
|
|
7804
|
+
*
|
|
7805
|
+
* Can be called only by an authority origin
|
|
7806
|
+
*
|
|
7807
|
+
* Parameters:
|
|
7808
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7809
|
+
* - `asset_id`: The identifier of an asset
|
|
7810
|
+
* - `until`: The block number until which the asset is locked
|
|
7811
|
+
*
|
|
7812
|
+
* /// Emits `AssetLockdowned` event when successful.
|
|
7813
|
+
**/
|
|
7814
|
+
| { name: 'LockdownAsset'; params: { assetId: number; until: number } }
|
|
7815
|
+
/**
|
|
7816
|
+
* Remove asset lockdown regardless of the state.
|
|
7817
|
+
*
|
|
7818
|
+
* Can be called only by an authority origin
|
|
7819
|
+
*
|
|
7820
|
+
* Parameters:
|
|
7821
|
+
*
|
|
7822
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7823
|
+
* - `asset_id`: The identifier of an asset
|
|
7824
|
+
*
|
|
7825
|
+
* Emits `AssetLockdownRemoved` event when successful.
|
|
7826
|
+
**/
|
|
7827
|
+
| { name: 'ForceLiftLockdown'; params: { assetId: number } }
|
|
7828
|
+
/**
|
|
7829
|
+
* Release deposit of an asset.
|
|
7830
|
+
*
|
|
7831
|
+
* It releases all the pallet reserved balance of the asset for the given account
|
|
7832
|
+
*
|
|
7833
|
+
* Can be called by any origin, but only if the asset is not in active lockdown.
|
|
7834
|
+
*
|
|
7835
|
+
* The caller does not pay for this call if successful.
|
|
7836
|
+
*
|
|
7837
|
+
* Parameters:
|
|
7838
|
+
* - `origin`: The dispatch origin for this call. Can be signed or root.
|
|
7839
|
+
* - `who`: The account that is saving the deposit.
|
|
7840
|
+
* - `asset_id`: The identifier of the asset.
|
|
7841
|
+
*
|
|
7842
|
+
* Emits `DepositReleased` event when successful.
|
|
7843
|
+
**/
|
|
7844
|
+
| { name: 'ReleaseDeposit'; params: { who: AccountId32Like; assetId: number } };
|
|
8285
7845
|
|
|
8286
7846
|
/**
|
|
8287
7847
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8533,9 +8093,67 @@ export type HydradxTraitsRouterAssetPair = { assetIn: number; assetOut: number }
|
|
|
8533
8093
|
/**
|
|
8534
8094
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8535
8095
|
**/
|
|
8536
|
-
export type PalletDynamicFeesCall =
|
|
8096
|
+
export type PalletDynamicFeesCall =
|
|
8097
|
+
/**
|
|
8098
|
+
* Set fee configuration for an asset
|
|
8099
|
+
*
|
|
8100
|
+
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8101
|
+
*
|
|
8102
|
+
* # Arguments
|
|
8103
|
+
* * `origin` - Root origin required
|
|
8104
|
+
* * `asset_id` - The asset ID to configure
|
|
8105
|
+
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8106
|
+
**/
|
|
8107
|
+
| { name: 'SetAssetFee'; params: { assetId: number; config: PalletDynamicFeesAssetFeeConfig } }
|
|
8108
|
+
/**
|
|
8109
|
+
* Remove fee configuration for an asset (will use default parameters)
|
|
8110
|
+
*
|
|
8111
|
+
* This function removes any custom fee configuration for the specified asset.
|
|
8112
|
+
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8113
|
+
*
|
|
8114
|
+
* # Arguments
|
|
8115
|
+
* * `origin` - Root origin required
|
|
8116
|
+
* * `asset_id` - The asset ID to remove configuration for
|
|
8117
|
+
**/
|
|
8118
|
+
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
8537
8119
|
|
|
8538
|
-
export type PalletDynamicFeesCallLike =
|
|
8120
|
+
export type PalletDynamicFeesCallLike =
|
|
8121
|
+
/**
|
|
8122
|
+
* Set fee configuration for an asset
|
|
8123
|
+
*
|
|
8124
|
+
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8125
|
+
*
|
|
8126
|
+
* # Arguments
|
|
8127
|
+
* * `origin` - Root origin required
|
|
8128
|
+
* * `asset_id` - The asset ID to configure
|
|
8129
|
+
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8130
|
+
**/
|
|
8131
|
+
| { name: 'SetAssetFee'; params: { assetId: number; config: PalletDynamicFeesAssetFeeConfig } }
|
|
8132
|
+
/**
|
|
8133
|
+
* Remove fee configuration for an asset (will use default parameters)
|
|
8134
|
+
*
|
|
8135
|
+
* This function removes any custom fee configuration for the specified asset.
|
|
8136
|
+
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8137
|
+
*
|
|
8138
|
+
* # Arguments
|
|
8139
|
+
* * `origin` - Root origin required
|
|
8140
|
+
* * `asset_id` - The asset ID to remove configuration for
|
|
8141
|
+
**/
|
|
8142
|
+
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
8143
|
+
|
|
8144
|
+
export type PalletDynamicFeesAssetFeeConfig =
|
|
8145
|
+
| { type: 'Fixed'; value: { assetFee: Permill; protocolFee: Permill } }
|
|
8146
|
+
| {
|
|
8147
|
+
type: 'Dynamic';
|
|
8148
|
+
value: { assetFeeParams: PalletDynamicFeesFeeParams; protocolFeeParams: PalletDynamicFeesFeeParams };
|
|
8149
|
+
};
|
|
8150
|
+
|
|
8151
|
+
export type PalletDynamicFeesFeeParams = {
|
|
8152
|
+
minFee: Permill;
|
|
8153
|
+
maxFee: Permill;
|
|
8154
|
+
decay: FixedU128;
|
|
8155
|
+
amplification: FixedU128;
|
|
8156
|
+
};
|
|
8539
8157
|
|
|
8540
8158
|
/**
|
|
8541
8159
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -11755,7 +11373,23 @@ export type PalletDcaCall =
|
|
|
11755
11373
|
* Emits `Terminated` event when successful.
|
|
11756
11374
|
*
|
|
11757
11375
|
**/
|
|
11758
|
-
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11376
|
+
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11377
|
+
/**
|
|
11378
|
+
* Unlocks DCA reserves of provided asset for the caller if they have no active schedules.
|
|
11379
|
+
*
|
|
11380
|
+
* This is a utility function to help users recover their reserved funds in case
|
|
11381
|
+
* a DCA schedule was terminated but left some reserved amounts.
|
|
11382
|
+
*
|
|
11383
|
+
* This can only be called when the user has no active DCA schedules.
|
|
11384
|
+
*
|
|
11385
|
+
* Parameters:
|
|
11386
|
+
* - `origin`: The account to unlock reserves for (must be signed)
|
|
11387
|
+
* - `asset_id`: The asset ID for which reserves should be unlocked.
|
|
11388
|
+
*
|
|
11389
|
+
* Emits `ReserveUnlocked` event when successful.
|
|
11390
|
+
*
|
|
11391
|
+
**/
|
|
11392
|
+
| { name: 'UnlockReserves'; params: { who: AccountId32; assetId: number } };
|
|
11759
11393
|
|
|
11760
11394
|
export type PalletDcaCallLike =
|
|
11761
11395
|
/**
|
|
@@ -11799,7 +11433,23 @@ export type PalletDcaCallLike =
|
|
|
11799
11433
|
* Emits `Terminated` event when successful.
|
|
11800
11434
|
*
|
|
11801
11435
|
**/
|
|
11802
|
-
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11436
|
+
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11437
|
+
/**
|
|
11438
|
+
* Unlocks DCA reserves of provided asset for the caller if they have no active schedules.
|
|
11439
|
+
*
|
|
11440
|
+
* This is a utility function to help users recover their reserved funds in case
|
|
11441
|
+
* a DCA schedule was terminated but left some reserved amounts.
|
|
11442
|
+
*
|
|
11443
|
+
* This can only be called when the user has no active DCA schedules.
|
|
11444
|
+
*
|
|
11445
|
+
* Parameters:
|
|
11446
|
+
* - `origin`: The account to unlock reserves for (must be signed)
|
|
11447
|
+
* - `asset_id`: The asset ID for which reserves should be unlocked.
|
|
11448
|
+
*
|
|
11449
|
+
* Emits `ReserveUnlocked` event when successful.
|
|
11450
|
+
*
|
|
11451
|
+
**/
|
|
11452
|
+
| { name: 'UnlockReserves'; params: { who: AccountId32Like; assetId: number } };
|
|
11803
11453
|
|
|
11804
11454
|
export type PalletDcaSchedule = {
|
|
11805
11455
|
owner: AccountId32;
|
|
@@ -14423,7 +14073,19 @@ export type PalletCircuitBreakerEvent =
|
|
|
14423
14073
|
/**
|
|
14424
14074
|
* Remove liquidity limit of an asset was changed.
|
|
14425
14075
|
**/
|
|
14426
|
-
| { name: 'RemoveLiquidityLimitChanged'; data: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
14076
|
+
| { name: 'RemoveLiquidityLimitChanged'; data: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
14077
|
+
/**
|
|
14078
|
+
* Asset went to lockdown
|
|
14079
|
+
**/
|
|
14080
|
+
| { name: 'AssetLockdown'; data: { assetId: number; until: number } }
|
|
14081
|
+
/**
|
|
14082
|
+
* Asset lockdown was removed
|
|
14083
|
+
**/
|
|
14084
|
+
| { name: 'AssetLockdownRemoved'; data: { assetId: number } }
|
|
14085
|
+
/**
|
|
14086
|
+
* All reserved amount of deposit was released
|
|
14087
|
+
**/
|
|
14088
|
+
| { name: 'DepositReleased'; data: { who: AccountId32; assetId: number } };
|
|
14427
14089
|
|
|
14428
14090
|
/**
|
|
14429
14091
|
* The `Event` enum of this pallet
|
|
@@ -14444,7 +14106,15 @@ export type PalletRouteExecutorEvent =
|
|
|
14444
14106
|
/**
|
|
14445
14107
|
* The `Event` enum of this pallet
|
|
14446
14108
|
**/
|
|
14447
|
-
export type PalletDynamicFeesEvent =
|
|
14109
|
+
export type PalletDynamicFeesEvent =
|
|
14110
|
+
/**
|
|
14111
|
+
* Asset fee configuration has been set
|
|
14112
|
+
**/
|
|
14113
|
+
| { name: 'AssetFeeConfigSet'; data: { assetId: number; params: PalletDynamicFeesAssetFeeConfig } }
|
|
14114
|
+
/**
|
|
14115
|
+
* Asset fee configuration has been removed
|
|
14116
|
+
**/
|
|
14117
|
+
| { name: 'AssetFeeConfigRemoved'; data: { assetId: number } };
|
|
14448
14118
|
|
|
14449
14119
|
/**
|
|
14450
14120
|
* The `Event` enum of this pallet
|
|
@@ -15308,7 +14978,11 @@ export type PalletDcaEvent =
|
|
|
15308
14978
|
/**
|
|
15309
14979
|
* Randomness generation failed possibly coming from missing data about relay chain
|
|
15310
14980
|
**/
|
|
15311
|
-
| { name: 'RandomnessGenerationFailed'; data: { block: number; error: DispatchError } }
|
|
14981
|
+
| { name: 'RandomnessGenerationFailed'; data: { block: number; error: DispatchError } }
|
|
14982
|
+
/**
|
|
14983
|
+
* DCA reserve for the given asset have been unlocked for a user
|
|
14984
|
+
**/
|
|
14985
|
+
| { name: 'ReserveUnlocked'; data: { who: AccountId32; assetId: number } };
|
|
15312
14986
|
|
|
15313
14987
|
/**
|
|
15314
14988
|
* Events type.
|
|
@@ -16462,83 +16136,6 @@ export type PalletDemocracyError =
|
|
|
16462
16136
|
**/
|
|
16463
16137
|
| 'PreimageNotExist';
|
|
16464
16138
|
|
|
16465
|
-
export type PalletElectionsPhragmenSeatHolder = { who: AccountId32; stake: bigint; deposit: bigint };
|
|
16466
|
-
|
|
16467
|
-
export type PalletElectionsPhragmenVoter = { votes: Array<AccountId32>; stake: bigint; deposit: bigint };
|
|
16468
|
-
|
|
16469
|
-
/**
|
|
16470
|
-
* The `Error` enum of this pallet.
|
|
16471
|
-
**/
|
|
16472
|
-
export type PalletElectionsPhragmenError =
|
|
16473
|
-
/**
|
|
16474
|
-
* Cannot vote when no candidates or members exist.
|
|
16475
|
-
**/
|
|
16476
|
-
| 'UnableToVote'
|
|
16477
|
-
/**
|
|
16478
|
-
* Must vote for at least one candidate.
|
|
16479
|
-
**/
|
|
16480
|
-
| 'NoVotes'
|
|
16481
|
-
/**
|
|
16482
|
-
* Cannot vote more than candidates.
|
|
16483
|
-
**/
|
|
16484
|
-
| 'TooManyVotes'
|
|
16485
|
-
/**
|
|
16486
|
-
* Cannot vote more than maximum allowed.
|
|
16487
|
-
**/
|
|
16488
|
-
| 'MaximumVotesExceeded'
|
|
16489
|
-
/**
|
|
16490
|
-
* Cannot vote with stake less than minimum balance.
|
|
16491
|
-
**/
|
|
16492
|
-
| 'LowBalance'
|
|
16493
|
-
/**
|
|
16494
|
-
* Voter can not pay voting bond.
|
|
16495
|
-
**/
|
|
16496
|
-
| 'UnableToPayBond'
|
|
16497
|
-
/**
|
|
16498
|
-
* Must be a voter.
|
|
16499
|
-
**/
|
|
16500
|
-
| 'MustBeVoter'
|
|
16501
|
-
/**
|
|
16502
|
-
* Duplicated candidate submission.
|
|
16503
|
-
**/
|
|
16504
|
-
| 'DuplicatedCandidate'
|
|
16505
|
-
/**
|
|
16506
|
-
* Too many candidates have been created.
|
|
16507
|
-
**/
|
|
16508
|
-
| 'TooManyCandidates'
|
|
16509
|
-
/**
|
|
16510
|
-
* Member cannot re-submit candidacy.
|
|
16511
|
-
**/
|
|
16512
|
-
| 'MemberSubmit'
|
|
16513
|
-
/**
|
|
16514
|
-
* Runner cannot re-submit candidacy.
|
|
16515
|
-
**/
|
|
16516
|
-
| 'RunnerUpSubmit'
|
|
16517
|
-
/**
|
|
16518
|
-
* Candidate does not have enough funds.
|
|
16519
|
-
**/
|
|
16520
|
-
| 'InsufficientCandidateFunds'
|
|
16521
|
-
/**
|
|
16522
|
-
* Not a member.
|
|
16523
|
-
**/
|
|
16524
|
-
| 'NotMember'
|
|
16525
|
-
/**
|
|
16526
|
-
* The provided count of number of candidates is incorrect.
|
|
16527
|
-
**/
|
|
16528
|
-
| 'InvalidWitnessData'
|
|
16529
|
-
/**
|
|
16530
|
-
* The provided count of number of votes is incorrect.
|
|
16531
|
-
**/
|
|
16532
|
-
| 'InvalidVoteCount'
|
|
16533
|
-
/**
|
|
16534
|
-
* The renouncing origin presented a wrong `Renouncing` parameter.
|
|
16535
|
-
**/
|
|
16536
|
-
| 'InvalidRenouncing'
|
|
16537
|
-
/**
|
|
16538
|
-
* Prediction regarding replacement after member removal is wrong.
|
|
16539
|
-
**/
|
|
16540
|
-
| 'InvalidReplacement';
|
|
16541
|
-
|
|
16542
16139
|
export type PalletCollectiveVotes = {
|
|
16543
16140
|
index: number;
|
|
16544
16141
|
threshold: number;
|
|
@@ -16596,49 +16193,6 @@ export type PalletCollectiveError =
|
|
|
16596
16193
|
**/
|
|
16597
16194
|
| 'PrimeAccountNotMember';
|
|
16598
16195
|
|
|
16599
|
-
export type PalletTipsOpenTip = {
|
|
16600
|
-
reason: H256;
|
|
16601
|
-
who: AccountId32;
|
|
16602
|
-
finder: AccountId32;
|
|
16603
|
-
deposit: bigint;
|
|
16604
|
-
closes?: number | undefined;
|
|
16605
|
-
tips: Array<[AccountId32, bigint]>;
|
|
16606
|
-
findersFee: boolean;
|
|
16607
|
-
};
|
|
16608
|
-
|
|
16609
|
-
/**
|
|
16610
|
-
* The `Error` enum of this pallet.
|
|
16611
|
-
**/
|
|
16612
|
-
export type PalletTipsError =
|
|
16613
|
-
/**
|
|
16614
|
-
* The reason given is just too big.
|
|
16615
|
-
**/
|
|
16616
|
-
| 'ReasonTooBig'
|
|
16617
|
-
/**
|
|
16618
|
-
* The tip was already found/started.
|
|
16619
|
-
**/
|
|
16620
|
-
| 'AlreadyKnown'
|
|
16621
|
-
/**
|
|
16622
|
-
* The tip hash is unknown.
|
|
16623
|
-
**/
|
|
16624
|
-
| 'UnknownTip'
|
|
16625
|
-
/**
|
|
16626
|
-
* The tip given was too generous.
|
|
16627
|
-
**/
|
|
16628
|
-
| 'MaxTipAmountExceeded'
|
|
16629
|
-
/**
|
|
16630
|
-
* The account attempting to retract the tip is not the finder of the tip.
|
|
16631
|
-
**/
|
|
16632
|
-
| 'NotFinder'
|
|
16633
|
-
/**
|
|
16634
|
-
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
|
16635
|
-
**/
|
|
16636
|
-
| 'StillOpen'
|
|
16637
|
-
/**
|
|
16638
|
-
* The tip cannot be claimed/closed because it's still in the countdown period.
|
|
16639
|
-
**/
|
|
16640
|
-
| 'Premature';
|
|
16641
|
-
|
|
16642
16196
|
export type PalletProxyProxyDefinition = {
|
|
16643
16197
|
delegate: AccountId32;
|
|
16644
16198
|
proxyType: HydradxRuntimeSystemProxyType;
|
|
@@ -17627,6 +17181,10 @@ export type PalletCircuitBreakerTradeVolumeLimit = { volumeIn: bigint; volumeOut
|
|
|
17627
17181
|
|
|
17628
17182
|
export type PalletCircuitBreakerLiquidityLimit = { liquidity: bigint; limit: bigint };
|
|
17629
17183
|
|
|
17184
|
+
export type PalletCircuitBreakerLockdownStatus =
|
|
17185
|
+
| { type: 'Locked'; value: number }
|
|
17186
|
+
| { type: 'Unlocked'; value: [number, bigint] };
|
|
17187
|
+
|
|
17630
17188
|
/**
|
|
17631
17189
|
* The `Error` enum of this pallet.
|
|
17632
17190
|
**/
|
|
@@ -17654,7 +17212,21 @@ export type PalletCircuitBreakerError =
|
|
|
17654
17212
|
/**
|
|
17655
17213
|
* Asset is not allowed to have a limit
|
|
17656
17214
|
**/
|
|
17657
|
-
| 'NotAllowed'
|
|
17215
|
+
| 'NotAllowed'
|
|
17216
|
+
/**
|
|
17217
|
+
* Asset still in lockdown as it reached the allowed deposit limit for the period
|
|
17218
|
+
* Query the `asset_lockdown_state` storage to determine until which block the asset is locked,
|
|
17219
|
+
* so that the deposit can be released afterward.
|
|
17220
|
+
**/
|
|
17221
|
+
| 'AssetInLockdown'
|
|
17222
|
+
/**
|
|
17223
|
+
* Asset is not in a lockdown
|
|
17224
|
+
**/
|
|
17225
|
+
| 'AssetNotInLockdown'
|
|
17226
|
+
/**
|
|
17227
|
+
* Invalid amount to save deposit
|
|
17228
|
+
**/
|
|
17229
|
+
| 'InvalidAmount';
|
|
17658
17230
|
|
|
17659
17231
|
/**
|
|
17660
17232
|
* The `Error` enum of this pallet.
|
|
@@ -17703,17 +17275,14 @@ export type PalletRouteExecutorError =
|
|
|
17703
17275
|
|
|
17704
17276
|
export type PalletDynamicFeesFeeEntry = { assetFee: Permill; protocolFee: Permill; timestamp: number };
|
|
17705
17277
|
|
|
17706
|
-
export type PalletDynamicFeesFeeParams = {
|
|
17707
|
-
minFee: Permill;
|
|
17708
|
-
maxFee: Permill;
|
|
17709
|
-
decay: FixedU128;
|
|
17710
|
-
amplification: FixedU128;
|
|
17711
|
-
};
|
|
17712
|
-
|
|
17713
17278
|
/**
|
|
17714
17279
|
* The `Error` enum of this pallet.
|
|
17715
17280
|
**/
|
|
17716
|
-
export type PalletDynamicFeesError =
|
|
17281
|
+
export type PalletDynamicFeesError =
|
|
17282
|
+
/**
|
|
17283
|
+
* Invalid fee parameters provided
|
|
17284
|
+
**/
|
|
17285
|
+
'InvalidFeeParameters';
|
|
17717
17286
|
|
|
17718
17287
|
export type PalletStakingStakingData = {
|
|
17719
17288
|
totalStake: bigint;
|
|
@@ -18734,7 +18303,11 @@ export type PalletXykLiquidityMiningError =
|
|
|
18734
18303
|
/**
|
|
18735
18304
|
* No global farm - yield farm pairs specified to join
|
|
18736
18305
|
**/
|
|
18737
|
-
| 'NoFarmsSpecified'
|
|
18306
|
+
| 'NoFarmsSpecified'
|
|
18307
|
+
/**
|
|
18308
|
+
* Failed to calculate value of xyk shares
|
|
18309
|
+
**/
|
|
18310
|
+
| 'FailedToValueShares';
|
|
18738
18311
|
|
|
18739
18312
|
export type PalletLiquidityMiningDepositData002 = {
|
|
18740
18313
|
shares: bigint;
|
|
@@ -18822,7 +18395,15 @@ export type PalletDcaError =
|
|
|
18822
18395
|
/**
|
|
18823
18396
|
* Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock`
|
|
18824
18397
|
**/
|
|
18825
|
-
| 'StabilityThresholdTooHigh'
|
|
18398
|
+
| 'StabilityThresholdTooHigh'
|
|
18399
|
+
/**
|
|
18400
|
+
* User still has active DCA schedules and cannot unlock reserves
|
|
18401
|
+
**/
|
|
18402
|
+
| 'HasActiveSchedules'
|
|
18403
|
+
/**
|
|
18404
|
+
* No reserves are locked for the user for the given asset
|
|
18405
|
+
**/
|
|
18406
|
+
| 'NoReservesLocked';
|
|
18826
18407
|
|
|
18827
18408
|
export type PalletSchedulerScheduled = {
|
|
18828
18409
|
maybeId?: FixedBytes<32> | undefined;
|
|
@@ -19448,6 +19029,7 @@ export type PalletEmaOracleOracleEntry = {
|
|
|
19448
19029
|
price: HydraDxMathRatio;
|
|
19449
19030
|
volume: HydradxTraitsOracleVolume;
|
|
19450
19031
|
liquidity: HydradxTraitsOracleLiquidity;
|
|
19032
|
+
sharesIssuance?: bigint | undefined;
|
|
19451
19033
|
updatedAt: number;
|
|
19452
19034
|
};
|
|
19453
19035
|
|
|
@@ -19652,10 +19234,7 @@ export type HydradxRuntimeRuntimeError =
|
|
|
19652
19234
|
| { pallet: 'Preimage'; palletError: PalletPreimageError }
|
|
19653
19235
|
| { pallet: 'Identity'; palletError: PalletIdentityError }
|
|
19654
19236
|
| { pallet: 'Democracy'; palletError: PalletDemocracyError }
|
|
19655
|
-
| { pallet: 'Elections'; palletError: PalletElectionsPhragmenError }
|
|
19656
|
-
| { pallet: 'Council'; palletError: PalletCollectiveError }
|
|
19657
19237
|
| { pallet: 'TechnicalCommittee'; palletError: PalletCollectiveError }
|
|
19658
|
-
| { pallet: 'Tips'; palletError: PalletTipsError }
|
|
19659
19238
|
| { pallet: 'Proxy'; palletError: PalletProxyError }
|
|
19660
19239
|
| { pallet: 'Multisig'; palletError: PalletMultisigError }
|
|
19661
19240
|
| { pallet: 'Uniques'; palletError: PalletUniquesError }
|