import { buildTx } from "../../../helper-func-types";
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
import { MsgCreateValidator, MsgEditValidator, MsgDelegate, MsgBeginRedelegate, MsgUndelegate, MsgCancelUnbondingDelegation, MsgUpdateParams } from "./tx";
export const createCreateValidator = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgCreateValidator.typeUrl,
    encoders: toEncoders(MsgCreateValidator),
    converters: toConverters(MsgCreateValidator)
});
export const createEditValidator = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgEditValidator.typeUrl,
    encoders: toEncoders(MsgEditValidator),
    converters: toConverters(MsgEditValidator)
});
export const createDelegate = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgDelegate.typeUrl,
    encoders: toEncoders(MsgDelegate),
    converters: toConverters(MsgDelegate)
});
export const createBeginRedelegate = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgBeginRedelegate.typeUrl,
    encoders: toEncoders(MsgBeginRedelegate),
    converters: toConverters(MsgBeginRedelegate)
});
export const createUndelegate = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgUndelegate.typeUrl,
    encoders: toEncoders(MsgUndelegate),
    converters: toConverters(MsgUndelegate)
});
export const createCancelUnbondingDelegation = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgCancelUnbondingDelegation.typeUrl,
    encoders: toEncoders(MsgCancelUnbondingDelegation),
    converters: toConverters(MsgCancelUnbondingDelegation)
});
export const createUpdateParams = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgUpdateParams.typeUrl,
    encoders: toEncoders(MsgUpdateParams),
    converters: toConverters(MsgUpdateParams)
});
