"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageComposer = exports.registry = void 0;
const tx_1 = require("./tx");
exports.registry = [["/ibc.core.client.v2.MsgRegisterCounterparty", tx_1.MsgRegisterCounterparty], ["/ibc.core.client.v2.MsgUpdateClientConfig", tx_1.MsgUpdateClientConfig]];
exports.MessageComposer = {
    encoded: {
        registerCounterparty(value) {
            return {
                typeUrl: "/ibc.core.client.v2.MsgRegisterCounterparty",
                value: tx_1.MsgRegisterCounterparty.encode(value).finish()
            };
        },
        updateClientConfig(value) {
            return {
                typeUrl: "/ibc.core.client.v2.MsgUpdateClientConfig",
                value: tx_1.MsgUpdateClientConfig.encode(value).finish()
            };
        }
    },
    withTypeUrl: {
        registerCounterparty(value) {
            return {
                typeUrl: "/ibc.core.client.v2.MsgRegisterCounterparty",
                value
            };
        },
        updateClientConfig(value) {
            return {
                typeUrl: "/ibc.core.client.v2.MsgUpdateClientConfig",
                value
            };
        }
    },
    fromPartial: {
        registerCounterparty(value) {
            return {
                typeUrl: "/ibc.core.client.v2.MsgRegisterCounterparty",
                value: tx_1.MsgRegisterCounterparty.fromPartial(value)
            };
        },
        updateClientConfig(value) {
            return {
                typeUrl: "/ibc.core.client.v2.MsgUpdateClientConfig",
                value: tx_1.MsgUpdateClientConfig.fromPartial(value)
            };
        }
    }
};
