"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCancelUpgrade = exports.createSoftwareUpgrade = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const utils_1 = require("@interchainjs/cosmos/utils");
const tx_1 = require("./tx");
const createSoftwareUpgrade = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgSoftwareUpgrade.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgSoftwareUpgrade),
    converters: (0, utils_1.toConverters)(tx_1.MsgSoftwareUpgrade)
});
exports.createSoftwareUpgrade = createSoftwareUpgrade;
const createCancelUpgrade = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgCancelUpgrade.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgCancelUpgrade),
    converters: (0, utils_1.toConverters)(tx_1.MsgCancelUpgrade)
});
exports.createCancelUpgrade = createCancelUpgrade;
