import { MsgSoftwareUpgrade, MsgCancelUpgrade } from "./tx";
export const registry = [["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade]];
export const MessageComposer = {
    encoded: {
        softwareUpgrade(value) {
            return {
                typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
                value: MsgSoftwareUpgrade.encode(value).finish()
            };
        },
        cancelUpgrade(value) {
            return {
                typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade",
                value: MsgCancelUpgrade.encode(value).finish()
            };
        }
    },
    withTypeUrl: {
        softwareUpgrade(value) {
            return {
                typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
                value
            };
        },
        cancelUpgrade(value) {
            return {
                typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade",
                value
            };
        }
    },
    fromPartial: {
        softwareUpgrade(value) {
            return {
                typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
                value: MsgSoftwareUpgrade.fromPartial(value)
            };
        },
        cancelUpgrade(value) {
            return {
                typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade",
                value: MsgCancelUpgrade.fromPartial(value)
            };
        }
    }
};
