@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/tx.d.ts CHANGED
@@ -37,7 +37,6 @@ import type {
37
37
  PalletDemocracyVoteAccountVote,
38
38
  PalletDemocracyConviction,
39
39
  PalletDemocracyMetadataOwner,
40
- PalletElectionsPhragmenRenouncing,
41
40
  HydradxRuntimeSystemProxyType,
42
41
  PalletMultisigTimepoint,
43
42
  PalletUniquesDestroyWitness,
@@ -55,6 +54,7 @@ import type {
55
54
  HydradxTraitsStableswapAssetAmount,
56
55
  HydradxTraitsRouterTrade,
57
56
  HydradxTraitsRouterAssetPair,
57
+ PalletDynamicFeesAssetFeeConfig,
58
58
  PalletStableswapTradability,
59
59
  PalletStableswapPegSource,
60
60
  PalletLbpWeightCurveType,
@@ -2605,461 +2605,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2605
2605
  **/
2606
2606
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2607
2607
  };
2608
- /**
2609
- * Pallet `Elections`'s transaction calls
2610
- **/
2611
- elections: {
2612
- /**
2613
- * Vote for a set of candidates for the upcoming round of election. This can be called to
2614
- * set the initial votes, or update already existing votes.
2615
- *
2616
- * Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
2617
- * reserved. The deposit is based on the number of votes and can be updated over time.
2618
- *
2619
- * The `votes` should:
2620
- * - not be empty.
2621
- * - be less than the number of possible candidates. Note that all current members and
2622
- * runners-up are also automatically candidates for the next round.
2623
- *
2624
- * If `value` is more than `who`'s free balance, then the maximum of the two is used.
2625
- *
2626
- * The dispatch origin of this call must be signed.
2627
- *
2628
- * ### Warning
2629
- *
2630
- * It is the responsibility of the caller to **NOT** place all of their balance into the
2631
- * lock and keep some for further operations.
2632
- *
2633
- * @param {Array<AccountId32Like>} votes
2634
- * @param {bigint} value
2635
- **/
2636
- vote: GenericTxCall<
2637
- Rv,
2638
- (
2639
- votes: Array<AccountId32Like>,
2640
- value: bigint,
2641
- ) => ChainSubmittableExtrinsic<
2642
- Rv,
2643
- {
2644
- pallet: 'Elections';
2645
- palletCall: {
2646
- name: 'Vote';
2647
- params: { votes: Array<AccountId32Like>; value: bigint };
2648
- };
2649
- }
2650
- >
2651
- >;
2652
-
2653
- /**
2654
- * Remove `origin` as a voter.
2655
- *
2656
- * This removes the lock and returns the deposit.
2657
- *
2658
- * The dispatch origin of this call must be signed and be a voter.
2659
- *
2660
- **/
2661
- removeVoter: GenericTxCall<
2662
- Rv,
2663
- () => ChainSubmittableExtrinsic<
2664
- Rv,
2665
- {
2666
- pallet: 'Elections';
2667
- palletCall: {
2668
- name: 'RemoveVoter';
2669
- };
2670
- }
2671
- >
2672
- >;
2673
-
2674
- /**
2675
- * Submit oneself for candidacy. A fixed amount of deposit is recorded.
2676
- *
2677
- * All candidates are wiped at the end of the term. They either become a member/runner-up,
2678
- * or leave the system while their deposit is slashed.
2679
- *
2680
- * The dispatch origin of this call must be signed.
2681
- *
2682
- * ### Warning
2683
- *
2684
- * Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
2685
- * to get their deposit back. Losing the spot in an election will always lead to a slash.
2686
- *
2687
- * The number of current candidates must be provided as witness data.
2688
- * ## Complexity
2689
- * O(C + log(C)) where C is candidate_count.
2690
- *
2691
- * @param {number} candidateCount
2692
- **/
2693
- submitCandidacy: GenericTxCall<
2694
- Rv,
2695
- (candidateCount: number) => ChainSubmittableExtrinsic<
2696
- Rv,
2697
- {
2698
- pallet: 'Elections';
2699
- palletCall: {
2700
- name: 'SubmitCandidacy';
2701
- params: { candidateCount: number };
2702
- };
2703
- }
2704
- >
2705
- >;
2706
-
2707
- /**
2708
- * Renounce one's intention to be a candidate for the next election round. 3 potential
2709
- * outcomes exist:
2710
- *
2711
- * - `origin` is a candidate and not elected in any set. In this case, the deposit is
2712
- * unreserved, returned and origin is removed as a candidate.
2713
- * - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
2714
- * origin is removed as a runner-up.
2715
- * - `origin` is a current member. In this case, the deposit is unreserved and origin is
2716
- * removed as a member, consequently not being a candidate for the next round anymore.
2717
- * Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
2718
- * are immediately used. If the prime is renouncing, then no prime will exist until the
2719
- * next round.
2720
- *
2721
- * The dispatch origin of this call must be signed, and have one of the above roles.
2722
- * The type of renouncing must be provided as witness data.
2723
- *
2724
- * ## Complexity
2725
- * - Renouncing::Candidate(count): O(count + log(count))
2726
- * - Renouncing::Member: O(1)
2727
- * - Renouncing::RunnerUp: O(1)
2728
- *
2729
- * @param {PalletElectionsPhragmenRenouncing} renouncing
2730
- **/
2731
- renounceCandidacy: GenericTxCall<
2732
- Rv,
2733
- (renouncing: PalletElectionsPhragmenRenouncing) => ChainSubmittableExtrinsic<
2734
- Rv,
2735
- {
2736
- pallet: 'Elections';
2737
- palletCall: {
2738
- name: 'RenounceCandidacy';
2739
- params: { renouncing: PalletElectionsPhragmenRenouncing };
2740
- };
2741
- }
2742
- >
2743
- >;
2744
-
2745
- /**
2746
- * Remove a particular member from the set. This is effective immediately and the bond of
2747
- * the outgoing member is slashed.
2748
- *
2749
- * If a runner-up is available, then the best runner-up will be removed and replaces the
2750
- * outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
2751
- * started, else, nothing happens.
2752
- *
2753
- * If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
2754
- * it is returned.
2755
- *
2756
- * The dispatch origin of this call must be root.
2757
- *
2758
- * Note that this does not affect the designated block number of the next election.
2759
- *
2760
- * ## Complexity
2761
- * - Check details of remove_and_replace_member() and do_phragmen().
2762
- *
2763
- * @param {AccountId32Like} who
2764
- * @param {boolean} slashBond
2765
- * @param {boolean} rerunElection
2766
- **/
2767
- removeMember: GenericTxCall<
2768
- Rv,
2769
- (
2770
- who: AccountId32Like,
2771
- slashBond: boolean,
2772
- rerunElection: boolean,
2773
- ) => ChainSubmittableExtrinsic<
2774
- Rv,
2775
- {
2776
- pallet: 'Elections';
2777
- palletCall: {
2778
- name: 'RemoveMember';
2779
- params: { who: AccountId32Like; slashBond: boolean; rerunElection: boolean };
2780
- };
2781
- }
2782
- >
2783
- >;
2784
-
2785
- /**
2786
- * Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
2787
- * deposit of the removed voters are returned.
2788
- *
2789
- * This is an root function to be used only for cleaning the state.
2790
- *
2791
- * The dispatch origin of this call must be root.
2792
- *
2793
- * ## Complexity
2794
- * - Check is_defunct_voter() details.
2795
- *
2796
- * @param {number} numVoters
2797
- * @param {number} numDefunct
2798
- **/
2799
- cleanDefunctVoters: GenericTxCall<
2800
- Rv,
2801
- (
2802
- numVoters: number,
2803
- numDefunct: number,
2804
- ) => ChainSubmittableExtrinsic<
2805
- Rv,
2806
- {
2807
- pallet: 'Elections';
2808
- palletCall: {
2809
- name: 'CleanDefunctVoters';
2810
- params: { numVoters: number; numDefunct: number };
2811
- };
2812
- }
2813
- >
2814
- >;
2815
-
2816
- /**
2817
- * Generic pallet tx call
2818
- **/
2819
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2820
- };
2821
- /**
2822
- * Pallet `Council`'s transaction calls
2823
- **/
2824
- council: {
2825
- /**
2826
- * Set the collective's membership.
2827
- *
2828
- * - `new_members`: The new member list. Be nice to the chain and provide it sorted.
2829
- * - `prime`: The prime member whose vote sets the default.
2830
- * - `old_count`: The upper bound for the previous number of members in storage. Used for
2831
- * weight estimation.
2832
- *
2833
- * The dispatch of this call must be `SetMembersOrigin`.
2834
- *
2835
- * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
2836
- * the weight estimations rely on it to estimate dispatchable weight.
2837
- *
2838
- * # WARNING:
2839
- *
2840
- * The `pallet-collective` can also be managed by logic outside of the pallet through the
2841
- * implementation of the trait [`ChangeMembers`].
2842
- * Any call to `set_members` must be careful that the member set doesn't get out of sync
2843
- * with other logic managing the member set.
2844
- *
2845
- * ## Complexity:
2846
- * - `O(MP + N)` where:
2847
- * - `M` old-members-count (code- and governance-bounded)
2848
- * - `N` new-members-count (code- and governance-bounded)
2849
- * - `P` proposals-count (code-bounded)
2850
- *
2851
- * @param {Array<AccountId32Like>} newMembers
2852
- * @param {AccountId32Like | undefined} prime
2853
- * @param {number} oldCount
2854
- **/
2855
- setMembers: GenericTxCall<
2856
- Rv,
2857
- (
2858
- newMembers: Array<AccountId32Like>,
2859
- prime: AccountId32Like | undefined,
2860
- oldCount: number,
2861
- ) => ChainSubmittableExtrinsic<
2862
- Rv,
2863
- {
2864
- pallet: 'Council';
2865
- palletCall: {
2866
- name: 'SetMembers';
2867
- params: { newMembers: Array<AccountId32Like>; prime: AccountId32Like | undefined; oldCount: number };
2868
- };
2869
- }
2870
- >
2871
- >;
2872
-
2873
- /**
2874
- * Dispatch a proposal from a member using the `Member` origin.
2875
- *
2876
- * Origin must be a member of the collective.
2877
- *
2878
- * ## Complexity:
2879
- * - `O(B + M + P)` where:
2880
- * - `B` is `proposal` size in bytes (length-fee-bounded)
2881
- * - `M` members-count (code-bounded)
2882
- * - `P` complexity of dispatching `proposal`
2883
- *
2884
- * @param {HydradxRuntimeRuntimeCallLike} proposal
2885
- * @param {number} lengthBound
2886
- **/
2887
- execute: GenericTxCall<
2888
- Rv,
2889
- (
2890
- proposal: HydradxRuntimeRuntimeCallLike,
2891
- lengthBound: number,
2892
- ) => ChainSubmittableExtrinsic<
2893
- Rv,
2894
- {
2895
- pallet: 'Council';
2896
- palletCall: {
2897
- name: 'Execute';
2898
- params: { proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
2899
- };
2900
- }
2901
- >
2902
- >;
2903
-
2904
- /**
2905
- * Add a new proposal to either be voted on or executed directly.
2906
- *
2907
- * Requires the sender to be member.
2908
- *
2909
- * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
2910
- * or put up for voting.
2911
- *
2912
- * ## Complexity
2913
- * - `O(B + M + P1)` or `O(B + M + P2)` where:
2914
- * - `B` is `proposal` size in bytes (length-fee-bounded)
2915
- * - `M` is members-count (code- and governance-bounded)
2916
- * - branching is influenced by `threshold` where:
2917
- * - `P1` is proposal execution complexity (`threshold < 2`)
2918
- * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
2919
- *
2920
- * @param {number} threshold
2921
- * @param {HydradxRuntimeRuntimeCallLike} proposal
2922
- * @param {number} lengthBound
2923
- **/
2924
- propose: GenericTxCall<
2925
- Rv,
2926
- (
2927
- threshold: number,
2928
- proposal: HydradxRuntimeRuntimeCallLike,
2929
- lengthBound: number,
2930
- ) => ChainSubmittableExtrinsic<
2931
- Rv,
2932
- {
2933
- pallet: 'Council';
2934
- palletCall: {
2935
- name: 'Propose';
2936
- params: { threshold: number; proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
2937
- };
2938
- }
2939
- >
2940
- >;
2941
-
2942
- /**
2943
- * Add an aye or nay vote for the sender to the given proposal.
2944
- *
2945
- * Requires the sender to be a member.
2946
- *
2947
- * Transaction fees will be waived if the member is voting on any particular proposal
2948
- * for the first time and the call is successful. Subsequent vote changes will charge a
2949
- * fee.
2950
- * ## Complexity
2951
- * - `O(M)` where `M` is members-count (code- and governance-bounded)
2952
- *
2953
- * @param {H256} proposal
2954
- * @param {number} index
2955
- * @param {boolean} approve
2956
- **/
2957
- vote: GenericTxCall<
2958
- Rv,
2959
- (
2960
- proposal: H256,
2961
- index: number,
2962
- approve: boolean,
2963
- ) => ChainSubmittableExtrinsic<
2964
- Rv,
2965
- {
2966
- pallet: 'Council';
2967
- palletCall: {
2968
- name: 'Vote';
2969
- params: { proposal: H256; index: number; approve: boolean };
2970
- };
2971
- }
2972
- >
2973
- >;
2974
-
2975
- /**
2976
- * Disapprove a proposal, close, and remove it from the system, regardless of its current
2977
- * state.
2978
- *
2979
- * Must be called by the Root origin.
2980
- *
2981
- * Parameters:
2982
- * * `proposal_hash`: The hash of the proposal that should be disapproved.
2983
- *
2984
- * ## Complexity
2985
- * O(P) where P is the number of max proposals
2986
- *
2987
- * @param {H256} proposalHash
2988
- **/
2989
- disapproveProposal: GenericTxCall<
2990
- Rv,
2991
- (proposalHash: H256) => ChainSubmittableExtrinsic<
2992
- Rv,
2993
- {
2994
- pallet: 'Council';
2995
- palletCall: {
2996
- name: 'DisapproveProposal';
2997
- params: { proposalHash: H256 };
2998
- };
2999
- }
3000
- >
3001
- >;
3002
-
3003
- /**
3004
- * Close a vote that is either approved, disapproved or whose voting period has ended.
3005
- *
3006
- * May be called by any signed account in order to finish voting and close the proposal.
3007
- *
3008
- * If called before the end of the voting period it will only close the vote if it is
3009
- * has enough votes to be approved or disapproved.
3010
- *
3011
- * If called after the end of the voting period abstentions are counted as rejections
3012
- * unless there is a prime member set and the prime member cast an approval.
3013
- *
3014
- * If the close operation completes successfully with disapproval, the transaction fee will
3015
- * be waived. Otherwise execution of the approved operation will be charged to the caller.
3016
- *
3017
- * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
3018
- * proposal.
3019
- * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
3020
- * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
3021
- *
3022
- * ## Complexity
3023
- * - `O(B + M + P1 + P2)` where:
3024
- * - `B` is `proposal` size in bytes (length-fee-bounded)
3025
- * - `M` is members-count (code- and governance-bounded)
3026
- * - `P1` is the complexity of `proposal` preimage.
3027
- * - `P2` is proposal-count (code-bounded)
3028
- *
3029
- * @param {H256} proposalHash
3030
- * @param {number} index
3031
- * @param {SpWeightsWeightV2Weight} proposalWeightBound
3032
- * @param {number} lengthBound
3033
- **/
3034
- close: GenericTxCall<
3035
- Rv,
3036
- (
3037
- proposalHash: H256,
3038
- index: number,
3039
- proposalWeightBound: SpWeightsWeightV2Weight,
3040
- lengthBound: number,
3041
- ) => ChainSubmittableExtrinsic<
3042
- Rv,
3043
- {
3044
- pallet: 'Council';
3045
- palletCall: {
3046
- name: 'Close';
3047
- params: {
3048
- proposalHash: H256;
3049
- index: number;
3050
- proposalWeightBound: SpWeightsWeightV2Weight;
3051
- lengthBound: number;
3052
- };
3053
- };
3054
- }
3055
- >
3056
- >;
3057
-
3058
- /**
3059
- * Generic pallet tx call
3060
- **/
3061
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3062
- };
3063
2608
  /**
3064
2609
  * Pallet `TechnicalCommittee`'s transaction calls
3065
2610
  **/
@@ -3106,418 +2651,192 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3106
2651
  pallet: 'TechnicalCommittee';
3107
2652
  palletCall: {
3108
2653
  name: 'SetMembers';
3109
- params: { newMembers: Array<AccountId32Like>; prime: AccountId32Like | undefined; oldCount: number };
3110
- };
3111
- }
3112
- >
3113
- >;
3114
-
3115
- /**
3116
- * Dispatch a proposal from a member using the `Member` origin.
3117
- *
3118
- * Origin must be a member of the collective.
3119
- *
3120
- * ## Complexity:
3121
- * - `O(B + M + P)` where:
3122
- * - `B` is `proposal` size in bytes (length-fee-bounded)
3123
- * - `M` members-count (code-bounded)
3124
- * - `P` complexity of dispatching `proposal`
3125
- *
3126
- * @param {HydradxRuntimeRuntimeCallLike} proposal
3127
- * @param {number} lengthBound
3128
- **/
3129
- execute: GenericTxCall<
3130
- Rv,
3131
- (
3132
- proposal: HydradxRuntimeRuntimeCallLike,
3133
- lengthBound: number,
3134
- ) => ChainSubmittableExtrinsic<
3135
- Rv,
3136
- {
3137
- pallet: 'TechnicalCommittee';
3138
- palletCall: {
3139
- name: 'Execute';
3140
- params: { proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
3141
- };
3142
- }
3143
- >
3144
- >;
3145
-
3146
- /**
3147
- * Add a new proposal to either be voted on or executed directly.
3148
- *
3149
- * Requires the sender to be member.
3150
- *
3151
- * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
3152
- * or put up for voting.
3153
- *
3154
- * ## Complexity
3155
- * - `O(B + M + P1)` or `O(B + M + P2)` where:
3156
- * - `B` is `proposal` size in bytes (length-fee-bounded)
3157
- * - `M` is members-count (code- and governance-bounded)
3158
- * - branching is influenced by `threshold` where:
3159
- * - `P1` is proposal execution complexity (`threshold < 2`)
3160
- * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
3161
- *
3162
- * @param {number} threshold
3163
- * @param {HydradxRuntimeRuntimeCallLike} proposal
3164
- * @param {number} lengthBound
3165
- **/
3166
- propose: GenericTxCall<
3167
- Rv,
3168
- (
3169
- threshold: number,
3170
- proposal: HydradxRuntimeRuntimeCallLike,
3171
- lengthBound: number,
3172
- ) => ChainSubmittableExtrinsic<
3173
- Rv,
3174
- {
3175
- pallet: 'TechnicalCommittee';
3176
- palletCall: {
3177
- name: 'Propose';
3178
- params: { threshold: number; proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
3179
- };
3180
- }
3181
- >
3182
- >;
3183
-
3184
- /**
3185
- * Add an aye or nay vote for the sender to the given proposal.
3186
- *
3187
- * Requires the sender to be a member.
3188
- *
3189
- * Transaction fees will be waived if the member is voting on any particular proposal
3190
- * for the first time and the call is successful. Subsequent vote changes will charge a
3191
- * fee.
3192
- * ## Complexity
3193
- * - `O(M)` where `M` is members-count (code- and governance-bounded)
3194
- *
3195
- * @param {H256} proposal
3196
- * @param {number} index
3197
- * @param {boolean} approve
3198
- **/
3199
- vote: GenericTxCall<
3200
- Rv,
3201
- (
3202
- proposal: H256,
3203
- index: number,
3204
- approve: boolean,
3205
- ) => ChainSubmittableExtrinsic<
3206
- Rv,
3207
- {
3208
- pallet: 'TechnicalCommittee';
3209
- palletCall: {
3210
- name: 'Vote';
3211
- params: { proposal: H256; index: number; approve: boolean };
3212
- };
3213
- }
3214
- >
3215
- >;
3216
-
3217
- /**
3218
- * Disapprove a proposal, close, and remove it from the system, regardless of its current
3219
- * state.
3220
- *
3221
- * Must be called by the Root origin.
3222
- *
3223
- * Parameters:
3224
- * * `proposal_hash`: The hash of the proposal that should be disapproved.
3225
- *
3226
- * ## Complexity
3227
- * O(P) where P is the number of max proposals
3228
- *
3229
- * @param {H256} proposalHash
3230
- **/
3231
- disapproveProposal: GenericTxCall<
3232
- Rv,
3233
- (proposalHash: H256) => ChainSubmittableExtrinsic<
3234
- Rv,
3235
- {
3236
- pallet: 'TechnicalCommittee';
3237
- palletCall: {
3238
- name: 'DisapproveProposal';
3239
- params: { proposalHash: H256 };
3240
- };
3241
- }
3242
- >
3243
- >;
3244
-
3245
- /**
3246
- * Close a vote that is either approved, disapproved or whose voting period has ended.
3247
- *
3248
- * May be called by any signed account in order to finish voting and close the proposal.
3249
- *
3250
- * If called before the end of the voting period it will only close the vote if it is
3251
- * has enough votes to be approved or disapproved.
3252
- *
3253
- * If called after the end of the voting period abstentions are counted as rejections
3254
- * unless there is a prime member set and the prime member cast an approval.
3255
- *
3256
- * If the close operation completes successfully with disapproval, the transaction fee will
3257
- * be waived. Otherwise execution of the approved operation will be charged to the caller.
3258
- *
3259
- * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
3260
- * proposal.
3261
- * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
3262
- * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
3263
- *
3264
- * ## Complexity
3265
- * - `O(B + M + P1 + P2)` where:
3266
- * - `B` is `proposal` size in bytes (length-fee-bounded)
3267
- * - `M` is members-count (code- and governance-bounded)
3268
- * - `P1` is the complexity of `proposal` preimage.
3269
- * - `P2` is proposal-count (code-bounded)
3270
- *
3271
- * @param {H256} proposalHash
3272
- * @param {number} index
3273
- * @param {SpWeightsWeightV2Weight} proposalWeightBound
3274
- * @param {number} lengthBound
3275
- **/
3276
- close: GenericTxCall<
3277
- Rv,
3278
- (
3279
- proposalHash: H256,
3280
- index: number,
3281
- proposalWeightBound: SpWeightsWeightV2Weight,
3282
- lengthBound: number,
3283
- ) => ChainSubmittableExtrinsic<
3284
- Rv,
3285
- {
3286
- pallet: 'TechnicalCommittee';
3287
- palletCall: {
3288
- name: 'Close';
3289
- params: {
3290
- proposalHash: H256;
3291
- index: number;
3292
- proposalWeightBound: SpWeightsWeightV2Weight;
3293
- lengthBound: number;
3294
- };
3295
- };
3296
- }
3297
- >
3298
- >;
3299
-
3300
- /**
3301
- * Generic pallet tx call
3302
- **/
3303
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3304
- };
3305
- /**
3306
- * Pallet `Tips`'s transaction calls
3307
- **/
3308
- tips: {
3309
- /**
3310
- * Report something `reason` that deserves a tip and claim any eventual the finder's fee.
3311
- *
3312
- * The dispatch origin for this call must be _Signed_.
3313
- *
3314
- * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
3315
- * `DataDepositPerByte` for each byte in `reason`.
3316
- *
3317
- * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
3318
- * a UTF-8-encoded URL.
3319
- * - `who`: The account which should be credited for the tip.
3320
- *
3321
- * Emits `NewTip` if successful.
3322
- *
3323
- * ## Complexity
3324
- * - `O(R)` where `R` length of `reason`.
3325
- * - encoding and hashing of 'reason'
3326
- *
3327
- * @param {BytesLike} reason
3328
- * @param {AccountId32Like} who
3329
- **/
3330
- reportAwesome: GenericTxCall<
3331
- Rv,
3332
- (
3333
- reason: BytesLike,
3334
- who: AccountId32Like,
3335
- ) => ChainSubmittableExtrinsic<
3336
- Rv,
3337
- {
3338
- pallet: 'Tips';
3339
- palletCall: {
3340
- name: 'ReportAwesome';
3341
- params: { reason: BytesLike; who: AccountId32Like };
2654
+ params: { newMembers: Array<AccountId32Like>; prime: AccountId32Like | undefined; oldCount: number };
3342
2655
  };
3343
2656
  }
3344
2657
  >
3345
2658
  >;
3346
2659
 
3347
2660
  /**
3348
- * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
3349
- *
3350
- * If successful, the original deposit will be unreserved.
3351
- *
3352
- * The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
3353
- * must have been reported by the signing account through `report_awesome` (and not
3354
- * through `tip_new`).
3355
- *
3356
- * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
3357
- * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
2661
+ * Dispatch a proposal from a member using the `Member` origin.
3358
2662
  *
3359
- * Emits `TipRetracted` if successful.
2663
+ * Origin must be a member of the collective.
3360
2664
  *
3361
- * ## Complexity
3362
- * - `O(1)`
3363
- * - Depends on the length of `T::Hash` which is fixed.
2665
+ * ## Complexity:
2666
+ * - `O(B + M + P)` where:
2667
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
2668
+ * - `M` members-count (code-bounded)
2669
+ * - `P` complexity of dispatching `proposal`
3364
2670
  *
3365
- * @param {H256} hash
2671
+ * @param {HydradxRuntimeRuntimeCallLike} proposal
2672
+ * @param {number} lengthBound
3366
2673
  **/
3367
- retractTip: GenericTxCall<
2674
+ execute: GenericTxCall<
3368
2675
  Rv,
3369
- (hash: H256) => ChainSubmittableExtrinsic<
2676
+ (
2677
+ proposal: HydradxRuntimeRuntimeCallLike,
2678
+ lengthBound: number,
2679
+ ) => ChainSubmittableExtrinsic<
3370
2680
  Rv,
3371
2681
  {
3372
- pallet: 'Tips';
2682
+ pallet: 'TechnicalCommittee';
3373
2683
  palletCall: {
3374
- name: 'RetractTip';
3375
- params: { hash: H256 };
2684
+ name: 'Execute';
2685
+ params: { proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
3376
2686
  };
3377
2687
  }
3378
2688
  >
3379
2689
  >;
3380
2690
 
3381
2691
  /**
3382
- * Give a tip for something new; no finder's fee will be taken.
3383
- *
3384
- * The dispatch origin for this call must be _Signed_ and the signing account must be a
3385
- * member of the `Tippers` set.
2692
+ * Add a new proposal to either be voted on or executed directly.
3386
2693
  *
3387
- * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
3388
- * a UTF-8-encoded URL.
3389
- * - `who`: The account which should be credited for the tip.
3390
- * - `tip_value`: The amount of tip that the sender would like to give. The median tip
3391
- * value of active tippers will be given to the `who`.
2694
+ * Requires the sender to be member.
3392
2695
  *
3393
- * Emits `NewTip` if successful.
2696
+ * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
2697
+ * or put up for voting.
3394
2698
  *
3395
2699
  * ## Complexity
3396
- * - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
3397
- * - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
3398
- * `ContainsLengthBound`. The actual cost depends on the implementation of
3399
- * `T::Tippers`.
3400
- * - `O(R)`: hashing and encoding of reason of length `R`
2700
+ * - `O(B + M + P1)` or `O(B + M + P2)` where:
2701
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
2702
+ * - `M` is members-count (code- and governance-bounded)
2703
+ * - branching is influenced by `threshold` where:
2704
+ * - `P1` is proposal execution complexity (`threshold < 2`)
2705
+ * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
3401
2706
  *
3402
- * @param {BytesLike} reason
3403
- * @param {AccountId32Like} who
3404
- * @param {bigint} tipValue
2707
+ * @param {number} threshold
2708
+ * @param {HydradxRuntimeRuntimeCallLike} proposal
2709
+ * @param {number} lengthBound
3405
2710
  **/
3406
- tipNew: GenericTxCall<
2711
+ propose: GenericTxCall<
3407
2712
  Rv,
3408
2713
  (
3409
- reason: BytesLike,
3410
- who: AccountId32Like,
3411
- tipValue: bigint,
2714
+ threshold: number,
2715
+ proposal: HydradxRuntimeRuntimeCallLike,
2716
+ lengthBound: number,
3412
2717
  ) => ChainSubmittableExtrinsic<
3413
2718
  Rv,
3414
2719
  {
3415
- pallet: 'Tips';
2720
+ pallet: 'TechnicalCommittee';
3416
2721
  palletCall: {
3417
- name: 'TipNew';
3418
- params: { reason: BytesLike; who: AccountId32Like; tipValue: bigint };
2722
+ name: 'Propose';
2723
+ params: { threshold: number; proposal: HydradxRuntimeRuntimeCallLike; lengthBound: number };
3419
2724
  };
3420
2725
  }
3421
2726
  >
3422
2727
  >;
3423
2728
 
3424
2729
  /**
3425
- * Declare a tip value for an already-open tip.
3426
- *
3427
- * The dispatch origin for this call must be _Signed_ and the signing account must be a
3428
- * member of the `Tippers` set.
3429
- *
3430
- * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
3431
- * as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
3432
- * account ID.
3433
- * - `tip_value`: The amount of tip that the sender would like to give. The median tip
3434
- * value of active tippers will be given to the `who`.
2730
+ * Add an aye or nay vote for the sender to the given proposal.
3435
2731
  *
3436
- * Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
3437
- * has started.
2732
+ * Requires the sender to be a member.
3438
2733
  *
2734
+ * Transaction fees will be waived if the member is voting on any particular proposal
2735
+ * for the first time and the call is successful. Subsequent vote changes will charge a
2736
+ * fee.
3439
2737
  * ## Complexity
3440
- * - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
3441
- * tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
3442
- * The actual cost depends on the implementation of `T::Tippers`.
3443
- *
3444
- * Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
3445
- * is weighted as if almost full i.e of length `T-1`.
2738
+ * - `O(M)` where `M` is members-count (code- and governance-bounded)
3446
2739
  *
3447
- * @param {H256} hash
3448
- * @param {bigint} tipValue
2740
+ * @param {H256} proposal
2741
+ * @param {number} index
2742
+ * @param {boolean} approve
3449
2743
  **/
3450
- tip: GenericTxCall<
2744
+ vote: GenericTxCall<
3451
2745
  Rv,
3452
2746
  (
3453
- hash: H256,
3454
- tipValue: bigint,
2747
+ proposal: H256,
2748
+ index: number,
2749
+ approve: boolean,
3455
2750
  ) => ChainSubmittableExtrinsic<
3456
2751
  Rv,
3457
2752
  {
3458
- pallet: 'Tips';
2753
+ pallet: 'TechnicalCommittee';
3459
2754
  palletCall: {
3460
- name: 'Tip';
3461
- params: { hash: H256; tipValue: bigint };
2755
+ name: 'Vote';
2756
+ params: { proposal: H256; index: number; approve: boolean };
3462
2757
  };
3463
2758
  }
3464
2759
  >
3465
2760
  >;
3466
2761
 
3467
2762
  /**
3468
- * Close and payout a tip.
3469
- *
3470
- * The dispatch origin for this call must be _Signed_.
2763
+ * Disapprove a proposal, close, and remove it from the system, regardless of its current
2764
+ * state.
3471
2765
  *
3472
- * The tip identified by `hash` must have finished its countdown period.
2766
+ * Must be called by the Root origin.
3473
2767
  *
3474
- * - `hash`: The identity of the open tip for which a tip value is declared. This is formed
3475
- * as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
2768
+ * Parameters:
2769
+ * * `proposal_hash`: The hash of the proposal that should be disapproved.
3476
2770
  *
3477
2771
  * ## Complexity
3478
- * - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
3479
- * is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
3480
- * the implementation of `T::Tippers`.
2772
+ * O(P) where P is the number of max proposals
3481
2773
  *
3482
- * @param {H256} hash
2774
+ * @param {H256} proposalHash
3483
2775
  **/
3484
- closeTip: GenericTxCall<
2776
+ disapproveProposal: GenericTxCall<
3485
2777
  Rv,
3486
- (hash: H256) => ChainSubmittableExtrinsic<
2778
+ (proposalHash: H256) => ChainSubmittableExtrinsic<
3487
2779
  Rv,
3488
2780
  {
3489
- pallet: 'Tips';
2781
+ pallet: 'TechnicalCommittee';
3490
2782
  palletCall: {
3491
- name: 'CloseTip';
3492
- params: { hash: H256 };
2783
+ name: 'DisapproveProposal';
2784
+ params: { proposalHash: H256 };
3493
2785
  };
3494
2786
  }
3495
2787
  >
3496
2788
  >;
3497
2789
 
3498
2790
  /**
3499
- * Remove and slash an already-open tip.
2791
+ * Close a vote that is either approved, disapproved or whose voting period has ended.
2792
+ *
2793
+ * May be called by any signed account in order to finish voting and close the proposal.
3500
2794
  *
3501
- * May only be called from `T::RejectOrigin`.
2795
+ * If called before the end of the voting period it will only close the vote if it is
2796
+ * has enough votes to be approved or disapproved.
2797
+ *
2798
+ * If called after the end of the voting period abstentions are counted as rejections
2799
+ * unless there is a prime member set and the prime member cast an approval.
3502
2800
  *
3503
- * As a result, the finder is slashed and the deposits are lost.
2801
+ * If the close operation completes successfully with disapproval, the transaction fee will
2802
+ * be waived. Otherwise execution of the approved operation will be charged to the caller.
3504
2803
  *
3505
- * Emits `TipSlashed` if successful.
2804
+ * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
2805
+ * proposal.
2806
+ * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
2807
+ * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
3506
2808
  *
3507
2809
  * ## Complexity
3508
- * - O(1).
2810
+ * - `O(B + M + P1 + P2)` where:
2811
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
2812
+ * - `M` is members-count (code- and governance-bounded)
2813
+ * - `P1` is the complexity of `proposal` preimage.
2814
+ * - `P2` is proposal-count (code-bounded)
3509
2815
  *
3510
- * @param {H256} hash
2816
+ * @param {H256} proposalHash
2817
+ * @param {number} index
2818
+ * @param {SpWeightsWeightV2Weight} proposalWeightBound
2819
+ * @param {number} lengthBound
3511
2820
  **/
3512
- slashTip: GenericTxCall<
2821
+ close: GenericTxCall<
3513
2822
  Rv,
3514
- (hash: H256) => ChainSubmittableExtrinsic<
2823
+ (
2824
+ proposalHash: H256,
2825
+ index: number,
2826
+ proposalWeightBound: SpWeightsWeightV2Weight,
2827
+ lengthBound: number,
2828
+ ) => ChainSubmittableExtrinsic<
3515
2829
  Rv,
3516
2830
  {
3517
- pallet: 'Tips';
2831
+ pallet: 'TechnicalCommittee';
3518
2832
  palletCall: {
3519
- name: 'SlashTip';
3520
- params: { hash: H256 };
2833
+ name: 'Close';
2834
+ params: {
2835
+ proposalHash: H256;
2836
+ index: number;
2837
+ proposalWeightBound: SpWeightsWeightV2Weight;
2838
+ lengthBound: number;
2839
+ };
3521
2840
  };
3522
2841
  }
3523
2842
  >
@@ -7774,6 +7093,102 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7774
7093
  >
7775
7094
  >;
7776
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
+
7777
7192
  /**
7778
7193
  * Generic pallet tx call
7779
7194
  **/
@@ -8005,6 +7420,62 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8005
7420
  * Pallet `DynamicFees`'s transaction calls
8006
7421
  **/
8007
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
+
8008
7479
  /**
8009
7480
  * Generic pallet tx call
8010
7481
  **/
@@ -11516,6 +10987,41 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11516
10987
  >
11517
10988
  >;
11518
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
+
11519
11025
  /**
11520
11026
  * Generic pallet tx call
11521
11027
  **/