"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createUpdateContractLabel = exports.createStoreAndMigrateContract = exports.createAddCodeUploadParamsAddresses = exports.createRemoveCodeUploadParamsAddresses = exports.createStoreAndInstantiateContract = exports.createUnpinCodes = exports.createPinCodes = exports.createSudoContract = exports.createUpdateParams = exports.createUpdateInstantiateConfig = exports.createClearAdmin = exports.createUpdateAdmin = exports.createMigrateContract = exports.createExecuteContract = exports.createInstantiateContract2 = exports.createInstantiateContract = exports.createStoreCode = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const utils_1 = require("@interchainjs/cosmos/utils");
const tx_1 = require("./tx");
const createStoreCode = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgStoreCode.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgStoreCode),
    converters: (0, utils_1.toConverters)(tx_1.MsgStoreCode)
});
exports.createStoreCode = createStoreCode;
const createInstantiateContract = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgInstantiateContract.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgInstantiateContract),
    converters: (0, utils_1.toConverters)(tx_1.MsgInstantiateContract)
});
exports.createInstantiateContract = createInstantiateContract;
const createInstantiateContract2 = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgInstantiateContract2.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgInstantiateContract2),
    converters: (0, utils_1.toConverters)(tx_1.MsgInstantiateContract2)
});
exports.createInstantiateContract2 = createInstantiateContract2;
const createExecuteContract = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgExecuteContract.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgExecuteContract),
    converters: (0, utils_1.toConverters)(tx_1.MsgExecuteContract)
});
exports.createExecuteContract = createExecuteContract;
const createMigrateContract = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgMigrateContract.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgMigrateContract),
    converters: (0, utils_1.toConverters)(tx_1.MsgMigrateContract)
});
exports.createMigrateContract = createMigrateContract;
const createUpdateAdmin = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgUpdateAdmin.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgUpdateAdmin),
    converters: (0, utils_1.toConverters)(tx_1.MsgUpdateAdmin)
});
exports.createUpdateAdmin = createUpdateAdmin;
const createClearAdmin = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgClearAdmin.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgClearAdmin),
    converters: (0, utils_1.toConverters)(tx_1.MsgClearAdmin)
});
exports.createClearAdmin = createClearAdmin;
const createUpdateInstantiateConfig = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgUpdateInstantiateConfig.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgUpdateInstantiateConfig),
    converters: (0, utils_1.toConverters)(tx_1.MsgUpdateInstantiateConfig)
});
exports.createUpdateInstantiateConfig = createUpdateInstantiateConfig;
const createUpdateParams = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgUpdateParams.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgUpdateParams),
    converters: (0, utils_1.toConverters)(tx_1.MsgUpdateParams)
});
exports.createUpdateParams = createUpdateParams;
const createSudoContract = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgSudoContract.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgSudoContract),
    converters: (0, utils_1.toConverters)(tx_1.MsgSudoContract)
});
exports.createSudoContract = createSudoContract;
const createPinCodes = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgPinCodes.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgPinCodes),
    converters: (0, utils_1.toConverters)(tx_1.MsgPinCodes)
});
exports.createPinCodes = createPinCodes;
const createUnpinCodes = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgUnpinCodes.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgUnpinCodes),
    converters: (0, utils_1.toConverters)(tx_1.MsgUnpinCodes)
});
exports.createUnpinCodes = createUnpinCodes;
const createStoreAndInstantiateContract = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgStoreAndInstantiateContract.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgStoreAndInstantiateContract),
    converters: (0, utils_1.toConverters)(tx_1.MsgStoreAndInstantiateContract)
});
exports.createStoreAndInstantiateContract = createStoreAndInstantiateContract;
const createRemoveCodeUploadParamsAddresses = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgRemoveCodeUploadParamsAddresses.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgRemoveCodeUploadParamsAddresses),
    converters: (0, utils_1.toConverters)(tx_1.MsgRemoveCodeUploadParamsAddresses)
});
exports.createRemoveCodeUploadParamsAddresses = createRemoveCodeUploadParamsAddresses;
const createAddCodeUploadParamsAddresses = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgAddCodeUploadParamsAddresses.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgAddCodeUploadParamsAddresses),
    converters: (0, utils_1.toConverters)(tx_1.MsgAddCodeUploadParamsAddresses)
});
exports.createAddCodeUploadParamsAddresses = createAddCodeUploadParamsAddresses;
const createStoreAndMigrateContract = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgStoreAndMigrateContract.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgStoreAndMigrateContract),
    converters: (0, utils_1.toConverters)(tx_1.MsgStoreAndMigrateContract)
});
exports.createStoreAndMigrateContract = createStoreAndMigrateContract;
const createUpdateContractLabel = (clientResolver) => (0, helper_func_types_1.buildTx)({
    clientResolver,
    typeUrl: tx_1.MsgUpdateContractLabel.typeUrl,
    encoders: (0, utils_1.toEncoders)(tx_1.MsgUpdateContractLabel),
    converters: (0, utils_1.toConverters)(tx_1.MsgUpdateContractLabel)
});
exports.createUpdateContractLabel = createUpdateContractLabel;
