import { buildTx } from "../../../helper-func-types";
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
import { MsgSubmitProposal, MsgExecLegacyContent, MsgVote, MsgVoteWeighted, MsgDeposit, MsgUpdateParams, MsgCancelProposal } from "./tx";
export const createSubmitProposal = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgSubmitProposal.typeUrl,
    encoders: toEncoders(MsgSubmitProposal),
    converters: toConverters(MsgSubmitProposal)
});
export const createExecLegacyContent = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgExecLegacyContent.typeUrl,
    encoders: toEncoders(MsgExecLegacyContent),
    converters: toConverters(MsgExecLegacyContent)
});
export const createVote = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgVote.typeUrl,
    encoders: toEncoders(MsgVote),
    converters: toConverters(MsgVote)
});
export const createVoteWeighted = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgVoteWeighted.typeUrl,
    encoders: toEncoders(MsgVoteWeighted),
    converters: toConverters(MsgVoteWeighted)
});
export const createDeposit = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgDeposit.typeUrl,
    encoders: toEncoders(MsgDeposit),
    converters: toConverters(MsgDeposit)
});
export const createUpdateParams = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgUpdateParams.typeUrl,
    encoders: toEncoders(MsgUpdateParams),
    converters: toConverters(MsgUpdateParams)
});
export const createCancelProposal = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgCancelProposal.typeUrl,
    encoders: toEncoders(MsgCancelProposal),
    converters: toConverters(MsgCancelProposal)
});
