// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
// @generated from protobuf file "injective/insurance/v1beta1/tx.proto" (package "injective.insurance.v1beta1", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { Params } from "./insurance_pb";
import { Coin } from "../../../cosmos/base/v1beta1/coin_pb";
import { OracleType } from "../../oracle/v1beta1/oracle_pb";
/**
 * MsgCreateInsuranceFund a message to create an insurance fund for a derivative
 * market.
 *
 * @generated from protobuf message injective.insurance.v1beta1.MsgCreateInsuranceFund
 */
export interface MsgCreateInsuranceFund {
    /**
     * Creator of the insurance fund.
     *
     * @generated from protobuf field: string sender = 1
     */
    sender: string;
    /**
     * Ticker for the derivative market.
     *
     * @generated from protobuf field: string ticker = 2
     */
    ticker: string;
    /**
     * Coin denom to use for the market quote denom
     *
     * @generated from protobuf field: string quote_denom = 3
     */
    quoteDenom: string;
    /**
     * Oracle base currency of the derivative market OR the oracle symbol for the
     * binary options market.
     *
     * @generated from protobuf field: string oracle_base = 4
     */
    oracleBase: string;
    /**
     * Oracle quote currency of the derivative market OR the oracle provider for
     * the binary options market.
     *
     * @generated from protobuf field: string oracle_quote = 5
     */
    oracleQuote: string;
    /**
     * Oracle type of the binary options or derivative market
     *
     * @generated from protobuf field: injective.oracle.v1beta1.OracleType oracle_type = 6
     */
    oracleType: OracleType;
    /**
     * Expiration time of the derivative market. Should be -1 for perpetual or -2
     * for binary options markets.
     *
     * @generated from protobuf field: int64 expiry = 7
     */
    expiry: bigint;
    /**
     * Initial deposit of the insurance fund
     *
     * @generated from protobuf field: cosmos.base.v1beta1.Coin initial_deposit = 8
     */
    initialDeposit?: Coin;
}
/**
 * @generated from protobuf message injective.insurance.v1beta1.MsgCreateInsuranceFundResponse
 */
export interface MsgCreateInsuranceFundResponse {
}
/**
 * MsgUnderwrite defines a message for depositing coins to underwrite an
 * insurance fund
 *
 * @generated from protobuf message injective.insurance.v1beta1.MsgUnderwrite
 */
export interface MsgUnderwrite {
    /**
     * Address of the underwriter.
     *
     * @generated from protobuf field: string sender = 1
     */
    sender: string;
    /**
     * MarketID of the insurance fund.
     *
     * @generated from protobuf field: string market_id = 2
     */
    marketId: string;
    /**
     * Amount of quote_denom to underwrite the insurance fund.
     *
     * @generated from protobuf field: cosmos.base.v1beta1.Coin deposit = 3
     */
    deposit?: Coin;
}
/**
 * @generated from protobuf message injective.insurance.v1beta1.MsgUnderwriteResponse
 */
export interface MsgUnderwriteResponse {
}
/**
 * MsgRequestRedemption defines a message for requesting a redemption of the
 * sender's insurance fund tokens
 *
 * @generated from protobuf message injective.insurance.v1beta1.MsgRequestRedemption
 */
export interface MsgRequestRedemption {
    /**
     * Address of the underwriter requesting a redemption.
     *
     * @generated from protobuf field: string sender = 1
     */
    sender: string;
    /**
     * MarketID of the insurance fund.
     *
     * @generated from protobuf field: string market_id = 2
     */
    marketId: string;
    /**
     * Insurance fund share token amount to be redeemed.
     *
     * @generated from protobuf field: cosmos.base.v1beta1.Coin amount = 3
     */
    amount?: Coin;
}
/**
 * @generated from protobuf message injective.insurance.v1beta1.MsgRequestRedemptionResponse
 */
export interface MsgRequestRedemptionResponse {
}
/**
 * @generated from protobuf message injective.insurance.v1beta1.MsgUpdateParams
 */
export interface MsgUpdateParams {
    /**
     * authority is the address of the governance account.
     *
     * @generated from protobuf field: string authority = 1
     */
    authority: string;
    /**
     * params defines the insurance parameters to update.
     *
     * NOTE: All parameters must be supplied.
     *
     * @generated from protobuf field: injective.insurance.v1beta1.Params params = 2
     */
    params?: Params;
}
/**
 * @generated from protobuf message injective.insurance.v1beta1.MsgUpdateParamsResponse
 */
export interface MsgUpdateParamsResponse {
}
/**
 * MsgClaimVoucher defines a message for claiming an outstanding voucher
 *
 * @generated from protobuf message injective.insurance.v1beta1.MsgClaimVoucher
 */
export interface MsgClaimVoucher {
    /**
     * The sender's Injective address.
     *
     * @generated from protobuf field: string sender = 1
     */
    sender: string;
    /**
     * The token denom of the voucher to claim.
     *
     * @generated from protobuf field: string denom = 2
     */
    denom: string;
}
/**
 * @generated from protobuf message injective.insurance.v1beta1.MsgClaimVoucherResponse
 */
export interface MsgClaimVoucherResponse {
}
// @generated message type with reflection information, may provide speed optimized methods
class MsgCreateInsuranceFund$Type extends MessageType<MsgCreateInsuranceFund> {
    constructor() {
        super("injective.insurance.v1beta1.MsgCreateInsuranceFund", [
            { no: 1, name: "sender", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "ticker", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "quote_denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 4, name: "oracle_base", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 5, name: "oracle_quote", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 6, name: "oracle_type", kind: "enum", T: () => ["injective.oracle.v1beta1.OracleType", OracleType] },
            { no: 7, name: "expiry", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
            { no: 8, name: "initial_deposit", kind: "message", T: () => Coin, options: { "gogoproto.nullable": false } }
        ], { "gogoproto.goproto_getters": false, "gogoproto.equal": false, "amino.name": "insurance/MsgCreateInsuranceFund", "cosmos.msg.v1.signer": ["sender"] });
    }
    create(value?: PartialMessage<MsgCreateInsuranceFund>): MsgCreateInsuranceFund {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.sender = "";
        message.ticker = "";
        message.quoteDenom = "";
        message.oracleBase = "";
        message.oracleQuote = "";
        message.oracleType = 0;
        message.expiry = 0n;
        if (value !== undefined)
            reflectionMergePartial<MsgCreateInsuranceFund>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgCreateInsuranceFund): MsgCreateInsuranceFund {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string sender */ 1:
                    message.sender = reader.string();
                    break;
                case /* string ticker */ 2:
                    message.ticker = reader.string();
                    break;
                case /* string quote_denom */ 3:
                    message.quoteDenom = reader.string();
                    break;
                case /* string oracle_base */ 4:
                    message.oracleBase = reader.string();
                    break;
                case /* string oracle_quote */ 5:
                    message.oracleQuote = reader.string();
                    break;
                case /* injective.oracle.v1beta1.OracleType oracle_type */ 6:
                    message.oracleType = reader.int32();
                    break;
                case /* int64 expiry */ 7:
                    message.expiry = reader.int64().toBigInt();
                    break;
                case /* cosmos.base.v1beta1.Coin initial_deposit */ 8:
                    message.initialDeposit = Coin.internalBinaryRead(reader, reader.uint32(), options, message.initialDeposit);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgCreateInsuranceFund, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string sender = 1; */
        if (message.sender !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.sender);
        /* string ticker = 2; */
        if (message.ticker !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.ticker);
        /* string quote_denom = 3; */
        if (message.quoteDenom !== "")
            writer.tag(3, WireType.LengthDelimited).string(message.quoteDenom);
        /* string oracle_base = 4; */
        if (message.oracleBase !== "")
            writer.tag(4, WireType.LengthDelimited).string(message.oracleBase);
        /* string oracle_quote = 5; */
        if (message.oracleQuote !== "")
            writer.tag(5, WireType.LengthDelimited).string(message.oracleQuote);
        /* injective.oracle.v1beta1.OracleType oracle_type = 6; */
        if (message.oracleType !== 0)
            writer.tag(6, WireType.Varint).int32(message.oracleType);
        /* int64 expiry = 7; */
        if (message.expiry !== 0n)
            writer.tag(7, WireType.Varint).int64(message.expiry);
        /* cosmos.base.v1beta1.Coin initial_deposit = 8; */
        if (message.initialDeposit)
            Coin.internalBinaryWrite(message.initialDeposit, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgCreateInsuranceFund
 */
export const MsgCreateInsuranceFund = new MsgCreateInsuranceFund$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgCreateInsuranceFundResponse$Type extends MessageType<MsgCreateInsuranceFundResponse> {
    constructor() {
        super("injective.insurance.v1beta1.MsgCreateInsuranceFundResponse", []);
    }
    create(value?: PartialMessage<MsgCreateInsuranceFundResponse>): MsgCreateInsuranceFundResponse {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<MsgCreateInsuranceFundResponse>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgCreateInsuranceFundResponse): MsgCreateInsuranceFundResponse {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgCreateInsuranceFundResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgCreateInsuranceFundResponse
 */
export const MsgCreateInsuranceFundResponse = new MsgCreateInsuranceFundResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgUnderwrite$Type extends MessageType<MsgUnderwrite> {
    constructor() {
        super("injective.insurance.v1beta1.MsgUnderwrite", [
            { no: 1, name: "sender", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "deposit", kind: "message", T: () => Coin, options: { "gogoproto.nullable": false } }
        ], { "gogoproto.goproto_getters": false, "gogoproto.equal": false, "amino.name": "insurance/MsgUnderwrite", "cosmos.msg.v1.signer": ["sender"] });
    }
    create(value?: PartialMessage<MsgUnderwrite>): MsgUnderwrite {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.sender = "";
        message.marketId = "";
        if (value !== undefined)
            reflectionMergePartial<MsgUnderwrite>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgUnderwrite): MsgUnderwrite {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string sender */ 1:
                    message.sender = reader.string();
                    break;
                case /* string market_id */ 2:
                    message.marketId = reader.string();
                    break;
                case /* cosmos.base.v1beta1.Coin deposit */ 3:
                    message.deposit = Coin.internalBinaryRead(reader, reader.uint32(), options, message.deposit);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgUnderwrite, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string sender = 1; */
        if (message.sender !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.sender);
        /* string market_id = 2; */
        if (message.marketId !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.marketId);
        /* cosmos.base.v1beta1.Coin deposit = 3; */
        if (message.deposit)
            Coin.internalBinaryWrite(message.deposit, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgUnderwrite
 */
export const MsgUnderwrite = new MsgUnderwrite$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgUnderwriteResponse$Type extends MessageType<MsgUnderwriteResponse> {
    constructor() {
        super("injective.insurance.v1beta1.MsgUnderwriteResponse", []);
    }
    create(value?: PartialMessage<MsgUnderwriteResponse>): MsgUnderwriteResponse {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<MsgUnderwriteResponse>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgUnderwriteResponse): MsgUnderwriteResponse {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgUnderwriteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgUnderwriteResponse
 */
export const MsgUnderwriteResponse = new MsgUnderwriteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgRequestRedemption$Type extends MessageType<MsgRequestRedemption> {
    constructor() {
        super("injective.insurance.v1beta1.MsgRequestRedemption", [
            { no: 1, name: "sender", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "market_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 3, name: "amount", kind: "message", T: () => Coin, options: { "gogoproto.nullable": false } }
        ], { "gogoproto.goproto_getters": false, "gogoproto.equal": false, "amino.name": "insurance/MsgRequestRedemption", "cosmos.msg.v1.signer": ["sender"] });
    }
    create(value?: PartialMessage<MsgRequestRedemption>): MsgRequestRedemption {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.sender = "";
        message.marketId = "";
        if (value !== undefined)
            reflectionMergePartial<MsgRequestRedemption>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgRequestRedemption): MsgRequestRedemption {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string sender */ 1:
                    message.sender = reader.string();
                    break;
                case /* string market_id */ 2:
                    message.marketId = reader.string();
                    break;
                case /* cosmos.base.v1beta1.Coin amount */ 3:
                    message.amount = Coin.internalBinaryRead(reader, reader.uint32(), options, message.amount);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgRequestRedemption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string sender = 1; */
        if (message.sender !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.sender);
        /* string market_id = 2; */
        if (message.marketId !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.marketId);
        /* cosmos.base.v1beta1.Coin amount = 3; */
        if (message.amount)
            Coin.internalBinaryWrite(message.amount, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgRequestRedemption
 */
export const MsgRequestRedemption = new MsgRequestRedemption$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgRequestRedemptionResponse$Type extends MessageType<MsgRequestRedemptionResponse> {
    constructor() {
        super("injective.insurance.v1beta1.MsgRequestRedemptionResponse", []);
    }
    create(value?: PartialMessage<MsgRequestRedemptionResponse>): MsgRequestRedemptionResponse {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<MsgRequestRedemptionResponse>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgRequestRedemptionResponse): MsgRequestRedemptionResponse {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgRequestRedemptionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgRequestRedemptionResponse
 */
export const MsgRequestRedemptionResponse = new MsgRequestRedemptionResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgUpdateParams$Type extends MessageType<MsgUpdateParams> {
    constructor() {
        super("injective.insurance.v1beta1.MsgUpdateParams", [
            { no: 1, name: "authority", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "cosmos_proto.scalar": "cosmos.AddressString" } },
            { no: 2, name: "params", kind: "message", T: () => Params, options: { "gogoproto.nullable": false } }
        ], { "amino.name": "insurance/MsgUpdateParams", "cosmos.msg.v1.signer": ["authority"] });
    }
    create(value?: PartialMessage<MsgUpdateParams>): MsgUpdateParams {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.authority = "";
        if (value !== undefined)
            reflectionMergePartial<MsgUpdateParams>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgUpdateParams): MsgUpdateParams {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string authority */ 1:
                    message.authority = reader.string();
                    break;
                case /* injective.insurance.v1beta1.Params params */ 2:
                    message.params = Params.internalBinaryRead(reader, reader.uint32(), options, message.params);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgUpdateParams, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string authority = 1; */
        if (message.authority !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.authority);
        /* injective.insurance.v1beta1.Params params = 2; */
        if (message.params)
            Params.internalBinaryWrite(message.params, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgUpdateParams
 */
export const MsgUpdateParams = new MsgUpdateParams$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgUpdateParamsResponse$Type extends MessageType<MsgUpdateParamsResponse> {
    constructor() {
        super("injective.insurance.v1beta1.MsgUpdateParamsResponse", []);
    }
    create(value?: PartialMessage<MsgUpdateParamsResponse>): MsgUpdateParamsResponse {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<MsgUpdateParamsResponse>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgUpdateParamsResponse): MsgUpdateParamsResponse {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgUpdateParamsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgUpdateParamsResponse
 */
export const MsgUpdateParamsResponse = new MsgUpdateParamsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgClaimVoucher$Type extends MessageType<MsgClaimVoucher> {
    constructor() {
        super("injective.insurance.v1beta1.MsgClaimVoucher", [
            { no: 1, name: "sender", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
        ], { "gogoproto.goproto_getters": false, "gogoproto.equal": false, "amino.name": "insurance/MsgClaimVoucher", "cosmos.msg.v1.signer": ["sender"] });
    }
    create(value?: PartialMessage<MsgClaimVoucher>): MsgClaimVoucher {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.sender = "";
        message.denom = "";
        if (value !== undefined)
            reflectionMergePartial<MsgClaimVoucher>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgClaimVoucher): MsgClaimVoucher {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string sender */ 1:
                    message.sender = reader.string();
                    break;
                case /* string denom */ 2:
                    message.denom = reader.string();
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgClaimVoucher, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string sender = 1; */
        if (message.sender !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.sender);
        /* string denom = 2; */
        if (message.denom !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.denom);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgClaimVoucher
 */
export const MsgClaimVoucher = new MsgClaimVoucher$Type();
// @generated message type with reflection information, may provide speed optimized methods
class MsgClaimVoucherResponse$Type extends MessageType<MsgClaimVoucherResponse> {
    constructor() {
        super("injective.insurance.v1beta1.MsgClaimVoucherResponse", []);
    }
    create(value?: PartialMessage<MsgClaimVoucherResponse>): MsgClaimVoucherResponse {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<MsgClaimVoucherResponse>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MsgClaimVoucherResponse): MsgClaimVoucherResponse {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: MsgClaimVoucherResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message injective.insurance.v1beta1.MsgClaimVoucherResponse
 */
export const MsgClaimVoucherResponse = new MsgClaimVoucherResponse$Type();
/**
 * @generated ServiceType for protobuf service injective.insurance.v1beta1.Msg
 */
export const Msg = new ServiceType("injective.insurance.v1beta1.Msg", [
    { name: "CreateInsuranceFund", options: {}, I: MsgCreateInsuranceFund, O: MsgCreateInsuranceFundResponse },
    { name: "Underwrite", options: {}, I: MsgUnderwrite, O: MsgUnderwriteResponse },
    { name: "RequestRedemption", options: {}, I: MsgRequestRedemption, O: MsgRequestRedemptionResponse },
    { name: "UpdateParams", options: {}, I: MsgUpdateParams, O: MsgUpdateParamsResponse },
    { name: "ClaimVoucher", options: {}, I: MsgClaimVoucher, O: MsgClaimVoucherResponse }
], { "cosmos.msg.v1.service": true });
