@dedot/chaintypes 0.131.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/aleph/index.d.ts +2 -0
- package/aleph/view-functions.d.ts +5 -0
- package/astar/index.d.ts +2 -0
- package/astar/view-functions.d.ts +5 -0
- package/basilisk/index.d.ts +2 -0
- package/basilisk/view-functions.d.ts +5 -0
- package/hydration/index.d.ts +2 -0
- package/hydration/view-functions.d.ts +5 -0
- package/kusama/index.d.ts +2 -0
- package/kusama/view-functions.d.ts +5 -0
- package/kusama-asset-hub/index.d.ts +2 -0
- package/kusama-asset-hub/view-functions.d.ts +5 -0
- package/kusama-people/index.d.ts +2 -0
- package/kusama-people/view-functions.d.ts +5 -0
- package/moonbeam/index.d.ts +2 -0
- package/moonbeam/view-functions.d.ts +5 -0
- package/package.json +3 -3
- package/paseo/index.d.ts +2 -0
- package/paseo/view-functions.d.ts +5 -0
- package/paseo-asset-hub/index.d.ts +2 -0
- package/paseo-asset-hub/view-functions.d.ts +5 -0
- 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 +3 -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/paseo-hydration/view-functions.d.ts +5 -0
- package/paseo-people/index.d.ts +2 -0
- package/paseo-people/view-functions.d.ts +5 -0
- package/polkadot/index.d.ts +2 -0
- package/polkadot/view-functions.d.ts +5 -0
- package/polkadot-asset-hub/index.d.ts +2 -0
- package/polkadot-asset-hub/view-functions.d.ts +5 -0
- package/polkadot-people/index.d.ts +2 -0
- package/polkadot-people/view-functions.d.ts +5 -0
- package/substrate/index.d.ts +2 -0
- package/substrate/runtime.d.ts +11 -11
- package/substrate/types.d.ts +8 -1
- package/substrate/view-functions.d.ts +5 -0
- package/vara/index.d.ts +2 -0
- package/vara/view-functions.d.ts +5 -0
- package/westend/errors.d.ts +2 -0
- package/westend/index.d.ts +2 -0
- package/westend/query.d.ts +2 -0
- package/westend/tx.d.ts +12 -0
- package/westend/types.d.ts +11 -11
- package/westend/view-functions.d.ts +84 -0
- package/westend-asset-hub/errors.d.ts +2 -0
- package/westend-asset-hub/index.d.ts +2 -0
- package/westend-asset-hub/query.d.ts +2 -0
- package/westend-asset-hub/tx.d.ts +8 -0
- package/westend-asset-hub/types.d.ts +42 -44
- package/westend-asset-hub/view-functions.d.ts +82 -0
- package/westend-people/index.d.ts +2 -0
- package/westend-people/view-functions.d.ts +5 -0
package/paseo-hydration/tx.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
FixedBytes,
|
|
23
23
|
Permill,
|
|
24
24
|
Perquintill,
|
|
25
|
+
Perbill,
|
|
25
26
|
} from 'dedot/codecs';
|
|
26
27
|
import type {
|
|
27
28
|
HydradxRuntimeRuntimeCallLike,
|
|
@@ -36,7 +37,6 @@ import type {
|
|
|
36
37
|
PalletDemocracyVoteAccountVote,
|
|
37
38
|
PalletDemocracyConviction,
|
|
38
39
|
PalletDemocracyMetadataOwner,
|
|
39
|
-
PalletElectionsPhragmenRenouncing,
|
|
40
40
|
HydradxRuntimeSystemProxyType,
|
|
41
41
|
PalletMultisigTimepoint,
|
|
42
42
|
PalletUniquesDestroyWitness,
|
|
@@ -54,6 +54,7 @@ import type {
|
|
|
54
54
|
HydradxTraitsStableswapAssetAmount,
|
|
55
55
|
HydradxTraitsRouterTrade,
|
|
56
56
|
HydradxTraitsRouterAssetPair,
|
|
57
|
+
PalletDynamicFeesAssetFeeConfig,
|
|
57
58
|
PalletStableswapTradability,
|
|
58
59
|
PalletStableswapPegSource,
|
|
59
60
|
PalletLbpWeightCurveType,
|
|
@@ -2604,461 +2605,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2604
2605
|
**/
|
|
2605
2606
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
2606
2607
|
};
|
|
2607
|
-
/**
|
|
2608
|
-
* Pallet `Elections`'s transaction calls
|
|
2609
|
-
**/
|
|
2610
|
-
elections: {
|
|
2611
|
-
/**
|
|
2612
|
-
* Vote for a set of candidates for the upcoming round of election. This can be called to
|
|
2613
|
-
* set the initial votes, or update already existing votes.
|
|
2614
|
-
*
|
|
2615
|
-
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
2616
|
-
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
2617
|
-
*
|
|
2618
|
-
* The `votes` should:
|
|
2619
|
-
* - not be empty.
|
|
2620
|
-
* - be less than the number of possible candidates. Note that all current members and
|
|
2621
|
-
* runners-up are also automatically candidates for the next round.
|
|
2622
|
-
*
|
|
2623
|
-
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
|
2624
|
-
*
|
|
2625
|
-
* The dispatch origin of this call must be signed.
|
|
2626
|
-
*
|
|
2627
|
-
* ### Warning
|
|
2628
|
-
*
|
|
2629
|
-
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
2630
|
-
* lock and keep some for further operations.
|
|
2631
|
-
*
|
|
2632
|
-
* @param {Array<AccountId32Like>} votes
|
|
2633
|
-
* @param {bigint} value
|
|
2634
|
-
**/
|
|
2635
|
-
vote: GenericTxCall<
|
|
2636
|
-
Rv,
|
|
2637
|
-
(
|
|
2638
|
-
votes: Array<AccountId32Like>,
|
|
2639
|
-
value: bigint,
|
|
2640
|
-
) => ChainSubmittableExtrinsic<
|
|
2641
|
-
Rv,
|
|
2642
|
-
{
|
|
2643
|
-
pallet: 'Elections';
|
|
2644
|
-
palletCall: {
|
|
2645
|
-
name: 'Vote';
|
|
2646
|
-
params: { votes: Array<AccountId32Like>; value: bigint };
|
|
2647
|
-
};
|
|
2648
|
-
}
|
|
2649
|
-
>
|
|
2650
|
-
>;
|
|
2651
|
-
|
|
2652
|
-
/**
|
|
2653
|
-
* Remove `origin` as a voter.
|
|
2654
|
-
*
|
|
2655
|
-
* This removes the lock and returns the deposit.
|
|
2656
|
-
*
|
|
2657
|
-
* The dispatch origin of this call must be signed and be a voter.
|
|
2658
|
-
*
|
|
2659
|
-
**/
|
|
2660
|
-
removeVoter: GenericTxCall<
|
|
2661
|
-
Rv,
|
|
2662
|
-
() => ChainSubmittableExtrinsic<
|
|
2663
|
-
Rv,
|
|
2664
|
-
{
|
|
2665
|
-
pallet: 'Elections';
|
|
2666
|
-
palletCall: {
|
|
2667
|
-
name: 'RemoveVoter';
|
|
2668
|
-
};
|
|
2669
|
-
}
|
|
2670
|
-
>
|
|
2671
|
-
>;
|
|
2672
|
-
|
|
2673
|
-
/**
|
|
2674
|
-
* Submit oneself for candidacy. A fixed amount of deposit is recorded.
|
|
2675
|
-
*
|
|
2676
|
-
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
2677
|
-
* or leave the system while their deposit is slashed.
|
|
2678
|
-
*
|
|
2679
|
-
* The dispatch origin of this call must be signed.
|
|
2680
|
-
*
|
|
2681
|
-
* ### Warning
|
|
2682
|
-
*
|
|
2683
|
-
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
2684
|
-
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
2685
|
-
*
|
|
2686
|
-
* The number of current candidates must be provided as witness data.
|
|
2687
|
-
* ## Complexity
|
|
2688
|
-
* O(C + log(C)) where C is candidate_count.
|
|
2689
|
-
*
|
|
2690
|
-
* @param {number} candidateCount
|
|
2691
|
-
**/
|
|
2692
|
-
submitCandidacy: GenericTxCall<
|
|
2693
|
-
Rv,
|
|
2694
|
-
(candidateCount: number) => ChainSubmittableExtrinsic<
|
|
2695
|
-
Rv,
|
|
2696
|
-
{
|
|
2697
|
-
pallet: 'Elections';
|
|
2698
|
-
palletCall: {
|
|
2699
|
-
name: 'SubmitCandidacy';
|
|
2700
|
-
params: { candidateCount: number };
|
|
2701
|
-
};
|
|
2702
|
-
}
|
|
2703
|
-
>
|
|
2704
|
-
>;
|
|
2705
|
-
|
|
2706
|
-
/**
|
|
2707
|
-
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
2708
|
-
* outcomes exist:
|
|
2709
|
-
*
|
|
2710
|
-
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
2711
|
-
* unreserved, returned and origin is removed as a candidate.
|
|
2712
|
-
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
2713
|
-
* origin is removed as a runner-up.
|
|
2714
|
-
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
2715
|
-
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
2716
|
-
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
2717
|
-
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
2718
|
-
* next round.
|
|
2719
|
-
*
|
|
2720
|
-
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
2721
|
-
* The type of renouncing must be provided as witness data.
|
|
2722
|
-
*
|
|
2723
|
-
* ## Complexity
|
|
2724
|
-
* - Renouncing::Candidate(count): O(count + log(count))
|
|
2725
|
-
* - Renouncing::Member: O(1)
|
|
2726
|
-
* - Renouncing::RunnerUp: O(1)
|
|
2727
|
-
*
|
|
2728
|
-
* @param {PalletElectionsPhragmenRenouncing} renouncing
|
|
2729
|
-
**/
|
|
2730
|
-
renounceCandidacy: GenericTxCall<
|
|
2731
|
-
Rv,
|
|
2732
|
-
(renouncing: PalletElectionsPhragmenRenouncing) => ChainSubmittableExtrinsic<
|
|
2733
|
-
Rv,
|
|
2734
|
-
{
|
|
2735
|
-
pallet: 'Elections';
|
|
2736
|
-
palletCall: {
|
|
2737
|
-
name: 'RenounceCandidacy';
|
|
2738
|
-
params: { renouncing: PalletElectionsPhragmenRenouncing };
|
|
2739
|
-
};
|
|
2740
|
-
}
|
|
2741
|
-
>
|
|
2742
|
-
>;
|
|
2743
|
-
|
|
2744
|
-
/**
|
|
2745
|
-
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
2746
|
-
* the outgoing member is slashed.
|
|
2747
|
-
*
|
|
2748
|
-
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
2749
|
-
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
2750
|
-
* started, else, nothing happens.
|
|
2751
|
-
*
|
|
2752
|
-
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
2753
|
-
* it is returned.
|
|
2754
|
-
*
|
|
2755
|
-
* The dispatch origin of this call must be root.
|
|
2756
|
-
*
|
|
2757
|
-
* Note that this does not affect the designated block number of the next election.
|
|
2758
|
-
*
|
|
2759
|
-
* ## Complexity
|
|
2760
|
-
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
2761
|
-
*
|
|
2762
|
-
* @param {AccountId32Like} who
|
|
2763
|
-
* @param {boolean} slashBond
|
|
2764
|
-
* @param {boolean} rerunElection
|
|
2765
|
-
**/
|
|
2766
|
-
removeMember: GenericTxCall<
|
|
2767
|
-
Rv,
|
|
2768
|
-
(
|
|
2769
|
-
who: AccountId32Like,
|
|
2770
|
-
slashBond: boolean,
|
|
2771
|
-
rerunElection: boolean,
|
|
2772
|
-
) => ChainSubmittableExtrinsic<
|
|
2773
|
-
Rv,
|
|
2774
|
-
{
|
|
2775
|
-
pallet: 'Elections';
|
|
2776
|
-
palletCall: {
|
|
2777
|
-
name: 'RemoveMember';
|
|
2778
|
-
params: { who: AccountId32Like; slashBond: boolean; rerunElection: boolean };
|
|
2779
|
-
};
|
|
2780
|
-
}
|
|
2781
|
-
>
|
|
2782
|
-
>;
|
|
2783
|
-
|
|
2784
|
-
/**
|
|
2785
|
-
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
2786
|
-
* deposit of the removed voters are returned.
|
|
2787
|
-
*
|
|
2788
|
-
* This is an root function to be used only for cleaning the state.
|
|
2789
|
-
*
|
|
2790
|
-
* The dispatch origin of this call must be root.
|
|
2791
|
-
*
|
|
2792
|
-
* ## Complexity
|
|
2793
|
-
* - Check is_defunct_voter() details.
|
|
2794
|
-
*
|
|
2795
|
-
* @param {number} numVoters
|
|
2796
|
-
* @param {number} numDefunct
|
|
2797
|
-
**/
|
|
2798
|
-
cleanDefunctVoters: GenericTxCall<
|
|
2799
|
-
Rv,
|
|
2800
|
-
(
|
|
2801
|
-
numVoters: number,
|
|
2802
|
-
numDefunct: number,
|
|
2803
|
-
) => ChainSubmittableExtrinsic<
|
|
2804
|
-
Rv,
|
|
2805
|
-
{
|
|
2806
|
-
pallet: 'Elections';
|
|
2807
|
-
palletCall: {
|
|
2808
|
-
name: 'CleanDefunctVoters';
|
|
2809
|
-
params: { numVoters: number; numDefunct: number };
|
|
2810
|
-
};
|
|
2811
|
-
}
|
|
2812
|
-
>
|
|
2813
|
-
>;
|
|
2814
|
-
|
|
2815
|
-
/**
|
|
2816
|
-
* Generic pallet tx call
|
|
2817
|
-
**/
|
|
2818
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
2819
|
-
};
|
|
2820
|
-
/**
|
|
2821
|
-
* Pallet `Council`'s transaction calls
|
|
2822
|
-
**/
|
|
2823
|
-
council: {
|
|
2824
|
-
/**
|
|
2825
|
-
* Set the collective's membership.
|
|
2826
|
-
*
|
|
2827
|
-
* - `new_members`: The new member list. Be nice to the chain and provide it sorted.
|
|
2828
|
-
* - `prime`: The prime member whose vote sets the default.
|
|
2829
|
-
* - `old_count`: The upper bound for the previous number of members in storage. Used for
|
|
2830
|
-
* weight estimation.
|
|
2831
|
-
*
|
|
2832
|
-
* The dispatch of this call must be `SetMembersOrigin`.
|
|
2833
|
-
*
|
|
2834
|
-
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
2835
|
-
* the weight estimations rely on it to estimate dispatchable weight.
|
|
2836
|
-
*
|
|
2837
|
-
* # WARNING:
|
|
2838
|
-
*
|
|
2839
|
-
* The `pallet-collective` can also be managed by logic outside of the pallet through the
|
|
2840
|
-
* implementation of the trait [`ChangeMembers`].
|
|
2841
|
-
* Any call to `set_members` must be careful that the member set doesn't get out of sync
|
|
2842
|
-
* with other logic managing the member set.
|
|
2843
|
-
*
|
|
2844
|
-
* ## Complexity:
|
|
2845
|
-
* - `O(MP + N)` where:
|
|
2846
|
-
* - `M` old-members-count (code- and governance-bounded)
|
|
2847
|
-
* - `N` new-members-count (code- and governance-bounded)
|
|
2848
|
-
* - `P` proposals-count (code-bounded)
|
|
2849
|
-
*
|
|
2850
|
-
* @param {Array<AccountId32Like>} newMembers
|
|
2851
|
-
* @param {AccountId32Like | undefined} prime
|
|
2852
|
-
* @param {number} oldCount
|
|
2853
|
-
**/
|
|
2854
|
-
setMembers: GenericTxCall<
|
|
2855
|
-
Rv,
|
|
2856
|
-
(
|
|
2857
|
-
newMembers: Array<AccountId32Like>,
|
|
2858
|
-
prime: AccountId32Like | undefined,
|
|
2859
|
-
oldCount: number,
|
|
2860
|
-
) => ChainSubmittableExtrinsic<
|
|
2861
|
-
Rv,
|
|
2862
|
-
{
|
|
2863
|
-
pallet: 'Council';
|
|
2864
|
-
palletCall: {
|
|
2865
|
-
name: 'SetMembers';
|
|
2866
|
-
params: { newMembers: Array<AccountId32Like>; prime: AccountId32Like | undefined; oldCount: number };
|
|
2867
|
-
};
|
|
2868
|
-
}
|
|
2869
|
-
>
|
|
2870
|
-
>;
|
|
2871
|
-
|
|
2872
|
-
/**
|
|
2873
|
-
* Dispatch a proposal from a member using the `Member` origin.
|
|
2874
|
-
*
|
|
2875
|
-
* Origin must be a member of the collective.
|
|
2876
|
-
*
|
|
2877
|
-
* ## Complexity:
|
|
2878
|
-
* - `O(B + M + P)` where:
|
|
2879
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
2880
|
-
* - `M` members-count (code-bounded)
|
|
2881
|
-
* - `P` complexity of dispatching `proposal`
|
|
2882
|
-
*
|
|
2883
|
-
* @param {HydradxRuntimeRuntimeCallLike} proposal
|
|
2884
|
-
* @param {number} lengthBound
|
|
2885
|
-
**/
|
|
2886
|
-
execute: GenericTxCall<
|
|
2887
|
-
Rv,
|
|
2888
|
-
(
|
|
2889
|
-
proposal: HydradxRuntimeRuntimeCallLike,
|
|
2890
|
-
lengthBound: number,
|
|
2891
|
-
) => ChainSubmittableExtrinsic<
|
|
2892
|
-
Rv,
|
|
2893
|
-
{
|
|
2894
|
-
pallet: 'Council';
|
|
2895
|
-
palletCall: {
|
|
2896
|
-
name: 'Execute';
|
|
2897
|
-
params: { proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
|
|
2898
|
-
};
|
|
2899
|
-
}
|
|
2900
|
-
>
|
|
2901
|
-
>;
|
|
2902
|
-
|
|
2903
|
-
/**
|
|
2904
|
-
* Add a new proposal to either be voted on or executed directly.
|
|
2905
|
-
*
|
|
2906
|
-
* Requires the sender to be member.
|
|
2907
|
-
*
|
|
2908
|
-
* `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
|
|
2909
|
-
* or put up for voting.
|
|
2910
|
-
*
|
|
2911
|
-
* ## Complexity
|
|
2912
|
-
* - `O(B + M + P1)` or `O(B + M + P2)` where:
|
|
2913
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
2914
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
2915
|
-
* - branching is influenced by `threshold` where:
|
|
2916
|
-
* - `P1` is proposal execution complexity (`threshold < 2`)
|
|
2917
|
-
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
2918
|
-
*
|
|
2919
|
-
* @param {number} threshold
|
|
2920
|
-
* @param {HydradxRuntimeRuntimeCallLike} proposal
|
|
2921
|
-
* @param {number} lengthBound
|
|
2922
|
-
**/
|
|
2923
|
-
propose: GenericTxCall<
|
|
2924
|
-
Rv,
|
|
2925
|
-
(
|
|
2926
|
-
threshold: number,
|
|
2927
|
-
proposal: HydradxRuntimeRuntimeCallLike,
|
|
2928
|
-
lengthBound: number,
|
|
2929
|
-
) => ChainSubmittableExtrinsic<
|
|
2930
|
-
Rv,
|
|
2931
|
-
{
|
|
2932
|
-
pallet: 'Council';
|
|
2933
|
-
palletCall: {
|
|
2934
|
-
name: 'Propose';
|
|
2935
|
-
params: { threshold: number; proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
|
|
2936
|
-
};
|
|
2937
|
-
}
|
|
2938
|
-
>
|
|
2939
|
-
>;
|
|
2940
|
-
|
|
2941
|
-
/**
|
|
2942
|
-
* Add an aye or nay vote for the sender to the given proposal.
|
|
2943
|
-
*
|
|
2944
|
-
* Requires the sender to be a member.
|
|
2945
|
-
*
|
|
2946
|
-
* Transaction fees will be waived if the member is voting on any particular proposal
|
|
2947
|
-
* for the first time and the call is successful. Subsequent vote changes will charge a
|
|
2948
|
-
* fee.
|
|
2949
|
-
* ## Complexity
|
|
2950
|
-
* - `O(M)` where `M` is members-count (code- and governance-bounded)
|
|
2951
|
-
*
|
|
2952
|
-
* @param {H256} proposal
|
|
2953
|
-
* @param {number} index
|
|
2954
|
-
* @param {boolean} approve
|
|
2955
|
-
**/
|
|
2956
|
-
vote: GenericTxCall<
|
|
2957
|
-
Rv,
|
|
2958
|
-
(
|
|
2959
|
-
proposal: H256,
|
|
2960
|
-
index: number,
|
|
2961
|
-
approve: boolean,
|
|
2962
|
-
) => ChainSubmittableExtrinsic<
|
|
2963
|
-
Rv,
|
|
2964
|
-
{
|
|
2965
|
-
pallet: 'Council';
|
|
2966
|
-
palletCall: {
|
|
2967
|
-
name: 'Vote';
|
|
2968
|
-
params: { proposal: H256; index: number; approve: boolean };
|
|
2969
|
-
};
|
|
2970
|
-
}
|
|
2971
|
-
>
|
|
2972
|
-
>;
|
|
2973
|
-
|
|
2974
|
-
/**
|
|
2975
|
-
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
2976
|
-
* state.
|
|
2977
|
-
*
|
|
2978
|
-
* Must be called by the Root origin.
|
|
2979
|
-
*
|
|
2980
|
-
* Parameters:
|
|
2981
|
-
* * `proposal_hash`: The hash of the proposal that should be disapproved.
|
|
2982
|
-
*
|
|
2983
|
-
* ## Complexity
|
|
2984
|
-
* O(P) where P is the number of max proposals
|
|
2985
|
-
*
|
|
2986
|
-
* @param {H256} proposalHash
|
|
2987
|
-
**/
|
|
2988
|
-
disapproveProposal: GenericTxCall<
|
|
2989
|
-
Rv,
|
|
2990
|
-
(proposalHash: H256) => ChainSubmittableExtrinsic<
|
|
2991
|
-
Rv,
|
|
2992
|
-
{
|
|
2993
|
-
pallet: 'Council';
|
|
2994
|
-
palletCall: {
|
|
2995
|
-
name: 'DisapproveProposal';
|
|
2996
|
-
params: { proposalHash: H256 };
|
|
2997
|
-
};
|
|
2998
|
-
}
|
|
2999
|
-
>
|
|
3000
|
-
>;
|
|
3001
|
-
|
|
3002
|
-
/**
|
|
3003
|
-
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
3004
|
-
*
|
|
3005
|
-
* May be called by any signed account in order to finish voting and close the proposal.
|
|
3006
|
-
*
|
|
3007
|
-
* If called before the end of the voting period it will only close the vote if it is
|
|
3008
|
-
* has enough votes to be approved or disapproved.
|
|
3009
|
-
*
|
|
3010
|
-
* If called after the end of the voting period abstentions are counted as rejections
|
|
3011
|
-
* unless there is a prime member set and the prime member cast an approval.
|
|
3012
|
-
*
|
|
3013
|
-
* If the close operation completes successfully with disapproval, the transaction fee will
|
|
3014
|
-
* be waived. Otherwise execution of the approved operation will be charged to the caller.
|
|
3015
|
-
*
|
|
3016
|
-
* + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
|
|
3017
|
-
* proposal.
|
|
3018
|
-
* + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
|
|
3019
|
-
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
3020
|
-
*
|
|
3021
|
-
* ## Complexity
|
|
3022
|
-
* - `O(B + M + P1 + P2)` where:
|
|
3023
|
-
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
3024
|
-
* - `M` is members-count (code- and governance-bounded)
|
|
3025
|
-
* - `P1` is the complexity of `proposal` preimage.
|
|
3026
|
-
* - `P2` is proposal-count (code-bounded)
|
|
3027
|
-
*
|
|
3028
|
-
* @param {H256} proposalHash
|
|
3029
|
-
* @param {number} index
|
|
3030
|
-
* @param {SpWeightsWeightV2Weight} proposalWeightBound
|
|
3031
|
-
* @param {number} lengthBound
|
|
3032
|
-
**/
|
|
3033
|
-
close: GenericTxCall<
|
|
3034
|
-
Rv,
|
|
3035
|
-
(
|
|
3036
|
-
proposalHash: H256,
|
|
3037
|
-
index: number,
|
|
3038
|
-
proposalWeightBound: SpWeightsWeightV2Weight,
|
|
3039
|
-
lengthBound: number,
|
|
3040
|
-
) => ChainSubmittableExtrinsic<
|
|
3041
|
-
Rv,
|
|
3042
|
-
{
|
|
3043
|
-
pallet: 'Council';
|
|
3044
|
-
palletCall: {
|
|
3045
|
-
name: 'Close';
|
|
3046
|
-
params: {
|
|
3047
|
-
proposalHash: H256;
|
|
3048
|
-
index: number;
|
|
3049
|
-
proposalWeightBound: SpWeightsWeightV2Weight;
|
|
3050
|
-
lengthBound: number;
|
|
3051
|
-
};
|
|
3052
|
-
};
|
|
3053
|
-
}
|
|
3054
|
-
>
|
|
3055
|
-
>;
|
|
3056
|
-
|
|
3057
|
-
/**
|
|
3058
|
-
* Generic pallet tx call
|
|
3059
|
-
**/
|
|
3060
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3061
|
-
};
|
|
3062
2608
|
/**
|
|
3063
2609
|
* Pallet `TechnicalCommittee`'s transaction calls
|
|
3064
2610
|
**/
|
|
@@ -3301,232 +2847,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3301
2847
|
**/
|
|
3302
2848
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3303
2849
|
};
|
|
3304
|
-
/**
|
|
3305
|
-
* Pallet `Tips`'s transaction calls
|
|
3306
|
-
**/
|
|
3307
|
-
tips: {
|
|
3308
|
-
/**
|
|
3309
|
-
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
3310
|
-
*
|
|
3311
|
-
* The dispatch origin for this call must be _Signed_.
|
|
3312
|
-
*
|
|
3313
|
-
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
3314
|
-
* `DataDepositPerByte` for each byte in `reason`.
|
|
3315
|
-
*
|
|
3316
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
3317
|
-
* a UTF-8-encoded URL.
|
|
3318
|
-
* - `who`: The account which should be credited for the tip.
|
|
3319
|
-
*
|
|
3320
|
-
* Emits `NewTip` if successful.
|
|
3321
|
-
*
|
|
3322
|
-
* ## Complexity
|
|
3323
|
-
* - `O(R)` where `R` length of `reason`.
|
|
3324
|
-
* - encoding and hashing of 'reason'
|
|
3325
|
-
*
|
|
3326
|
-
* @param {BytesLike} reason
|
|
3327
|
-
* @param {AccountId32Like} who
|
|
3328
|
-
**/
|
|
3329
|
-
reportAwesome: GenericTxCall<
|
|
3330
|
-
Rv,
|
|
3331
|
-
(
|
|
3332
|
-
reason: BytesLike,
|
|
3333
|
-
who: AccountId32Like,
|
|
3334
|
-
) => ChainSubmittableExtrinsic<
|
|
3335
|
-
Rv,
|
|
3336
|
-
{
|
|
3337
|
-
pallet: 'Tips';
|
|
3338
|
-
palletCall: {
|
|
3339
|
-
name: 'ReportAwesome';
|
|
3340
|
-
params: { reason: BytesLike; who: AccountId32Like };
|
|
3341
|
-
};
|
|
3342
|
-
}
|
|
3343
|
-
>
|
|
3344
|
-
>;
|
|
3345
|
-
|
|
3346
|
-
/**
|
|
3347
|
-
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
3348
|
-
*
|
|
3349
|
-
* If successful, the original deposit will be unreserved.
|
|
3350
|
-
*
|
|
3351
|
-
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
3352
|
-
* must have been reported by the signing account through `report_awesome` (and not
|
|
3353
|
-
* through `tip_new`).
|
|
3354
|
-
*
|
|
3355
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
3356
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
3357
|
-
*
|
|
3358
|
-
* Emits `TipRetracted` if successful.
|
|
3359
|
-
*
|
|
3360
|
-
* ## Complexity
|
|
3361
|
-
* - `O(1)`
|
|
3362
|
-
* - Depends on the length of `T::Hash` which is fixed.
|
|
3363
|
-
*
|
|
3364
|
-
* @param {H256} hash
|
|
3365
|
-
**/
|
|
3366
|
-
retractTip: GenericTxCall<
|
|
3367
|
-
Rv,
|
|
3368
|
-
(hash: H256) => ChainSubmittableExtrinsic<
|
|
3369
|
-
Rv,
|
|
3370
|
-
{
|
|
3371
|
-
pallet: 'Tips';
|
|
3372
|
-
palletCall: {
|
|
3373
|
-
name: 'RetractTip';
|
|
3374
|
-
params: { hash: H256 };
|
|
3375
|
-
};
|
|
3376
|
-
}
|
|
3377
|
-
>
|
|
3378
|
-
>;
|
|
3379
|
-
|
|
3380
|
-
/**
|
|
3381
|
-
* Give a tip for something new; no finder's fee will be taken.
|
|
3382
|
-
*
|
|
3383
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
3384
|
-
* member of the `Tippers` set.
|
|
3385
|
-
*
|
|
3386
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
3387
|
-
* a UTF-8-encoded URL.
|
|
3388
|
-
* - `who`: The account which should be credited for the tip.
|
|
3389
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
3390
|
-
* value of active tippers will be given to the `who`.
|
|
3391
|
-
*
|
|
3392
|
-
* Emits `NewTip` if successful.
|
|
3393
|
-
*
|
|
3394
|
-
* ## Complexity
|
|
3395
|
-
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
3396
|
-
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
3397
|
-
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
3398
|
-
* `T::Tippers`.
|
|
3399
|
-
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
3400
|
-
*
|
|
3401
|
-
* @param {BytesLike} reason
|
|
3402
|
-
* @param {AccountId32Like} who
|
|
3403
|
-
* @param {bigint} tipValue
|
|
3404
|
-
**/
|
|
3405
|
-
tipNew: GenericTxCall<
|
|
3406
|
-
Rv,
|
|
3407
|
-
(
|
|
3408
|
-
reason: BytesLike,
|
|
3409
|
-
who: AccountId32Like,
|
|
3410
|
-
tipValue: bigint,
|
|
3411
|
-
) => ChainSubmittableExtrinsic<
|
|
3412
|
-
Rv,
|
|
3413
|
-
{
|
|
3414
|
-
pallet: 'Tips';
|
|
3415
|
-
palletCall: {
|
|
3416
|
-
name: 'TipNew';
|
|
3417
|
-
params: { reason: BytesLike; who: AccountId32Like; tipValue: bigint };
|
|
3418
|
-
};
|
|
3419
|
-
}
|
|
3420
|
-
>
|
|
3421
|
-
>;
|
|
3422
|
-
|
|
3423
|
-
/**
|
|
3424
|
-
* Declare a tip value for an already-open tip.
|
|
3425
|
-
*
|
|
3426
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
3427
|
-
* member of the `Tippers` set.
|
|
3428
|
-
*
|
|
3429
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
3430
|
-
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
3431
|
-
* account ID.
|
|
3432
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
3433
|
-
* value of active tippers will be given to the `who`.
|
|
3434
|
-
*
|
|
3435
|
-
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
3436
|
-
* has started.
|
|
3437
|
-
*
|
|
3438
|
-
* ## Complexity
|
|
3439
|
-
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
3440
|
-
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
3441
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
3442
|
-
*
|
|
3443
|
-
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
3444
|
-
* is weighted as if almost full i.e of length `T-1`.
|
|
3445
|
-
*
|
|
3446
|
-
* @param {H256} hash
|
|
3447
|
-
* @param {bigint} tipValue
|
|
3448
|
-
**/
|
|
3449
|
-
tip: GenericTxCall<
|
|
3450
|
-
Rv,
|
|
3451
|
-
(
|
|
3452
|
-
hash: H256,
|
|
3453
|
-
tipValue: bigint,
|
|
3454
|
-
) => ChainSubmittableExtrinsic<
|
|
3455
|
-
Rv,
|
|
3456
|
-
{
|
|
3457
|
-
pallet: 'Tips';
|
|
3458
|
-
palletCall: {
|
|
3459
|
-
name: 'Tip';
|
|
3460
|
-
params: { hash: H256; tipValue: bigint };
|
|
3461
|
-
};
|
|
3462
|
-
}
|
|
3463
|
-
>
|
|
3464
|
-
>;
|
|
3465
|
-
|
|
3466
|
-
/**
|
|
3467
|
-
* Close and payout a tip.
|
|
3468
|
-
*
|
|
3469
|
-
* The dispatch origin for this call must be _Signed_.
|
|
3470
|
-
*
|
|
3471
|
-
* The tip identified by `hash` must have finished its countdown period.
|
|
3472
|
-
*
|
|
3473
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
3474
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
3475
|
-
*
|
|
3476
|
-
* ## Complexity
|
|
3477
|
-
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
3478
|
-
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
3479
|
-
* the implementation of `T::Tippers`.
|
|
3480
|
-
*
|
|
3481
|
-
* @param {H256} hash
|
|
3482
|
-
**/
|
|
3483
|
-
closeTip: GenericTxCall<
|
|
3484
|
-
Rv,
|
|
3485
|
-
(hash: H256) => ChainSubmittableExtrinsic<
|
|
3486
|
-
Rv,
|
|
3487
|
-
{
|
|
3488
|
-
pallet: 'Tips';
|
|
3489
|
-
palletCall: {
|
|
3490
|
-
name: 'CloseTip';
|
|
3491
|
-
params: { hash: H256 };
|
|
3492
|
-
};
|
|
3493
|
-
}
|
|
3494
|
-
>
|
|
3495
|
-
>;
|
|
3496
|
-
|
|
3497
|
-
/**
|
|
3498
|
-
* Remove and slash an already-open tip.
|
|
3499
|
-
*
|
|
3500
|
-
* May only be called from `T::RejectOrigin`.
|
|
3501
|
-
*
|
|
3502
|
-
* As a result, the finder is slashed and the deposits are lost.
|
|
3503
|
-
*
|
|
3504
|
-
* Emits `TipSlashed` if successful.
|
|
3505
|
-
*
|
|
3506
|
-
* ## Complexity
|
|
3507
|
-
* - O(1).
|
|
3508
|
-
*
|
|
3509
|
-
* @param {H256} hash
|
|
3510
|
-
**/
|
|
3511
|
-
slashTip: GenericTxCall<
|
|
3512
|
-
Rv,
|
|
3513
|
-
(hash: H256) => ChainSubmittableExtrinsic<
|
|
3514
|
-
Rv,
|
|
3515
|
-
{
|
|
3516
|
-
pallet: 'Tips';
|
|
3517
|
-
palletCall: {
|
|
3518
|
-
name: 'SlashTip';
|
|
3519
|
-
params: { hash: H256 };
|
|
3520
|
-
};
|
|
3521
|
-
}
|
|
3522
|
-
>
|
|
3523
|
-
>;
|
|
3524
|
-
|
|
3525
|
-
/**
|
|
3526
|
-
* Generic pallet tx call
|
|
3527
|
-
**/
|
|
3528
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3529
|
-
};
|
|
3530
2850
|
/**
|
|
3531
2851
|
* Pallet `Proxy`'s transaction calls
|
|
3532
2852
|
**/
|
|
@@ -7773,6 +7093,102 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7773
7093
|
>
|
|
7774
7094
|
>;
|
|
7775
7095
|
|
|
7096
|
+
/**
|
|
7097
|
+
* Lockdown an asset for minting
|
|
7098
|
+
*
|
|
7099
|
+
* Can be called only by an authority origin
|
|
7100
|
+
*
|
|
7101
|
+
* Parameters:
|
|
7102
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7103
|
+
* - `asset_id`: The identifier of an asset
|
|
7104
|
+
* - `until`: The block number until which the asset is locked
|
|
7105
|
+
*
|
|
7106
|
+
* /// Emits `AssetLockdowned` event when successful.
|
|
7107
|
+
*
|
|
7108
|
+
* @param {number} assetId
|
|
7109
|
+
* @param {number} until
|
|
7110
|
+
**/
|
|
7111
|
+
lockdownAsset: GenericTxCall<
|
|
7112
|
+
Rv,
|
|
7113
|
+
(
|
|
7114
|
+
assetId: number,
|
|
7115
|
+
until: number,
|
|
7116
|
+
) => ChainSubmittableExtrinsic<
|
|
7117
|
+
Rv,
|
|
7118
|
+
{
|
|
7119
|
+
pallet: 'CircuitBreaker';
|
|
7120
|
+
palletCall: {
|
|
7121
|
+
name: 'LockdownAsset';
|
|
7122
|
+
params: { assetId: number; until: number };
|
|
7123
|
+
};
|
|
7124
|
+
}
|
|
7125
|
+
>
|
|
7126
|
+
>;
|
|
7127
|
+
|
|
7128
|
+
/**
|
|
7129
|
+
* Remove asset lockdown regardless of the state.
|
|
7130
|
+
*
|
|
7131
|
+
* Can be called only by an authority origin
|
|
7132
|
+
*
|
|
7133
|
+
* Parameters:
|
|
7134
|
+
*
|
|
7135
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7136
|
+
* - `asset_id`: The identifier of an asset
|
|
7137
|
+
*
|
|
7138
|
+
* Emits `AssetLockdownRemoved` event when successful.
|
|
7139
|
+
*
|
|
7140
|
+
* @param {number} assetId
|
|
7141
|
+
**/
|
|
7142
|
+
forceLiftLockdown: GenericTxCall<
|
|
7143
|
+
Rv,
|
|
7144
|
+
(assetId: number) => ChainSubmittableExtrinsic<
|
|
7145
|
+
Rv,
|
|
7146
|
+
{
|
|
7147
|
+
pallet: 'CircuitBreaker';
|
|
7148
|
+
palletCall: {
|
|
7149
|
+
name: 'ForceLiftLockdown';
|
|
7150
|
+
params: { assetId: number };
|
|
7151
|
+
};
|
|
7152
|
+
}
|
|
7153
|
+
>
|
|
7154
|
+
>;
|
|
7155
|
+
|
|
7156
|
+
/**
|
|
7157
|
+
* Release deposit of an asset.
|
|
7158
|
+
*
|
|
7159
|
+
* It releases all the pallet reserved balance of the asset for the given account
|
|
7160
|
+
*
|
|
7161
|
+
* Can be called by any origin, but only if the asset is not in active lockdown.
|
|
7162
|
+
*
|
|
7163
|
+
* The caller does not pay for this call if successful.
|
|
7164
|
+
*
|
|
7165
|
+
* Parameters:
|
|
7166
|
+
* - `origin`: The dispatch origin for this call. Can be signed or root.
|
|
7167
|
+
* - `who`: The account that is saving the deposit.
|
|
7168
|
+
* - `asset_id`: The identifier of the asset.
|
|
7169
|
+
*
|
|
7170
|
+
* Emits `DepositReleased` event when successful.
|
|
7171
|
+
*
|
|
7172
|
+
* @param {AccountId32Like} who
|
|
7173
|
+
* @param {number} assetId
|
|
7174
|
+
**/
|
|
7175
|
+
releaseDeposit: GenericTxCall<
|
|
7176
|
+
Rv,
|
|
7177
|
+
(
|
|
7178
|
+
who: AccountId32Like,
|
|
7179
|
+
assetId: number,
|
|
7180
|
+
) => ChainSubmittableExtrinsic<
|
|
7181
|
+
Rv,
|
|
7182
|
+
{
|
|
7183
|
+
pallet: 'CircuitBreaker';
|
|
7184
|
+
palletCall: {
|
|
7185
|
+
name: 'ReleaseDeposit';
|
|
7186
|
+
params: { who: AccountId32Like; assetId: number };
|
|
7187
|
+
};
|
|
7188
|
+
}
|
|
7189
|
+
>
|
|
7190
|
+
>;
|
|
7191
|
+
|
|
7776
7192
|
/**
|
|
7777
7193
|
* Generic pallet tx call
|
|
7778
7194
|
**/
|
|
@@ -8004,6 +7420,62 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8004
7420
|
* Pallet `DynamicFees`'s transaction calls
|
|
8005
7421
|
**/
|
|
8006
7422
|
dynamicFees: {
|
|
7423
|
+
/**
|
|
7424
|
+
* Set fee configuration for an asset
|
|
7425
|
+
*
|
|
7426
|
+
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
7427
|
+
*
|
|
7428
|
+
* # Arguments
|
|
7429
|
+
* * `origin` - Root origin required
|
|
7430
|
+
* * `asset_id` - The asset ID to configure
|
|
7431
|
+
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
7432
|
+
*
|
|
7433
|
+
* @param {number} assetId
|
|
7434
|
+
* @param {PalletDynamicFeesAssetFeeConfig} config
|
|
7435
|
+
**/
|
|
7436
|
+
setAssetFee: GenericTxCall<
|
|
7437
|
+
Rv,
|
|
7438
|
+
(
|
|
7439
|
+
assetId: number,
|
|
7440
|
+
config: PalletDynamicFeesAssetFeeConfig,
|
|
7441
|
+
) => ChainSubmittableExtrinsic<
|
|
7442
|
+
Rv,
|
|
7443
|
+
{
|
|
7444
|
+
pallet: 'DynamicFees';
|
|
7445
|
+
palletCall: {
|
|
7446
|
+
name: 'SetAssetFee';
|
|
7447
|
+
params: { assetId: number; config: PalletDynamicFeesAssetFeeConfig };
|
|
7448
|
+
};
|
|
7449
|
+
}
|
|
7450
|
+
>
|
|
7451
|
+
>;
|
|
7452
|
+
|
|
7453
|
+
/**
|
|
7454
|
+
* Remove fee configuration for an asset (will use default parameters)
|
|
7455
|
+
*
|
|
7456
|
+
* This function removes any custom fee configuration for the specified asset.
|
|
7457
|
+
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
7458
|
+
*
|
|
7459
|
+
* # Arguments
|
|
7460
|
+
* * `origin` - Root origin required
|
|
7461
|
+
* * `asset_id` - The asset ID to remove configuration for
|
|
7462
|
+
*
|
|
7463
|
+
* @param {number} assetId
|
|
7464
|
+
**/
|
|
7465
|
+
removeAssetFee: GenericTxCall<
|
|
7466
|
+
Rv,
|
|
7467
|
+
(assetId: number) => ChainSubmittableExtrinsic<
|
|
7468
|
+
Rv,
|
|
7469
|
+
{
|
|
7470
|
+
pallet: 'DynamicFees';
|
|
7471
|
+
palletCall: {
|
|
7472
|
+
name: 'RemoveAssetFee';
|
|
7473
|
+
params: { assetId: number };
|
|
7474
|
+
};
|
|
7475
|
+
}
|
|
7476
|
+
>
|
|
7477
|
+
>;
|
|
7478
|
+
|
|
8007
7479
|
/**
|
|
8008
7480
|
* Generic pallet tx call
|
|
8009
7481
|
**/
|
|
@@ -8731,6 +8203,87 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8731
8203
|
>
|
|
8732
8204
|
>;
|
|
8733
8205
|
|
|
8206
|
+
/**
|
|
8207
|
+
* Update the peg source for a specific asset in a pool.
|
|
8208
|
+
*
|
|
8209
|
+
* This function allows updating the peg source for an asset within a pool.
|
|
8210
|
+
* The pool must exist and have pegs configured. The asset must be part of the pool.
|
|
8211
|
+
* The current price is always preserved when updating the peg source.
|
|
8212
|
+
*
|
|
8213
|
+
* Parameters:
|
|
8214
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8215
|
+
* - `pool_id`: The ID of the pool containing the asset.
|
|
8216
|
+
* - `asset_id`: The ID of the asset whose peg source is to be updated.
|
|
8217
|
+
* - `peg_source`: The new peg source for the asset.
|
|
8218
|
+
*
|
|
8219
|
+
* Emits `PoolPegSourceUpdated` event when successful.
|
|
8220
|
+
*
|
|
8221
|
+
* # Errors
|
|
8222
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8223
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8224
|
+
* - `AssetNotInPool`: If the specified asset is not part of the pool.
|
|
8225
|
+
*
|
|
8226
|
+
*
|
|
8227
|
+
* @param {number} poolId
|
|
8228
|
+
* @param {number} assetId
|
|
8229
|
+
* @param {PalletStableswapPegSource} pegSource
|
|
8230
|
+
**/
|
|
8231
|
+
updateAssetPegSource: GenericTxCall<
|
|
8232
|
+
Rv,
|
|
8233
|
+
(
|
|
8234
|
+
poolId: number,
|
|
8235
|
+
assetId: number,
|
|
8236
|
+
pegSource: PalletStableswapPegSource,
|
|
8237
|
+
) => ChainSubmittableExtrinsic<
|
|
8238
|
+
Rv,
|
|
8239
|
+
{
|
|
8240
|
+
pallet: 'Stableswap';
|
|
8241
|
+
palletCall: {
|
|
8242
|
+
name: 'UpdateAssetPegSource';
|
|
8243
|
+
params: { poolId: number; assetId: number; pegSource: PalletStableswapPegSource };
|
|
8244
|
+
};
|
|
8245
|
+
}
|
|
8246
|
+
>
|
|
8247
|
+
>;
|
|
8248
|
+
|
|
8249
|
+
/**
|
|
8250
|
+
* Update the maximum peg update percentage for a pool.
|
|
8251
|
+
*
|
|
8252
|
+
* This function allows updating the maximum percentage by which peg values
|
|
8253
|
+
* can change in a pool with pegs configured.
|
|
8254
|
+
*
|
|
8255
|
+
* Parameters:
|
|
8256
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8257
|
+
* - `pool_id`: The ID of the pool to update.
|
|
8258
|
+
* - `max_peg_update`: The new maximum peg update percentage.
|
|
8259
|
+
*
|
|
8260
|
+
* Emits `PoolMaxPegUpdateUpdated` event when successful.
|
|
8261
|
+
*
|
|
8262
|
+
* # Errors
|
|
8263
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8264
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8265
|
+
*
|
|
8266
|
+
*
|
|
8267
|
+
* @param {number} poolId
|
|
8268
|
+
* @param {Permill} maxPegUpdate
|
|
8269
|
+
**/
|
|
8270
|
+
updatePoolMaxPegUpdate: GenericTxCall<
|
|
8271
|
+
Rv,
|
|
8272
|
+
(
|
|
8273
|
+
poolId: number,
|
|
8274
|
+
maxPegUpdate: Permill,
|
|
8275
|
+
) => ChainSubmittableExtrinsic<
|
|
8276
|
+
Rv,
|
|
8277
|
+
{
|
|
8278
|
+
pallet: 'Stableswap';
|
|
8279
|
+
palletCall: {
|
|
8280
|
+
name: 'UpdatePoolMaxPegUpdate';
|
|
8281
|
+
params: { poolId: number; maxPegUpdate: Permill };
|
|
8282
|
+
};
|
|
8283
|
+
}
|
|
8284
|
+
>
|
|
8285
|
+
>;
|
|
8286
|
+
|
|
8734
8287
|
/**
|
|
8735
8288
|
* Generic pallet tx call
|
|
8736
8289
|
**/
|
|
@@ -9638,6 +9191,332 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9638
9191
|
**/
|
|
9639
9192
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9640
9193
|
};
|
|
9194
|
+
/**
|
|
9195
|
+
* Pallet `HSM`'s transaction calls
|
|
9196
|
+
**/
|
|
9197
|
+
hsm: {
|
|
9198
|
+
/**
|
|
9199
|
+
* Add a new collateral asset
|
|
9200
|
+
*
|
|
9201
|
+
* This function adds a new asset as an approved collateral for Hollar. Only callable by
|
|
9202
|
+
* the governance (root origin).
|
|
9203
|
+
*
|
|
9204
|
+
* Parameters:
|
|
9205
|
+
* - `origin`: Must be Root
|
|
9206
|
+
* - `asset_id`: Asset ID to be added as collateral
|
|
9207
|
+
* - `pool_id`: StableSwap pool ID where this asset and Hollar are paired
|
|
9208
|
+
* - `purchase_fee`: Fee applied when buying Hollar with this asset (added to purchase price)
|
|
9209
|
+
* - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar
|
|
9210
|
+
* - `buy_back_fee`: Fee applied when buying back Hollar (subtracted from buy price)
|
|
9211
|
+
* - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset
|
|
9212
|
+
* - `max_in_holding`: Optional maximum amount of collateral HSM can hold
|
|
9213
|
+
*
|
|
9214
|
+
* Emits:
|
|
9215
|
+
* - `CollateralAdded` when the collateral is successfully added
|
|
9216
|
+
*
|
|
9217
|
+
* Errors:
|
|
9218
|
+
* - `AssetAlreadyApproved` if the asset is already registered as a collateral
|
|
9219
|
+
* - `PoolAlreadyHasCollateral` if another asset from the same pool is already approved
|
|
9220
|
+
* - `HollarNotInPool` if Hollar is not found in the specified pool
|
|
9221
|
+
* - `AssetNotInPool` if the collateral asset is not found in the specified pool
|
|
9222
|
+
* - Other errors from underlying calls
|
|
9223
|
+
*
|
|
9224
|
+
* @param {number} assetId
|
|
9225
|
+
* @param {number} poolId
|
|
9226
|
+
* @param {Permill} purchaseFee
|
|
9227
|
+
* @param {FixedU128} maxBuyPriceCoefficient
|
|
9228
|
+
* @param {Permill} buyBackFee
|
|
9229
|
+
* @param {Perbill} buybackRate
|
|
9230
|
+
* @param {bigint | undefined} maxInHolding
|
|
9231
|
+
**/
|
|
9232
|
+
addCollateralAsset: GenericTxCall<
|
|
9233
|
+
Rv,
|
|
9234
|
+
(
|
|
9235
|
+
assetId: number,
|
|
9236
|
+
poolId: number,
|
|
9237
|
+
purchaseFee: Permill,
|
|
9238
|
+
maxBuyPriceCoefficient: FixedU128,
|
|
9239
|
+
buyBackFee: Permill,
|
|
9240
|
+
buybackRate: Perbill,
|
|
9241
|
+
maxInHolding: bigint | undefined,
|
|
9242
|
+
) => ChainSubmittableExtrinsic<
|
|
9243
|
+
Rv,
|
|
9244
|
+
{
|
|
9245
|
+
pallet: 'Hsm';
|
|
9246
|
+
palletCall: {
|
|
9247
|
+
name: 'AddCollateralAsset';
|
|
9248
|
+
params: {
|
|
9249
|
+
assetId: number;
|
|
9250
|
+
poolId: number;
|
|
9251
|
+
purchaseFee: Permill;
|
|
9252
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
9253
|
+
buyBackFee: Permill;
|
|
9254
|
+
buybackRate: Perbill;
|
|
9255
|
+
maxInHolding: bigint | undefined;
|
|
9256
|
+
};
|
|
9257
|
+
};
|
|
9258
|
+
}
|
|
9259
|
+
>
|
|
9260
|
+
>;
|
|
9261
|
+
|
|
9262
|
+
/**
|
|
9263
|
+
* Remove a collateral asset
|
|
9264
|
+
*
|
|
9265
|
+
* Removes an asset from the approved collaterals list. Only callable by the governance (root origin).
|
|
9266
|
+
* The collateral must have a zero balance in the HSM account before it can be removed.
|
|
9267
|
+
*
|
|
9268
|
+
* Parameters:
|
|
9269
|
+
* - `origin`: Must be Root
|
|
9270
|
+
* - `asset_id`: Asset ID to remove from collaterals
|
|
9271
|
+
*
|
|
9272
|
+
* Emits:
|
|
9273
|
+
* - `CollateralRemoved` when the collateral is successfully removed
|
|
9274
|
+
*
|
|
9275
|
+
* Errors:
|
|
9276
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9277
|
+
* - `CollateralNotEmpty` if the HSM account still holds some of this asset
|
|
9278
|
+
*
|
|
9279
|
+
* @param {number} assetId
|
|
9280
|
+
**/
|
|
9281
|
+
removeCollateralAsset: GenericTxCall<
|
|
9282
|
+
Rv,
|
|
9283
|
+
(assetId: number) => ChainSubmittableExtrinsic<
|
|
9284
|
+
Rv,
|
|
9285
|
+
{
|
|
9286
|
+
pallet: 'Hsm';
|
|
9287
|
+
palletCall: {
|
|
9288
|
+
name: 'RemoveCollateralAsset';
|
|
9289
|
+
params: { assetId: number };
|
|
9290
|
+
};
|
|
9291
|
+
}
|
|
9292
|
+
>
|
|
9293
|
+
>;
|
|
9294
|
+
|
|
9295
|
+
/**
|
|
9296
|
+
* Update collateral asset parameters
|
|
9297
|
+
*
|
|
9298
|
+
* Updates the parameters for an existing collateral asset. Only callable by the governance (root origin).
|
|
9299
|
+
* Each parameter is optional and only provided parameters will be updated.
|
|
9300
|
+
*
|
|
9301
|
+
* Parameters:
|
|
9302
|
+
* - `origin`: Must be Root
|
|
9303
|
+
* - `asset_id`: Asset ID to update
|
|
9304
|
+
* - `purchase_fee`: New purchase fee (optional)
|
|
9305
|
+
* - `max_buy_price_coefficient`: New max buy price coefficient (optional)
|
|
9306
|
+
* - `buy_back_fee`: New buy back fee (optional)
|
|
9307
|
+
* - `buyback_rate`: New buyback rate parameter (optional)
|
|
9308
|
+
* - `max_in_holding`: New maximum holding amount (optional)
|
|
9309
|
+
*
|
|
9310
|
+
* Emits:
|
|
9311
|
+
* - `CollateralUpdated` when the collateral is successfully updated
|
|
9312
|
+
*
|
|
9313
|
+
* Errors:
|
|
9314
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9315
|
+
*
|
|
9316
|
+
* @param {number} assetId
|
|
9317
|
+
* @param {Permill | undefined} purchaseFee
|
|
9318
|
+
* @param {FixedU128 | undefined} maxBuyPriceCoefficient
|
|
9319
|
+
* @param {Permill | undefined} buyBackFee
|
|
9320
|
+
* @param {Perbill | undefined} buybackRate
|
|
9321
|
+
* @param {bigint | undefined | undefined} maxInHolding
|
|
9322
|
+
**/
|
|
9323
|
+
updateCollateralAsset: GenericTxCall<
|
|
9324
|
+
Rv,
|
|
9325
|
+
(
|
|
9326
|
+
assetId: number,
|
|
9327
|
+
purchaseFee: Permill | undefined,
|
|
9328
|
+
maxBuyPriceCoefficient: FixedU128 | undefined,
|
|
9329
|
+
buyBackFee: Permill | undefined,
|
|
9330
|
+
buybackRate: Perbill | undefined,
|
|
9331
|
+
maxInHolding: bigint | undefined | undefined,
|
|
9332
|
+
) => ChainSubmittableExtrinsic<
|
|
9333
|
+
Rv,
|
|
9334
|
+
{
|
|
9335
|
+
pallet: 'Hsm';
|
|
9336
|
+
palletCall: {
|
|
9337
|
+
name: 'UpdateCollateralAsset';
|
|
9338
|
+
params: {
|
|
9339
|
+
assetId: number;
|
|
9340
|
+
purchaseFee: Permill | undefined;
|
|
9341
|
+
maxBuyPriceCoefficient: FixedU128 | undefined;
|
|
9342
|
+
buyBackFee: Permill | undefined;
|
|
9343
|
+
buybackRate: Perbill | undefined;
|
|
9344
|
+
maxInHolding: bigint | undefined | undefined;
|
|
9345
|
+
};
|
|
9346
|
+
};
|
|
9347
|
+
}
|
|
9348
|
+
>
|
|
9349
|
+
>;
|
|
9350
|
+
|
|
9351
|
+
/**
|
|
9352
|
+
* Sell asset to HSM
|
|
9353
|
+
*
|
|
9354
|
+
* This function allows users to:
|
|
9355
|
+
* 1. Sell Hollar back to HSM in exchange for collateral assets
|
|
9356
|
+
* 2. Sell collateral assets to HSM in exchange for newly minted Hollar
|
|
9357
|
+
*
|
|
9358
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
9359
|
+
*
|
|
9360
|
+
* Parameters:
|
|
9361
|
+
* - `origin`: Account selling the asset
|
|
9362
|
+
* - `asset_in`: Asset ID being sold
|
|
9363
|
+
* - `asset_out`: Asset ID being bought
|
|
9364
|
+
* - `amount_in`: Amount of asset_in to sell
|
|
9365
|
+
* - `slippage_limit`: Minimum amount out for slippage protection
|
|
9366
|
+
*
|
|
9367
|
+
* Emits:
|
|
9368
|
+
* - `Swapped3` when the sell is successful
|
|
9369
|
+
*
|
|
9370
|
+
* Errors:
|
|
9371
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
9372
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
9373
|
+
* - `SlippageLimitExceeded` if the amount received is less than the slippage limit
|
|
9374
|
+
* - `MaxBuyBackExceeded` if the sell would exceed the maximum buy back rate
|
|
9375
|
+
* - `MaxBuyPriceExceeded` if the sell would exceed the maximum buy price
|
|
9376
|
+
* - `InsufficientCollateralBalance` if HSM doesn't have enough collateral
|
|
9377
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9378
|
+
* - Other errors from underlying calls
|
|
9379
|
+
*
|
|
9380
|
+
* @param {number} assetIn
|
|
9381
|
+
* @param {number} assetOut
|
|
9382
|
+
* @param {bigint} amountIn
|
|
9383
|
+
* @param {bigint} slippageLimit
|
|
9384
|
+
**/
|
|
9385
|
+
sell: GenericTxCall<
|
|
9386
|
+
Rv,
|
|
9387
|
+
(
|
|
9388
|
+
assetIn: number,
|
|
9389
|
+
assetOut: number,
|
|
9390
|
+
amountIn: bigint,
|
|
9391
|
+
slippageLimit: bigint,
|
|
9392
|
+
) => ChainSubmittableExtrinsic<
|
|
9393
|
+
Rv,
|
|
9394
|
+
{
|
|
9395
|
+
pallet: 'Hsm';
|
|
9396
|
+
palletCall: {
|
|
9397
|
+
name: 'Sell';
|
|
9398
|
+
params: { assetIn: number; assetOut: number; amountIn: bigint; slippageLimit: bigint };
|
|
9399
|
+
};
|
|
9400
|
+
}
|
|
9401
|
+
>
|
|
9402
|
+
>;
|
|
9403
|
+
|
|
9404
|
+
/**
|
|
9405
|
+
* Buy asset from HSM
|
|
9406
|
+
*
|
|
9407
|
+
* This function allows users to:
|
|
9408
|
+
* 1. Buy Hollar from HSM using collateral assets
|
|
9409
|
+
* 2. Buy collateral assets from HSM using Hollar
|
|
9410
|
+
*
|
|
9411
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
9412
|
+
*
|
|
9413
|
+
* Parameters:
|
|
9414
|
+
* - `origin`: Account buying the asset
|
|
9415
|
+
* - `asset_in`: Asset ID being sold by the user
|
|
9416
|
+
* - `asset_out`: Asset ID being bought by the user
|
|
9417
|
+
* - `amount_out`: Amount of asset_out to buy
|
|
9418
|
+
* - `slippage_limit`: Maximum amount in for slippage protection
|
|
9419
|
+
*
|
|
9420
|
+
* Emits:
|
|
9421
|
+
* - `Swapped3` when the buy is successful
|
|
9422
|
+
*
|
|
9423
|
+
* Errors:
|
|
9424
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
9425
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
9426
|
+
* - `SlippageLimitExceeded` if the amount input exceeds the slippage limit
|
|
9427
|
+
* - `MaxHoldingExceeded` if the buy would cause HSM to exceed its maximum holding
|
|
9428
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9429
|
+
* - Other errors from underlying calls
|
|
9430
|
+
*
|
|
9431
|
+
* @param {number} assetIn
|
|
9432
|
+
* @param {number} assetOut
|
|
9433
|
+
* @param {bigint} amountOut
|
|
9434
|
+
* @param {bigint} slippageLimit
|
|
9435
|
+
**/
|
|
9436
|
+
buy: GenericTxCall<
|
|
9437
|
+
Rv,
|
|
9438
|
+
(
|
|
9439
|
+
assetIn: number,
|
|
9440
|
+
assetOut: number,
|
|
9441
|
+
amountOut: bigint,
|
|
9442
|
+
slippageLimit: bigint,
|
|
9443
|
+
) => ChainSubmittableExtrinsic<
|
|
9444
|
+
Rv,
|
|
9445
|
+
{
|
|
9446
|
+
pallet: 'Hsm';
|
|
9447
|
+
palletCall: {
|
|
9448
|
+
name: 'Buy';
|
|
9449
|
+
params: { assetIn: number; assetOut: number; amountOut: bigint; slippageLimit: bigint };
|
|
9450
|
+
};
|
|
9451
|
+
}
|
|
9452
|
+
>
|
|
9453
|
+
>;
|
|
9454
|
+
|
|
9455
|
+
/**
|
|
9456
|
+
* Execute arbitrage opportunity between HSM and collateral stable pool
|
|
9457
|
+
*
|
|
9458
|
+
* This call is designed to be triggered automatically by offchain workers. It:
|
|
9459
|
+
* 1. Detects price imbalances between HSM and a stable pool for a collateral
|
|
9460
|
+
* 2. If an opportunity exists, mints Hollar, swaps it for collateral on HSM
|
|
9461
|
+
* 3. Swaps that collateral for Hollar on the stable pool
|
|
9462
|
+
* 4. Burns the Hollar received from the arbitrage
|
|
9463
|
+
*
|
|
9464
|
+
* This helps maintain the peg of Hollar by profiting from and correcting price imbalances.
|
|
9465
|
+
* The call is unsigned and should only be executed by offchain workers.
|
|
9466
|
+
*
|
|
9467
|
+
* Parameters:
|
|
9468
|
+
* - `origin`: Must be None (unsigned)
|
|
9469
|
+
* - `collateral_asset_id`: The ID of the collateral asset to check for arbitrage
|
|
9470
|
+
*
|
|
9471
|
+
* Emits:
|
|
9472
|
+
* - `ArbitrageExecuted` when the arbitrage is successful
|
|
9473
|
+
*
|
|
9474
|
+
* Errors:
|
|
9475
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9476
|
+
* - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity
|
|
9477
|
+
* - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price
|
|
9478
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9479
|
+
* - Other errors from underlying calls
|
|
9480
|
+
*
|
|
9481
|
+
* @param {number} collateralAssetId
|
|
9482
|
+
**/
|
|
9483
|
+
executeArbitrage: GenericTxCall<
|
|
9484
|
+
Rv,
|
|
9485
|
+
(collateralAssetId: number) => ChainSubmittableExtrinsic<
|
|
9486
|
+
Rv,
|
|
9487
|
+
{
|
|
9488
|
+
pallet: 'Hsm';
|
|
9489
|
+
palletCall: {
|
|
9490
|
+
name: 'ExecuteArbitrage';
|
|
9491
|
+
params: { collateralAssetId: number };
|
|
9492
|
+
};
|
|
9493
|
+
}
|
|
9494
|
+
>
|
|
9495
|
+
>;
|
|
9496
|
+
|
|
9497
|
+
/**
|
|
9498
|
+
*
|
|
9499
|
+
* @param {H160} flashMinterAddr
|
|
9500
|
+
**/
|
|
9501
|
+
setFlashMinter: GenericTxCall<
|
|
9502
|
+
Rv,
|
|
9503
|
+
(flashMinterAddr: H160) => ChainSubmittableExtrinsic<
|
|
9504
|
+
Rv,
|
|
9505
|
+
{
|
|
9506
|
+
pallet: 'Hsm';
|
|
9507
|
+
palletCall: {
|
|
9508
|
+
name: 'SetFlashMinter';
|
|
9509
|
+
params: { flashMinterAddr: H160 };
|
|
9510
|
+
};
|
|
9511
|
+
}
|
|
9512
|
+
>
|
|
9513
|
+
>;
|
|
9514
|
+
|
|
9515
|
+
/**
|
|
9516
|
+
* Generic pallet tx call
|
|
9517
|
+
**/
|
|
9518
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9519
|
+
};
|
|
9641
9520
|
/**
|
|
9642
9521
|
* Pallet `Tokens`'s transaction calls
|
|
9643
9522
|
**/
|
|
@@ -11108,6 +10987,41 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
11108
10987
|
>
|
|
11109
10988
|
>;
|
|
11110
10989
|
|
|
10990
|
+
/**
|
|
10991
|
+
* Unlocks DCA reserves of provided asset for the caller if they have no active schedules.
|
|
10992
|
+
*
|
|
10993
|
+
* This is a utility function to help users recover their reserved funds in case
|
|
10994
|
+
* a DCA schedule was terminated but left some reserved amounts.
|
|
10995
|
+
*
|
|
10996
|
+
* This can only be called when the user has no active DCA schedules.
|
|
10997
|
+
*
|
|
10998
|
+
* Parameters:
|
|
10999
|
+
* - `origin`: The account to unlock reserves for (must be signed)
|
|
11000
|
+
* - `asset_id`: The asset ID for which reserves should be unlocked.
|
|
11001
|
+
*
|
|
11002
|
+
* Emits `ReserveUnlocked` event when successful.
|
|
11003
|
+
*
|
|
11004
|
+
*
|
|
11005
|
+
* @param {AccountId32Like} who
|
|
11006
|
+
* @param {number} assetId
|
|
11007
|
+
**/
|
|
11008
|
+
unlockReserves: GenericTxCall<
|
|
11009
|
+
Rv,
|
|
11010
|
+
(
|
|
11011
|
+
who: AccountId32Like,
|
|
11012
|
+
assetId: number,
|
|
11013
|
+
) => ChainSubmittableExtrinsic<
|
|
11014
|
+
Rv,
|
|
11015
|
+
{
|
|
11016
|
+
pallet: 'Dca';
|
|
11017
|
+
palletCall: {
|
|
11018
|
+
name: 'UnlockReserves';
|
|
11019
|
+
params: { who: AccountId32Like; assetId: number };
|
|
11020
|
+
};
|
|
11021
|
+
}
|
|
11022
|
+
>
|
|
11023
|
+
>;
|
|
11024
|
+
|
|
11111
11025
|
/**
|
|
11112
11026
|
* Generic pallet tx call
|
|
11113
11027
|
**/
|