import { BinaryReader, BinaryWriter } from "../../../../binary";
function createBaseModule() {
    return {};
}
/**
 * Module is the config object of the nft module.
 * @name Module
 * @package cosmos.nft.module.v1
 * @see proto type: cosmos.nft.module.v1.Module
 */
export const Module = {
    typeUrl: "/cosmos.nft.module.v1.Module",
    aminoType: "cosmos-sdk/Module",
    is(o) {
        return o && o.$typeUrl === Module.typeUrl;
    },
    isAmino(o) {
        return o && o.$typeUrl === Module.typeUrl;
    },
    encode(_, writer = BinaryWriter.create()) {
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
        let end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseModule();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    },
    fromPartial(_) {
        const message = createBaseModule();
        return message;
    },
    fromAmino(_) {
        const message = createBaseModule();
        return message;
    },
    toAmino(_) {
        const obj = {};
        return obj;
    },
    fromAminoMsg(object) {
        return Module.fromAmino(object.value);
    },
    toAminoMsg(message) {
        return {
            type: "cosmos-sdk/Module",
            value: Module.toAmino(message)
        };
    },
    fromProtoMsg(message) {
        return Module.decode(message.value);
    },
    toProto(message) {
        return Module.encode(message).finish();
    },
    toProtoMsg(message) {
        return {
            typeUrl: "/cosmos.nft.module.v1.Module",
            value: Module.encode(message).finish()
        };
    },
    registerTypeUrl() { }
};
