import { buildTx } from "../../../helper-func-types";
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
import { MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, MsgFundCommunityPool, MsgUpdateParams, MsgCommunityPoolSpend, MsgDepositValidatorRewardsPool } from "./tx";
export const createSetWithdrawAddress = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgSetWithdrawAddress.typeUrl,
    encoders: toEncoders(MsgSetWithdrawAddress),
    converters: toConverters(MsgSetWithdrawAddress)
});
export const createWithdrawDelegatorReward = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgWithdrawDelegatorReward.typeUrl,
    encoders: toEncoders(MsgWithdrawDelegatorReward),
    converters: toConverters(MsgWithdrawDelegatorReward)
});
export const createWithdrawValidatorCommission = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgWithdrawValidatorCommission.typeUrl,
    encoders: toEncoders(MsgWithdrawValidatorCommission),
    converters: toConverters(MsgWithdrawValidatorCommission)
});
export const createFundCommunityPool = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgFundCommunityPool.typeUrl,
    encoders: toEncoders(MsgFundCommunityPool),
    converters: toConverters(MsgFundCommunityPool)
});
export const createUpdateParams = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgUpdateParams.typeUrl,
    encoders: toEncoders(MsgUpdateParams),
    converters: toConverters(MsgUpdateParams)
});
export const createCommunityPoolSpend = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgCommunityPoolSpend.typeUrl,
    encoders: toEncoders(MsgCommunityPoolSpend),
    converters: toConverters(MsgCommunityPoolSpend)
});
export const createDepositValidatorRewardsPool = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgDepositValidatorRewardsPool.typeUrl,
    encoders: toEncoders(MsgDepositValidatorRewardsPool),
    converters: toConverters(MsgDepositValidatorRewardsPool)
});
