import { buildTx } from "../../../../helper-func-types";
import { toEncoders, toConverters } from "@interchainjs/cosmos/utils";
import { MsgConnectionOpenInit, MsgConnectionOpenTry, MsgConnectionOpenAck, MsgConnectionOpenConfirm, MsgUpdateParams } from "./tx";
export const createConnectionOpenInit = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgConnectionOpenInit.typeUrl,
    encoders: toEncoders(MsgConnectionOpenInit),
    converters: toConverters(MsgConnectionOpenInit)
});
export const createConnectionOpenTry = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgConnectionOpenTry.typeUrl,
    encoders: toEncoders(MsgConnectionOpenTry),
    converters: toConverters(MsgConnectionOpenTry)
});
export const createConnectionOpenAck = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgConnectionOpenAck.typeUrl,
    encoders: toEncoders(MsgConnectionOpenAck),
    converters: toConverters(MsgConnectionOpenAck)
});
export const createConnectionOpenConfirm = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgConnectionOpenConfirm.typeUrl,
    encoders: toEncoders(MsgConnectionOpenConfirm),
    converters: toConverters(MsgConnectionOpenConfirm)
});
export const createUpdateConnectionParams = (clientResolver) => buildTx({
    clientResolver,
    typeUrl: MsgUpdateParams.typeUrl,
    encoders: toEncoders(MsgUpdateParams),
    converters: toConverters(MsgUpdateParams)
});
