From 2c2d637ae48f4c249fe3af0622f346e3a8945a1b Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 11 Jun 2020 13:45:04 +0100 Subject: [PATCH] protobuf-demo: Add generated types --- .../types/generated/codecimpl.d.ts | 25439 ++++++++++++++++ 1 file changed, 25439 insertions(+) create mode 100644 packages/protobuf-demo/types/generated/codecimpl.d.ts diff --git a/packages/protobuf-demo/types/generated/codecimpl.d.ts b/packages/protobuf-demo/types/generated/codecimpl.d.ts new file mode 100644 index 00000000..15ba3fec --- /dev/null +++ b/packages/protobuf-demo/types/generated/codecimpl.d.ts @@ -0,0 +1,25439 @@ +import * as $protobuf from "protobufjs"; +/** Namespace cosmos_sdk. */ +export namespace cosmos_sdk { + /** Namespace codec. */ + namespace codec { + /** Namespace v1. */ + namespace v1 { + /** Properties of a Dog. */ + interface IDog { + /** Dog size */ + size?: string | null; + + /** Dog name */ + name?: string | null; + } + + /** Represents a Dog. */ + class Dog implements IDog { + /** + * Constructs a new Dog. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.IDog); + + /** Dog size. */ + public size: string; + + /** Dog name. */ + public name: string; + + /** + * Creates a new Dog instance using the specified properties. + * @param [properties] Properties to set + * @returns Dog instance + */ + public static create(properties?: cosmos_sdk.codec.v1.IDog): cosmos_sdk.codec.v1.Dog; + + /** + * Encodes the specified Dog message. Does not implicitly {@link cosmos_sdk.codec.v1.Dog.verify|verify} messages. + * @param message Dog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.codec.v1.IDog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Dog message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.Dog.verify|verify} messages. + * @param message Dog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.IDog, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Dog message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Dog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.codec.v1.Dog; + + /** + * Decodes a Dog message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Dog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.codec.v1.Dog; + + /** + * Verifies a Dog message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Dog message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Dog + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.Dog; + + /** + * Creates a plain object from a Dog message. Also converts values to other types if specified. + * @param message Dog + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.Dog, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Dog to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Cat. */ + interface ICat { + /** Cat moniker */ + moniker?: string | null; + + /** Cat lives */ + lives?: number | null; + } + + /** Represents a Cat. */ + class Cat implements ICat { + /** + * Constructs a new Cat. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.ICat); + + /** Cat moniker. */ + public moniker: string; + + /** Cat lives. */ + public lives: number; + + /** + * Creates a new Cat instance using the specified properties. + * @param [properties] Properties to set + * @returns Cat instance + */ + public static create(properties?: cosmos_sdk.codec.v1.ICat): cosmos_sdk.codec.v1.Cat; + + /** + * Encodes the specified Cat message. Does not implicitly {@link cosmos_sdk.codec.v1.Cat.verify|verify} messages. + * @param message Cat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.codec.v1.ICat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Cat message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.Cat.verify|verify} messages. + * @param message Cat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.ICat, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Cat message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Cat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.codec.v1.Cat; + + /** + * Decodes a Cat message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Cat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.codec.v1.Cat; + + /** + * Verifies a Cat message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Cat message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Cat + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.Cat; + + /** + * Creates a plain object from a Cat message. Also converts values to other types if specified. + * @param message Cat + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.Cat, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Cat to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HasAnimal. */ + interface IHasAnimal { + /** HasAnimal animal */ + animal?: google.protobuf.IAny | null; + + /** HasAnimal x */ + x?: number | Long | null; + } + + /** Represents a HasAnimal. */ + class HasAnimal implements IHasAnimal { + /** + * Constructs a new HasAnimal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.IHasAnimal); + + /** HasAnimal animal. */ + public animal?: google.protobuf.IAny | null; + + /** HasAnimal x. */ + public x: number | Long; + + /** + * Creates a new HasAnimal instance using the specified properties. + * @param [properties] Properties to set + * @returns HasAnimal instance + */ + public static create(properties?: cosmos_sdk.codec.v1.IHasAnimal): cosmos_sdk.codec.v1.HasAnimal; + + /** + * Encodes the specified HasAnimal message. Does not implicitly {@link cosmos_sdk.codec.v1.HasAnimal.verify|verify} messages. + * @param message HasAnimal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.IHasAnimal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified HasAnimal message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.HasAnimal.verify|verify} messages. + * @param message HasAnimal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.IHasAnimal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a HasAnimal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HasAnimal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.HasAnimal; + + /** + * Decodes a HasAnimal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HasAnimal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.codec.v1.HasAnimal; + + /** + * Verifies a HasAnimal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a HasAnimal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HasAnimal + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.HasAnimal; + + /** + * Creates a plain object from a HasAnimal message. Also converts values to other types if specified. + * @param message HasAnimal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.HasAnimal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this HasAnimal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HasHasAnimal. */ + interface IHasHasAnimal { + /** HasHasAnimal hasAnimal */ + hasAnimal?: google.protobuf.IAny | null; + } + + /** Represents a HasHasAnimal. */ + class HasHasAnimal implements IHasHasAnimal { + /** + * Constructs a new HasHasAnimal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.IHasHasAnimal); + + /** HasHasAnimal hasAnimal. */ + public hasAnimal?: google.protobuf.IAny | null; + + /** + * Creates a new HasHasAnimal instance using the specified properties. + * @param [properties] Properties to set + * @returns HasHasAnimal instance + */ + public static create( + properties?: cosmos_sdk.codec.v1.IHasHasAnimal, + ): cosmos_sdk.codec.v1.HasHasAnimal; + + /** + * Encodes the specified HasHasAnimal message. Does not implicitly {@link cosmos_sdk.codec.v1.HasHasAnimal.verify|verify} messages. + * @param message HasHasAnimal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.IHasHasAnimal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified HasHasAnimal message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.HasHasAnimal.verify|verify} messages. + * @param message HasHasAnimal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.IHasHasAnimal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a HasHasAnimal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HasHasAnimal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.HasHasAnimal; + + /** + * Decodes a HasHasAnimal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HasHasAnimal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.codec.v1.HasHasAnimal; + + /** + * Verifies a HasHasAnimal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a HasHasAnimal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HasHasAnimal + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.HasHasAnimal; + + /** + * Creates a plain object from a HasHasAnimal message. Also converts values to other types if specified. + * @param message HasHasAnimal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.HasHasAnimal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this HasHasAnimal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HasHasHasAnimal. */ + interface IHasHasHasAnimal { + /** HasHasHasAnimal hasHasAnimal */ + hasHasAnimal?: google.protobuf.IAny | null; + } + + /** Represents a HasHasHasAnimal. */ + class HasHasHasAnimal implements IHasHasHasAnimal { + /** + * Constructs a new HasHasHasAnimal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.IHasHasHasAnimal); + + /** HasHasHasAnimal hasHasAnimal. */ + public hasHasAnimal?: google.protobuf.IAny | null; + + /** + * Creates a new HasHasHasAnimal instance using the specified properties. + * @param [properties] Properties to set + * @returns HasHasHasAnimal instance + */ + public static create( + properties?: cosmos_sdk.codec.v1.IHasHasHasAnimal, + ): cosmos_sdk.codec.v1.HasHasHasAnimal; + + /** + * Encodes the specified HasHasHasAnimal message. Does not implicitly {@link cosmos_sdk.codec.v1.HasHasHasAnimal.verify|verify} messages. + * @param message HasHasHasAnimal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.IHasHasHasAnimal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified HasHasHasAnimal message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.HasHasHasAnimal.verify|verify} messages. + * @param message HasHasHasAnimal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.IHasHasHasAnimal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a HasHasHasAnimal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HasHasHasAnimal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.HasHasHasAnimal; + + /** + * Decodes a HasHasHasAnimal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HasHasHasAnimal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.codec.v1.HasHasHasAnimal; + + /** + * Verifies a HasHasHasAnimal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a HasHasHasAnimal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HasHasHasAnimal + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.HasHasHasAnimal; + + /** + * Creates a plain object from a HasHasHasAnimal message. Also converts values to other types if specified. + * @param message HasHasHasAnimal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.HasHasHasAnimal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this HasHasHasAnimal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents a TestService */ + class TestService extends $protobuf.rpc.Service { + /** + * Constructs a new TestService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new TestService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): TestService; + + /** + * Calls Echo. + * @param request EchoRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EchoResponse + */ + public echo( + request: cosmos_sdk.codec.v1.IEchoRequest, + callback: cosmos_sdk.codec.v1.TestService.EchoCallback, + ): void; + + /** + * Calls Echo. + * @param request EchoRequest message or plain object + * @returns Promise + */ + public echo(request: cosmos_sdk.codec.v1.IEchoRequest): Promise; + + /** + * Calls SayHello. + * @param request SayHelloRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SayHelloResponse + */ + public sayHello( + request: cosmos_sdk.codec.v1.ISayHelloRequest, + callback: cosmos_sdk.codec.v1.TestService.SayHelloCallback, + ): void; + + /** + * Calls SayHello. + * @param request SayHelloRequest message or plain object + * @returns Promise + */ + public sayHello( + request: cosmos_sdk.codec.v1.ISayHelloRequest, + ): Promise; + } + + namespace TestService { + /** + * Callback as used by {@link cosmos_sdk.codec.v1.TestService#echo}. + * @param error Error, if any + * @param [response] EchoResponse + */ + type EchoCallback = (error: Error | null, response?: cosmos_sdk.codec.v1.EchoResponse) => void; + + /** + * Callback as used by {@link cosmos_sdk.codec.v1.TestService#sayHello}. + * @param error Error, if any + * @param [response] SayHelloResponse + */ + type SayHelloCallback = ( + error: Error | null, + response?: cosmos_sdk.codec.v1.SayHelloResponse, + ) => void; + } + + /** Properties of an EchoRequest. */ + interface IEchoRequest { + /** EchoRequest message */ + message?: string | null; + } + + /** Represents an EchoRequest. */ + class EchoRequest implements IEchoRequest { + /** + * Constructs a new EchoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.IEchoRequest); + + /** EchoRequest message. */ + public message: string; + + /** + * Creates a new EchoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EchoRequest instance + */ + public static create(properties?: cosmos_sdk.codec.v1.IEchoRequest): cosmos_sdk.codec.v1.EchoRequest; + + /** + * Encodes the specified EchoRequest message. Does not implicitly {@link cosmos_sdk.codec.v1.EchoRequest.verify|verify} messages. + * @param message EchoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.IEchoRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EchoRequest message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.EchoRequest.verify|verify} messages. + * @param message EchoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.IEchoRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EchoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EchoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.EchoRequest; + + /** + * Decodes an EchoRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EchoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.codec.v1.EchoRequest; + + /** + * Verifies an EchoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EchoRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EchoRequest + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.EchoRequest; + + /** + * Creates a plain object from an EchoRequest message. Also converts values to other types if specified. + * @param message EchoRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.EchoRequest, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EchoRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EchoResponse. */ + interface IEchoResponse { + /** EchoResponse message */ + message?: string | null; + } + + /** Represents an EchoResponse. */ + class EchoResponse implements IEchoResponse { + /** + * Constructs a new EchoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.IEchoResponse); + + /** EchoResponse message. */ + public message: string; + + /** + * Creates a new EchoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EchoResponse instance + */ + public static create( + properties?: cosmos_sdk.codec.v1.IEchoResponse, + ): cosmos_sdk.codec.v1.EchoResponse; + + /** + * Encodes the specified EchoResponse message. Does not implicitly {@link cosmos_sdk.codec.v1.EchoResponse.verify|verify} messages. + * @param message EchoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.IEchoResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EchoResponse message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.EchoResponse.verify|verify} messages. + * @param message EchoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.IEchoResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EchoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EchoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.EchoResponse; + + /** + * Decodes an EchoResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EchoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.codec.v1.EchoResponse; + + /** + * Verifies an EchoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EchoResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EchoResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.EchoResponse; + + /** + * Creates a plain object from an EchoResponse message. Also converts values to other types if specified. + * @param message EchoResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.EchoResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EchoResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SayHelloRequest. */ + interface ISayHelloRequest { + /** SayHelloRequest name */ + name?: string | null; + } + + /** Represents a SayHelloRequest. */ + class SayHelloRequest implements ISayHelloRequest { + /** + * Constructs a new SayHelloRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.ISayHelloRequest); + + /** SayHelloRequest name. */ + public name: string; + + /** + * Creates a new SayHelloRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SayHelloRequest instance + */ + public static create( + properties?: cosmos_sdk.codec.v1.ISayHelloRequest, + ): cosmos_sdk.codec.v1.SayHelloRequest; + + /** + * Encodes the specified SayHelloRequest message. Does not implicitly {@link cosmos_sdk.codec.v1.SayHelloRequest.verify|verify} messages. + * @param message SayHelloRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.ISayHelloRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified SayHelloRequest message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.SayHelloRequest.verify|verify} messages. + * @param message SayHelloRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.ISayHelloRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SayHelloRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SayHelloRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.SayHelloRequest; + + /** + * Decodes a SayHelloRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SayHelloRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.codec.v1.SayHelloRequest; + + /** + * Verifies a SayHelloRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SayHelloRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SayHelloRequest + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.SayHelloRequest; + + /** + * Creates a plain object from a SayHelloRequest message. Also converts values to other types if specified. + * @param message SayHelloRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.SayHelloRequest, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SayHelloRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SayHelloResponse. */ + interface ISayHelloResponse { + /** SayHelloResponse greeting */ + greeting?: string | null; + } + + /** Represents a SayHelloResponse. */ + class SayHelloResponse implements ISayHelloResponse { + /** + * Constructs a new SayHelloResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.codec.v1.ISayHelloResponse); + + /** SayHelloResponse greeting. */ + public greeting: string; + + /** + * Creates a new SayHelloResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SayHelloResponse instance + */ + public static create( + properties?: cosmos_sdk.codec.v1.ISayHelloResponse, + ): cosmos_sdk.codec.v1.SayHelloResponse; + + /** + * Encodes the specified SayHelloResponse message. Does not implicitly {@link cosmos_sdk.codec.v1.SayHelloResponse.verify|verify} messages. + * @param message SayHelloResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.codec.v1.ISayHelloResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified SayHelloResponse message, length delimited. Does not implicitly {@link cosmos_sdk.codec.v1.SayHelloResponse.verify|verify} messages. + * @param message SayHelloResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.codec.v1.ISayHelloResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SayHelloResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SayHelloResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.codec.v1.SayHelloResponse; + + /** + * Decodes a SayHelloResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SayHelloResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.codec.v1.SayHelloResponse; + + /** + * Verifies a SayHelloResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SayHelloResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SayHelloResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.codec.v1.SayHelloResponse; + + /** + * Creates a plain object from a SayHelloResponse message. Also converts values to other types if specified. + * @param message SayHelloResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.codec.v1.SayHelloResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SayHelloResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace crypto. */ + namespace crypto { + /** Namespace v1. */ + namespace v1 { + /** Properties of a PublicKey. */ + interface IPublicKey { + /** PublicKey secp256k1 */ + secp256k1?: Uint8Array | null; + + /** PublicKey ed25519 */ + ed25519?: Uint8Array | null; + + /** PublicKey sr25519 */ + sr25519?: Uint8Array | null; + + /** PublicKey multisig */ + multisig?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold | null; + + /** PublicKey secp256r1 */ + secp256r1?: Uint8Array | null; + + /** PublicKey anyPubkey */ + anyPubkey?: google.protobuf.IAny | null; + } + + /** Represents a PublicKey. */ + class PublicKey implements IPublicKey { + /** + * Constructs a new PublicKey. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.crypto.v1.IPublicKey); + + /** PublicKey secp256k1. */ + public secp256k1: Uint8Array; + + /** PublicKey ed25519. */ + public ed25519: Uint8Array; + + /** PublicKey sr25519. */ + public sr25519: Uint8Array; + + /** PublicKey multisig. */ + public multisig?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold | null; + + /** PublicKey secp256r1. */ + public secp256r1: Uint8Array; + + /** PublicKey anyPubkey. */ + public anyPubkey?: google.protobuf.IAny | null; + + /** PublicKey sum. */ + public sum?: "secp256k1" | "ed25519" | "sr25519" | "multisig" | "secp256r1" | "anyPubkey"; + + /** + * Creates a new PublicKey instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicKey instance + */ + public static create(properties?: cosmos_sdk.crypto.v1.IPublicKey): cosmos_sdk.crypto.v1.PublicKey; + + /** + * Encodes the specified PublicKey message. Does not implicitly {@link cosmos_sdk.crypto.v1.PublicKey.verify|verify} messages. + * @param message PublicKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.crypto.v1.IPublicKey, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified PublicKey message, length delimited. Does not implicitly {@link cosmos_sdk.crypto.v1.PublicKey.verify|verify} messages. + * @param message PublicKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.crypto.v1.IPublicKey, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PublicKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublicKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.crypto.v1.PublicKey; + + /** + * Decodes a PublicKey message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PublicKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.crypto.v1.PublicKey; + + /** + * Verifies a PublicKey message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a PublicKey message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PublicKey + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.crypto.v1.PublicKey; + + /** + * Creates a plain object from a PublicKey message. Also converts values to other types if specified. + * @param message PublicKey + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.crypto.v1.PublicKey, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this PublicKey to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PubKeyMultisigThreshold. */ + interface IPubKeyMultisigThreshold { + /** PubKeyMultisigThreshold threshold */ + threshold?: number | null; + + /** PubKeyMultisigThreshold pubkeys */ + pubkeys?: cosmos_sdk.crypto.v1.IPublicKey[] | null; + } + + /** Represents a PubKeyMultisigThreshold. */ + class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { + /** + * Constructs a new PubKeyMultisigThreshold. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold); + + /** PubKeyMultisigThreshold threshold. */ + public threshold: number; + + /** PubKeyMultisigThreshold pubkeys. */ + public pubkeys: cosmos_sdk.crypto.v1.IPublicKey[]; + + /** + * Creates a new PubKeyMultisigThreshold instance using the specified properties. + * @param [properties] Properties to set + * @returns PubKeyMultisigThreshold instance + */ + public static create( + properties?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold, + ): cosmos_sdk.crypto.v1.PubKeyMultisigThreshold; + + /** + * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.verify|verify} messages. + * @param message PubKeyMultisigThreshold message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified PubKeyMultisigThreshold message, length delimited. Does not implicitly {@link cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.verify|verify} messages. + * @param message PubKeyMultisigThreshold message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PubKeyMultisigThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.crypto.v1.PubKeyMultisigThreshold; + + /** + * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PubKeyMultisigThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.crypto.v1.PubKeyMultisigThreshold; + + /** + * Verifies a PubKeyMultisigThreshold message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a PubKeyMultisigThreshold message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PubKeyMultisigThreshold + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.crypto.v1.PubKeyMultisigThreshold; + + /** + * Creates a plain object from a PubKeyMultisigThreshold message. Also converts values to other types if specified. + * @param message PubKeyMultisigThreshold + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.crypto.v1.PubKeyMultisigThreshold, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this PubKeyMultisigThreshold to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MultiSignature. */ + interface IMultiSignature { + /** MultiSignature sigs */ + sigs?: Uint8Array[] | null; + } + + /** Represents a MultiSignature. */ + class MultiSignature implements IMultiSignature { + /** + * Constructs a new MultiSignature. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.crypto.v1.IMultiSignature); + + /** MultiSignature sigs. */ + public sigs: Uint8Array[]; + + /** + * Creates a new MultiSignature instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiSignature instance + */ + public static create( + properties?: cosmos_sdk.crypto.v1.IMultiSignature, + ): cosmos_sdk.crypto.v1.MultiSignature; + + /** + * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos_sdk.crypto.v1.MultiSignature.verify|verify} messages. + * @param message MultiSignature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.crypto.v1.IMultiSignature, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MultiSignature message, length delimited. Does not implicitly {@link cosmos_sdk.crypto.v1.MultiSignature.verify|verify} messages. + * @param message MultiSignature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.crypto.v1.IMultiSignature, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MultiSignature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.crypto.v1.MultiSignature; + + /** + * Decodes a MultiSignature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.crypto.v1.MultiSignature; + + /** + * Verifies a MultiSignature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MultiSignature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiSignature + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.crypto.v1.MultiSignature; + + /** + * Creates a plain object from a MultiSignature message. Also converts values to other types if specified. + * @param message MultiSignature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.crypto.v1.MultiSignature, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MultiSignature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CompactBitArray. */ + interface ICompactBitArray { + /** CompactBitArray extraBitsStored */ + extraBitsStored?: number | null; + + /** CompactBitArray elems */ + elems?: Uint8Array | null; + } + + /** Represents a CompactBitArray. */ + class CompactBitArray implements ICompactBitArray { + /** + * Constructs a new CompactBitArray. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.crypto.v1.ICompactBitArray); + + /** CompactBitArray extraBitsStored. */ + public extraBitsStored: number; + + /** CompactBitArray elems. */ + public elems: Uint8Array; + + /** + * Creates a new CompactBitArray instance using the specified properties. + * @param [properties] Properties to set + * @returns CompactBitArray instance + */ + public static create( + properties?: cosmos_sdk.crypto.v1.ICompactBitArray, + ): cosmos_sdk.crypto.v1.CompactBitArray; + + /** + * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos_sdk.crypto.v1.CompactBitArray.verify|verify} messages. + * @param message CompactBitArray message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.crypto.v1.ICompactBitArray, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified CompactBitArray message, length delimited. Does not implicitly {@link cosmos_sdk.crypto.v1.CompactBitArray.verify|verify} messages. + * @param message CompactBitArray message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.crypto.v1.ICompactBitArray, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a CompactBitArray message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompactBitArray + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.crypto.v1.CompactBitArray; + + /** + * Decodes a CompactBitArray message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompactBitArray + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.crypto.v1.CompactBitArray; + + /** + * Verifies a CompactBitArray message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a CompactBitArray message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompactBitArray + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.crypto.v1.CompactBitArray; + + /** + * Creates a plain object from a CompactBitArray message. Also converts values to other types if specified. + * @param message CompactBitArray + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.crypto.v1.CompactBitArray, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this CompactBitArray to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace tx. */ + namespace tx { + /** Namespace v1. */ + namespace v1 { + /** Properties of a Tx. */ + interface ITx { + /** Tx body */ + body?: cosmos_sdk.tx.v1.ITxBody | null; + + /** Tx authInfo */ + authInfo?: cosmos_sdk.tx.v1.IAuthInfo | null; + + /** Tx signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a Tx. */ + class Tx implements ITx { + /** + * Constructs a new Tx. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.ITx); + + /** Tx body. */ + public body?: cosmos_sdk.tx.v1.ITxBody | null; + + /** Tx authInfo. */ + public authInfo?: cosmos_sdk.tx.v1.IAuthInfo | null; + + /** Tx signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new Tx instance using the specified properties. + * @param [properties] Properties to set + * @returns Tx instance + */ + public static create(properties?: cosmos_sdk.tx.v1.ITx): cosmos_sdk.tx.v1.Tx; + + /** + * Encodes the specified Tx message. Does not implicitly {@link cosmos_sdk.tx.v1.Tx.verify|verify} messages. + * @param message Tx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.tx.v1.ITx, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Tx message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.Tx.verify|verify} messages. + * @param message Tx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.ITx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Tx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Tx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.tx.v1.Tx; + + /** + * Decodes a Tx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Tx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.Tx; + + /** + * Verifies a Tx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Tx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Tx + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.Tx; + + /** + * Creates a plain object from a Tx message. Also converts values to other types if specified. + * @param message Tx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.Tx, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Tx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SignDoc. */ + interface ISignDoc { + /** SignDoc body */ + body?: cosmos_sdk.tx.v1.ITxBody | null; + + /** SignDoc authInfo */ + authInfo?: cosmos_sdk.tx.v1.IAuthInfo | null; + + /** SignDoc chainId */ + chainId?: string | null; + + /** SignDoc accountNumber */ + accountNumber?: number | Long | null; + + /** SignDoc accountSequence */ + accountSequence?: number | Long | null; + } + + /** Represents a SignDoc. */ + class SignDoc implements ISignDoc { + /** + * Constructs a new SignDoc. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.ISignDoc); + + /** SignDoc body. */ + public body?: cosmos_sdk.tx.v1.ITxBody | null; + + /** SignDoc authInfo. */ + public authInfo?: cosmos_sdk.tx.v1.IAuthInfo | null; + + /** SignDoc chainId. */ + public chainId: string; + + /** SignDoc accountNumber. */ + public accountNumber: number | Long; + + /** SignDoc accountSequence. */ + public accountSequence: number | Long; + + /** + * Creates a new SignDoc instance using the specified properties. + * @param [properties] Properties to set + * @returns SignDoc instance + */ + public static create(properties?: cosmos_sdk.tx.v1.ISignDoc): cosmos_sdk.tx.v1.SignDoc; + + /** + * Encodes the specified SignDoc message. Does not implicitly {@link cosmos_sdk.tx.v1.SignDoc.verify|verify} messages. + * @param message SignDoc message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.tx.v1.ISignDoc, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SignDoc message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.SignDoc.verify|verify} messages. + * @param message SignDoc message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.ISignDoc, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignDoc message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignDoc + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.tx.v1.SignDoc; + + /** + * Decodes a SignDoc message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SignDoc + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.SignDoc; + + /** + * Verifies a SignDoc message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SignDoc message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SignDoc + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.SignDoc; + + /** + * Creates a plain object from a SignDoc message. Also converts values to other types if specified. + * @param message SignDoc + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.SignDoc, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SignDoc to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TxBody. */ + interface ITxBody { + /** TxBody messages */ + messages?: google.protobuf.IAny[] | null; + + /** TxBody memo */ + memo?: string | null; + + /** TxBody timeoutHeight */ + timeoutHeight?: number | Long | null; + + /** TxBody extensionOptions */ + extensionOptions?: google.protobuf.IAny[] | null; + + /** TxBody nonCriticalExtensionOptions */ + nonCriticalExtensionOptions?: google.protobuf.IAny[] | null; + } + + /** Represents a TxBody. */ + class TxBody implements ITxBody { + /** + * Constructs a new TxBody. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.ITxBody); + + /** TxBody messages. */ + public messages: google.protobuf.IAny[]; + + /** TxBody memo. */ + public memo: string; + + /** TxBody timeoutHeight. */ + public timeoutHeight: number | Long; + + /** TxBody extensionOptions. */ + public extensionOptions: google.protobuf.IAny[]; + + /** TxBody nonCriticalExtensionOptions. */ + public nonCriticalExtensionOptions: google.protobuf.IAny[]; + + /** + * Creates a new TxBody instance using the specified properties. + * @param [properties] Properties to set + * @returns TxBody instance + */ + public static create(properties?: cosmos_sdk.tx.v1.ITxBody): cosmos_sdk.tx.v1.TxBody; + + /** + * Encodes the specified TxBody message. Does not implicitly {@link cosmos_sdk.tx.v1.TxBody.verify|verify} messages. + * @param message TxBody message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.tx.v1.ITxBody, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TxBody message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.TxBody.verify|verify} messages. + * @param message TxBody message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.ITxBody, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a TxBody message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TxBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.tx.v1.TxBody; + + /** + * Decodes a TxBody message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TxBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.TxBody; + + /** + * Verifies a TxBody message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a TxBody message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TxBody + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.TxBody; + + /** + * Creates a plain object from a TxBody message. Also converts values to other types if specified. + * @param message TxBody + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.TxBody, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this TxBody to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AuthInfo. */ + interface IAuthInfo { + /** AuthInfo signerInfos */ + signerInfos?: cosmos_sdk.tx.v1.ISignerInfo[] | null; + + /** AuthInfo fee */ + fee?: cosmos_sdk.tx.v1.IFee | null; + } + + /** Represents an AuthInfo. */ + class AuthInfo implements IAuthInfo { + /** + * Constructs a new AuthInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.IAuthInfo); + + /** AuthInfo signerInfos. */ + public signerInfos: cosmos_sdk.tx.v1.ISignerInfo[]; + + /** AuthInfo fee. */ + public fee?: cosmos_sdk.tx.v1.IFee | null; + + /** + * Creates a new AuthInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthInfo instance + */ + public static create(properties?: cosmos_sdk.tx.v1.IAuthInfo): cosmos_sdk.tx.v1.AuthInfo; + + /** + * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos_sdk.tx.v1.AuthInfo.verify|verify} messages. + * @param message AuthInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.tx.v1.IAuthInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified AuthInfo message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.AuthInfo.verify|verify} messages. + * @param message AuthInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.IAuthInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an AuthInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuthInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.tx.v1.AuthInfo; + + /** + * Decodes an AuthInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuthInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.AuthInfo; + + /** + * Verifies an AuthInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an AuthInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuthInfo + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.AuthInfo; + + /** + * Creates a plain object from an AuthInfo message. Also converts values to other types if specified. + * @param message AuthInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.AuthInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this AuthInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SignerInfo. */ + interface ISignerInfo { + /** SignerInfo publicKey */ + publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo */ + modeInfo?: cosmos_sdk.tx.v1.IModeInfo | null; + } + + /** Represents a SignerInfo. */ + class SignerInfo implements ISignerInfo { + /** + * Constructs a new SignerInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.ISignerInfo); + + /** SignerInfo publicKey. */ + public publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo. */ + public modeInfo?: cosmos_sdk.tx.v1.IModeInfo | null; + + /** + * Creates a new SignerInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SignerInfo instance + */ + public static create(properties?: cosmos_sdk.tx.v1.ISignerInfo): cosmos_sdk.tx.v1.SignerInfo; + + /** + * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos_sdk.tx.v1.SignerInfo.verify|verify} messages. + * @param message SignerInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.tx.v1.ISignerInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified SignerInfo message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.SignerInfo.verify|verify} messages. + * @param message SignerInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.ISignerInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignerInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignerInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.tx.v1.SignerInfo; + + /** + * Decodes a SignerInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SignerInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.SignerInfo; + + /** + * Verifies a SignerInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SignerInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SignerInfo + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.SignerInfo; + + /** + * Creates a plain object from a SignerInfo message. Also converts values to other types if specified. + * @param message SignerInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.SignerInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SignerInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ModeInfo. */ + interface IModeInfo { + /** ModeInfo single */ + single?: cosmos_sdk.tx.v1.ModeInfo.ISingle | null; + + /** ModeInfo multi */ + multi?: cosmos_sdk.tx.v1.ModeInfo.IMulti | null; + } + + /** Represents a ModeInfo. */ + class ModeInfo implements IModeInfo { + /** + * Constructs a new ModeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.IModeInfo); + + /** ModeInfo single. */ + public single?: cosmos_sdk.tx.v1.ModeInfo.ISingle | null; + + /** ModeInfo multi. */ + public multi?: cosmos_sdk.tx.v1.ModeInfo.IMulti | null; + + /** ModeInfo sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new ModeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ModeInfo instance + */ + public static create(properties?: cosmos_sdk.tx.v1.IModeInfo): cosmos_sdk.tx.v1.ModeInfo; + + /** + * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.verify|verify} messages. + * @param message ModeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.tx.v1.IModeInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ModeInfo message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.verify|verify} messages. + * @param message ModeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.IModeInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ModeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.tx.v1.ModeInfo; + + /** + * Decodes a ModeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.ModeInfo; + + /** + * Verifies a ModeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ModeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModeInfo + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.ModeInfo; + + /** + * Creates a plain object from a ModeInfo message. Also converts values to other types if specified. + * @param message ModeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.ModeInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ModeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ModeInfo { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos_sdk.tx.v1.SignMode | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.ModeInfo.ISingle); + + /** Single mode. */ + public mode: cosmos_sdk.tx.v1.SignMode; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos_sdk.tx.v1.ModeInfo.ISingle, + ): cosmos_sdk.tx.v1.ModeInfo.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.Single.verify|verify} messages. + * @param message Single message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.tx.v1.ModeInfo.ISingle, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Single message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.Single.verify|verify} messages. + * @param message Single message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.ModeInfo.ISingle, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Single message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Single + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.tx.v1.ModeInfo.Single; + + /** + * Decodes a Single message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Single + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.tx.v1.ModeInfo.Single; + + /** + * Verifies a Single message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Single message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Single + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.ModeInfo.Single; + + /** + * Creates a plain object from a Single message. Also converts values to other types if specified. + * @param message Single + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.ModeInfo.Single, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Single to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos_sdk.crypto.v1.ICompactBitArray | null; + + /** Multi modeInfos */ + modeInfos?: cosmos_sdk.tx.v1.IModeInfo[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.ModeInfo.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos_sdk.crypto.v1.ICompactBitArray | null; + + /** Multi modeInfos. */ + public modeInfos: cosmos_sdk.tx.v1.IModeInfo[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos_sdk.tx.v1.ModeInfo.IMulti, + ): cosmos_sdk.tx.v1.ModeInfo.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.Multi.verify|verify} messages. + * @param message Multi message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.tx.v1.ModeInfo.IMulti, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Multi message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.Multi.verify|verify} messages. + * @param message Multi message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.ModeInfo.IMulti, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Multi message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Multi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.tx.v1.ModeInfo.Multi; + + /** + * Decodes a Multi message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Multi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.tx.v1.ModeInfo.Multi; + + /** + * Verifies a Multi message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Multi message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Multi + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.ModeInfo.Multi; + + /** + * Creates a plain object from a Multi message. Also converts values to other types if specified. + * @param message Multi + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.ModeInfo.Multi, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Multi to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127, + } + + /** Properties of a Fee. */ + interface IFee { + /** Fee amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + + /** Fee gasLimit */ + gasLimit?: number | Long | null; + } + + /** Represents a Fee. */ + class Fee implements IFee { + /** + * Constructs a new Fee. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.tx.v1.IFee); + + /** Fee amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** Fee gasLimit. */ + public gasLimit: number | Long; + + /** + * Creates a new Fee instance using the specified properties. + * @param [properties] Properties to set + * @returns Fee instance + */ + public static create(properties?: cosmos_sdk.tx.v1.IFee): cosmos_sdk.tx.v1.Fee; + + /** + * Encodes the specified Fee message. Does not implicitly {@link cosmos_sdk.tx.v1.Fee.verify|verify} messages. + * @param message Fee message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.tx.v1.IFee, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Fee message, length delimited. Does not implicitly {@link cosmos_sdk.tx.v1.Fee.verify|verify} messages. + * @param message Fee message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.tx.v1.IFee, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Fee message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Fee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.tx.v1.Fee; + + /** + * Decodes a Fee message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Fee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.tx.v1.Fee; + + /** + * Verifies a Fee message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Fee message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Fee + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.tx.v1.Fee; + + /** + * Creates a plain object from a Fee message. Also converts values to other types if specified. + * @param message Fee + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.tx.v1.Fee, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Fee to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace v1. */ + namespace v1 { + /** Properties of a Coin. */ + interface ICoin { + /** Coin denom */ + denom?: string | null; + + /** Coin amount */ + amount?: string | null; + } + + /** Represents a Coin. */ + class Coin implements ICoin { + /** + * Constructs a new Coin. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.ICoin); + + /** Coin denom. */ + public denom: string; + + /** Coin amount. */ + public amount: string; + + /** + * Creates a new Coin instance using the specified properties. + * @param [properties] Properties to set + * @returns Coin instance + */ + public static create(properties?: cosmos_sdk.v1.ICoin): cosmos_sdk.v1.Coin; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos_sdk.v1.Coin.verify|verify} messages. + * @param message Coin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos_sdk.v1.Coin.verify|verify} messages. + * @param message Coin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.ICoin, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Coin message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Coin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.Coin; + + /** + * Decodes a Coin message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Coin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.Coin; + + /** + * Verifies a Coin message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Coin message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Coin + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.Coin; + + /** + * Creates a plain object from a Coin message. Also converts values to other types if specified. + * @param message Coin + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.Coin, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Coin to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DecCoin. */ + interface IDecCoin { + /** DecCoin denom */ + denom?: string | null; + + /** DecCoin amount */ + amount?: string | null; + } + + /** Represents a DecCoin. */ + class DecCoin implements IDecCoin { + /** + * Constructs a new DecCoin. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IDecCoin); + + /** DecCoin denom. */ + public denom: string; + + /** DecCoin amount. */ + public amount: string; + + /** + * Creates a new DecCoin instance using the specified properties. + * @param [properties] Properties to set + * @returns DecCoin instance + */ + public static create(properties?: cosmos_sdk.v1.IDecCoin): cosmos_sdk.v1.DecCoin; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos_sdk.v1.DecCoin.verify|verify} messages. + * @param message DecCoin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IDecCoin, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos_sdk.v1.DecCoin.verify|verify} messages. + * @param message DecCoin message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IDecCoin, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DecCoin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.DecCoin; + + /** + * Decodes a DecCoin message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DecCoin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.DecCoin; + + /** + * Verifies a DecCoin message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DecCoin + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.DecCoin; + + /** + * Creates a plain object from a DecCoin message. Also converts values to other types if specified. + * @param message DecCoin + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.DecCoin, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DecCoin to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IntProto. */ + interface IIntProto { + /** IntProto int */ + int?: string | null; + } + + /** Represents an IntProto. */ + class IntProto implements IIntProto { + /** + * Constructs a new IntProto. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IIntProto); + + /** IntProto int. */ + public int: string; + + /** + * Creates a new IntProto instance using the specified properties. + * @param [properties] Properties to set + * @returns IntProto instance + */ + public static create(properties?: cosmos_sdk.v1.IIntProto): cosmos_sdk.v1.IntProto; + + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos_sdk.v1.IntProto.verify|verify} messages. + * @param message IntProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IIntProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos_sdk.v1.IntProto.verify|verify} messages. + * @param message IntProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IIntProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IntProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.IntProto; + + /** + * Decodes an IntProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.IntProto; + + /** + * Verifies an IntProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an IntProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntProto + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.IntProto; + + /** + * Creates a plain object from an IntProto message. Also converts values to other types if specified. + * @param message IntProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.IntProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this IntProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DecProto. */ + interface IDecProto { + /** DecProto dec */ + dec?: string | null; + } + + /** Represents a DecProto. */ + class DecProto implements IDecProto { + /** + * Constructs a new DecProto. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IDecProto); + + /** DecProto dec. */ + public dec: string; + + /** + * Creates a new DecProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DecProto instance + */ + public static create(properties?: cosmos_sdk.v1.IDecProto): cosmos_sdk.v1.DecProto; + + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos_sdk.v1.DecProto.verify|verify} messages. + * @param message DecProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IDecProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos_sdk.v1.DecProto.verify|verify} messages. + * @param message DecProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IDecProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.DecProto; + + /** + * Decodes a DecProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.DecProto; + + /** + * Verifies a DecProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DecProto + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.DecProto; + + /** + * Creates a plain object from a DecProto message. Also converts values to other types if specified. + * @param message DecProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.DecProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DecProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValAddresses. */ + interface IValAddresses { + /** ValAddresses addresses */ + addresses?: Uint8Array[] | null; + } + + /** Represents a ValAddresses. */ + class ValAddresses implements IValAddresses { + /** + * Constructs a new ValAddresses. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IValAddresses); + + /** ValAddresses addresses. */ + public addresses: Uint8Array[]; + + /** + * Creates a new ValAddresses instance using the specified properties. + * @param [properties] Properties to set + * @returns ValAddresses instance + */ + public static create(properties?: cosmos_sdk.v1.IValAddresses): cosmos_sdk.v1.ValAddresses; + + /** + * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos_sdk.v1.ValAddresses.verify|verify} messages. + * @param message ValAddresses message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IValAddresses, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ValAddresses message, length delimited. Does not implicitly {@link cosmos_sdk.v1.ValAddresses.verify|verify} messages. + * @param message ValAddresses message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IValAddresses, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValAddresses message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValAddresses + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.v1.ValAddresses; + + /** + * Decodes a ValAddresses message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValAddresses + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.ValAddresses; + + /** + * Verifies a ValAddresses message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValAddresses message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValAddresses + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.ValAddresses; + + /** + * Creates a plain object from a ValAddresses message. Also converts values to other types if specified. + * @param message ValAddresses + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.ValAddresses, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValAddresses to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GasInfo. */ + interface IGasInfo { + /** GasInfo gasWanted */ + gasWanted?: number | Long | null; + + /** GasInfo gasUsed */ + gasUsed?: number | Long | null; + } + + /** Represents a GasInfo. */ + class GasInfo implements IGasInfo { + /** + * Constructs a new GasInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IGasInfo); + + /** GasInfo gasWanted. */ + public gasWanted: number | Long; + + /** GasInfo gasUsed. */ + public gasUsed: number | Long; + + /** + * Creates a new GasInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GasInfo instance + */ + public static create(properties?: cosmos_sdk.v1.IGasInfo): cosmos_sdk.v1.GasInfo; + + /** + * Encodes the specified GasInfo message. Does not implicitly {@link cosmos_sdk.v1.GasInfo.verify|verify} messages. + * @param message GasInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IGasInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GasInfo message, length delimited. Does not implicitly {@link cosmos_sdk.v1.GasInfo.verify|verify} messages. + * @param message GasInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IGasInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a GasInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GasInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.GasInfo; + + /** + * Decodes a GasInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GasInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.GasInfo; + + /** + * Verifies a GasInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a GasInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GasInfo + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.GasInfo; + + /** + * Creates a plain object from a GasInfo message. Also converts values to other types if specified. + * @param message GasInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.GasInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this GasInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Result. */ + interface IResult { + /** Result data */ + data?: Uint8Array | null; + + /** Result log */ + log?: string | null; + + /** Result events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a Result. */ + class Result implements IResult { + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IResult); + + /** Result data. */ + public data: Uint8Array; + + /** Result log. */ + public log: string; + + /** Result events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: cosmos_sdk.v1.IResult): cosmos_sdk.v1.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link cosmos_sdk.v1.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Result message, length delimited. Does not implicitly {@link cosmos_sdk.v1.Result.verify|verify} messages. + * @param message Result message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IResult, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.Result; + + /** + * Decodes a Result message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.Result; + + /** + * Verifies a Result message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Result message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Result + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.Result; + + /** + * Creates a plain object from a Result message. Also converts values to other types if specified. + * @param message Result + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.Result, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SimulationResponse. */ + interface ISimulationResponse { + /** SimulationResponse gasInfo */ + gasInfo?: cosmos_sdk.v1.IGasInfo | null; + + /** SimulationResponse result */ + result?: cosmos_sdk.v1.IResult | null; + } + + /** Represents a SimulationResponse. */ + class SimulationResponse implements ISimulationResponse { + /** + * Constructs a new SimulationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.ISimulationResponse); + + /** SimulationResponse gasInfo. */ + public gasInfo?: cosmos_sdk.v1.IGasInfo | null; + + /** SimulationResponse result. */ + public result?: cosmos_sdk.v1.IResult | null; + + /** + * Creates a new SimulationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SimulationResponse instance + */ + public static create(properties?: cosmos_sdk.v1.ISimulationResponse): cosmos_sdk.v1.SimulationResponse; + + /** + * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos_sdk.v1.SimulationResponse.verify|verify} messages. + * @param message SimulationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.v1.ISimulationResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified SimulationResponse message, length delimited. Does not implicitly {@link cosmos_sdk.v1.SimulationResponse.verify|verify} messages. + * @param message SimulationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.ISimulationResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SimulationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.v1.SimulationResponse; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SimulationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.SimulationResponse; + + /** + * Verifies a SimulationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SimulationResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SimulationResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.SimulationResponse; + + /** + * Creates a plain object from a SimulationResponse message. Also converts values to other types if specified. + * @param message SimulationResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.SimulationResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SimulationResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgData. */ + interface IMsgData { + /** MsgData msgType */ + msgType?: string | null; + + /** MsgData data */ + data?: Uint8Array | null; + } + + /** Represents a MsgData. */ + class MsgData implements IMsgData { + /** + * Constructs a new MsgData. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.IMsgData); + + /** MsgData msgType. */ + public msgType: string; + + /** MsgData data. */ + public data: Uint8Array; + + /** + * Creates a new MsgData instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgData instance + */ + public static create(properties?: cosmos_sdk.v1.IMsgData): cosmos_sdk.v1.MsgData; + + /** + * Encodes the specified MsgData message. Does not implicitly {@link cosmos_sdk.v1.MsgData.verify|verify} messages. + * @param message MsgData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.IMsgData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgData message, length delimited. Does not implicitly {@link cosmos_sdk.v1.MsgData.verify|verify} messages. + * @param message MsgData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.IMsgData, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.MsgData; + + /** + * Decodes a MsgData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.MsgData; + + /** + * Verifies a MsgData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgData + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.MsgData; + + /** + * Creates a plain object from a MsgData message. Also converts values to other types if specified. + * @param message MsgData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.MsgData, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a TxData. */ + interface ITxData { + /** TxData data */ + data?: cosmos_sdk.v1.IMsgData[] | null; + } + + /** Represents a TxData. */ + class TxData implements ITxData { + /** + * Constructs a new TxData. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.v1.ITxData); + + /** TxData data. */ + public data: cosmos_sdk.v1.IMsgData[]; + + /** + * Creates a new TxData instance using the specified properties. + * @param [properties] Properties to set + * @returns TxData instance + */ + public static create(properties?: cosmos_sdk.v1.ITxData): cosmos_sdk.v1.TxData; + + /** + * Encodes the specified TxData message. Does not implicitly {@link cosmos_sdk.v1.TxData.verify|verify} messages. + * @param message TxData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_sdk.v1.ITxData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TxData message, length delimited. Does not implicitly {@link cosmos_sdk.v1.TxData.verify|verify} messages. + * @param message TxData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.v1.ITxData, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a TxData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TxData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): cosmos_sdk.v1.TxData; + + /** + * Decodes a TxData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TxData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.v1.TxData; + + /** + * Verifies a TxData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a TxData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TxData + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.v1.TxData; + + /** + * Creates a plain object from a TxData message. Also converts values to other types if specified. + * @param message TxData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.v1.TxData, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this TxData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace x. */ + namespace x { + /** Namespace auth. */ + namespace auth { + /** Namespace v1. */ + namespace v1 { + /** Properties of a BaseAccount. */ + interface IBaseAccount { + /** BaseAccount address */ + address?: Uint8Array | null; + + /** BaseAccount pubKey */ + pubKey?: Uint8Array | null; + + /** BaseAccount accountNumber */ + accountNumber?: number | Long | null; + + /** BaseAccount sequence */ + sequence?: number | Long | null; + } + + /** Represents a BaseAccount. */ + class BaseAccount implements IBaseAccount { + /** + * Constructs a new BaseAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.v1.IBaseAccount); + + /** BaseAccount address. */ + public address: Uint8Array; + + /** BaseAccount pubKey. */ + public pubKey: Uint8Array; + + /** BaseAccount accountNumber. */ + public accountNumber: number | Long; + + /** BaseAccount sequence. */ + public sequence: number | Long; + + /** + * Creates a new BaseAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns BaseAccount instance + */ + public static create( + properties?: cosmos_sdk.x.auth.v1.IBaseAccount, + ): cosmos_sdk.x.auth.v1.BaseAccount; + + /** + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos_sdk.x.auth.v1.BaseAccount.verify|verify} messages. + * @param message BaseAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.v1.IBaseAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.v1.BaseAccount.verify|verify} messages. + * @param message BaseAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.v1.IBaseAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a BaseAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.v1.BaseAccount; + + /** + * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.v1.BaseAccount; + + /** + * Verifies a BaseAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BaseAccount + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.auth.v1.BaseAccount; + + /** + * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. + * @param message BaseAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.v1.BaseAccount, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this BaseAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ModuleAccount. */ + interface IModuleAccount { + /** ModuleAccount baseAccount */ + baseAccount?: cosmos_sdk.x.auth.v1.IBaseAccount | null; + + /** ModuleAccount name */ + name?: string | null; + + /** ModuleAccount permissions */ + permissions?: string[] | null; + } + + /** Represents a ModuleAccount. */ + class ModuleAccount implements IModuleAccount { + /** + * Constructs a new ModuleAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.v1.IModuleAccount); + + /** ModuleAccount baseAccount. */ + public baseAccount?: cosmos_sdk.x.auth.v1.IBaseAccount | null; + + /** ModuleAccount name. */ + public name: string; + + /** ModuleAccount permissions. */ + public permissions: string[]; + + /** + * Creates a new ModuleAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns ModuleAccount instance + */ + public static create( + properties?: cosmos_sdk.x.auth.v1.IModuleAccount, + ): cosmos_sdk.x.auth.v1.ModuleAccount; + + /** + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos_sdk.x.auth.v1.ModuleAccount.verify|verify} messages. + * @param message ModuleAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.v1.IModuleAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.v1.ModuleAccount.verify|verify} messages. + * @param message ModuleAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.v1.IModuleAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.v1.ModuleAccount; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.v1.ModuleAccount; + + /** + * Verifies a ModuleAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModuleAccount + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.auth.v1.ModuleAccount; + + /** + * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. + * @param message ModuleAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.v1.ModuleAccount, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ModuleAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Params. */ + interface IParams { + /** Params maxMemoCharacters */ + maxMemoCharacters?: number | Long | null; + + /** Params txSigLimit */ + txSigLimit?: number | Long | null; + + /** Params txSizeCostPerByte */ + txSizeCostPerByte?: number | Long | null; + + /** Params sigVerifyCostEd25519 */ + sigVerifyCostEd25519?: number | Long | null; + + /** Params sigVerifyCostSecp256k1 */ + sigVerifyCostSecp256k1?: number | Long | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.v1.IParams); + + /** Params maxMemoCharacters. */ + public maxMemoCharacters: number | Long; + + /** Params txSigLimit. */ + public txSigLimit: number | Long; + + /** Params txSizeCostPerByte. */ + public txSizeCostPerByte: number | Long; + + /** Params sigVerifyCostEd25519. */ + public sigVerifyCostEd25519: number | Long; + + /** Params sigVerifyCostSecp256k1. */ + public sigVerifyCostSecp256k1: number | Long; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos_sdk.x.auth.v1.IParams): cosmos_sdk.x.auth.v1.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.auth.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.v1.Params; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.auth.v1.Params; + + /** + * Verifies a Params message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Params + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.auth.v1.Params; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.v1.Params, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace vesting. */ + namespace vesting { + /** Namespace v1. */ + namespace v1 { + /** Properties of a BaseVestingAccount. */ + interface IBaseVestingAccount { + /** BaseVestingAccount baseAccount */ + baseAccount?: cosmos_sdk.x.auth.v1.IBaseAccount | null; + + /** BaseVestingAccount originalVesting */ + originalVesting?: cosmos_sdk.v1.ICoin[] | null; + + /** BaseVestingAccount delegatedFree */ + delegatedFree?: cosmos_sdk.v1.ICoin[] | null; + + /** BaseVestingAccount delegatedVesting */ + delegatedVesting?: cosmos_sdk.v1.ICoin[] | null; + + /** BaseVestingAccount endTime */ + endTime?: number | Long | null; + } + + /** Represents a BaseVestingAccount. */ + class BaseVestingAccount implements IBaseVestingAccount { + /** + * Constructs a new BaseVestingAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount); + + /** BaseVestingAccount baseAccount. */ + public baseAccount?: cosmos_sdk.x.auth.v1.IBaseAccount | null; + + /** BaseVestingAccount originalVesting. */ + public originalVesting: cosmos_sdk.v1.ICoin[]; + + /** BaseVestingAccount delegatedFree. */ + public delegatedFree: cosmos_sdk.v1.ICoin[]; + + /** BaseVestingAccount delegatedVesting. */ + public delegatedVesting: cosmos_sdk.v1.ICoin[]; + + /** BaseVestingAccount endTime. */ + public endTime: number | Long; + + /** + * Creates a new BaseVestingAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns BaseVestingAccount instance + */ + public static create( + properties?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount, + ): cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount; + + /** + * Encodes the specified BaseVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.verify|verify} messages. + * @param message BaseVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified BaseVestingAccount message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.verify|verify} messages. + * @param message BaseVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a BaseVestingAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BaseVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount; + + /** + * Decodes a BaseVestingAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BaseVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount; + + /** + * Verifies a BaseVestingAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a BaseVestingAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BaseVestingAccount + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount; + + /** + * Creates a plain object from a BaseVestingAccount message. Also converts values to other types if specified. + * @param message BaseVestingAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this BaseVestingAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ContinuousVestingAccount. */ + interface IContinuousVestingAccount { + /** ContinuousVestingAccount baseVestingAccount */ + baseVestingAccount?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount | null; + + /** ContinuousVestingAccount startTime */ + startTime?: number | Long | null; + } + + /** Represents a ContinuousVestingAccount. */ + class ContinuousVestingAccount implements IContinuousVestingAccount { + /** + * Constructs a new ContinuousVestingAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount); + + /** ContinuousVestingAccount baseVestingAccount. */ + public baseVestingAccount?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount | null; + + /** ContinuousVestingAccount startTime. */ + public startTime: number | Long; + + /** + * Creates a new ContinuousVestingAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns ContinuousVestingAccount instance + */ + public static create( + properties?: cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount, + ): cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount; + + /** + * Encodes the specified ContinuousVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount.verify|verify} messages. + * @param message ContinuousVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ContinuousVestingAccount message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount.verify|verify} messages. + * @param message ContinuousVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ContinuousVestingAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContinuousVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount; + + /** + * Decodes a ContinuousVestingAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContinuousVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount; + + /** + * Verifies a ContinuousVestingAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ContinuousVestingAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContinuousVestingAccount + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount; + + /** + * Creates a plain object from a ContinuousVestingAccount message. Also converts values to other types if specified. + * @param message ContinuousVestingAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ContinuousVestingAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DelayedVestingAccount. */ + interface IDelayedVestingAccount { + /** DelayedVestingAccount baseVestingAccount */ + baseVestingAccount?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount | null; + } + + /** Represents a DelayedVestingAccount. */ + class DelayedVestingAccount implements IDelayedVestingAccount { + /** + * Constructs a new DelayedVestingAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount); + + /** DelayedVestingAccount baseVestingAccount. */ + public baseVestingAccount?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount | null; + + /** + * Creates a new DelayedVestingAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns DelayedVestingAccount instance + */ + public static create( + properties?: cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount, + ): cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount; + + /** + * Encodes the specified DelayedVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount.verify|verify} messages. + * @param message DelayedVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DelayedVestingAccount message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount.verify|verify} messages. + * @param message DelayedVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DelayedVestingAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DelayedVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount; + + /** + * Decodes a DelayedVestingAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DelayedVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount; + + /** + * Verifies a DelayedVestingAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DelayedVestingAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DelayedVestingAccount + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount; + + /** + * Creates a plain object from a DelayedVestingAccount message. Also converts values to other types if specified. + * @param message DelayedVestingAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DelayedVestingAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Period. */ + interface IPeriod { + /** Period length */ + length?: number | Long | null; + + /** Period amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a Period. */ + class Period implements IPeriod { + /** + * Constructs a new Period. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.vesting.v1.IPeriod); + + /** Period length. */ + public length: number | Long; + + /** Period amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new Period instance using the specified properties. + * @param [properties] Properties to set + * @returns Period instance + */ + public static create( + properties?: cosmos_sdk.x.auth.vesting.v1.IPeriod, + ): cosmos_sdk.x.auth.vesting.v1.Period; + + /** + * Encodes the specified Period message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.Period.verify|verify} messages. + * @param message Period message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.vesting.v1.IPeriod, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Period message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.Period.verify|verify} messages. + * @param message Period message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.vesting.v1.IPeriod, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Period message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Period + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.vesting.v1.Period; + + /** + * Decodes a Period message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Period + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.vesting.v1.Period; + + /** + * Verifies a Period message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Period message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Period + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.auth.vesting.v1.Period; + + /** + * Creates a plain object from a Period message. Also converts values to other types if specified. + * @param message Period + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.vesting.v1.Period, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Period to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PeriodicVestingAccount. */ + interface IPeriodicVestingAccount { + /** PeriodicVestingAccount baseVestingAccount */ + baseVestingAccount?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount | null; + + /** PeriodicVestingAccount startTime */ + startTime?: number | Long | null; + + /** PeriodicVestingAccount vestingPeriods */ + vestingPeriods?: cosmos_sdk.x.auth.vesting.v1.IPeriod[] | null; + } + + /** Represents a PeriodicVestingAccount. */ + class PeriodicVestingAccount implements IPeriodicVestingAccount { + /** + * Constructs a new PeriodicVestingAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount); + + /** PeriodicVestingAccount baseVestingAccount. */ + public baseVestingAccount?: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount | null; + + /** PeriodicVestingAccount startTime. */ + public startTime: number | Long; + + /** PeriodicVestingAccount vestingPeriods. */ + public vestingPeriods: cosmos_sdk.x.auth.vesting.v1.IPeriod[]; + + /** + * Creates a new PeriodicVestingAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns PeriodicVestingAccount instance + */ + public static create( + properties?: cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount, + ): cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount; + + /** + * Encodes the specified PeriodicVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount.verify|verify} messages. + * @param message PeriodicVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified PeriodicVestingAccount message, length delimited. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount.verify|verify} messages. + * @param message PeriodicVestingAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PeriodicVestingAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PeriodicVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount; + + /** + * Decodes a PeriodicVestingAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PeriodicVestingAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount; + + /** + * Verifies a PeriodicVestingAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a PeriodicVestingAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PeriodicVestingAccount + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount; + + /** + * Creates a plain object from a PeriodicVestingAccount message. Also converts values to other types if specified. + * @param message PeriodicVestingAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this PeriodicVestingAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Namespace bank. */ + namespace bank { + /** Namespace v1. */ + namespace v1 { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Query service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Query; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryBalanceResponse + */ + public balance( + request: cosmos_sdk.x.bank.v1.IQueryBalanceRequest, + callback: cosmos_sdk.x.bank.v1.Query.BalanceCallback, + ): void; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @returns Promise + */ + public balance( + request: cosmos_sdk.x.bank.v1.IQueryBalanceRequest, + ): Promise; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAllBalancesResponse + */ + public allBalances( + request: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest, + callback: cosmos_sdk.x.bank.v1.Query.AllBalancesCallback, + ): void; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @returns Promise + */ + public allBalances( + request: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest, + ): Promise; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryTotalSupplyResponse + */ + public totalSupply( + request: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest, + callback: cosmos_sdk.x.bank.v1.Query.TotalSupplyCallback, + ): void; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @returns Promise + */ + public totalSupply( + request: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest, + ): Promise; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QuerySupplyOfResponse + */ + public supplyOf( + request: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest, + callback: cosmos_sdk.x.bank.v1.Query.SupplyOfCallback, + ): void; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @returns Promise + */ + public supplyOf( + request: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#balance}. + * @param error Error, if any + * @param [response] QueryBalanceResponse + */ + type BalanceCallback = ( + error: Error | null, + response?: cosmos_sdk.x.bank.v1.QueryBalanceResponse, + ) => void; + + /** + * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#allBalances}. + * @param error Error, if any + * @param [response] QueryAllBalancesResponse + */ + type AllBalancesCallback = ( + error: Error | null, + response?: cosmos_sdk.x.bank.v1.QueryAllBalancesResponse, + ) => void; + + /** + * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#totalSupply}. + * @param error Error, if any + * @param [response] QueryTotalSupplyResponse + */ + type TotalSupplyCallback = ( + error: Error | null, + response?: cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse, + ) => void; + + /** + * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#supplyOf}. + * @param error Error, if any + * @param [response] QuerySupplyOfResponse + */ + type SupplyOfCallback = ( + error: Error | null, + response?: cosmos_sdk.x.bank.v1.QuerySupplyOfResponse, + ) => void; + } + + /** Properties of a QueryBalanceRequest. */ + interface IQueryBalanceRequest { + /** QueryBalanceRequest address */ + address?: Uint8Array | null; + + /** QueryBalanceRequest denom */ + denom?: string | null; + } + + /** Represents a QueryBalanceRequest. */ + class QueryBalanceRequest implements IQueryBalanceRequest { + /** + * Constructs a new QueryBalanceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQueryBalanceRequest); + + /** QueryBalanceRequest address. */ + public address: Uint8Array; + + /** QueryBalanceRequest denom. */ + public denom: string; + + /** + * Creates a new QueryBalanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceRequest instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQueryBalanceRequest, + ): cosmos_sdk.x.bank.v1.QueryBalanceRequest; + + /** + * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryBalanceRequest.verify|verify} messages. + * @param message QueryBalanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQueryBalanceRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QueryBalanceRequest message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryBalanceRequest.verify|verify} messages. + * @param message QueryBalanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQueryBalanceRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryBalanceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryBalanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QueryBalanceRequest; + + /** + * Decodes a QueryBalanceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryBalanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QueryBalanceRequest; + + /** + * Verifies a QueryBalanceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QueryBalanceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryBalanceRequest + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.QueryBalanceRequest; + + /** + * Creates a plain object from a QueryBalanceRequest message. Also converts values to other types if specified. + * @param message QueryBalanceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QueryBalanceRequest, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QueryBalanceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryBalanceResponse. */ + interface IQueryBalanceResponse { + /** QueryBalanceResponse balance */ + balance?: cosmos_sdk.v1.ICoin | null; + } + + /** Represents a QueryBalanceResponse. */ + class QueryBalanceResponse implements IQueryBalanceResponse { + /** + * Constructs a new QueryBalanceResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQueryBalanceResponse); + + /** QueryBalanceResponse balance. */ + public balance?: cosmos_sdk.v1.ICoin | null; + + /** + * Creates a new QueryBalanceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceResponse instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQueryBalanceResponse, + ): cosmos_sdk.x.bank.v1.QueryBalanceResponse; + + /** + * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryBalanceResponse.verify|verify} messages. + * @param message QueryBalanceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQueryBalanceResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QueryBalanceResponse message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryBalanceResponse.verify|verify} messages. + * @param message QueryBalanceResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQueryBalanceResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryBalanceResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryBalanceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QueryBalanceResponse; + + /** + * Decodes a QueryBalanceResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryBalanceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QueryBalanceResponse; + + /** + * Verifies a QueryBalanceResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QueryBalanceResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryBalanceResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.QueryBalanceResponse; + + /** + * Creates a plain object from a QueryBalanceResponse message. Also converts values to other types if specified. + * @param message QueryBalanceResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QueryBalanceResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QueryBalanceResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryAllBalancesRequest. */ + interface IQueryAllBalancesRequest { + /** QueryAllBalancesRequest address */ + address?: Uint8Array | null; + } + + /** Represents a QueryAllBalancesRequest. */ + class QueryAllBalancesRequest implements IQueryAllBalancesRequest { + /** + * Constructs a new QueryAllBalancesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest); + + /** QueryAllBalancesRequest address. */ + public address: Uint8Array; + + /** + * Creates a new QueryAllBalancesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesRequest instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest, + ): cosmos_sdk.x.bank.v1.QueryAllBalancesRequest; + + /** + * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryAllBalancesRequest.verify|verify} messages. + * @param message QueryAllBalancesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QueryAllBalancesRequest message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryAllBalancesRequest.verify|verify} messages. + * @param message QueryAllBalancesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryAllBalancesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryAllBalancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QueryAllBalancesRequest; + + /** + * Decodes a QueryAllBalancesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryAllBalancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QueryAllBalancesRequest; + + /** + * Verifies a QueryAllBalancesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QueryAllBalancesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryAllBalancesRequest + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.bank.v1.QueryAllBalancesRequest; + + /** + * Creates a plain object from a QueryAllBalancesRequest message. Also converts values to other types if specified. + * @param message QueryAllBalancesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QueryAllBalancesRequest, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QueryAllBalancesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryAllBalancesResponse. */ + interface IQueryAllBalancesResponse { + /** QueryAllBalancesResponse balances */ + balances?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a QueryAllBalancesResponse. */ + class QueryAllBalancesResponse implements IQueryAllBalancesResponse { + /** + * Constructs a new QueryAllBalancesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse); + + /** QueryAllBalancesResponse balances. */ + public balances: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new QueryAllBalancesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesResponse instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse, + ): cosmos_sdk.x.bank.v1.QueryAllBalancesResponse; + + /** + * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryAllBalancesResponse.verify|verify} messages. + * @param message QueryAllBalancesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QueryAllBalancesResponse message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryAllBalancesResponse.verify|verify} messages. + * @param message QueryAllBalancesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryAllBalancesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryAllBalancesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QueryAllBalancesResponse; + + /** + * Decodes a QueryAllBalancesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryAllBalancesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QueryAllBalancesResponse; + + /** + * Verifies a QueryAllBalancesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QueryAllBalancesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryAllBalancesResponse + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.bank.v1.QueryAllBalancesResponse; + + /** + * Creates a plain object from a QueryAllBalancesResponse message. Also converts values to other types if specified. + * @param message QueryAllBalancesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QueryAllBalancesResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QueryAllBalancesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryTotalSupplyRequest. */ + interface IQueryTotalSupplyRequest {} + + /** Represents a QueryTotalSupplyRequest. */ + class QueryTotalSupplyRequest implements IQueryTotalSupplyRequest { + /** + * Constructs a new QueryTotalSupplyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest); + + /** + * Creates a new QueryTotalSupplyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyRequest instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest, + ): cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest; + + /** + * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest.verify|verify} messages. + * @param message QueryTotalSupplyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QueryTotalSupplyRequest message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest.verify|verify} messages. + * @param message QueryTotalSupplyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryTotalSupplyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryTotalSupplyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest; + + /** + * Decodes a QueryTotalSupplyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryTotalSupplyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest; + + /** + * Verifies a QueryTotalSupplyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QueryTotalSupplyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryTotalSupplyRequest + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest; + + /** + * Creates a plain object from a QueryTotalSupplyRequest message. Also converts values to other types if specified. + * @param message QueryTotalSupplyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QueryTotalSupplyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryTotalSupplyResponse. */ + interface IQueryTotalSupplyResponse { + /** QueryTotalSupplyResponse supply */ + supply?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a QueryTotalSupplyResponse. */ + class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { + /** + * Constructs a new QueryTotalSupplyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse); + + /** QueryTotalSupplyResponse supply. */ + public supply: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new QueryTotalSupplyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyResponse instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse, + ): cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse; + + /** + * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse.verify|verify} messages. + * @param message QueryTotalSupplyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QueryTotalSupplyResponse message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse.verify|verify} messages. + * @param message QueryTotalSupplyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryTotalSupplyResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryTotalSupplyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse; + + /** + * Decodes a QueryTotalSupplyResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryTotalSupplyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse; + + /** + * Verifies a QueryTotalSupplyResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QueryTotalSupplyResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryTotalSupplyResponse + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse; + + /** + * Creates a plain object from a QueryTotalSupplyResponse message. Also converts values to other types if specified. + * @param message QueryTotalSupplyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QueryTotalSupplyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QuerySupplyOfRequest. */ + interface IQuerySupplyOfRequest { + /** QuerySupplyOfRequest denom */ + denom?: string | null; + } + + /** Represents a QuerySupplyOfRequest. */ + class QuerySupplyOfRequest implements IQuerySupplyOfRequest { + /** + * Constructs a new QuerySupplyOfRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest); + + /** QuerySupplyOfRequest denom. */ + public denom: string; + + /** + * Creates a new QuerySupplyOfRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfRequest instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest, + ): cosmos_sdk.x.bank.v1.QuerySupplyOfRequest; + + /** + * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QuerySupplyOfRequest.verify|verify} messages. + * @param message QuerySupplyOfRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QuerySupplyOfRequest message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QuerySupplyOfRequest.verify|verify} messages. + * @param message QuerySupplyOfRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QuerySupplyOfRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuerySupplyOfRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QuerySupplyOfRequest; + + /** + * Decodes a QuerySupplyOfRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuerySupplyOfRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QuerySupplyOfRequest; + + /** + * Verifies a QuerySupplyOfRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QuerySupplyOfRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuerySupplyOfRequest + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.QuerySupplyOfRequest; + + /** + * Creates a plain object from a QuerySupplyOfRequest message. Also converts values to other types if specified. + * @param message QuerySupplyOfRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QuerySupplyOfRequest, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QuerySupplyOfRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QuerySupplyOfResponse. */ + interface IQuerySupplyOfResponse { + /** QuerySupplyOfResponse amount */ + amount?: string | null; + } + + /** Represents a QuerySupplyOfResponse. */ + class QuerySupplyOfResponse implements IQuerySupplyOfResponse { + /** + * Constructs a new QuerySupplyOfResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse); + + /** QuerySupplyOfResponse amount. */ + public amount: string; + + /** + * Creates a new QuerySupplyOfResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfResponse instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse, + ): cosmos_sdk.x.bank.v1.QuerySupplyOfResponse; + + /** + * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QuerySupplyOfResponse.verify|verify} messages. + * @param message QuerySupplyOfResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified QuerySupplyOfResponse message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.QuerySupplyOfResponse.verify|verify} messages. + * @param message QuerySupplyOfResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QuerySupplyOfResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuerySupplyOfResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.QuerySupplyOfResponse; + + /** + * Decodes a QuerySupplyOfResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuerySupplyOfResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.QuerySupplyOfResponse; + + /** + * Verifies a QuerySupplyOfResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a QuerySupplyOfResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuerySupplyOfResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.QuerySupplyOfResponse; + + /** + * Creates a plain object from a QuerySupplyOfResponse message. Also converts values to other types if specified. + * @param message QuerySupplyOfResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.QuerySupplyOfResponse, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this QuerySupplyOfResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgSend. */ + interface IMsgSend { + /** MsgSend fromAddress */ + fromAddress?: Uint8Array | null; + + /** MsgSend toAddress */ + toAddress?: Uint8Array | null; + + /** MsgSend amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a MsgSend. */ + class MsgSend implements IMsgSend { + /** + * Constructs a new MsgSend. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IMsgSend); + + /** MsgSend fromAddress. */ + public fromAddress: Uint8Array; + + /** MsgSend toAddress. */ + public toAddress: Uint8Array; + + /** MsgSend amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new MsgSend instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSend instance + */ + public static create(properties?: cosmos_sdk.x.bank.v1.IMsgSend): cosmos_sdk.x.bank.v1.MsgSend; + + /** + * Encodes the specified MsgSend message. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgSend.verify|verify} messages. + * @param message MsgSend message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IMsgSend, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgSend message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgSend.verify|verify} messages. + * @param message MsgSend message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IMsgSend, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSend message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.MsgSend; + + /** + * Decodes a MsgSend message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.bank.v1.MsgSend; + + /** + * Verifies a MsgSend message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgSend message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSend + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.MsgSend; + + /** + * Creates a plain object from a MsgSend message. Also converts values to other types if specified. + * @param message MsgSend + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.MsgSend, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgSend to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Input. */ + interface IInput { + /** Input address */ + address?: Uint8Array | null; + + /** Input coins */ + coins?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents an Input. */ + class Input implements IInput { + /** + * Constructs a new Input. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IInput); + + /** Input address. */ + public address: Uint8Array; + + /** Input coins. */ + public coins: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new Input instance using the specified properties. + * @param [properties] Properties to set + * @returns Input instance + */ + public static create(properties?: cosmos_sdk.x.bank.v1.IInput): cosmos_sdk.x.bank.v1.Input; + + /** + * Encodes the specified Input message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Input.verify|verify} messages. + * @param message Input message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IInput, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Input message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.Input.verify|verify} messages. + * @param message Input message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IInput, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Input message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.Input; + + /** + * Decodes an Input message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.bank.v1.Input; + + /** + * Verifies an Input message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Input message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Input + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.Input; + + /** + * Creates a plain object from an Input message. Also converts values to other types if specified. + * @param message Input + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.Input, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Input to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Output. */ + interface IOutput { + /** Output address */ + address?: Uint8Array | null; + + /** Output coins */ + coins?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents an Output. */ + class Output implements IOutput { + /** + * Constructs a new Output. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IOutput); + + /** Output address. */ + public address: Uint8Array; + + /** Output coins. */ + public coins: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new Output instance using the specified properties. + * @param [properties] Properties to set + * @returns Output instance + */ + public static create(properties?: cosmos_sdk.x.bank.v1.IOutput): cosmos_sdk.x.bank.v1.Output; + + /** + * Encodes the specified Output message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Output.verify|verify} messages. + * @param message Output message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IOutput, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Output message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.Output.verify|verify} messages. + * @param message Output message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IOutput, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Output message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.Output; + + /** + * Decodes an Output message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.bank.v1.Output; + + /** + * Verifies an Output message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Output message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Output + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.Output; + + /** + * Creates a plain object from an Output message. Also converts values to other types if specified. + * @param message Output + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.Output, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Output to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgMultiSend. */ + interface IMsgMultiSend { + /** MsgMultiSend inputs */ + inputs?: cosmos_sdk.x.bank.v1.IInput[] | null; + + /** MsgMultiSend outputs */ + outputs?: cosmos_sdk.x.bank.v1.IOutput[] | null; + } + + /** Represents a MsgMultiSend. */ + class MsgMultiSend implements IMsgMultiSend { + /** + * Constructs a new MsgMultiSend. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.IMsgMultiSend); + + /** MsgMultiSend inputs. */ + public inputs: cosmos_sdk.x.bank.v1.IInput[]; + + /** MsgMultiSend outputs. */ + public outputs: cosmos_sdk.x.bank.v1.IOutput[]; + + /** + * Creates a new MsgMultiSend instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSend instance + */ + public static create( + properties?: cosmos_sdk.x.bank.v1.IMsgMultiSend, + ): cosmos_sdk.x.bank.v1.MsgMultiSend; + + /** + * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgMultiSend.verify|verify} messages. + * @param message MsgMultiSend message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.IMsgMultiSend, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgMultiSend message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgMultiSend.verify|verify} messages. + * @param message MsgMultiSend message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.IMsgMultiSend, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgMultiSend message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgMultiSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.MsgMultiSend; + + /** + * Decodes a MsgMultiSend message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgMultiSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.bank.v1.MsgMultiSend; + + /** + * Verifies a MsgMultiSend message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgMultiSend message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgMultiSend + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.MsgMultiSend; + + /** + * Creates a plain object from a MsgMultiSend message. Also converts values to other types if specified. + * @param message MsgMultiSend + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.MsgMultiSend, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgMultiSend to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Supply. */ + interface ISupply { + /** Supply total */ + total?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a Supply. */ + class Supply implements ISupply { + /** + * Constructs a new Supply. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.bank.v1.ISupply); + + /** Supply total. */ + public total: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new Supply instance using the specified properties. + * @param [properties] Properties to set + * @returns Supply instance + */ + public static create(properties?: cosmos_sdk.x.bank.v1.ISupply): cosmos_sdk.x.bank.v1.Supply; + + /** + * Encodes the specified Supply message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Supply.verify|verify} messages. + * @param message Supply message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.bank.v1.ISupply, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Supply message, length delimited. Does not implicitly {@link cosmos_sdk.x.bank.v1.Supply.verify|verify} messages. + * @param message Supply message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.bank.v1.ISupply, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.bank.v1.Supply; + + /** + * Decodes a Supply message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.bank.v1.Supply; + + /** + * Verifies a Supply message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Supply message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Supply + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.bank.v1.Supply; + + /** + * Creates a plain object from a Supply message. Also converts values to other types if specified. + * @param message Supply + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.bank.v1.Supply, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Supply to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace capability. */ + namespace capability { + /** Namespace v1. */ + namespace v1 { + /** Properties of a Capability. */ + interface ICapability { + /** Capability index */ + index?: number | Long | null; + } + + /** Represents a Capability. */ + class Capability implements ICapability { + /** + * Constructs a new Capability. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.capability.v1.ICapability); + + /** Capability index. */ + public index: number | Long; + + /** + * Creates a new Capability instance using the specified properties. + * @param [properties] Properties to set + * @returns Capability instance + */ + public static create( + properties?: cosmos_sdk.x.capability.v1.ICapability, + ): cosmos_sdk.x.capability.v1.Capability; + + /** + * Encodes the specified Capability message. Does not implicitly {@link cosmos_sdk.x.capability.v1.Capability.verify|verify} messages. + * @param message Capability message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.capability.v1.ICapability, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Capability message, length delimited. Does not implicitly {@link cosmos_sdk.x.capability.v1.Capability.verify|verify} messages. + * @param message Capability message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.capability.v1.ICapability, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Capability message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Capability + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.capability.v1.Capability; + + /** + * Decodes a Capability message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Capability + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.capability.v1.Capability; + + /** + * Verifies a Capability message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Capability message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Capability + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.capability.v1.Capability; + + /** + * Creates a plain object from a Capability message. Also converts values to other types if specified. + * @param message Capability + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.capability.v1.Capability, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Capability to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Owner. */ + interface IOwner { + /** Owner module */ + module?: string | null; + + /** Owner name */ + name?: string | null; + } + + /** Represents an Owner. */ + class Owner implements IOwner { + /** + * Constructs a new Owner. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.capability.v1.IOwner); + + /** Owner module. */ + public module: string; + + /** Owner name. */ + public name: string; + + /** + * Creates a new Owner instance using the specified properties. + * @param [properties] Properties to set + * @returns Owner instance + */ + public static create( + properties?: cosmos_sdk.x.capability.v1.IOwner, + ): cosmos_sdk.x.capability.v1.Owner; + + /** + * Encodes the specified Owner message. Does not implicitly {@link cosmos_sdk.x.capability.v1.Owner.verify|verify} messages. + * @param message Owner message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.capability.v1.IOwner, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Owner message, length delimited. Does not implicitly {@link cosmos_sdk.x.capability.v1.Owner.verify|verify} messages. + * @param message Owner message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.capability.v1.IOwner, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Owner message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Owner + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.capability.v1.Owner; + + /** + * Decodes an Owner message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Owner + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.capability.v1.Owner; + + /** + * Verifies an Owner message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Owner message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Owner + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.capability.v1.Owner; + + /** + * Creates a plain object from an Owner message. Also converts values to other types if specified. + * @param message Owner + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.capability.v1.Owner, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Owner to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CapabilityOwners. */ + interface ICapabilityOwners { + /** CapabilityOwners owners */ + owners?: cosmos_sdk.x.capability.v1.IOwner[] | null; + } + + /** Represents a CapabilityOwners. */ + class CapabilityOwners implements ICapabilityOwners { + /** + * Constructs a new CapabilityOwners. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.capability.v1.ICapabilityOwners); + + /** CapabilityOwners owners. */ + public owners: cosmos_sdk.x.capability.v1.IOwner[]; + + /** + * Creates a new CapabilityOwners instance using the specified properties. + * @param [properties] Properties to set + * @returns CapabilityOwners instance + */ + public static create( + properties?: cosmos_sdk.x.capability.v1.ICapabilityOwners, + ): cosmos_sdk.x.capability.v1.CapabilityOwners; + + /** + * Encodes the specified CapabilityOwners message. Does not implicitly {@link cosmos_sdk.x.capability.v1.CapabilityOwners.verify|verify} messages. + * @param message CapabilityOwners message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.capability.v1.ICapabilityOwners, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified CapabilityOwners message, length delimited. Does not implicitly {@link cosmos_sdk.x.capability.v1.CapabilityOwners.verify|verify} messages. + * @param message CapabilityOwners message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.capability.v1.ICapabilityOwners, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a CapabilityOwners message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CapabilityOwners + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.capability.v1.CapabilityOwners; + + /** + * Decodes a CapabilityOwners message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CapabilityOwners + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.capability.v1.CapabilityOwners; + + /** + * Verifies a CapabilityOwners message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a CapabilityOwners message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CapabilityOwners + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.capability.v1.CapabilityOwners; + + /** + * Creates a plain object from a CapabilityOwners message. Also converts values to other types if specified. + * @param message CapabilityOwners + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.capability.v1.CapabilityOwners, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this CapabilityOwners to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace crisis. */ + namespace crisis { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgVerifyInvariant. */ + interface IMsgVerifyInvariant { + /** MsgVerifyInvariant sender */ + sender?: Uint8Array | null; + + /** MsgVerifyInvariant invariantModuleName */ + invariantModuleName?: string | null; + + /** MsgVerifyInvariant invariantRoute */ + invariantRoute?: string | null; + } + + /** Represents a MsgVerifyInvariant. */ + class MsgVerifyInvariant implements IMsgVerifyInvariant { + /** + * Constructs a new MsgVerifyInvariant. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant); + + /** MsgVerifyInvariant sender. */ + public sender: Uint8Array; + + /** MsgVerifyInvariant invariantModuleName. */ + public invariantModuleName: string; + + /** MsgVerifyInvariant invariantRoute. */ + public invariantRoute: string; + + /** + * Creates a new MsgVerifyInvariant instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgVerifyInvariant instance + */ + public static create( + properties?: cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant, + ): cosmos_sdk.x.crisis.v1.MsgVerifyInvariant; + + /** + * Encodes the specified MsgVerifyInvariant message. Does not implicitly {@link cosmos_sdk.x.crisis.v1.MsgVerifyInvariant.verify|verify} messages. + * @param message MsgVerifyInvariant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgVerifyInvariant message, length delimited. Does not implicitly {@link cosmos_sdk.x.crisis.v1.MsgVerifyInvariant.verify|verify} messages. + * @param message MsgVerifyInvariant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgVerifyInvariant message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgVerifyInvariant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.crisis.v1.MsgVerifyInvariant; + + /** + * Decodes a MsgVerifyInvariant message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgVerifyInvariant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.crisis.v1.MsgVerifyInvariant; + + /** + * Verifies a MsgVerifyInvariant message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgVerifyInvariant message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgVerifyInvariant + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.crisis.v1.MsgVerifyInvariant; + + /** + * Creates a plain object from a MsgVerifyInvariant message. Also converts values to other types if specified. + * @param message MsgVerifyInvariant + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.crisis.v1.MsgVerifyInvariant, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgVerifyInvariant to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace distribution. */ + namespace distribution { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgSetWithdrawAddress. */ + interface IMsgSetWithdrawAddress { + /** MsgSetWithdrawAddress delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** MsgSetWithdrawAddress withdrawAddress */ + withdrawAddress?: Uint8Array | null; + } + + /** Represents a MsgSetWithdrawAddress. */ + class MsgSetWithdrawAddress implements IMsgSetWithdrawAddress { + /** + * Constructs a new MsgSetWithdrawAddress. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress); + + /** MsgSetWithdrawAddress delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** MsgSetWithdrawAddress withdrawAddress. */ + public withdrawAddress: Uint8Array; + + /** + * Creates a new MsgSetWithdrawAddress instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSetWithdrawAddress instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress, + ): cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress; + + /** + * Encodes the specified MsgSetWithdrawAddress message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress.verify|verify} messages. + * @param message MsgSetWithdrawAddress message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgSetWithdrawAddress message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress.verify|verify} messages. + * @param message MsgSetWithdrawAddress message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSetWithdrawAddress message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSetWithdrawAddress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress; + + /** + * Decodes a MsgSetWithdrawAddress message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSetWithdrawAddress + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress; + + /** + * Verifies a MsgSetWithdrawAddress message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgSetWithdrawAddress message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSetWithdrawAddress + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress; + + /** + * Creates a plain object from a MsgSetWithdrawAddress message. Also converts values to other types if specified. + * @param message MsgSetWithdrawAddress + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgSetWithdrawAddress to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgWithdrawDelegatorReward. */ + interface IMsgWithdrawDelegatorReward { + /** MsgWithdrawDelegatorReward delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** MsgWithdrawDelegatorReward validatorAddress */ + validatorAddress?: Uint8Array | null; + } + + /** Represents a MsgWithdrawDelegatorReward. */ + class MsgWithdrawDelegatorReward implements IMsgWithdrawDelegatorReward { + /** + * Constructs a new MsgWithdrawDelegatorReward. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward); + + /** MsgWithdrawDelegatorReward delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** MsgWithdrawDelegatorReward validatorAddress. */ + public validatorAddress: Uint8Array; + + /** + * Creates a new MsgWithdrawDelegatorReward instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgWithdrawDelegatorReward instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward, + ): cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward; + + /** + * Encodes the specified MsgWithdrawDelegatorReward message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward.verify|verify} messages. + * @param message MsgWithdrawDelegatorReward message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgWithdrawDelegatorReward message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward.verify|verify} messages. + * @param message MsgWithdrawDelegatorReward message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgWithdrawDelegatorReward message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgWithdrawDelegatorReward + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward; + + /** + * Decodes a MsgWithdrawDelegatorReward message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgWithdrawDelegatorReward + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward; + + /** + * Verifies a MsgWithdrawDelegatorReward message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgWithdrawDelegatorReward message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgWithdrawDelegatorReward + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward; + + /** + * Creates a plain object from a MsgWithdrawDelegatorReward message. Also converts values to other types if specified. + * @param message MsgWithdrawDelegatorReward + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgWithdrawDelegatorReward to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgWithdrawValidatorCommission. */ + interface IMsgWithdrawValidatorCommission { + /** MsgWithdrawValidatorCommission validatorAddress */ + validatorAddress?: Uint8Array | null; + } + + /** Represents a MsgWithdrawValidatorCommission. */ + class MsgWithdrawValidatorCommission implements IMsgWithdrawValidatorCommission { + /** + * Constructs a new MsgWithdrawValidatorCommission. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission); + + /** MsgWithdrawValidatorCommission validatorAddress. */ + public validatorAddress: Uint8Array; + + /** + * Creates a new MsgWithdrawValidatorCommission instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgWithdrawValidatorCommission instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission, + ): cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission; + + /** + * Encodes the specified MsgWithdrawValidatorCommission message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission.verify|verify} messages. + * @param message MsgWithdrawValidatorCommission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgWithdrawValidatorCommission message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission.verify|verify} messages. + * @param message MsgWithdrawValidatorCommission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgWithdrawValidatorCommission message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgWithdrawValidatorCommission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission; + + /** + * Decodes a MsgWithdrawValidatorCommission message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgWithdrawValidatorCommission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission; + + /** + * Verifies a MsgWithdrawValidatorCommission message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgWithdrawValidatorCommission message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgWithdrawValidatorCommission + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission; + + /** + * Creates a plain object from a MsgWithdrawValidatorCommission message. Also converts values to other types if specified. + * @param message MsgWithdrawValidatorCommission + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgWithdrawValidatorCommission to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgFundCommunityPool. */ + interface IMsgFundCommunityPool { + /** MsgFundCommunityPool amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + + /** MsgFundCommunityPool depositor */ + depositor?: Uint8Array | null; + } + + /** Represents a MsgFundCommunityPool. */ + class MsgFundCommunityPool implements IMsgFundCommunityPool { + /** + * Constructs a new MsgFundCommunityPool. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool); + + /** MsgFundCommunityPool amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** MsgFundCommunityPool depositor. */ + public depositor: Uint8Array; + + /** + * Creates a new MsgFundCommunityPool instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgFundCommunityPool instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool, + ): cosmos_sdk.x.distribution.v1.MsgFundCommunityPool; + + /** + * Encodes the specified MsgFundCommunityPool message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgFundCommunityPool.verify|verify} messages. + * @param message MsgFundCommunityPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgFundCommunityPool message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgFundCommunityPool.verify|verify} messages. + * @param message MsgFundCommunityPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgFundCommunityPool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgFundCommunityPool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.MsgFundCommunityPool; + + /** + * Decodes a MsgFundCommunityPool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgFundCommunityPool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.MsgFundCommunityPool; + + /** + * Verifies a MsgFundCommunityPool message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgFundCommunityPool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgFundCommunityPool + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.MsgFundCommunityPool; + + /** + * Creates a plain object from a MsgFundCommunityPool message. Also converts values to other types if specified. + * @param message MsgFundCommunityPool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.MsgFundCommunityPool, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgFundCommunityPool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Params. */ + interface IParams { + /** Params communityTax */ + communityTax?: string | null; + + /** Params baseProposerReward */ + baseProposerReward?: string | null; + + /** Params bonusProposerReward */ + bonusProposerReward?: string | null; + + /** Params withdrawAddrEnabled */ + withdrawAddrEnabled?: boolean | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IParams); + + /** Params communityTax. */ + public communityTax: string; + + /** Params baseProposerReward. */ + public baseProposerReward: string; + + /** Params bonusProposerReward. */ + public bonusProposerReward: string; + + /** Params withdrawAddrEnabled. */ + public withdrawAddrEnabled: boolean; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IParams, + ): cosmos_sdk.x.distribution.v1.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.Params; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.Params; + + /** + * Verifies a Params message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Params + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.distribution.v1.Params; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.Params, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorHistoricalRewards. */ + interface IValidatorHistoricalRewards { + /** ValidatorHistoricalRewards cumulativeRewardRatio */ + cumulativeRewardRatio?: cosmos_sdk.v1.IDecCoin[] | null; + + /** ValidatorHistoricalRewards referenceCount */ + referenceCount?: number | null; + } + + /** Represents a ValidatorHistoricalRewards. */ + class ValidatorHistoricalRewards implements IValidatorHistoricalRewards { + /** + * Constructs a new ValidatorHistoricalRewards. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards); + + /** ValidatorHistoricalRewards cumulativeRewardRatio. */ + public cumulativeRewardRatio: cosmos_sdk.v1.IDecCoin[]; + + /** ValidatorHistoricalRewards referenceCount. */ + public referenceCount: number; + + /** + * Creates a new ValidatorHistoricalRewards instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorHistoricalRewards instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards, + ): cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards; + + /** + * Encodes the specified ValidatorHistoricalRewards message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards.verify|verify} messages. + * @param message ValidatorHistoricalRewards message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorHistoricalRewards message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards.verify|verify} messages. + * @param message ValidatorHistoricalRewards message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorHistoricalRewards message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorHistoricalRewards + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards; + + /** + * Decodes a ValidatorHistoricalRewards message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorHistoricalRewards + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards; + + /** + * Verifies a ValidatorHistoricalRewards message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorHistoricalRewards message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorHistoricalRewards + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards; + + /** + * Creates a plain object from a ValidatorHistoricalRewards message. Also converts values to other types if specified. + * @param message ValidatorHistoricalRewards + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorHistoricalRewards to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorCurrentRewards. */ + interface IValidatorCurrentRewards { + /** ValidatorCurrentRewards rewards */ + rewards?: cosmos_sdk.v1.IDecCoin[] | null; + + /** ValidatorCurrentRewards period */ + period?: number | Long | null; + } + + /** Represents a ValidatorCurrentRewards. */ + class ValidatorCurrentRewards implements IValidatorCurrentRewards { + /** + * Constructs a new ValidatorCurrentRewards. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards); + + /** ValidatorCurrentRewards rewards. */ + public rewards: cosmos_sdk.v1.IDecCoin[]; + + /** ValidatorCurrentRewards period. */ + public period: number | Long; + + /** + * Creates a new ValidatorCurrentRewards instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorCurrentRewards instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards, + ): cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards; + + /** + * Encodes the specified ValidatorCurrentRewards message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards.verify|verify} messages. + * @param message ValidatorCurrentRewards message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorCurrentRewards message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards.verify|verify} messages. + * @param message ValidatorCurrentRewards message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorCurrentRewards message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorCurrentRewards + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards; + + /** + * Decodes a ValidatorCurrentRewards message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorCurrentRewards + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards; + + /** + * Verifies a ValidatorCurrentRewards message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorCurrentRewards message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorCurrentRewards + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards; + + /** + * Creates a plain object from a ValidatorCurrentRewards message. Also converts values to other types if specified. + * @param message ValidatorCurrentRewards + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorCurrentRewards to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorAccumulatedCommission. */ + interface IValidatorAccumulatedCommission { + /** ValidatorAccumulatedCommission commission */ + commission?: cosmos_sdk.v1.IDecCoin[] | null; + } + + /** Represents a ValidatorAccumulatedCommission. */ + class ValidatorAccumulatedCommission implements IValidatorAccumulatedCommission { + /** + * Constructs a new ValidatorAccumulatedCommission. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission); + + /** ValidatorAccumulatedCommission commission. */ + public commission: cosmos_sdk.v1.IDecCoin[]; + + /** + * Creates a new ValidatorAccumulatedCommission instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorAccumulatedCommission instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission, + ): cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission; + + /** + * Encodes the specified ValidatorAccumulatedCommission message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission.verify|verify} messages. + * @param message ValidatorAccumulatedCommission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorAccumulatedCommission message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission.verify|verify} messages. + * @param message ValidatorAccumulatedCommission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorAccumulatedCommission message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorAccumulatedCommission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission; + + /** + * Decodes a ValidatorAccumulatedCommission message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorAccumulatedCommission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission; + + /** + * Verifies a ValidatorAccumulatedCommission message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorAccumulatedCommission message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorAccumulatedCommission + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission; + + /** + * Creates a plain object from a ValidatorAccumulatedCommission message. Also converts values to other types if specified. + * @param message ValidatorAccumulatedCommission + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorAccumulatedCommission to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorOutstandingRewards. */ + interface IValidatorOutstandingRewards { + /** ValidatorOutstandingRewards rewards */ + rewards?: cosmos_sdk.v1.IDecCoin[] | null; + } + + /** Represents a ValidatorOutstandingRewards. */ + class ValidatorOutstandingRewards implements IValidatorOutstandingRewards { + /** + * Constructs a new ValidatorOutstandingRewards. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards); + + /** ValidatorOutstandingRewards rewards. */ + public rewards: cosmos_sdk.v1.IDecCoin[]; + + /** + * Creates a new ValidatorOutstandingRewards instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorOutstandingRewards instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards, + ): cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards; + + /** + * Encodes the specified ValidatorOutstandingRewards message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards.verify|verify} messages. + * @param message ValidatorOutstandingRewards message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorOutstandingRewards message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards.verify|verify} messages. + * @param message ValidatorOutstandingRewards message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorOutstandingRewards message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorOutstandingRewards + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards; + + /** + * Decodes a ValidatorOutstandingRewards message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorOutstandingRewards + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards; + + /** + * Verifies a ValidatorOutstandingRewards message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorOutstandingRewards message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorOutstandingRewards + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards; + + /** + * Creates a plain object from a ValidatorOutstandingRewards message. Also converts values to other types if specified. + * @param message ValidatorOutstandingRewards + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorOutstandingRewards to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorSlashEvent. */ + interface IValidatorSlashEvent { + /** ValidatorSlashEvent validatorPeriod */ + validatorPeriod?: number | Long | null; + + /** ValidatorSlashEvent fraction */ + fraction?: string | null; + } + + /** Represents a ValidatorSlashEvent. */ + class ValidatorSlashEvent implements IValidatorSlashEvent { + /** + * Constructs a new ValidatorSlashEvent. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent); + + /** ValidatorSlashEvent validatorPeriod. */ + public validatorPeriod: number | Long; + + /** ValidatorSlashEvent fraction. */ + public fraction: string; + + /** + * Creates a new ValidatorSlashEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorSlashEvent instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent, + ): cosmos_sdk.x.distribution.v1.ValidatorSlashEvent; + + /** + * Encodes the specified ValidatorSlashEvent message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorSlashEvent.verify|verify} messages. + * @param message ValidatorSlashEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorSlashEvent message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorSlashEvent.verify|verify} messages. + * @param message ValidatorSlashEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorSlashEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorSlashEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.ValidatorSlashEvent; + + /** + * Decodes a ValidatorSlashEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorSlashEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.ValidatorSlashEvent; + + /** + * Verifies a ValidatorSlashEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorSlashEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorSlashEvent + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.ValidatorSlashEvent; + + /** + * Creates a plain object from a ValidatorSlashEvent message. Also converts values to other types if specified. + * @param message ValidatorSlashEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.ValidatorSlashEvent, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorSlashEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorSlashEvents. */ + interface IValidatorSlashEvents { + /** ValidatorSlashEvents validatorSlashEvents */ + validatorSlashEvents?: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent[] | null; + } + + /** Represents a ValidatorSlashEvents. */ + class ValidatorSlashEvents implements IValidatorSlashEvents { + /** + * Constructs a new ValidatorSlashEvents. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IValidatorSlashEvents); + + /** ValidatorSlashEvents validatorSlashEvents. */ + public validatorSlashEvents: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent[]; + + /** + * Creates a new ValidatorSlashEvents instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorSlashEvents instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IValidatorSlashEvents, + ): cosmos_sdk.x.distribution.v1.ValidatorSlashEvents; + + /** + * Encodes the specified ValidatorSlashEvents message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorSlashEvents.verify|verify} messages. + * @param message ValidatorSlashEvents message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IValidatorSlashEvents, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorSlashEvents message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorSlashEvents.verify|verify} messages. + * @param message ValidatorSlashEvents message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IValidatorSlashEvents, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorSlashEvents message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorSlashEvents + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.ValidatorSlashEvents; + + /** + * Decodes a ValidatorSlashEvents message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorSlashEvents + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.ValidatorSlashEvents; + + /** + * Verifies a ValidatorSlashEvents message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorSlashEvents message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorSlashEvents + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.ValidatorSlashEvents; + + /** + * Creates a plain object from a ValidatorSlashEvents message. Also converts values to other types if specified. + * @param message ValidatorSlashEvents + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.ValidatorSlashEvents, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorSlashEvents to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FeePool. */ + interface IFeePool { + /** FeePool communityPool */ + communityPool?: cosmos_sdk.v1.IDecCoin[] | null; + } + + /** Represents a FeePool. */ + class FeePool implements IFeePool { + /** + * Constructs a new FeePool. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IFeePool); + + /** FeePool communityPool. */ + public communityPool: cosmos_sdk.v1.IDecCoin[]; + + /** + * Creates a new FeePool instance using the specified properties. + * @param [properties] Properties to set + * @returns FeePool instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IFeePool, + ): cosmos_sdk.x.distribution.v1.FeePool; + + /** + * Encodes the specified FeePool message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.FeePool.verify|verify} messages. + * @param message FeePool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IFeePool, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FeePool message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.FeePool.verify|verify} messages. + * @param message FeePool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IFeePool, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FeePool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeePool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.FeePool; + + /** + * Decodes a FeePool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeePool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.FeePool; + + /** + * Verifies a FeePool message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FeePool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeePool + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.distribution.v1.FeePool; + + /** + * Creates a plain object from a FeePool message. Also converts values to other types if specified. + * @param message FeePool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.FeePool, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FeePool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CommunityPoolSpendProposal. */ + interface ICommunityPoolSpendProposal { + /** CommunityPoolSpendProposal title */ + title?: string | null; + + /** CommunityPoolSpendProposal description */ + description?: string | null; + + /** CommunityPoolSpendProposal recipient */ + recipient?: Uint8Array | null; + + /** CommunityPoolSpendProposal amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a CommunityPoolSpendProposal. */ + class CommunityPoolSpendProposal implements ICommunityPoolSpendProposal { + /** + * Constructs a new CommunityPoolSpendProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal); + + /** CommunityPoolSpendProposal title. */ + public title: string; + + /** CommunityPoolSpendProposal description. */ + public description: string; + + /** CommunityPoolSpendProposal recipient. */ + public recipient: Uint8Array; + + /** CommunityPoolSpendProposal amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new CommunityPoolSpendProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns CommunityPoolSpendProposal instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal, + ): cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal; + + /** + * Encodes the specified CommunityPoolSpendProposal message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal.verify|verify} messages. + * @param message CommunityPoolSpendProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified CommunityPoolSpendProposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal.verify|verify} messages. + * @param message CommunityPoolSpendProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a CommunityPoolSpendProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommunityPoolSpendProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal; + + /** + * Decodes a CommunityPoolSpendProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommunityPoolSpendProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal; + + /** + * Verifies a CommunityPoolSpendProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a CommunityPoolSpendProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommunityPoolSpendProposal + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal; + + /** + * Creates a plain object from a CommunityPoolSpendProposal message. Also converts values to other types if specified. + * @param message CommunityPoolSpendProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this CommunityPoolSpendProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DelegatorStartingInfo. */ + interface IDelegatorStartingInfo { + /** DelegatorStartingInfo previousPeriod */ + previousPeriod?: number | Long | null; + + /** DelegatorStartingInfo stake */ + stake?: string | null; + + /** DelegatorStartingInfo height */ + height?: number | Long | null; + } + + /** Represents a DelegatorStartingInfo. */ + class DelegatorStartingInfo implements IDelegatorStartingInfo { + /** + * Constructs a new DelegatorStartingInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo); + + /** DelegatorStartingInfo previousPeriod. */ + public previousPeriod: number | Long; + + /** DelegatorStartingInfo stake. */ + public stake: string; + + /** DelegatorStartingInfo height. */ + public height: number | Long; + + /** + * Creates a new DelegatorStartingInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns DelegatorStartingInfo instance + */ + public static create( + properties?: cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo, + ): cosmos_sdk.x.distribution.v1.DelegatorStartingInfo; + + /** + * Encodes the specified DelegatorStartingInfo message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.DelegatorStartingInfo.verify|verify} messages. + * @param message DelegatorStartingInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DelegatorStartingInfo message, length delimited. Does not implicitly {@link cosmos_sdk.x.distribution.v1.DelegatorStartingInfo.verify|verify} messages. + * @param message DelegatorStartingInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DelegatorStartingInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DelegatorStartingInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.distribution.v1.DelegatorStartingInfo; + + /** + * Decodes a DelegatorStartingInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DelegatorStartingInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.distribution.v1.DelegatorStartingInfo; + + /** + * Verifies a DelegatorStartingInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DelegatorStartingInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DelegatorStartingInfo + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.distribution.v1.DelegatorStartingInfo; + + /** + * Creates a plain object from a DelegatorStartingInfo message. Also converts values to other types if specified. + * @param message DelegatorStartingInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.distribution.v1.DelegatorStartingInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DelegatorStartingInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace evidence. */ + namespace evidence { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgSubmitEvidence. */ + interface IMsgSubmitEvidence { + /** MsgSubmitEvidence submitter */ + submitter?: Uint8Array | null; + + /** MsgSubmitEvidence evidence */ + evidence?: google.protobuf.IAny | null; + } + + /** Represents a MsgSubmitEvidence. */ + class MsgSubmitEvidence implements IMsgSubmitEvidence { + /** + * Constructs a new MsgSubmitEvidence. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence); + + /** MsgSubmitEvidence submitter. */ + public submitter: Uint8Array; + + /** MsgSubmitEvidence evidence. */ + public evidence?: google.protobuf.IAny | null; + + /** + * Creates a new MsgSubmitEvidence instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitEvidence instance + */ + public static create( + properties?: cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence, + ): cosmos_sdk.x.evidence.v1.MsgSubmitEvidence; + + /** + * Encodes the specified MsgSubmitEvidence message. Does not implicitly {@link cosmos_sdk.x.evidence.v1.MsgSubmitEvidence.verify|verify} messages. + * @param message MsgSubmitEvidence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgSubmitEvidence message, length delimited. Does not implicitly {@link cosmos_sdk.x.evidence.v1.MsgSubmitEvidence.verify|verify} messages. + * @param message MsgSubmitEvidence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitEvidence message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSubmitEvidence + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.evidence.v1.MsgSubmitEvidence; + + /** + * Decodes a MsgSubmitEvidence message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSubmitEvidence + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.evidence.v1.MsgSubmitEvidence; + + /** + * Verifies a MsgSubmitEvidence message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgSubmitEvidence message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSubmitEvidence + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.evidence.v1.MsgSubmitEvidence; + + /** + * Creates a plain object from a MsgSubmitEvidence message. Also converts values to other types if specified. + * @param message MsgSubmitEvidence + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.evidence.v1.MsgSubmitEvidence, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgSubmitEvidence to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Equivocation. */ + interface IEquivocation { + /** Equivocation height */ + height?: number | Long | null; + + /** Equivocation time */ + time?: google.protobuf.ITimestamp | null; + + /** Equivocation power */ + power?: number | Long | null; + + /** Equivocation consensusAddress */ + consensusAddress?: Uint8Array | null; + } + + /** Represents an Equivocation. */ + class Equivocation implements IEquivocation { + /** + * Constructs a new Equivocation. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.evidence.v1.IEquivocation); + + /** Equivocation height. */ + public height: number | Long; + + /** Equivocation time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Equivocation power. */ + public power: number | Long; + + /** Equivocation consensusAddress. */ + public consensusAddress: Uint8Array; + + /** + * Creates a new Equivocation instance using the specified properties. + * @param [properties] Properties to set + * @returns Equivocation instance + */ + public static create( + properties?: cosmos_sdk.x.evidence.v1.IEquivocation, + ): cosmos_sdk.x.evidence.v1.Equivocation; + + /** + * Encodes the specified Equivocation message. Does not implicitly {@link cosmos_sdk.x.evidence.v1.Equivocation.verify|verify} messages. + * @param message Equivocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.evidence.v1.IEquivocation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Equivocation message, length delimited. Does not implicitly {@link cosmos_sdk.x.evidence.v1.Equivocation.verify|verify} messages. + * @param message Equivocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.evidence.v1.IEquivocation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Equivocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Equivocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.evidence.v1.Equivocation; + + /** + * Decodes an Equivocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Equivocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.evidence.v1.Equivocation; + + /** + * Verifies an Equivocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Equivocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Equivocation + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.evidence.v1.Equivocation; + + /** + * Creates a plain object from an Equivocation message. Also converts values to other types if specified. + * @param message Equivocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.evidence.v1.Equivocation, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Equivocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace gov. */ + namespace gov { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgSubmitProposal. */ + interface IMsgSubmitProposal { + /** MsgSubmitProposal content */ + content?: google.protobuf.IAny | null; + + /** MsgSubmitProposal initialDeposit */ + initialDeposit?: cosmos_sdk.v1.ICoin[] | null; + + /** MsgSubmitProposal proposer */ + proposer?: Uint8Array | null; + } + + /** Represents a MsgSubmitProposal. */ + class MsgSubmitProposal implements IMsgSubmitProposal { + /** + * Constructs a new MsgSubmitProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.IMsgSubmitProposal); + + /** MsgSubmitProposal content. */ + public content?: google.protobuf.IAny | null; + + /** MsgSubmitProposal initialDeposit. */ + public initialDeposit: cosmos_sdk.v1.ICoin[]; + + /** MsgSubmitProposal proposer. */ + public proposer: Uint8Array; + + /** + * Creates a new MsgSubmitProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitProposal instance + */ + public static create( + properties?: cosmos_sdk.x.gov.v1.IMsgSubmitProposal, + ): cosmos_sdk.x.gov.v1.MsgSubmitProposal; + + /** + * Encodes the specified MsgSubmitProposal message. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgSubmitProposal.verify|verify} messages. + * @param message MsgSubmitProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.IMsgSubmitProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgSubmitProposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgSubmitProposal.verify|verify} messages. + * @param message MsgSubmitProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.IMsgSubmitProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSubmitProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.MsgSubmitProposal; + + /** + * Decodes a MsgSubmitProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSubmitProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.gov.v1.MsgSubmitProposal; + + /** + * Verifies a MsgSubmitProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgSubmitProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSubmitProposal + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.MsgSubmitProposal; + + /** + * Creates a plain object from a MsgSubmitProposal message. Also converts values to other types if specified. + * @param message MsgSubmitProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.MsgSubmitProposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgSubmitProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgVote. */ + interface IMsgVote { + /** MsgVote proposalId */ + proposalId?: number | Long | null; + + /** MsgVote voter */ + voter?: Uint8Array | null; + + /** MsgVote option */ + option?: cosmos_sdk.x.gov.v1.VoteOption | null; + } + + /** Represents a MsgVote. */ + class MsgVote implements IMsgVote { + /** + * Constructs a new MsgVote. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.IMsgVote); + + /** MsgVote proposalId. */ + public proposalId: number | Long; + + /** MsgVote voter. */ + public voter: Uint8Array; + + /** MsgVote option. */ + public option: cosmos_sdk.x.gov.v1.VoteOption; + + /** + * Creates a new MsgVote instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgVote instance + */ + public static create(properties?: cosmos_sdk.x.gov.v1.IMsgVote): cosmos_sdk.x.gov.v1.MsgVote; + + /** + * Encodes the specified MsgVote message. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgVote.verify|verify} messages. + * @param message MsgVote message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.IMsgVote, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgVote message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgVote.verify|verify} messages. + * @param message MsgVote message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.IMsgVote, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgVote message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgVote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.MsgVote; + + /** + * Decodes a MsgVote message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgVote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.gov.v1.MsgVote; + + /** + * Verifies a MsgVote message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgVote message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgVote + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.MsgVote; + + /** + * Creates a plain object from a MsgVote message. Also converts values to other types if specified. + * @param message MsgVote + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.MsgVote, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgVote to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgDeposit. */ + interface IMsgDeposit { + /** MsgDeposit proposalId */ + proposalId?: number | Long | null; + + /** MsgDeposit depositor */ + depositor?: Uint8Array | null; + + /** MsgDeposit amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a MsgDeposit. */ + class MsgDeposit implements IMsgDeposit { + /** + * Constructs a new MsgDeposit. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.IMsgDeposit); + + /** MsgDeposit proposalId. */ + public proposalId: number | Long; + + /** MsgDeposit depositor. */ + public depositor: Uint8Array; + + /** MsgDeposit amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new MsgDeposit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgDeposit instance + */ + public static create(properties?: cosmos_sdk.x.gov.v1.IMsgDeposit): cosmos_sdk.x.gov.v1.MsgDeposit; + + /** + * Encodes the specified MsgDeposit message. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgDeposit.verify|verify} messages. + * @param message MsgDeposit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.IMsgDeposit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgDeposit message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgDeposit.verify|verify} messages. + * @param message MsgDeposit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.IMsgDeposit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgDeposit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgDeposit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.MsgDeposit; + + /** + * Decodes a MsgDeposit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgDeposit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.gov.v1.MsgDeposit; + + /** + * Verifies a MsgDeposit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgDeposit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgDeposit + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.MsgDeposit; + + /** + * Creates a plain object from a MsgDeposit message. Also converts values to other types if specified. + * @param message MsgDeposit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.MsgDeposit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgDeposit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** VoteOption enum. */ + enum VoteOption { + VOTE_OPTION_UNSPECIFIED = 0, + VOTE_OPTION_YES = 1, + VOTE_OPTION_ABSTAIN = 2, + VOTE_OPTION_NO = 3, + VOTE_OPTION_NO_WITH_VETO = 4, + } + + /** Properties of a TextProposal. */ + interface ITextProposal { + /** TextProposal title */ + title?: string | null; + + /** TextProposal description */ + description?: string | null; + } + + /** Represents a TextProposal. */ + class TextProposal implements ITextProposal { + /** + * Constructs a new TextProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.ITextProposal); + + /** TextProposal title. */ + public title: string; + + /** TextProposal description. */ + public description: string; + + /** + * Creates a new TextProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns TextProposal instance + */ + public static create( + properties?: cosmos_sdk.x.gov.v1.ITextProposal, + ): cosmos_sdk.x.gov.v1.TextProposal; + + /** + * Encodes the specified TextProposal message. Does not implicitly {@link cosmos_sdk.x.gov.v1.TextProposal.verify|verify} messages. + * @param message TextProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.ITextProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified TextProposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.TextProposal.verify|verify} messages. + * @param message TextProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.ITextProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a TextProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.TextProposal; + + /** + * Decodes a TextProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.gov.v1.TextProposal; + + /** + * Verifies a TextProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a TextProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextProposal + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.TextProposal; + + /** + * Creates a plain object from a TextProposal message. Also converts values to other types if specified. + * @param message TextProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.TextProposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this TextProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Deposit. */ + interface IDeposit { + /** Deposit proposalId */ + proposalId?: number | Long | null; + + /** Deposit depositor */ + depositor?: Uint8Array | null; + + /** Deposit amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + } + + /** Represents a Deposit. */ + class Deposit implements IDeposit { + /** + * Constructs a new Deposit. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.IDeposit); + + /** Deposit proposalId. */ + public proposalId: number | Long; + + /** Deposit depositor. */ + public depositor: Uint8Array; + + /** Deposit amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** + * Creates a new Deposit instance using the specified properties. + * @param [properties] Properties to set + * @returns Deposit instance + */ + public static create(properties?: cosmos_sdk.x.gov.v1.IDeposit): cosmos_sdk.x.gov.v1.Deposit; + + /** + * Encodes the specified Deposit message. Does not implicitly {@link cosmos_sdk.x.gov.v1.Deposit.verify|verify} messages. + * @param message Deposit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.IDeposit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Deposit message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.Deposit.verify|verify} messages. + * @param message Deposit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.IDeposit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Deposit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Deposit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.Deposit; + + /** + * Decodes a Deposit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Deposit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.gov.v1.Deposit; + + /** + * Verifies a Deposit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Deposit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Deposit + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.Deposit; + + /** + * Creates a plain object from a Deposit message. Also converts values to other types if specified. + * @param message Deposit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.Deposit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Deposit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Proposal. */ + interface IProposal { + /** Proposal proposalId */ + proposalId?: number | Long | null; + + /** Proposal content */ + content?: google.protobuf.IAny | null; + + /** Proposal status */ + status?: cosmos_sdk.x.gov.v1.ProposalStatus | null; + + /** Proposal finalTallyResult */ + finalTallyResult?: cosmos_sdk.x.gov.v1.ITallyResult | null; + + /** Proposal submitTime */ + submitTime?: google.protobuf.ITimestamp | null; + + /** Proposal depositEndTime */ + depositEndTime?: google.protobuf.ITimestamp | null; + + /** Proposal totalDeposit */ + totalDeposit?: cosmos_sdk.v1.ICoin[] | null; + + /** Proposal votingStartTime */ + votingStartTime?: google.protobuf.ITimestamp | null; + + /** Proposal votingEndTime */ + votingEndTime?: google.protobuf.ITimestamp | null; + } + + /** Represents a Proposal. */ + class Proposal implements IProposal { + /** + * Constructs a new Proposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.IProposal); + + /** Proposal proposalId. */ + public proposalId: number | Long; + + /** Proposal content. */ + public content?: google.protobuf.IAny | null; + + /** Proposal status. */ + public status: cosmos_sdk.x.gov.v1.ProposalStatus; + + /** Proposal finalTallyResult. */ + public finalTallyResult?: cosmos_sdk.x.gov.v1.ITallyResult | null; + + /** Proposal submitTime. */ + public submitTime?: google.protobuf.ITimestamp | null; + + /** Proposal depositEndTime. */ + public depositEndTime?: google.protobuf.ITimestamp | null; + + /** Proposal totalDeposit. */ + public totalDeposit: cosmos_sdk.v1.ICoin[]; + + /** Proposal votingStartTime. */ + public votingStartTime?: google.protobuf.ITimestamp | null; + + /** Proposal votingEndTime. */ + public votingEndTime?: google.protobuf.ITimestamp | null; + + /** + * Creates a new Proposal instance using the specified properties. + * @param [properties] Properties to set + * @returns Proposal instance + */ + public static create(properties?: cosmos_sdk.x.gov.v1.IProposal): cosmos_sdk.x.gov.v1.Proposal; + + /** + * Encodes the specified Proposal message. Does not implicitly {@link cosmos_sdk.x.gov.v1.Proposal.verify|verify} messages. + * @param message Proposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.IProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Proposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.Proposal.verify|verify} messages. + * @param message Proposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.IProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Proposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Proposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.Proposal; + + /** + * Decodes a Proposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Proposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.gov.v1.Proposal; + + /** + * Verifies a Proposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Proposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Proposal + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.Proposal; + + /** + * Creates a plain object from a Proposal message. Also converts values to other types if specified. + * @param message Proposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.Proposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Proposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** ProposalStatus enum. */ + enum ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = 0, + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, + PROPOSAL_STATUS_VOTING_PERIOD = 2, + PROPOSAL_STATUS_PASSED = 3, + PROPOSAL_STATUS_REJECTED = 4, + PROPOSAL_STATUS_FAILED = 5, + } + + /** Properties of a TallyResult. */ + interface ITallyResult { + /** TallyResult yes */ + yes?: string | null; + + /** TallyResult abstain */ + abstain?: string | null; + + /** TallyResult no */ + no?: string | null; + + /** TallyResult noWithVeto */ + noWithVeto?: string | null; + } + + /** Represents a TallyResult. */ + class TallyResult implements ITallyResult { + /** + * Constructs a new TallyResult. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.ITallyResult); + + /** TallyResult yes. */ + public yes: string; + + /** TallyResult abstain. */ + public abstain: string; + + /** TallyResult no. */ + public no: string; + + /** TallyResult noWithVeto. */ + public noWithVeto: string; + + /** + * Creates a new TallyResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TallyResult instance + */ + public static create( + properties?: cosmos_sdk.x.gov.v1.ITallyResult, + ): cosmos_sdk.x.gov.v1.TallyResult; + + /** + * Encodes the specified TallyResult message. Does not implicitly {@link cosmos_sdk.x.gov.v1.TallyResult.verify|verify} messages. + * @param message TallyResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.ITallyResult, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified TallyResult message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.TallyResult.verify|verify} messages. + * @param message TallyResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.ITallyResult, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a TallyResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TallyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.TallyResult; + + /** + * Decodes a TallyResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TallyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.gov.v1.TallyResult; + + /** + * Verifies a TallyResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a TallyResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TallyResult + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.TallyResult; + + /** + * Creates a plain object from a TallyResult message. Also converts values to other types if specified. + * @param message TallyResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.TallyResult, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this TallyResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Vote. */ + interface IVote { + /** Vote proposalId */ + proposalId?: number | Long | null; + + /** Vote voter */ + voter?: Uint8Array | null; + + /** Vote option */ + option?: cosmos_sdk.x.gov.v1.VoteOption | null; + } + + /** Represents a Vote. */ + class Vote implements IVote { + /** + * Constructs a new Vote. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.gov.v1.IVote); + + /** Vote proposalId. */ + public proposalId: number | Long; + + /** Vote voter. */ + public voter: Uint8Array; + + /** Vote option. */ + public option: cosmos_sdk.x.gov.v1.VoteOption; + + /** + * Creates a new Vote instance using the specified properties. + * @param [properties] Properties to set + * @returns Vote instance + */ + public static create(properties?: cosmos_sdk.x.gov.v1.IVote): cosmos_sdk.x.gov.v1.Vote; + + /** + * Encodes the specified Vote message. Does not implicitly {@link cosmos_sdk.x.gov.v1.Vote.verify|verify} messages. + * @param message Vote message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.gov.v1.IVote, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Vote message, length delimited. Does not implicitly {@link cosmos_sdk.x.gov.v1.Vote.verify|verify} messages. + * @param message Vote message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.gov.v1.IVote, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Vote message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.gov.v1.Vote; + + /** + * Decodes a Vote message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.gov.v1.Vote; + + /** + * Verifies a Vote message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Vote message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vote + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.gov.v1.Vote; + + /** + * Creates a plain object from a Vote message. Also converts values to other types if specified. + * @param message Vote + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.gov.v1.Vote, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Vote to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace transfer. */ + namespace transfer { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgTransfer. */ + interface IMsgTransfer { + /** MsgTransfer sourcePort */ + sourcePort?: string | null; + + /** MsgTransfer sourceChannel */ + sourceChannel?: string | null; + + /** MsgTransfer amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + + /** MsgTransfer sender */ + sender?: Uint8Array | null; + + /** MsgTransfer receiver */ + receiver?: string | null; + + /** MsgTransfer timeoutHeight */ + timeoutHeight?: number | Long | null; + + /** MsgTransfer timeoutTimestamp */ + timeoutTimestamp?: number | Long | null; + } + + /** Represents a MsgTransfer. */ + class MsgTransfer implements IMsgTransfer { + /** + * Constructs a new MsgTransfer. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.transfer.v1.IMsgTransfer); + + /** MsgTransfer sourcePort. */ + public sourcePort: string; + + /** MsgTransfer sourceChannel. */ + public sourceChannel: string; + + /** MsgTransfer amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** MsgTransfer sender. */ + public sender: Uint8Array; + + /** MsgTransfer receiver. */ + public receiver: string; + + /** MsgTransfer timeoutHeight. */ + public timeoutHeight: number | Long; + + /** MsgTransfer timeoutTimestamp. */ + public timeoutTimestamp: number | Long; + + /** + * Creates a new MsgTransfer instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgTransfer instance + */ + public static create( + properties?: cosmos_sdk.x.transfer.v1.IMsgTransfer, + ): cosmos_sdk.x.transfer.v1.MsgTransfer; + + /** + * Encodes the specified MsgTransfer message. Does not implicitly {@link cosmos_sdk.x.transfer.v1.MsgTransfer.verify|verify} messages. + * @param message MsgTransfer message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.transfer.v1.IMsgTransfer, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link cosmos_sdk.x.transfer.v1.MsgTransfer.verify|verify} messages. + * @param message MsgTransfer message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.transfer.v1.IMsgTransfer, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgTransfer message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgTransfer + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.transfer.v1.MsgTransfer; + + /** + * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgTransfer + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.transfer.v1.MsgTransfer; + + /** + * Verifies a MsgTransfer message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgTransfer + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.transfer.v1.MsgTransfer; + + /** + * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. + * @param message MsgTransfer + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.transfer.v1.MsgTransfer, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgTransfer to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FungibleTokenPacketData. */ + interface IFungibleTokenPacketData { + /** FungibleTokenPacketData amount */ + amount?: cosmos_sdk.v1.ICoin[] | null; + + /** FungibleTokenPacketData sender */ + sender?: string | null; + + /** FungibleTokenPacketData receiver */ + receiver?: string | null; + } + + /** Represents a FungibleTokenPacketData. */ + class FungibleTokenPacketData implements IFungibleTokenPacketData { + /** + * Constructs a new FungibleTokenPacketData. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData); + + /** FungibleTokenPacketData amount. */ + public amount: cosmos_sdk.v1.ICoin[]; + + /** FungibleTokenPacketData sender. */ + public sender: string; + + /** FungibleTokenPacketData receiver. */ + public receiver: string; + + /** + * Creates a new FungibleTokenPacketData instance using the specified properties. + * @param [properties] Properties to set + * @returns FungibleTokenPacketData instance + */ + public static create( + properties?: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData, + ): cosmos_sdk.x.transfer.v1.FungibleTokenPacketData; + + /** + * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link cosmos_sdk.x.transfer.v1.FungibleTokenPacketData.verify|verify} messages. + * @param message FungibleTokenPacketData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link cosmos_sdk.x.transfer.v1.FungibleTokenPacketData.verify|verify} messages. + * @param message FungibleTokenPacketData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FungibleTokenPacketData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FungibleTokenPacketData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.transfer.v1.FungibleTokenPacketData; + + /** + * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FungibleTokenPacketData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.transfer.v1.FungibleTokenPacketData; + + /** + * Verifies a FungibleTokenPacketData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FungibleTokenPacketData + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.transfer.v1.FungibleTokenPacketData; + + /** + * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. + * @param message FungibleTokenPacketData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.transfer.v1.FungibleTokenPacketData, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FungibleTokenPacketData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FungibleTokenPacketAcknowledgement. */ + interface IFungibleTokenPacketAcknowledgement { + /** FungibleTokenPacketAcknowledgement success */ + success?: boolean | null; + + /** FungibleTokenPacketAcknowledgement error */ + error?: string | null; + } + + /** Represents a FungibleTokenPacketAcknowledgement. */ + class FungibleTokenPacketAcknowledgement implements IFungibleTokenPacketAcknowledgement { + /** + * Constructs a new FungibleTokenPacketAcknowledgement. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement); + + /** FungibleTokenPacketAcknowledgement success. */ + public success: boolean; + + /** FungibleTokenPacketAcknowledgement error. */ + public error: string; + + /** + * Creates a new FungibleTokenPacketAcknowledgement instance using the specified properties. + * @param [properties] Properties to set + * @returns FungibleTokenPacketAcknowledgement instance + */ + public static create( + properties?: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement, + ): cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement; + + /** + * Encodes the specified FungibleTokenPacketAcknowledgement message. Does not implicitly {@link cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement.verify|verify} messages. + * @param message FungibleTokenPacketAcknowledgement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FungibleTokenPacketAcknowledgement message, length delimited. Does not implicitly {@link cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement.verify|verify} messages. + * @param message FungibleTokenPacketAcknowledgement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FungibleTokenPacketAcknowledgement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FungibleTokenPacketAcknowledgement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement; + + /** + * Decodes a FungibleTokenPacketAcknowledgement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FungibleTokenPacketAcknowledgement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement; + + /** + * Verifies a FungibleTokenPacketAcknowledgement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FungibleTokenPacketAcknowledgement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FungibleTokenPacketAcknowledgement + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement; + + /** + * Creates a plain object from a FungibleTokenPacketAcknowledgement message. Also converts values to other types if specified. + * @param message FungibleTokenPacketAcknowledgement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FungibleTokenPacketAcknowledgement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace ibc. */ + namespace ibc { + /** Namespace connection. */ + namespace connection { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgConnectionOpenInit. */ + interface IMsgConnectionOpenInit { + /** MsgConnectionOpenInit clientId */ + clientId?: string | null; + + /** MsgConnectionOpenInit connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenInit counterparty */ + counterparty?: cosmos_sdk.x.ibc.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenInit signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgConnectionOpenInit. */ + class MsgConnectionOpenInit implements IMsgConnectionOpenInit { + /** + * Constructs a new MsgConnectionOpenInit. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit); + + /** MsgConnectionOpenInit clientId. */ + public clientId: string; + + /** MsgConnectionOpenInit connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenInit counterparty. */ + public counterparty?: cosmos_sdk.x.ibc.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenInit signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgConnectionOpenInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenInit instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit; + + /** + * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * @param message MsgConnectionOpenInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * @param message MsgConnectionOpenInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgConnectionOpenInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit; + + /** + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgConnectionOpenInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit; + + /** + * Verifies a MsgConnectionOpenInit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgConnectionOpenInit + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit; + + /** + * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. + * @param message MsgConnectionOpenInit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgConnectionOpenInit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgConnectionOpenTry. */ + interface IMsgConnectionOpenTry { + /** MsgConnectionOpenTry clientId */ + clientId?: string | null; + + /** MsgConnectionOpenTry connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenTry counterparty */ + counterparty?: cosmos_sdk.x.ibc.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenTry counterpartyVersions */ + counterpartyVersions?: string[] | null; + + /** MsgConnectionOpenTry proofInit */ + proofInit?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenTry proofHeight */ + proofHeight?: number | Long | null; + + /** MsgConnectionOpenTry proofConsensus */ + proofConsensus?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenTry consensusHeight */ + consensusHeight?: number | Long | null; + + /** MsgConnectionOpenTry signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgConnectionOpenTry. */ + class MsgConnectionOpenTry implements IMsgConnectionOpenTry { + /** + * Constructs a new MsgConnectionOpenTry. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry); + + /** MsgConnectionOpenTry clientId. */ + public clientId: string; + + /** MsgConnectionOpenTry connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenTry counterparty. */ + public counterparty?: cosmos_sdk.x.ibc.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenTry counterpartyVersions. */ + public counterpartyVersions: string[]; + + /** MsgConnectionOpenTry proofInit. */ + public proofInit?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenTry proofHeight. */ + public proofHeight: number | Long; + + /** MsgConnectionOpenTry proofConsensus. */ + public proofConsensus?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenTry consensusHeight. */ + public consensusHeight: number | Long; + + /** MsgConnectionOpenTry signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgConnectionOpenTry instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenTry instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry; + + /** + * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry.verify|verify} messages. + * @param message MsgConnectionOpenTry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry.verify|verify} messages. + * @param message MsgConnectionOpenTry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgConnectionOpenTry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry; + + /** + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgConnectionOpenTry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry; + + /** + * Verifies a MsgConnectionOpenTry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgConnectionOpenTry + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry; + + /** + * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. + * @param message MsgConnectionOpenTry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgConnectionOpenTry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgConnectionOpenAck. */ + interface IMsgConnectionOpenAck { + /** MsgConnectionOpenAck connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenAck version */ + version?: string | null; + + /** MsgConnectionOpenAck proofTry */ + proofTry?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenAck proofHeight */ + proofHeight?: number | Long | null; + + /** MsgConnectionOpenAck proofConsensus */ + proofConsensus?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenAck consensusHeight */ + consensusHeight?: number | Long | null; + + /** MsgConnectionOpenAck signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgConnectionOpenAck. */ + class MsgConnectionOpenAck implements IMsgConnectionOpenAck { + /** + * Constructs a new MsgConnectionOpenAck. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck); + + /** MsgConnectionOpenAck connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenAck version. */ + public version: string; + + /** MsgConnectionOpenAck proofTry. */ + public proofTry?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenAck proofHeight. */ + public proofHeight: number | Long; + + /** MsgConnectionOpenAck proofConsensus. */ + public proofConsensus?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenAck consensusHeight. */ + public consensusHeight: number | Long; + + /** MsgConnectionOpenAck signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgConnectionOpenAck instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenAck instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck; + + /** + * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * @param message MsgConnectionOpenAck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * @param message MsgConnectionOpenAck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgConnectionOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck; + + /** + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgConnectionOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck; + + /** + * Verifies a MsgConnectionOpenAck message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgConnectionOpenAck + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck; + + /** + * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. + * @param message MsgConnectionOpenAck + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgConnectionOpenAck to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgConnectionOpenConfirm. */ + interface IMsgConnectionOpenConfirm { + /** MsgConnectionOpenConfirm connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenConfirm proofAck */ + proofAck?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenConfirm proofHeight */ + proofHeight?: number | Long | null; + + /** MsgConnectionOpenConfirm signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgConnectionOpenConfirm. */ + class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { + /** + * Constructs a new MsgConnectionOpenConfirm. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm); + + /** MsgConnectionOpenConfirm connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenConfirm proofAck. */ + public proofAck?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgConnectionOpenConfirm proofHeight. */ + public proofHeight: number | Long; + + /** MsgConnectionOpenConfirm signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgConnectionOpenConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenConfirm instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm; + + /** + * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * @param message MsgConnectionOpenConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * @param message MsgConnectionOpenConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgConnectionOpenConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm; + + /** + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgConnectionOpenConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm; + + /** + * Verifies a MsgConnectionOpenConfirm message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgConnectionOpenConfirm + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm; + + /** + * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. + * @param message MsgConnectionOpenConfirm + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgConnectionOpenConfirm to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ConnectionEnd. */ + interface IConnectionEnd { + /** ConnectionEnd id */ + id?: string | null; + + /** ConnectionEnd clientId */ + clientId?: string | null; + + /** ConnectionEnd versions */ + versions?: string[] | null; + + /** ConnectionEnd state */ + state?: cosmos_sdk.x.ibc.connection.v1.State | null; + + /** ConnectionEnd counterparty */ + counterparty?: cosmos_sdk.x.ibc.connection.v1.ICounterparty | null; + } + + /** Represents a ConnectionEnd. */ + class ConnectionEnd implements IConnectionEnd { + /** + * Constructs a new ConnectionEnd. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.IConnectionEnd); + + /** ConnectionEnd id. */ + public id: string; + + /** ConnectionEnd clientId. */ + public clientId: string; + + /** ConnectionEnd versions. */ + public versions: string[]; + + /** ConnectionEnd state. */ + public state: cosmos_sdk.x.ibc.connection.v1.State; + + /** ConnectionEnd counterparty. */ + public counterparty?: cosmos_sdk.x.ibc.connection.v1.ICounterparty | null; + + /** + * Creates a new ConnectionEnd instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionEnd instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.IConnectionEnd, + ): cosmos_sdk.x.ibc.connection.v1.ConnectionEnd; + + /** + * Encodes the specified ConnectionEnd message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.ConnectionEnd.verify|verify} messages. + * @param message ConnectionEnd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.IConnectionEnd, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.ConnectionEnd.verify|verify} messages. + * @param message ConnectionEnd message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.IConnectionEnd, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConnectionEnd message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConnectionEnd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.ConnectionEnd; + + /** + * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConnectionEnd + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.ConnectionEnd; + + /** + * Verifies a ConnectionEnd message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConnectionEnd + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.ConnectionEnd; + + /** + * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. + * @param message ConnectionEnd + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.ConnectionEnd, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ConnectionEnd to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** State enum. */ + enum State { + STATE_UNINITIALIZED_UNSPECIFIED = 0, + STATE_INIT = 1, + STATE_TRYOPEN = 2, + STATE_OPEN = 3, + } + + /** Properties of a Counterparty. */ + interface ICounterparty { + /** Counterparty clientId */ + clientId?: string | null; + + /** Counterparty connectionId */ + connectionId?: string | null; + + /** Counterparty prefix */ + prefix?: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix | null; + } + + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { + /** + * Constructs a new Counterparty. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.ICounterparty); + + /** Counterparty clientId. */ + public clientId: string; + + /** Counterparty connectionId. */ + public connectionId: string; + + /** Counterparty prefix. */ + public prefix?: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix | null; + + /** + * Creates a new Counterparty instance using the specified properties. + * @param [properties] Properties to set + * @returns Counterparty instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.ICounterparty, + ): cosmos_sdk.x.ibc.connection.v1.Counterparty; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.ICounterparty, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.ICounterparty, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Counterparty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Counterparty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.Counterparty; + + /** + * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Counterparty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.Counterparty; + + /** + * Verifies a Counterparty message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Counterparty + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.Counterparty; + + /** + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * @param message Counterparty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.Counterparty, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Counterparty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ClientPaths. */ + interface IClientPaths { + /** ClientPaths paths */ + paths?: string[] | null; + } + + /** Represents a ClientPaths. */ + class ClientPaths implements IClientPaths { + /** + * Constructs a new ClientPaths. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.connection.v1.IClientPaths); + + /** ClientPaths paths. */ + public paths: string[]; + + /** + * Creates a new ClientPaths instance using the specified properties. + * @param [properties] Properties to set + * @returns ClientPaths instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.connection.v1.IClientPaths, + ): cosmos_sdk.x.ibc.connection.v1.ClientPaths; + + /** + * Encodes the specified ClientPaths message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.ClientPaths.verify|verify} messages. + * @param message ClientPaths message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.connection.v1.IClientPaths, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.ClientPaths.verify|verify} messages. + * @param message ClientPaths message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.connection.v1.IClientPaths, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ClientPaths message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClientPaths + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.connection.v1.ClientPaths; + + /** + * Decodes a ClientPaths message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClientPaths + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.connection.v1.ClientPaths; + + /** + * Verifies a ClientPaths message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClientPaths + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.connection.v1.ClientPaths; + + /** + * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. + * @param message ClientPaths + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.connection.v1.ClientPaths, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ClientPaths to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace channel. */ + namespace channel { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgChannelOpenInit. */ + interface IMsgChannelOpenInit { + /** MsgChannelOpenInit portId */ + portId?: string | null; + + /** MsgChannelOpenInit channelId */ + channelId?: string | null; + + /** MsgChannelOpenInit channel */ + channel?: cosmos_sdk.x.ibc.channel.v1.IChannel | null; + + /** MsgChannelOpenInit signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgChannelOpenInit. */ + class MsgChannelOpenInit implements IMsgChannelOpenInit { + /** + * Constructs a new MsgChannelOpenInit. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit); + + /** MsgChannelOpenInit portId. */ + public portId: string; + + /** MsgChannelOpenInit channelId. */ + public channelId: string; + + /** MsgChannelOpenInit channel. */ + public channel?: cosmos_sdk.x.ibc.channel.v1.IChannel | null; + + /** MsgChannelOpenInit signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgChannelOpenInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenInit instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit; + + /** + * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * @param message MsgChannelOpenInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * @param message MsgChannelOpenInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgChannelOpenInit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelOpenInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit; + + /** + * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelOpenInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit; + + /** + * Verifies a MsgChannelOpenInit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelOpenInit + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit; + + /** + * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. + * @param message MsgChannelOpenInit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgChannelOpenInit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgChannelOpenTry. */ + interface IMsgChannelOpenTry { + /** MsgChannelOpenTry portId */ + portId?: string | null; + + /** MsgChannelOpenTry channelId */ + channelId?: string | null; + + /** MsgChannelOpenTry channel */ + channel?: cosmos_sdk.x.ibc.channel.v1.IChannel | null; + + /** MsgChannelOpenTry counterpartyVersion */ + counterpartyVersion?: string | null; + + /** MsgChannelOpenTry proofInit */ + proofInit?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelOpenTry proofHeight */ + proofHeight?: number | Long | null; + + /** MsgChannelOpenTry signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgChannelOpenTry. */ + class MsgChannelOpenTry implements IMsgChannelOpenTry { + /** + * Constructs a new MsgChannelOpenTry. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry); + + /** MsgChannelOpenTry portId. */ + public portId: string; + + /** MsgChannelOpenTry channelId. */ + public channelId: string; + + /** MsgChannelOpenTry channel. */ + public channel?: cosmos_sdk.x.ibc.channel.v1.IChannel | null; + + /** MsgChannelOpenTry counterpartyVersion. */ + public counterpartyVersion: string; + + /** MsgChannelOpenTry proofInit. */ + public proofInit?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelOpenTry proofHeight. */ + public proofHeight: number | Long; + + /** MsgChannelOpenTry signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgChannelOpenTry instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenTry instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry; + + /** + * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * @param message MsgChannelOpenTry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * @param message MsgChannelOpenTry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgChannelOpenTry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelOpenTry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry; + + /** + * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelOpenTry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry; + + /** + * Verifies a MsgChannelOpenTry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelOpenTry + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry; + + /** + * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. + * @param message MsgChannelOpenTry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgChannelOpenTry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgChannelOpenAck. */ + interface IMsgChannelOpenAck { + /** MsgChannelOpenAck portId */ + portId?: string | null; + + /** MsgChannelOpenAck channelId */ + channelId?: string | null; + + /** MsgChannelOpenAck counterpartyVersion */ + counterpartyVersion?: string | null; + + /** MsgChannelOpenAck proofTry */ + proofTry?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelOpenAck proofHeight */ + proofHeight?: number | Long | null; + + /** MsgChannelOpenAck signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgChannelOpenAck. */ + class MsgChannelOpenAck implements IMsgChannelOpenAck { + /** + * Constructs a new MsgChannelOpenAck. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck); + + /** MsgChannelOpenAck portId. */ + public portId: string; + + /** MsgChannelOpenAck channelId. */ + public channelId: string; + + /** MsgChannelOpenAck counterpartyVersion. */ + public counterpartyVersion: string; + + /** MsgChannelOpenAck proofTry. */ + public proofTry?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelOpenAck proofHeight. */ + public proofHeight: number | Long; + + /** MsgChannelOpenAck signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgChannelOpenAck instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenAck instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck; + + /** + * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @param message MsgChannelOpenAck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @param message MsgChannelOpenAck message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgChannelOpenAck message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck; + + /** + * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck; + + /** + * Verifies a MsgChannelOpenAck message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelOpenAck + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck; + + /** + * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. + * @param message MsgChannelOpenAck + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgChannelOpenAck to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgChannelOpenConfirm. */ + interface IMsgChannelOpenConfirm { + /** MsgChannelOpenConfirm portId */ + portId?: string | null; + + /** MsgChannelOpenConfirm channelId */ + channelId?: string | null; + + /** MsgChannelOpenConfirm proofAck */ + proofAck?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelOpenConfirm proofHeight */ + proofHeight?: number | Long | null; + + /** MsgChannelOpenConfirm signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgChannelOpenConfirm. */ + class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { + /** + * Constructs a new MsgChannelOpenConfirm. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm); + + /** MsgChannelOpenConfirm portId. */ + public portId: string; + + /** MsgChannelOpenConfirm channelId. */ + public channelId: string; + + /** MsgChannelOpenConfirm proofAck. */ + public proofAck?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelOpenConfirm proofHeight. */ + public proofHeight: number | Long; + + /** MsgChannelOpenConfirm signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgChannelOpenConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenConfirm instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm; + + /** + * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * @param message MsgChannelOpenConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * @param message MsgChannelOpenConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelOpenConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm; + + /** + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelOpenConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm; + + /** + * Verifies a MsgChannelOpenConfirm message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelOpenConfirm + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm; + + /** + * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. + * @param message MsgChannelOpenConfirm + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgChannelOpenConfirm to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgChannelCloseInit. */ + interface IMsgChannelCloseInit { + /** MsgChannelCloseInit portId */ + portId?: string | null; + + /** MsgChannelCloseInit channelId */ + channelId?: string | null; + + /** MsgChannelCloseInit signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgChannelCloseInit. */ + class MsgChannelCloseInit implements IMsgChannelCloseInit { + /** + * Constructs a new MsgChannelCloseInit. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit); + + /** MsgChannelCloseInit portId. */ + public portId: string; + + /** MsgChannelCloseInit channelId. */ + public channelId: string; + + /** MsgChannelCloseInit signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgChannelCloseInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelCloseInit instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit; + + /** + * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * @param message MsgChannelCloseInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * @param message MsgChannelCloseInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgChannelCloseInit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelCloseInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit; + + /** + * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelCloseInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit; + + /** + * Verifies a MsgChannelCloseInit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelCloseInit + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit; + + /** + * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. + * @param message MsgChannelCloseInit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgChannelCloseInit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgChannelCloseConfirm. */ + interface IMsgChannelCloseConfirm { + /** MsgChannelCloseConfirm portId */ + portId?: string | null; + + /** MsgChannelCloseConfirm channelId */ + channelId?: string | null; + + /** MsgChannelCloseConfirm proofInit */ + proofInit?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelCloseConfirm proofHeight */ + proofHeight?: number | Long | null; + + /** MsgChannelCloseConfirm signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgChannelCloseConfirm. */ + class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { + /** + * Constructs a new MsgChannelCloseConfirm. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm); + + /** MsgChannelCloseConfirm portId. */ + public portId: string; + + /** MsgChannelCloseConfirm channelId. */ + public channelId: string; + + /** MsgChannelCloseConfirm proofInit. */ + public proofInit?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgChannelCloseConfirm proofHeight. */ + public proofHeight: number | Long; + + /** MsgChannelCloseConfirm signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgChannelCloseConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelCloseConfirm instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm; + + /** + * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * @param message MsgChannelCloseConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * @param message MsgChannelCloseConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelCloseConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm; + + /** + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelCloseConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm; + + /** + * Verifies a MsgChannelCloseConfirm message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelCloseConfirm + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm; + + /** + * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. + * @param message MsgChannelCloseConfirm + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgChannelCloseConfirm to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgPacket. */ + interface IMsgPacket { + /** MsgPacket packet */ + packet?: cosmos_sdk.x.ibc.channel.v1.IPacket | null; + + /** MsgPacket proof */ + proof?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgPacket proofHeight */ + proofHeight?: number | Long | null; + + /** MsgPacket signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgPacket. */ + class MsgPacket implements IMsgPacket { + /** + * Constructs a new MsgPacket. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgPacket); + + /** MsgPacket packet. */ + public packet?: cosmos_sdk.x.ibc.channel.v1.IPacket | null; + + /** MsgPacket proof. */ + public proof?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgPacket proofHeight. */ + public proofHeight: number | Long; + + /** MsgPacket signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgPacket instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgPacket instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgPacket, + ): cosmos_sdk.x.ibc.channel.v1.MsgPacket; + + /** + * Encodes the specified MsgPacket message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgPacket.verify|verify} messages. + * @param message MsgPacket message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgPacket, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgPacket message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgPacket.verify|verify} messages. + * @param message MsgPacket message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgPacket, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgPacket message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgPacket + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgPacket; + + /** + * Decodes a MsgPacket message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgPacket + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgPacket; + + /** + * Verifies a MsgPacket message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgPacket message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgPacket + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.channel.v1.MsgPacket; + + /** + * Creates a plain object from a MsgPacket message. Also converts values to other types if specified. + * @param message MsgPacket + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgPacket, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgPacket to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgTimeout. */ + interface IMsgTimeout { + /** MsgTimeout packet */ + packet?: cosmos_sdk.x.ibc.channel.v1.IPacket | null; + + /** MsgTimeout proof */ + proof?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgTimeout proofHeight */ + proofHeight?: number | Long | null; + + /** MsgTimeout nextSequenceRecv */ + nextSequenceRecv?: number | Long | null; + + /** MsgTimeout signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgTimeout. */ + class MsgTimeout implements IMsgTimeout { + /** + * Constructs a new MsgTimeout. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgTimeout); + + /** MsgTimeout packet. */ + public packet?: cosmos_sdk.x.ibc.channel.v1.IPacket | null; + + /** MsgTimeout proof. */ + public proof?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgTimeout proofHeight. */ + public proofHeight: number | Long; + + /** MsgTimeout nextSequenceRecv. */ + public nextSequenceRecv: number | Long; + + /** MsgTimeout signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgTimeout instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgTimeout instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgTimeout, + ): cosmos_sdk.x.ibc.channel.v1.MsgTimeout; + + /** + * Encodes the specified MsgTimeout message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgTimeout.verify|verify} messages. + * @param message MsgTimeout message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgTimeout, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgTimeout.verify|verify} messages. + * @param message MsgTimeout message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgTimeout, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgTimeout message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgTimeout + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgTimeout; + + /** + * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgTimeout + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgTimeout; + + /** + * Verifies a MsgTimeout message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgTimeout + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.channel.v1.MsgTimeout; + + /** + * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. + * @param message MsgTimeout + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgTimeout, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgTimeout to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgAcknowledgement. */ + interface IMsgAcknowledgement { + /** MsgAcknowledgement packet */ + packet?: cosmos_sdk.x.ibc.channel.v1.IPacket | null; + + /** MsgAcknowledgement acknowledgement */ + acknowledgement?: Uint8Array | null; + + /** MsgAcknowledgement proof */ + proof?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgAcknowledgement proofHeight */ + proofHeight?: number | Long | null; + + /** MsgAcknowledgement signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgAcknowledgement. */ + class MsgAcknowledgement implements IMsgAcknowledgement { + /** + * Constructs a new MsgAcknowledgement. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement); + + /** MsgAcknowledgement packet. */ + public packet?: cosmos_sdk.x.ibc.channel.v1.IPacket | null; + + /** MsgAcknowledgement acknowledgement. */ + public acknowledgement: Uint8Array; + + /** MsgAcknowledgement proof. */ + public proof?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof | null; + + /** MsgAcknowledgement proofHeight. */ + public proofHeight: number | Long; + + /** MsgAcknowledgement signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgAcknowledgement instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgAcknowledgement instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement, + ): cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement; + + /** + * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement.verify|verify} messages. + * @param message MsgAcknowledgement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement.verify|verify} messages. + * @param message MsgAcknowledgement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgAcknowledgement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgAcknowledgement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement; + + /** + * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgAcknowledgement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement; + + /** + * Verifies a MsgAcknowledgement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgAcknowledgement + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement; + + /** + * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. + * @param message MsgAcknowledgement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgAcknowledgement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Channel. */ + interface IChannel { + /** Channel state */ + state?: cosmos_sdk.x.ibc.channel.v1.State | null; + + /** Channel ordering */ + ordering?: cosmos_sdk.x.ibc.channel.v1.Order | null; + + /** Channel counterparty */ + counterparty?: cosmos_sdk.x.ibc.channel.v1.ICounterparty | null; + + /** Channel connectionHops */ + connectionHops?: string[] | null; + + /** Channel version */ + version?: string | null; + } + + /** Represents a Channel. */ + class Channel implements IChannel { + /** + * Constructs a new Channel. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IChannel); + + /** Channel state. */ + public state: cosmos_sdk.x.ibc.channel.v1.State; + + /** Channel ordering. */ + public ordering: cosmos_sdk.x.ibc.channel.v1.Order; + + /** Channel counterparty. */ + public counterparty?: cosmos_sdk.x.ibc.channel.v1.ICounterparty | null; + + /** Channel connectionHops. */ + public connectionHops: string[]; + + /** Channel version. */ + public version: string; + + /** + * Creates a new Channel instance using the specified properties. + * @param [properties] Properties to set + * @returns Channel instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IChannel, + ): cosmos_sdk.x.ibc.channel.v1.Channel; + + /** + * Encodes the specified Channel message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Channel.verify|verify} messages. + * @param message Channel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IChannel, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Channel message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Channel.verify|verify} messages. + * @param message Channel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IChannel, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Channel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Channel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.Channel; + + /** + * Decodes a Channel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Channel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.Channel; + + /** + * Verifies a Channel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Channel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Channel + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.channel.v1.Channel; + + /** + * Creates a plain object from a Channel message. Also converts values to other types if specified. + * @param message Channel + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.Channel, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Channel to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** State enum. */ + enum State { + STATE_UNINITIALIZED_UNSPECIFIED = 0, + STATE_INIT = 1, + STATE_TRYOPEN = 2, + STATE_OPEN = 3, + STATE_CLOSED = 4, + } + + /** Order enum. */ + enum Order { + ORDER_NONE_UNSPECIFIED = 0, + ORDER_UNORDERED = 1, + ORDER_ORDERED = 2, + } + + /** Properties of a Counterparty. */ + interface ICounterparty { + /** Counterparty portId */ + portId?: string | null; + + /** Counterparty channelId */ + channelId?: string | null; + } + + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { + /** + * Constructs a new Counterparty. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.ICounterparty); + + /** Counterparty portId. */ + public portId: string; + + /** Counterparty channelId. */ + public channelId: string; + + /** + * Creates a new Counterparty instance using the specified properties. + * @param [properties] Properties to set + * @returns Counterparty instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.ICounterparty, + ): cosmos_sdk.x.ibc.channel.v1.Counterparty; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.ICounterparty, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.ICounterparty, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Counterparty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Counterparty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.Counterparty; + + /** + * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Counterparty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.Counterparty; + + /** + * Verifies a Counterparty message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Counterparty + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.channel.v1.Counterparty; + + /** + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * @param message Counterparty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.Counterparty, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Counterparty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Packet. */ + interface IPacket { + /** Packet sequence */ + sequence?: number | Long | null; + + /** Packet sourcePort */ + sourcePort?: string | null; + + /** Packet sourceChannel */ + sourceChannel?: string | null; + + /** Packet destinationPort */ + destinationPort?: string | null; + + /** Packet destinationChannel */ + destinationChannel?: string | null; + + /** Packet data */ + data?: Uint8Array | null; + + /** Packet timeoutHeight */ + timeoutHeight?: number | Long | null; + + /** Packet timeoutTimestamp */ + timeoutTimestamp?: number | Long | null; + } + + /** Represents a Packet. */ + class Packet implements IPacket { + /** + * Constructs a new Packet. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.channel.v1.IPacket); + + /** Packet sequence. */ + public sequence: number | Long; + + /** Packet sourcePort. */ + public sourcePort: string; + + /** Packet sourceChannel. */ + public sourceChannel: string; + + /** Packet destinationPort. */ + public destinationPort: string; + + /** Packet destinationChannel. */ + public destinationChannel: string; + + /** Packet data. */ + public data: Uint8Array; + + /** Packet timeoutHeight. */ + public timeoutHeight: number | Long; + + /** Packet timeoutTimestamp. */ + public timeoutTimestamp: number | Long; + + /** + * Creates a new Packet instance using the specified properties. + * @param [properties] Properties to set + * @returns Packet instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.channel.v1.IPacket, + ): cosmos_sdk.x.ibc.channel.v1.Packet; + + /** + * Encodes the specified Packet message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Packet.verify|verify} messages. + * @param message Packet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.channel.v1.IPacket, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Packet message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Packet.verify|verify} messages. + * @param message Packet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.channel.v1.IPacket, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Packet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Packet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.channel.v1.Packet; + + /** + * Decodes a Packet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Packet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.channel.v1.Packet; + + /** + * Verifies a Packet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Packet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Packet + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.channel.v1.Packet; + + /** + * Creates a plain object from a Packet message. Also converts values to other types if specified. + * @param message Packet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.channel.v1.Packet, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Packet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace commitment. */ + namespace commitment { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MerkleRoot. */ + interface IMerkleRoot { + /** MerkleRoot hash */ + hash?: Uint8Array | null; + } + + /** Represents a MerkleRoot. */ + class MerkleRoot implements IMerkleRoot { + /** + * Constructs a new MerkleRoot. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot); + + /** MerkleRoot hash. */ + public hash: Uint8Array; + + /** + * Creates a new MerkleRoot instance using the specified properties. + * @param [properties] Properties to set + * @returns MerkleRoot instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot, + ): cosmos_sdk.x.ibc.commitment.v1.MerkleRoot; + + /** + * Encodes the specified MerkleRoot message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerkleRoot.verify|verify} messages. + * @param message MerkleRoot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerkleRoot.verify|verify} messages. + * @param message MerkleRoot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MerkleRoot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MerkleRoot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.commitment.v1.MerkleRoot; + + /** + * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MerkleRoot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.commitment.v1.MerkleRoot; + + /** + * Verifies a MerkleRoot message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MerkleRoot + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.commitment.v1.MerkleRoot; + + /** + * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. + * @param message MerkleRoot + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.commitment.v1.MerkleRoot, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MerkleRoot to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MerklePrefix. */ + interface IMerklePrefix { + /** MerklePrefix keyPrefix */ + keyPrefix?: Uint8Array | null; + } + + /** Represents a MerklePrefix. */ + class MerklePrefix implements IMerklePrefix { + /** + * Constructs a new MerklePrefix. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix); + + /** MerklePrefix keyPrefix. */ + public keyPrefix: Uint8Array; + + /** + * Creates a new MerklePrefix instance using the specified properties. + * @param [properties] Properties to set + * @returns MerklePrefix instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix, + ): cosmos_sdk.x.ibc.commitment.v1.MerklePrefix; + + /** + * Encodes the specified MerklePrefix message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerklePrefix.verify|verify} messages. + * @param message MerklePrefix message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerklePrefix.verify|verify} messages. + * @param message MerklePrefix message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MerklePrefix message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MerklePrefix + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.commitment.v1.MerklePrefix; + + /** + * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MerklePrefix + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.commitment.v1.MerklePrefix; + + /** + * Verifies a MerklePrefix message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MerklePrefix + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.commitment.v1.MerklePrefix; + + /** + * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. + * @param message MerklePrefix + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.commitment.v1.MerklePrefix, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MerklePrefix to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MerklePath. */ + interface IMerklePath { + /** MerklePath keyPath */ + keyPath?: cosmos_sdk.x.ibc.commitment.v1.IKeyPath | null; + } + + /** Represents a MerklePath. */ + class MerklePath implements IMerklePath { + /** + * Constructs a new MerklePath. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.commitment.v1.IMerklePath); + + /** MerklePath keyPath. */ + public keyPath?: cosmos_sdk.x.ibc.commitment.v1.IKeyPath | null; + + /** + * Creates a new MerklePath instance using the specified properties. + * @param [properties] Properties to set + * @returns MerklePath instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.commitment.v1.IMerklePath, + ): cosmos_sdk.x.ibc.commitment.v1.MerklePath; + + /** + * Encodes the specified MerklePath message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerklePath.verify|verify} messages. + * @param message MerklePath message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.commitment.v1.IMerklePath, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerklePath.verify|verify} messages. + * @param message MerklePath message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.commitment.v1.IMerklePath, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MerklePath message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MerklePath + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.commitment.v1.MerklePath; + + /** + * Decodes a MerklePath message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MerklePath + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.commitment.v1.MerklePath; + + /** + * Verifies a MerklePath message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MerklePath + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.commitment.v1.MerklePath; + + /** + * Creates a plain object from a MerklePath message. Also converts values to other types if specified. + * @param message MerklePath + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.commitment.v1.MerklePath, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MerklePath to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MerkleProof. */ + interface IMerkleProof { + /** MerkleProof proof */ + proof?: tendermint.crypto.merkle.IProof | null; + } + + /** Represents a MerkleProof. */ + class MerkleProof implements IMerkleProof { + /** + * Constructs a new MerkleProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof); + + /** MerkleProof proof. */ + public proof?: tendermint.crypto.merkle.IProof | null; + + /** + * Creates a new MerkleProof instance using the specified properties. + * @param [properties] Properties to set + * @returns MerkleProof instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof, + ): cosmos_sdk.x.ibc.commitment.v1.MerkleProof; + + /** + * Encodes the specified MerkleProof message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerkleProof.verify|verify} messages. + * @param message MerkleProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerkleProof.verify|verify} messages. + * @param message MerkleProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MerkleProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MerkleProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.commitment.v1.MerkleProof; + + /** + * Decodes a MerkleProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MerkleProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.commitment.v1.MerkleProof; + + /** + * Verifies a MerkleProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MerkleProof + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.ibc.commitment.v1.MerkleProof; + + /** + * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. + * @param message MerkleProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.commitment.v1.MerkleProof, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MerkleProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a KeyPath. */ + interface IKeyPath { + /** KeyPath keys */ + keys?: cosmos_sdk.x.ibc.commitment.v1.IKey[] | null; + } + + /** Represents a KeyPath. */ + class KeyPath implements IKeyPath { + /** + * Constructs a new KeyPath. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.commitment.v1.IKeyPath); + + /** KeyPath keys. */ + public keys: cosmos_sdk.x.ibc.commitment.v1.IKey[]; + + /** + * Creates a new KeyPath instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyPath instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.commitment.v1.IKeyPath, + ): cosmos_sdk.x.ibc.commitment.v1.KeyPath; + + /** + * Encodes the specified KeyPath message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.KeyPath.verify|verify} messages. + * @param message KeyPath message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.commitment.v1.IKeyPath, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified KeyPath message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.KeyPath.verify|verify} messages. + * @param message KeyPath message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.commitment.v1.IKeyPath, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a KeyPath message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyPath + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.commitment.v1.KeyPath; + + /** + * Decodes a KeyPath message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KeyPath + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.commitment.v1.KeyPath; + + /** + * Verifies a KeyPath message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a KeyPath message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KeyPath + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.commitment.v1.KeyPath; + + /** + * Creates a plain object from a KeyPath message. Also converts values to other types if specified. + * @param message KeyPath + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.commitment.v1.KeyPath, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this KeyPath to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Key. */ + interface IKey { + /** Key name */ + name?: Uint8Array | null; + + /** Key enc */ + enc?: cosmos_sdk.x.ibc.commitment.v1.KeyEncoding | null; + } + + /** Represents a Key. */ + class Key implements IKey { + /** + * Constructs a new Key. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.ibc.commitment.v1.IKey); + + /** Key name. */ + public name: Uint8Array; + + /** Key enc. */ + public enc: cosmos_sdk.x.ibc.commitment.v1.KeyEncoding; + + /** + * Creates a new Key instance using the specified properties. + * @param [properties] Properties to set + * @returns Key instance + */ + public static create( + properties?: cosmos_sdk.x.ibc.commitment.v1.IKey, + ): cosmos_sdk.x.ibc.commitment.v1.Key; + + /** + * Encodes the specified Key message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.Key.verify|verify} messages. + * @param message Key message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.ibc.commitment.v1.IKey, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Key message, length delimited. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.Key.verify|verify} messages. + * @param message Key message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.ibc.commitment.v1.IKey, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Key message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Key + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.ibc.commitment.v1.Key; + + /** + * Decodes a Key message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Key + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.ibc.commitment.v1.Key; + + /** + * Verifies a Key message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Key message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Key + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.ibc.commitment.v1.Key; + + /** + * Creates a plain object from a Key message. Also converts values to other types if specified. + * @param message Key + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.ibc.commitment.v1.Key, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Key to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** KeyEncoding enum. */ + enum KeyEncoding { + KEY_ENCODING_URL_UNSPECIFIED = 0, + KEY_ENCODING_HEX = 1, + } + } + } + } + + /** Namespace mint. */ + namespace mint { + /** Namespace v1. */ + namespace v1 { + /** Properties of a Minter. */ + interface IMinter { + /** Minter inflation */ + inflation?: string | null; + + /** Minter annualProvisions */ + annualProvisions?: string | null; + } + + /** Represents a Minter. */ + class Minter implements IMinter { + /** + * Constructs a new Minter. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.mint.v1.IMinter); + + /** Minter inflation. */ + public inflation: string; + + /** Minter annualProvisions. */ + public annualProvisions: string; + + /** + * Creates a new Minter instance using the specified properties. + * @param [properties] Properties to set + * @returns Minter instance + */ + public static create(properties?: cosmos_sdk.x.mint.v1.IMinter): cosmos_sdk.x.mint.v1.Minter; + + /** + * Encodes the specified Minter message. Does not implicitly {@link cosmos_sdk.x.mint.v1.Minter.verify|verify} messages. + * @param message Minter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.mint.v1.IMinter, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Minter message, length delimited. Does not implicitly {@link cosmos_sdk.x.mint.v1.Minter.verify|verify} messages. + * @param message Minter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.mint.v1.IMinter, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Minter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Minter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.mint.v1.Minter; + + /** + * Decodes a Minter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Minter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.mint.v1.Minter; + + /** + * Verifies a Minter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Minter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Minter + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.mint.v1.Minter; + + /** + * Creates a plain object from a Minter message. Also converts values to other types if specified. + * @param message Minter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.mint.v1.Minter, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Minter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Params. */ + interface IParams { + /** Params mintDenom */ + mintDenom?: string | null; + + /** Params inflationRateChange */ + inflationRateChange?: string | null; + + /** Params inflationMax */ + inflationMax?: string | null; + + /** Params inflationMin */ + inflationMin?: string | null; + + /** Params goalBonded */ + goalBonded?: string | null; + + /** Params blocksPerYear */ + blocksPerYear?: number | Long | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.mint.v1.IParams); + + /** Params mintDenom. */ + public mintDenom: string; + + /** Params inflationRateChange. */ + public inflationRateChange: string; + + /** Params inflationMax. */ + public inflationMax: string; + + /** Params inflationMin. */ + public inflationMin: string; + + /** Params goalBonded. */ + public goalBonded: string; + + /** Params blocksPerYear. */ + public blocksPerYear: number | Long; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos_sdk.x.mint.v1.IParams): cosmos_sdk.x.mint.v1.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.mint.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.mint.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos_sdk.x.mint.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.mint.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.mint.v1.Params; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.mint.v1.Params; + + /** + * Verifies a Params message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Params + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.mint.v1.Params; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.mint.v1.Params, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace params. */ + namespace params { + /** Namespace v1. */ + namespace v1 { + /** Properties of a ParameterChangeProposal. */ + interface IParameterChangeProposal { + /** ParameterChangeProposal title */ + title?: string | null; + + /** ParameterChangeProposal description */ + description?: string | null; + + /** ParameterChangeProposal changes */ + changes?: cosmos_sdk.x.params.v1.IParamChange[] | null; + } + + /** Represents a ParameterChangeProposal. */ + class ParameterChangeProposal implements IParameterChangeProposal { + /** + * Constructs a new ParameterChangeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.params.v1.IParameterChangeProposal); + + /** ParameterChangeProposal title. */ + public title: string; + + /** ParameterChangeProposal description. */ + public description: string; + + /** ParameterChangeProposal changes. */ + public changes: cosmos_sdk.x.params.v1.IParamChange[]; + + /** + * Creates a new ParameterChangeProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterChangeProposal instance + */ + public static create( + properties?: cosmos_sdk.x.params.v1.IParameterChangeProposal, + ): cosmos_sdk.x.params.v1.ParameterChangeProposal; + + /** + * Encodes the specified ParameterChangeProposal message. Does not implicitly {@link cosmos_sdk.x.params.v1.ParameterChangeProposal.verify|verify} messages. + * @param message ParameterChangeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.params.v1.IParameterChangeProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ParameterChangeProposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.params.v1.ParameterChangeProposal.verify|verify} messages. + * @param message ParameterChangeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.params.v1.IParameterChangeProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ParameterChangeProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterChangeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.params.v1.ParameterChangeProposal; + + /** + * Decodes a ParameterChangeProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterChangeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.params.v1.ParameterChangeProposal; + + /** + * Verifies a ParameterChangeProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ParameterChangeProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterChangeProposal + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.params.v1.ParameterChangeProposal; + + /** + * Creates a plain object from a ParameterChangeProposal message. Also converts values to other types if specified. + * @param message ParameterChangeProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.params.v1.ParameterChangeProposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ParameterChangeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ParamChange. */ + interface IParamChange { + /** ParamChange subspace */ + subspace?: string | null; + + /** ParamChange key */ + key?: string | null; + + /** ParamChange value */ + value?: string | null; + } + + /** Represents a ParamChange. */ + class ParamChange implements IParamChange { + /** + * Constructs a new ParamChange. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.params.v1.IParamChange); + + /** ParamChange subspace. */ + public subspace: string; + + /** ParamChange key. */ + public key: string; + + /** ParamChange value. */ + public value: string; + + /** + * Creates a new ParamChange instance using the specified properties. + * @param [properties] Properties to set + * @returns ParamChange instance + */ + public static create( + properties?: cosmos_sdk.x.params.v1.IParamChange, + ): cosmos_sdk.x.params.v1.ParamChange; + + /** + * Encodes the specified ParamChange message. Does not implicitly {@link cosmos_sdk.x.params.v1.ParamChange.verify|verify} messages. + * @param message ParamChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.params.v1.IParamChange, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ParamChange message, length delimited. Does not implicitly {@link cosmos_sdk.x.params.v1.ParamChange.verify|verify} messages. + * @param message ParamChange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.params.v1.IParamChange, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ParamChange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParamChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.params.v1.ParamChange; + + /** + * Decodes a ParamChange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParamChange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.params.v1.ParamChange; + + /** + * Verifies a ParamChange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ParamChange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParamChange + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.params.v1.ParamChange; + + /** + * Creates a plain object from a ParamChange message. Also converts values to other types if specified. + * @param message ParamChange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.params.v1.ParamChange, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ParamChange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace slashing. */ + namespace slashing { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgUnjail. */ + interface IMsgUnjail { + /** MsgUnjail validatorAddr */ + validatorAddr?: Uint8Array | null; + } + + /** Represents a MsgUnjail. */ + class MsgUnjail implements IMsgUnjail { + /** + * Constructs a new MsgUnjail. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.slashing.v1.IMsgUnjail); + + /** MsgUnjail validatorAddr. */ + public validatorAddr: Uint8Array; + + /** + * Creates a new MsgUnjail instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUnjail instance + */ + public static create( + properties?: cosmos_sdk.x.slashing.v1.IMsgUnjail, + ): cosmos_sdk.x.slashing.v1.MsgUnjail; + + /** + * Encodes the specified MsgUnjail message. Does not implicitly {@link cosmos_sdk.x.slashing.v1.MsgUnjail.verify|verify} messages. + * @param message MsgUnjail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.slashing.v1.IMsgUnjail, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgUnjail message, length delimited. Does not implicitly {@link cosmos_sdk.x.slashing.v1.MsgUnjail.verify|verify} messages. + * @param message MsgUnjail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.slashing.v1.IMsgUnjail, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUnjail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgUnjail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.slashing.v1.MsgUnjail; + + /** + * Decodes a MsgUnjail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgUnjail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.slashing.v1.MsgUnjail; + + /** + * Verifies a MsgUnjail message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgUnjail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgUnjail + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.slashing.v1.MsgUnjail; + + /** + * Creates a plain object from a MsgUnjail message. Also converts values to other types if specified. + * @param message MsgUnjail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.slashing.v1.MsgUnjail, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgUnjail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorSigningInfo. */ + interface IValidatorSigningInfo { + /** ValidatorSigningInfo address */ + address?: Uint8Array | null; + + /** ValidatorSigningInfo startHeight */ + startHeight?: number | Long | null; + + /** ValidatorSigningInfo indexOffset */ + indexOffset?: number | Long | null; + + /** ValidatorSigningInfo jailedUntil */ + jailedUntil?: google.protobuf.ITimestamp | null; + + /** ValidatorSigningInfo tombstoned */ + tombstoned?: boolean | null; + + /** ValidatorSigningInfo missedBlocksCounter */ + missedBlocksCounter?: number | Long | null; + } + + /** Represents a ValidatorSigningInfo. */ + class ValidatorSigningInfo implements IValidatorSigningInfo { + /** + * Constructs a new ValidatorSigningInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.slashing.v1.IValidatorSigningInfo); + + /** ValidatorSigningInfo address. */ + public address: Uint8Array; + + /** ValidatorSigningInfo startHeight. */ + public startHeight: number | Long; + + /** ValidatorSigningInfo indexOffset. */ + public indexOffset: number | Long; + + /** ValidatorSigningInfo jailedUntil. */ + public jailedUntil?: google.protobuf.ITimestamp | null; + + /** ValidatorSigningInfo tombstoned. */ + public tombstoned: boolean; + + /** ValidatorSigningInfo missedBlocksCounter. */ + public missedBlocksCounter: number | Long; + + /** + * Creates a new ValidatorSigningInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorSigningInfo instance + */ + public static create( + properties?: cosmos_sdk.x.slashing.v1.IValidatorSigningInfo, + ): cosmos_sdk.x.slashing.v1.ValidatorSigningInfo; + + /** + * Encodes the specified ValidatorSigningInfo message. Does not implicitly {@link cosmos_sdk.x.slashing.v1.ValidatorSigningInfo.verify|verify} messages. + * @param message ValidatorSigningInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.slashing.v1.IValidatorSigningInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorSigningInfo message, length delimited. Does not implicitly {@link cosmos_sdk.x.slashing.v1.ValidatorSigningInfo.verify|verify} messages. + * @param message ValidatorSigningInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.slashing.v1.IValidatorSigningInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorSigningInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorSigningInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.slashing.v1.ValidatorSigningInfo; + + /** + * Decodes a ValidatorSigningInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorSigningInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.slashing.v1.ValidatorSigningInfo; + + /** + * Verifies a ValidatorSigningInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorSigningInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorSigningInfo + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.slashing.v1.ValidatorSigningInfo; + + /** + * Creates a plain object from a ValidatorSigningInfo message. Also converts values to other types if specified. + * @param message ValidatorSigningInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.slashing.v1.ValidatorSigningInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorSigningInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace staking. */ + namespace staking { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgCreateValidator. */ + interface IMsgCreateValidator { + /** MsgCreateValidator description */ + description?: cosmos_sdk.x.staking.v1.IDescription | null; + + /** MsgCreateValidator commission */ + commission?: cosmos_sdk.x.staking.v1.ICommissionRates | null; + + /** MsgCreateValidator minSelfDelegation */ + minSelfDelegation?: string | null; + + /** MsgCreateValidator delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** MsgCreateValidator validatorAddress */ + validatorAddress?: Uint8Array | null; + + /** MsgCreateValidator pubkey */ + pubkey?: string | null; + + /** MsgCreateValidator value */ + value?: cosmos_sdk.v1.ICoin | null; + } + + /** Represents a MsgCreateValidator. */ + class MsgCreateValidator implements IMsgCreateValidator { + /** + * Constructs a new MsgCreateValidator. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IMsgCreateValidator); + + /** MsgCreateValidator description. */ + public description?: cosmos_sdk.x.staking.v1.IDescription | null; + + /** MsgCreateValidator commission. */ + public commission?: cosmos_sdk.x.staking.v1.ICommissionRates | null; + + /** MsgCreateValidator minSelfDelegation. */ + public minSelfDelegation: string; + + /** MsgCreateValidator delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** MsgCreateValidator validatorAddress. */ + public validatorAddress: Uint8Array; + + /** MsgCreateValidator pubkey. */ + public pubkey: string; + + /** MsgCreateValidator value. */ + public value?: cosmos_sdk.v1.ICoin | null; + + /** + * Creates a new MsgCreateValidator instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateValidator instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IMsgCreateValidator, + ): cosmos_sdk.x.staking.v1.MsgCreateValidator; + + /** + * Encodes the specified MsgCreateValidator message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgCreateValidator.verify|verify} messages. + * @param message MsgCreateValidator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IMsgCreateValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgCreateValidator message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgCreateValidator.verify|verify} messages. + * @param message MsgCreateValidator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IMsgCreateValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateValidator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgCreateValidator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.MsgCreateValidator; + + /** + * Decodes a MsgCreateValidator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgCreateValidator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.MsgCreateValidator; + + /** + * Verifies a MsgCreateValidator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgCreateValidator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgCreateValidator + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.MsgCreateValidator; + + /** + * Creates a plain object from a MsgCreateValidator message. Also converts values to other types if specified. + * @param message MsgCreateValidator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.MsgCreateValidator, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgCreateValidator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgEditValidator. */ + interface IMsgEditValidator { + /** MsgEditValidator description */ + description?: cosmos_sdk.x.staking.v1.IDescription | null; + + /** MsgEditValidator validatorAddress */ + validatorAddress?: Uint8Array | null; + + /** MsgEditValidator commissionRate */ + commissionRate?: string | null; + + /** MsgEditValidator minSelfDelegation */ + minSelfDelegation?: string | null; + } + + /** Represents a MsgEditValidator. */ + class MsgEditValidator implements IMsgEditValidator { + /** + * Constructs a new MsgEditValidator. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IMsgEditValidator); + + /** MsgEditValidator description. */ + public description?: cosmos_sdk.x.staking.v1.IDescription | null; + + /** MsgEditValidator validatorAddress. */ + public validatorAddress: Uint8Array; + + /** MsgEditValidator commissionRate. */ + public commissionRate: string; + + /** MsgEditValidator minSelfDelegation. */ + public minSelfDelegation: string; + + /** + * Creates a new MsgEditValidator instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgEditValidator instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IMsgEditValidator, + ): cosmos_sdk.x.staking.v1.MsgEditValidator; + + /** + * Encodes the specified MsgEditValidator message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgEditValidator.verify|verify} messages. + * @param message MsgEditValidator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IMsgEditValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgEditValidator message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgEditValidator.verify|verify} messages. + * @param message MsgEditValidator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IMsgEditValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgEditValidator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgEditValidator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.MsgEditValidator; + + /** + * Decodes a MsgEditValidator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgEditValidator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.MsgEditValidator; + + /** + * Verifies a MsgEditValidator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgEditValidator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgEditValidator + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.MsgEditValidator; + + /** + * Creates a plain object from a MsgEditValidator message. Also converts values to other types if specified. + * @param message MsgEditValidator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.MsgEditValidator, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgEditValidator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgDelegate. */ + interface IMsgDelegate { + /** MsgDelegate delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** MsgDelegate validatorAddress */ + validatorAddress?: Uint8Array | null; + + /** MsgDelegate amount */ + amount?: cosmos_sdk.v1.ICoin | null; + } + + /** Represents a MsgDelegate. */ + class MsgDelegate implements IMsgDelegate { + /** + * Constructs a new MsgDelegate. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IMsgDelegate); + + /** MsgDelegate delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** MsgDelegate validatorAddress. */ + public validatorAddress: Uint8Array; + + /** MsgDelegate amount. */ + public amount?: cosmos_sdk.v1.ICoin | null; + + /** + * Creates a new MsgDelegate instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgDelegate instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IMsgDelegate, + ): cosmos_sdk.x.staking.v1.MsgDelegate; + + /** + * Encodes the specified MsgDelegate message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgDelegate.verify|verify} messages. + * @param message MsgDelegate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IMsgDelegate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgDelegate message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgDelegate.verify|verify} messages. + * @param message MsgDelegate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IMsgDelegate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgDelegate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgDelegate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.MsgDelegate; + + /** + * Decodes a MsgDelegate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgDelegate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.MsgDelegate; + + /** + * Verifies a MsgDelegate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgDelegate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgDelegate + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.MsgDelegate; + + /** + * Creates a plain object from a MsgDelegate message. Also converts values to other types if specified. + * @param message MsgDelegate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.MsgDelegate, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgDelegate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgBeginRedelegate. */ + interface IMsgBeginRedelegate { + /** MsgBeginRedelegate delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** MsgBeginRedelegate validatorSrcAddress */ + validatorSrcAddress?: Uint8Array | null; + + /** MsgBeginRedelegate validatorDstAddress */ + validatorDstAddress?: Uint8Array | null; + + /** MsgBeginRedelegate amount */ + amount?: cosmos_sdk.v1.ICoin | null; + } + + /** Represents a MsgBeginRedelegate. */ + class MsgBeginRedelegate implements IMsgBeginRedelegate { + /** + * Constructs a new MsgBeginRedelegate. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IMsgBeginRedelegate); + + /** MsgBeginRedelegate delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** MsgBeginRedelegate validatorSrcAddress. */ + public validatorSrcAddress: Uint8Array; + + /** MsgBeginRedelegate validatorDstAddress. */ + public validatorDstAddress: Uint8Array; + + /** MsgBeginRedelegate amount. */ + public amount?: cosmos_sdk.v1.ICoin | null; + + /** + * Creates a new MsgBeginRedelegate instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgBeginRedelegate instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IMsgBeginRedelegate, + ): cosmos_sdk.x.staking.v1.MsgBeginRedelegate; + + /** + * Encodes the specified MsgBeginRedelegate message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgBeginRedelegate.verify|verify} messages. + * @param message MsgBeginRedelegate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IMsgBeginRedelegate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgBeginRedelegate message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgBeginRedelegate.verify|verify} messages. + * @param message MsgBeginRedelegate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IMsgBeginRedelegate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgBeginRedelegate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgBeginRedelegate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.MsgBeginRedelegate; + + /** + * Decodes a MsgBeginRedelegate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgBeginRedelegate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.MsgBeginRedelegate; + + /** + * Verifies a MsgBeginRedelegate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgBeginRedelegate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgBeginRedelegate + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.MsgBeginRedelegate; + + /** + * Creates a plain object from a MsgBeginRedelegate message. Also converts values to other types if specified. + * @param message MsgBeginRedelegate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.MsgBeginRedelegate, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgBeginRedelegate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgUndelegate. */ + interface IMsgUndelegate { + /** MsgUndelegate delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** MsgUndelegate validatorAddress */ + validatorAddress?: Uint8Array | null; + + /** MsgUndelegate amount */ + amount?: cosmos_sdk.v1.ICoin | null; + } + + /** Represents a MsgUndelegate. */ + class MsgUndelegate implements IMsgUndelegate { + /** + * Constructs a new MsgUndelegate. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IMsgUndelegate); + + /** MsgUndelegate delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** MsgUndelegate validatorAddress. */ + public validatorAddress: Uint8Array; + + /** MsgUndelegate amount. */ + public amount?: cosmos_sdk.v1.ICoin | null; + + /** + * Creates a new MsgUndelegate instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUndelegate instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IMsgUndelegate, + ): cosmos_sdk.x.staking.v1.MsgUndelegate; + + /** + * Encodes the specified MsgUndelegate message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgUndelegate.verify|verify} messages. + * @param message MsgUndelegate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IMsgUndelegate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgUndelegate message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgUndelegate.verify|verify} messages. + * @param message MsgUndelegate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IMsgUndelegate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUndelegate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgUndelegate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.MsgUndelegate; + + /** + * Decodes a MsgUndelegate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgUndelegate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.MsgUndelegate; + + /** + * Verifies a MsgUndelegate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgUndelegate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgUndelegate + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.MsgUndelegate; + + /** + * Creates a plain object from a MsgUndelegate message. Also converts values to other types if specified. + * @param message MsgUndelegate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.MsgUndelegate, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgUndelegate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HistoricalInfo. */ + interface IHistoricalInfo { + /** HistoricalInfo header */ + header?: tendermint.abci.types.IHeader | null; + + /** HistoricalInfo valset */ + valset?: cosmos_sdk.x.staking.v1.IValidator[] | null; + } + + /** Represents a HistoricalInfo. */ + class HistoricalInfo implements IHistoricalInfo { + /** + * Constructs a new HistoricalInfo. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IHistoricalInfo); + + /** HistoricalInfo header. */ + public header?: tendermint.abci.types.IHeader | null; + + /** HistoricalInfo valset. */ + public valset: cosmos_sdk.x.staking.v1.IValidator[]; + + /** + * Creates a new HistoricalInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns HistoricalInfo instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IHistoricalInfo, + ): cosmos_sdk.x.staking.v1.HistoricalInfo; + + /** + * Encodes the specified HistoricalInfo message. Does not implicitly {@link cosmos_sdk.x.staking.v1.HistoricalInfo.verify|verify} messages. + * @param message HistoricalInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IHistoricalInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified HistoricalInfo message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.HistoricalInfo.verify|verify} messages. + * @param message HistoricalInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IHistoricalInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a HistoricalInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HistoricalInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.HistoricalInfo; + + /** + * Decodes a HistoricalInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HistoricalInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.HistoricalInfo; + + /** + * Verifies a HistoricalInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a HistoricalInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HistoricalInfo + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.HistoricalInfo; + + /** + * Creates a plain object from a HistoricalInfo message. Also converts values to other types if specified. + * @param message HistoricalInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.HistoricalInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this HistoricalInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CommissionRates. */ + interface ICommissionRates { + /** CommissionRates rate */ + rate?: string | null; + + /** CommissionRates maxRate */ + maxRate?: string | null; + + /** CommissionRates maxChangeRate */ + maxChangeRate?: string | null; + } + + /** Represents a CommissionRates. */ + class CommissionRates implements ICommissionRates { + /** + * Constructs a new CommissionRates. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.ICommissionRates); + + /** CommissionRates rate. */ + public rate: string; + + /** CommissionRates maxRate. */ + public maxRate: string; + + /** CommissionRates maxChangeRate. */ + public maxChangeRate: string; + + /** + * Creates a new CommissionRates instance using the specified properties. + * @param [properties] Properties to set + * @returns CommissionRates instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.ICommissionRates, + ): cosmos_sdk.x.staking.v1.CommissionRates; + + /** + * Encodes the specified CommissionRates message. Does not implicitly {@link cosmos_sdk.x.staking.v1.CommissionRates.verify|verify} messages. + * @param message CommissionRates message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.ICommissionRates, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified CommissionRates message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.CommissionRates.verify|verify} messages. + * @param message CommissionRates message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.ICommissionRates, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a CommissionRates message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommissionRates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.CommissionRates; + + /** + * Decodes a CommissionRates message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommissionRates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.CommissionRates; + + /** + * Verifies a CommissionRates message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a CommissionRates message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommissionRates + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.CommissionRates; + + /** + * Creates a plain object from a CommissionRates message. Also converts values to other types if specified. + * @param message CommissionRates + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.CommissionRates, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this CommissionRates to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Commission. */ + interface ICommission { + /** Commission commissionRates */ + commissionRates?: cosmos_sdk.x.staking.v1.ICommissionRates | null; + + /** Commission updateTime */ + updateTime?: google.protobuf.ITimestamp | null; + } + + /** Represents a Commission. */ + class Commission implements ICommission { + /** + * Constructs a new Commission. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.ICommission); + + /** Commission commissionRates. */ + public commissionRates?: cosmos_sdk.x.staking.v1.ICommissionRates | null; + + /** Commission updateTime. */ + public updateTime?: google.protobuf.ITimestamp | null; + + /** + * Creates a new Commission instance using the specified properties. + * @param [properties] Properties to set + * @returns Commission instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.ICommission, + ): cosmos_sdk.x.staking.v1.Commission; + + /** + * Encodes the specified Commission message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Commission.verify|verify} messages. + * @param message Commission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.ICommission, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Commission message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.Commission.verify|verify} messages. + * @param message Commission message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.ICommission, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Commission message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Commission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.Commission; + + /** + * Decodes a Commission message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Commission + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.Commission; + + /** + * Verifies a Commission message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Commission message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Commission + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.Commission; + + /** + * Creates a plain object from a Commission message. Also converts values to other types if specified. + * @param message Commission + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.Commission, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Commission to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Description. */ + interface IDescription { + /** Description moniker */ + moniker?: string | null; + + /** Description identity */ + identity?: string | null; + + /** Description website */ + website?: string | null; + + /** Description securityContact */ + securityContact?: string | null; + + /** Description details */ + details?: string | null; + } + + /** Represents a Description. */ + class Description implements IDescription { + /** + * Constructs a new Description. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IDescription); + + /** Description moniker. */ + public moniker: string; + + /** Description identity. */ + public identity: string; + + /** Description website. */ + public website: string; + + /** Description securityContact. */ + public securityContact: string; + + /** Description details. */ + public details: string; + + /** + * Creates a new Description instance using the specified properties. + * @param [properties] Properties to set + * @returns Description instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IDescription, + ): cosmos_sdk.x.staking.v1.Description; + + /** + * Encodes the specified Description message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Description.verify|verify} messages. + * @param message Description message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IDescription, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Description message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.Description.verify|verify} messages. + * @param message Description message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IDescription, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Description message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Description + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.Description; + + /** + * Decodes a Description message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Description + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.Description; + + /** + * Verifies a Description message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Description message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Description + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.Description; + + /** + * Creates a plain object from a Description message. Also converts values to other types if specified. + * @param message Description + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.Description, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Description to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Validator. */ + interface IValidator { + /** Validator operatorAddress */ + operatorAddress?: Uint8Array | null; + + /** Validator consensusPubkey */ + consensusPubkey?: string | null; + + /** Validator jailed */ + jailed?: boolean | null; + + /** Validator status */ + status?: number | null; + + /** Validator tokens */ + tokens?: string | null; + + /** Validator delegatorShares */ + delegatorShares?: string | null; + + /** Validator description */ + description?: cosmos_sdk.x.staking.v1.IDescription | null; + + /** Validator unbondingHeight */ + unbondingHeight?: number | Long | null; + + /** Validator unbondingTime */ + unbondingTime?: google.protobuf.ITimestamp | null; + + /** Validator commission */ + commission?: cosmos_sdk.x.staking.v1.ICommission | null; + + /** Validator minSelfDelegation */ + minSelfDelegation?: string | null; + } + + /** Represents a Validator. */ + class Validator implements IValidator { + /** + * Constructs a new Validator. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IValidator); + + /** Validator operatorAddress. */ + public operatorAddress: Uint8Array; + + /** Validator consensusPubkey. */ + public consensusPubkey: string; + + /** Validator jailed. */ + public jailed: boolean; + + /** Validator status. */ + public status: number; + + /** Validator tokens. */ + public tokens: string; + + /** Validator delegatorShares. */ + public delegatorShares: string; + + /** Validator description. */ + public description?: cosmos_sdk.x.staking.v1.IDescription | null; + + /** Validator unbondingHeight. */ + public unbondingHeight: number | Long; + + /** Validator unbondingTime. */ + public unbondingTime?: google.protobuf.ITimestamp | null; + + /** Validator commission. */ + public commission?: cosmos_sdk.x.staking.v1.ICommission | null; + + /** Validator minSelfDelegation. */ + public minSelfDelegation: string; + + /** + * Creates a new Validator instance using the specified properties. + * @param [properties] Properties to set + * @returns Validator instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IValidator, + ): cosmos_sdk.x.staking.v1.Validator; + + /** + * Encodes the specified Validator message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Validator message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Validator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.Validator; + + /** + * Decodes a Validator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.Validator; + + /** + * Verifies a Validator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Validator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Validator + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.Validator; + + /** + * Creates a plain object from a Validator message. Also converts values to other types if specified. + * @param message Validator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.Validator, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Validator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DVPair. */ + interface IDVPair { + /** DVPair delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** DVPair validatorAddress */ + validatorAddress?: Uint8Array | null; + } + + /** Represents a DVPair. */ + class DVPair implements IDVPair { + /** + * Constructs a new DVPair. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IDVPair); + + /** DVPair delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** DVPair validatorAddress. */ + public validatorAddress: Uint8Array; + + /** + * Creates a new DVPair instance using the specified properties. + * @param [properties] Properties to set + * @returns DVPair instance + */ + public static create(properties?: cosmos_sdk.x.staking.v1.IDVPair): cosmos_sdk.x.staking.v1.DVPair; + + /** + * Encodes the specified DVPair message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVPair.verify|verify} messages. + * @param message DVPair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IDVPair, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DVPair message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVPair.verify|verify} messages. + * @param message DVPair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IDVPair, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DVPair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DVPair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.DVPair; + + /** + * Decodes a DVPair message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DVPair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.DVPair; + + /** + * Verifies a DVPair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DVPair message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DVPair + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.DVPair; + + /** + * Creates a plain object from a DVPair message. Also converts values to other types if specified. + * @param message DVPair + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.DVPair, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DVPair to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DVPairs. */ + interface IDVPairs { + /** DVPairs pairs */ + pairs?: cosmos_sdk.x.staking.v1.IDVPair[] | null; + } + + /** Represents a DVPairs. */ + class DVPairs implements IDVPairs { + /** + * Constructs a new DVPairs. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IDVPairs); + + /** DVPairs pairs. */ + public pairs: cosmos_sdk.x.staking.v1.IDVPair[]; + + /** + * Creates a new DVPairs instance using the specified properties. + * @param [properties] Properties to set + * @returns DVPairs instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IDVPairs, + ): cosmos_sdk.x.staking.v1.DVPairs; + + /** + * Encodes the specified DVPairs message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVPairs.verify|verify} messages. + * @param message DVPairs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IDVPairs, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DVPairs message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVPairs.verify|verify} messages. + * @param message DVPairs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IDVPairs, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DVPairs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DVPairs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.DVPairs; + + /** + * Decodes a DVPairs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DVPairs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.DVPairs; + + /** + * Verifies a DVPairs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DVPairs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DVPairs + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.DVPairs; + + /** + * Creates a plain object from a DVPairs message. Also converts values to other types if specified. + * @param message DVPairs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.DVPairs, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DVPairs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DVVTriplet. */ + interface IDVVTriplet { + /** DVVTriplet delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** DVVTriplet validatorSrcAddress */ + validatorSrcAddress?: Uint8Array | null; + + /** DVVTriplet validatorDstAddress */ + validatorDstAddress?: Uint8Array | null; + } + + /** Represents a DVVTriplet. */ + class DVVTriplet implements IDVVTriplet { + /** + * Constructs a new DVVTriplet. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IDVVTriplet); + + /** DVVTriplet delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** DVVTriplet validatorSrcAddress. */ + public validatorSrcAddress: Uint8Array; + + /** DVVTriplet validatorDstAddress. */ + public validatorDstAddress: Uint8Array; + + /** + * Creates a new DVVTriplet instance using the specified properties. + * @param [properties] Properties to set + * @returns DVVTriplet instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IDVVTriplet, + ): cosmos_sdk.x.staking.v1.DVVTriplet; + + /** + * Encodes the specified DVVTriplet message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVVTriplet.verify|verify} messages. + * @param message DVVTriplet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IDVVTriplet, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DVVTriplet message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVVTriplet.verify|verify} messages. + * @param message DVVTriplet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IDVVTriplet, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DVVTriplet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DVVTriplet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.DVVTriplet; + + /** + * Decodes a DVVTriplet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DVVTriplet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.DVVTriplet; + + /** + * Verifies a DVVTriplet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DVVTriplet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DVVTriplet + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.DVVTriplet; + + /** + * Creates a plain object from a DVVTriplet message. Also converts values to other types if specified. + * @param message DVVTriplet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.DVVTriplet, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DVVTriplet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DVVTriplets. */ + interface IDVVTriplets { + /** DVVTriplets triplets */ + triplets?: cosmos_sdk.x.staking.v1.IDVVTriplet[] | null; + } + + /** Represents a DVVTriplets. */ + class DVVTriplets implements IDVVTriplets { + /** + * Constructs a new DVVTriplets. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IDVVTriplets); + + /** DVVTriplets triplets. */ + public triplets: cosmos_sdk.x.staking.v1.IDVVTriplet[]; + + /** + * Creates a new DVVTriplets instance using the specified properties. + * @param [properties] Properties to set + * @returns DVVTriplets instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IDVVTriplets, + ): cosmos_sdk.x.staking.v1.DVVTriplets; + + /** + * Encodes the specified DVVTriplets message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVVTriplets.verify|verify} messages. + * @param message DVVTriplets message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IDVVTriplets, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DVVTriplets message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVVTriplets.verify|verify} messages. + * @param message DVVTriplets message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IDVVTriplets, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DVVTriplets message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DVVTriplets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.DVVTriplets; + + /** + * Decodes a DVVTriplets message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DVVTriplets + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.DVVTriplets; + + /** + * Verifies a DVVTriplets message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DVVTriplets message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DVVTriplets + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.DVVTriplets; + + /** + * Creates a plain object from a DVVTriplets message. Also converts values to other types if specified. + * @param message DVVTriplets + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.DVVTriplets, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DVVTriplets to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Delegation. */ + interface IDelegation { + /** Delegation delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** Delegation validatorAddress */ + validatorAddress?: Uint8Array | null; + + /** Delegation shares */ + shares?: string | null; + } + + /** Represents a Delegation. */ + class Delegation implements IDelegation { + /** + * Constructs a new Delegation. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IDelegation); + + /** Delegation delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** Delegation validatorAddress. */ + public validatorAddress: Uint8Array; + + /** Delegation shares. */ + public shares: string; + + /** + * Creates a new Delegation instance using the specified properties. + * @param [properties] Properties to set + * @returns Delegation instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IDelegation, + ): cosmos_sdk.x.staking.v1.Delegation; + + /** + * Encodes the specified Delegation message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Delegation.verify|verify} messages. + * @param message Delegation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IDelegation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Delegation message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.Delegation.verify|verify} messages. + * @param message Delegation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IDelegation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Delegation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Delegation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.Delegation; + + /** + * Decodes a Delegation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Delegation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.Delegation; + + /** + * Verifies a Delegation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Delegation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Delegation + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.Delegation; + + /** + * Creates a plain object from a Delegation message. Also converts values to other types if specified. + * @param message Delegation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.Delegation, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Delegation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UnbondingDelegation. */ + interface IUnbondingDelegation { + /** UnbondingDelegation delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** UnbondingDelegation validatorAddress */ + validatorAddress?: Uint8Array | null; + + /** UnbondingDelegation entries */ + entries?: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry[] | null; + } + + /** Represents an UnbondingDelegation. */ + class UnbondingDelegation implements IUnbondingDelegation { + /** + * Constructs a new UnbondingDelegation. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IUnbondingDelegation); + + /** UnbondingDelegation delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** UnbondingDelegation validatorAddress. */ + public validatorAddress: Uint8Array; + + /** UnbondingDelegation entries. */ + public entries: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry[]; + + /** + * Creates a new UnbondingDelegation instance using the specified properties. + * @param [properties] Properties to set + * @returns UnbondingDelegation instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IUnbondingDelegation, + ): cosmos_sdk.x.staking.v1.UnbondingDelegation; + + /** + * Encodes the specified UnbondingDelegation message. Does not implicitly {@link cosmos_sdk.x.staking.v1.UnbondingDelegation.verify|verify} messages. + * @param message UnbondingDelegation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IUnbondingDelegation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified UnbondingDelegation message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.UnbondingDelegation.verify|verify} messages. + * @param message UnbondingDelegation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IUnbondingDelegation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an UnbondingDelegation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnbondingDelegation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.UnbondingDelegation; + + /** + * Decodes an UnbondingDelegation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnbondingDelegation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.UnbondingDelegation; + + /** + * Verifies an UnbondingDelegation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an UnbondingDelegation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnbondingDelegation + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.UnbondingDelegation; + + /** + * Creates a plain object from an UnbondingDelegation message. Also converts values to other types if specified. + * @param message UnbondingDelegation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.UnbondingDelegation, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this UnbondingDelegation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UnbondingDelegationEntry. */ + interface IUnbondingDelegationEntry { + /** UnbondingDelegationEntry creationHeight */ + creationHeight?: number | Long | null; + + /** UnbondingDelegationEntry completionTime */ + completionTime?: google.protobuf.ITimestamp | null; + + /** UnbondingDelegationEntry initialBalance */ + initialBalance?: string | null; + + /** UnbondingDelegationEntry balance */ + balance?: string | null; + } + + /** Represents an UnbondingDelegationEntry. */ + class UnbondingDelegationEntry implements IUnbondingDelegationEntry { + /** + * Constructs a new UnbondingDelegationEntry. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry); + + /** UnbondingDelegationEntry creationHeight. */ + public creationHeight: number | Long; + + /** UnbondingDelegationEntry completionTime. */ + public completionTime?: google.protobuf.ITimestamp | null; + + /** UnbondingDelegationEntry initialBalance. */ + public initialBalance: string; + + /** UnbondingDelegationEntry balance. */ + public balance: string; + + /** + * Creates a new UnbondingDelegationEntry instance using the specified properties. + * @param [properties] Properties to set + * @returns UnbondingDelegationEntry instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry, + ): cosmos_sdk.x.staking.v1.UnbondingDelegationEntry; + + /** + * Encodes the specified UnbondingDelegationEntry message. Does not implicitly {@link cosmos_sdk.x.staking.v1.UnbondingDelegationEntry.verify|verify} messages. + * @param message UnbondingDelegationEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified UnbondingDelegationEntry message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.UnbondingDelegationEntry.verify|verify} messages. + * @param message UnbondingDelegationEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an UnbondingDelegationEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnbondingDelegationEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.UnbondingDelegationEntry; + + /** + * Decodes an UnbondingDelegationEntry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UnbondingDelegationEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.UnbondingDelegationEntry; + + /** + * Verifies an UnbondingDelegationEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an UnbondingDelegationEntry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UnbondingDelegationEntry + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.staking.v1.UnbondingDelegationEntry; + + /** + * Creates a plain object from an UnbondingDelegationEntry message. Also converts values to other types if specified. + * @param message UnbondingDelegationEntry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.UnbondingDelegationEntry, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this UnbondingDelegationEntry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RedelegationEntry. */ + interface IRedelegationEntry { + /** RedelegationEntry creationHeight */ + creationHeight?: number | Long | null; + + /** RedelegationEntry completionTime */ + completionTime?: google.protobuf.ITimestamp | null; + + /** RedelegationEntry initialBalance */ + initialBalance?: string | null; + + /** RedelegationEntry sharesDst */ + sharesDst?: string | null; + } + + /** Represents a RedelegationEntry. */ + class RedelegationEntry implements IRedelegationEntry { + /** + * Constructs a new RedelegationEntry. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IRedelegationEntry); + + /** RedelegationEntry creationHeight. */ + public creationHeight: number | Long; + + /** RedelegationEntry completionTime. */ + public completionTime?: google.protobuf.ITimestamp | null; + + /** RedelegationEntry initialBalance. */ + public initialBalance: string; + + /** RedelegationEntry sharesDst. */ + public sharesDst: string; + + /** + * Creates a new RedelegationEntry instance using the specified properties. + * @param [properties] Properties to set + * @returns RedelegationEntry instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IRedelegationEntry, + ): cosmos_sdk.x.staking.v1.RedelegationEntry; + + /** + * Encodes the specified RedelegationEntry message. Does not implicitly {@link cosmos_sdk.x.staking.v1.RedelegationEntry.verify|verify} messages. + * @param message RedelegationEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IRedelegationEntry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RedelegationEntry message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.RedelegationEntry.verify|verify} messages. + * @param message RedelegationEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IRedelegationEntry, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RedelegationEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RedelegationEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.RedelegationEntry; + + /** + * Decodes a RedelegationEntry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RedelegationEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.RedelegationEntry; + + /** + * Verifies a RedelegationEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RedelegationEntry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RedelegationEntry + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.RedelegationEntry; + + /** + * Creates a plain object from a RedelegationEntry message. Also converts values to other types if specified. + * @param message RedelegationEntry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.RedelegationEntry, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RedelegationEntry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Redelegation. */ + interface IRedelegation { + /** Redelegation delegatorAddress */ + delegatorAddress?: Uint8Array | null; + + /** Redelegation validatorSrcAddress */ + validatorSrcAddress?: Uint8Array | null; + + /** Redelegation validatorDstAddress */ + validatorDstAddress?: Uint8Array | null; + + /** Redelegation entries */ + entries?: cosmos_sdk.x.staking.v1.IRedelegationEntry[] | null; + } + + /** Represents a Redelegation. */ + class Redelegation implements IRedelegation { + /** + * Constructs a new Redelegation. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IRedelegation); + + /** Redelegation delegatorAddress. */ + public delegatorAddress: Uint8Array; + + /** Redelegation validatorSrcAddress. */ + public validatorSrcAddress: Uint8Array; + + /** Redelegation validatorDstAddress. */ + public validatorDstAddress: Uint8Array; + + /** Redelegation entries. */ + public entries: cosmos_sdk.x.staking.v1.IRedelegationEntry[]; + + /** + * Creates a new Redelegation instance using the specified properties. + * @param [properties] Properties to set + * @returns Redelegation instance + */ + public static create( + properties?: cosmos_sdk.x.staking.v1.IRedelegation, + ): cosmos_sdk.x.staking.v1.Redelegation; + + /** + * Encodes the specified Redelegation message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Redelegation.verify|verify} messages. + * @param message Redelegation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IRedelegation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Redelegation message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.Redelegation.verify|verify} messages. + * @param message Redelegation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IRedelegation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Redelegation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Redelegation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.Redelegation; + + /** + * Decodes a Redelegation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Redelegation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.Redelegation; + + /** + * Verifies a Redelegation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Redelegation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Redelegation + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.Redelegation; + + /** + * Creates a plain object from a Redelegation message. Also converts values to other types if specified. + * @param message Redelegation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.Redelegation, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Redelegation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Params. */ + interface IParams { + /** Params unbondingTime */ + unbondingTime?: google.protobuf.IDuration | null; + + /** Params maxValidators */ + maxValidators?: number | null; + + /** Params maxEntries */ + maxEntries?: number | null; + + /** Params historicalEntries */ + historicalEntries?: number | null; + + /** Params bondDenom */ + bondDenom?: string | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.staking.v1.IParams); + + /** Params unbondingTime. */ + public unbondingTime?: google.protobuf.IDuration | null; + + /** Params maxValidators. */ + public maxValidators: number; + + /** Params maxEntries. */ + public maxEntries: number; + + /** Params historicalEntries. */ + public historicalEntries: number; + + /** Params bondDenom. */ + public bondDenom: string; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos_sdk.x.staking.v1.IParams): cosmos_sdk.x.staking.v1.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.staking.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos_sdk.x.staking.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.staking.v1.IParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.staking.v1.Params; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.staking.v1.Params; + + /** + * Verifies a Params message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Params + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.staking.v1.Params; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.staking.v1.Params, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace upgrade. */ + namespace upgrade { + /** Namespace v1. */ + namespace v1 { + /** Properties of a Plan. */ + interface IPlan { + /** Plan name */ + name?: string | null; + + /** Plan time */ + time?: google.protobuf.ITimestamp | null; + + /** Plan height */ + height?: number | Long | null; + + /** Plan info */ + info?: string | null; + } + + /** Represents a Plan. */ + class Plan implements IPlan { + /** + * Constructs a new Plan. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.upgrade.v1.IPlan); + + /** Plan name. */ + public name: string; + + /** Plan time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Plan height. */ + public height: number | Long; + + /** Plan info. */ + public info: string; + + /** + * Creates a new Plan instance using the specified properties. + * @param [properties] Properties to set + * @returns Plan instance + */ + public static create(properties?: cosmos_sdk.x.upgrade.v1.IPlan): cosmos_sdk.x.upgrade.v1.Plan; + + /** + * Encodes the specified Plan message. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.Plan.verify|verify} messages. + * @param message Plan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.upgrade.v1.IPlan, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.Plan.verify|verify} messages. + * @param message Plan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.upgrade.v1.IPlan, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Plan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.upgrade.v1.Plan; + + /** + * Decodes a Plan message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): cosmos_sdk.x.upgrade.v1.Plan; + + /** + * Verifies a Plan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Plan + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.x.upgrade.v1.Plan; + + /** + * Creates a plain object from a Plan message. Also converts values to other types if specified. + * @param message Plan + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.upgrade.v1.Plan, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Plan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SoftwareUpgradeProposal. */ + interface ISoftwareUpgradeProposal { + /** SoftwareUpgradeProposal title */ + title?: string | null; + + /** SoftwareUpgradeProposal description */ + description?: string | null; + + /** SoftwareUpgradeProposal plan */ + plan?: cosmos_sdk.x.upgrade.v1.IPlan | null; + } + + /** Represents a SoftwareUpgradeProposal. */ + class SoftwareUpgradeProposal implements ISoftwareUpgradeProposal { + /** + * Constructs a new SoftwareUpgradeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal); + + /** SoftwareUpgradeProposal title. */ + public title: string; + + /** SoftwareUpgradeProposal description. */ + public description: string; + + /** SoftwareUpgradeProposal plan. */ + public plan?: cosmos_sdk.x.upgrade.v1.IPlan | null; + + /** + * Creates a new SoftwareUpgradeProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns SoftwareUpgradeProposal instance + */ + public static create( + properties?: cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal, + ): cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal; + + /** + * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal.verify|verify} messages. + * @param message SoftwareUpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal.verify|verify} messages. + * @param message SoftwareUpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal; + + /** + * Verifies a SoftwareUpgradeProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SoftwareUpgradeProposal + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal; + + /** + * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. + * @param message SoftwareUpgradeProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SoftwareUpgradeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelSoftwareUpgradeProposal. */ + interface ICancelSoftwareUpgradeProposal { + /** CancelSoftwareUpgradeProposal title */ + title?: string | null; + + /** CancelSoftwareUpgradeProposal description */ + description?: string | null; + } + + /** Represents a CancelSoftwareUpgradeProposal. */ + class CancelSoftwareUpgradeProposal implements ICancelSoftwareUpgradeProposal { + /** + * Constructs a new CancelSoftwareUpgradeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal); + + /** CancelSoftwareUpgradeProposal title. */ + public title: string; + + /** CancelSoftwareUpgradeProposal description. */ + public description: string; + + /** + * Creates a new CancelSoftwareUpgradeProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelSoftwareUpgradeProposal instance + */ + public static create( + properties?: cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal, + ): cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal; + + /** + * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @param message CancelSoftwareUpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @param message CancelSoftwareUpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelSoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal; + + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelSoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal; + + /** + * Verifies a CancelSoftwareUpgradeProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelSoftwareUpgradeProposal + */ + public static fromObject(object: { + [k: string]: any; + }): cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal; + + /** + * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. + * @param message CancelSoftwareUpgradeProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this CancelSoftwareUpgradeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Namespace ibc. */ + namespace ibc { + /** Namespace localhost. */ + namespace localhost { + /** Namespace v1. */ + namespace v1 { + /** Properties of a MsgCreateClient. */ + interface IMsgCreateClient { + /** MsgCreateClient signer */ + signer?: Uint8Array | null; + } + + /** Represents a MsgCreateClient. */ + class MsgCreateClient implements IMsgCreateClient { + /** + * Constructs a new MsgCreateClient. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_sdk.ibc.localhost.v1.IMsgCreateClient); + + /** MsgCreateClient signer. */ + public signer: Uint8Array; + + /** + * Creates a new MsgCreateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClient instance + */ + public static create( + properties?: cosmos_sdk.ibc.localhost.v1.IMsgCreateClient, + ): cosmos_sdk.ibc.localhost.v1.MsgCreateClient; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link cosmos_sdk.ibc.localhost.v1.MsgCreateClient.verify|verify} messages. + * @param message MsgCreateClient message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: cosmos_sdk.ibc.localhost.v1.IMsgCreateClient, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link cosmos_sdk.ibc.localhost.v1.MsgCreateClient.verify|verify} messages. + * @param message MsgCreateClient message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: cosmos_sdk.ibc.localhost.v1.IMsgCreateClient, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgCreateClient message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgCreateClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): cosmos_sdk.ibc.localhost.v1.MsgCreateClient; + + /** + * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgCreateClient + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): cosmos_sdk.ibc.localhost.v1.MsgCreateClient; + + /** + * Verifies a MsgCreateClient message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgCreateClient + */ + public static fromObject(object: { [k: string]: any }): cosmos_sdk.ibc.localhost.v1.MsgCreateClient; + + /** + * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. + * @param message MsgCreateClient + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: cosmos_sdk.ibc.localhost.v1.MsgCreateClient, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MsgCreateClient to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } +} + +/** Namespace tendermint. */ +export namespace tendermint { + /** Namespace abci. */ + namespace abci { + /** Namespace types. */ + namespace types { + /** Properties of a Request. */ + interface IRequest { + /** Request echo */ + echo?: tendermint.abci.types.IRequestEcho | null; + + /** Request flush */ + flush?: tendermint.abci.types.IRequestFlush | null; + + /** Request info */ + info?: tendermint.abci.types.IRequestInfo | null; + + /** Request setOption */ + setOption?: tendermint.abci.types.IRequestSetOption | null; + + /** Request initChain */ + initChain?: tendermint.abci.types.IRequestInitChain | null; + + /** Request query */ + query?: tendermint.abci.types.IRequestQuery | null; + + /** Request beginBlock */ + beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; + + /** Request checkTx */ + checkTx?: tendermint.abci.types.IRequestCheckTx | null; + + /** Request deliverTx */ + deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; + + /** Request endBlock */ + endBlock?: tendermint.abci.types.IRequestEndBlock | null; + + /** Request commit */ + commit?: tendermint.abci.types.IRequestCommit | null; + } + + /** Represents a Request. */ + class Request implements IRequest { + /** + * Constructs a new Request. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequest); + + /** Request echo. */ + public echo?: tendermint.abci.types.IRequestEcho | null; + + /** Request flush. */ + public flush?: tendermint.abci.types.IRequestFlush | null; + + /** Request info. */ + public info?: tendermint.abci.types.IRequestInfo | null; + + /** Request setOption. */ + public setOption?: tendermint.abci.types.IRequestSetOption | null; + + /** Request initChain. */ + public initChain?: tendermint.abci.types.IRequestInitChain | null; + + /** Request query. */ + public query?: tendermint.abci.types.IRequestQuery | null; + + /** Request beginBlock. */ + public beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; + + /** Request checkTx. */ + public checkTx?: tendermint.abci.types.IRequestCheckTx | null; + + /** Request deliverTx. */ + public deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; + + /** Request endBlock. */ + public endBlock?: tendermint.abci.types.IRequestEndBlock | null; + + /** Request commit. */ + public commit?: tendermint.abci.types.IRequestCommit | null; + + /** Request value. */ + public value?: + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit"; + + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: tendermint.abci.types.IRequest): tendermint.abci.types.Request; + + /** + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.types.Request.verify|verify} messages. + * @param message Request message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Request message, length delimited. Does not implicitly {@link tendermint.abci.types.Request.verify|verify} messages. + * @param message Request message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequest, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Request message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Request + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Request; + + /** + * Decodes a Request message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Request + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Request; + + /** + * Verifies a Request message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Request message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Request + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Request; + + /** + * Creates a plain object from a Request message. Also converts values to other types if specified. + * @param message Request + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Request, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Request to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestEcho. */ + interface IRequestEcho { + /** RequestEcho message */ + message?: string | null; + } + + /** Represents a RequestEcho. */ + class RequestEcho implements IRequestEcho { + /** + * Constructs a new RequestEcho. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestEcho); + + /** RequestEcho message. */ + public message: string; + + /** + * Creates a new RequestEcho instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestEcho instance + */ + public static create( + properties?: tendermint.abci.types.IRequestEcho, + ): tendermint.abci.types.RequestEcho; + + /** + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.types.RequestEcho.verify|verify} messages. + * @param message RequestEcho message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestEcho, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestEcho message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestEcho.verify|verify} messages. + * @param message RequestEcho message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestEcho, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestEcho message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestEcho; + + /** + * Decodes a RequestEcho message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestEcho; + + /** + * Verifies a RequestEcho message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestEcho message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestEcho + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestEcho; + + /** + * Creates a plain object from a RequestEcho message. Also converts values to other types if specified. + * @param message RequestEcho + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestEcho, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestEcho to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestFlush. */ + interface IRequestFlush {} + + /** Represents a RequestFlush. */ + class RequestFlush implements IRequestFlush { + /** + * Constructs a new RequestFlush. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestFlush); + + /** + * Creates a new RequestFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestFlush instance + */ + public static create( + properties?: tendermint.abci.types.IRequestFlush, + ): tendermint.abci.types.RequestFlush; + + /** + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.types.RequestFlush.verify|verify} messages. + * @param message RequestFlush message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestFlush, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestFlush message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestFlush.verify|verify} messages. + * @param message RequestFlush message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestFlush, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestFlush message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestFlush; + + /** + * Decodes a RequestFlush message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestFlush; + + /** + * Verifies a RequestFlush message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestFlush message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestFlush + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestFlush; + + /** + * Creates a plain object from a RequestFlush message. Also converts values to other types if specified. + * @param message RequestFlush + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestFlush, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestFlush to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestInfo. */ + interface IRequestInfo { + /** RequestInfo version */ + version?: string | null; + + /** RequestInfo blockVersion */ + blockVersion?: number | Long | null; + + /** RequestInfo p2pVersion */ + p2pVersion?: number | Long | null; + } + + /** Represents a RequestInfo. */ + class RequestInfo implements IRequestInfo { + /** + * Constructs a new RequestInfo. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestInfo); + + /** RequestInfo version. */ + public version: string; + + /** RequestInfo blockVersion. */ + public blockVersion: number | Long; + + /** RequestInfo p2pVersion. */ + public p2pVersion: number | Long; + + /** + * Creates a new RequestInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInfo instance + */ + public static create( + properties?: tendermint.abci.types.IRequestInfo, + ): tendermint.abci.types.RequestInfo; + + /** + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.types.RequestInfo.verify|verify} messages. + * @param message RequestInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestInfo message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestInfo.verify|verify} messages. + * @param message RequestInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestInfo; + + /** + * Decodes a RequestInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestInfo; + + /** + * Verifies a RequestInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestInfo + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestInfo; + + /** + * Creates a plain object from a RequestInfo message. Also converts values to other types if specified. + * @param message RequestInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestSetOption. */ + interface IRequestSetOption { + /** RequestSetOption key */ + key?: string | null; + + /** RequestSetOption value */ + value?: string | null; + } + + /** Represents a RequestSetOption. */ + class RequestSetOption implements IRequestSetOption { + /** + * Constructs a new RequestSetOption. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestSetOption); + + /** RequestSetOption key. */ + public key: string; + + /** RequestSetOption value. */ + public value: string; + + /** + * Creates a new RequestSetOption instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestSetOption instance + */ + public static create( + properties?: tendermint.abci.types.IRequestSetOption, + ): tendermint.abci.types.RequestSetOption; + + /** + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.types.RequestSetOption.verify|verify} messages. + * @param message RequestSetOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestSetOption, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestSetOption message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestSetOption.verify|verify} messages. + * @param message RequestSetOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestSetOption, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestSetOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestSetOption; + + /** + * Decodes a RequestSetOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestSetOption; + + /** + * Verifies a RequestSetOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestSetOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestSetOption + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestSetOption; + + /** + * Creates a plain object from a RequestSetOption message. Also converts values to other types if specified. + * @param message RequestSetOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestSetOption, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestSetOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestInitChain. */ + interface IRequestInitChain { + /** RequestInitChain time */ + time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId */ + chainId?: string | null; + + /** RequestInitChain consensusParams */ + consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** RequestInitChain validators */ + validators?: tendermint.abci.types.IValidatorUpdate[] | null; + + /** RequestInitChain appStateBytes */ + appStateBytes?: Uint8Array | null; + } + + /** Represents a RequestInitChain. */ + class RequestInitChain implements IRequestInitChain { + /** + * Constructs a new RequestInitChain. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestInitChain); + + /** RequestInitChain time. */ + public time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId. */ + public chainId: string; + + /** RequestInitChain consensusParams. */ + public consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** RequestInitChain validators. */ + public validators: tendermint.abci.types.IValidatorUpdate[]; + + /** RequestInitChain appStateBytes. */ + public appStateBytes: Uint8Array; + + /** + * Creates a new RequestInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInitChain instance + */ + public static create( + properties?: tendermint.abci.types.IRequestInitChain, + ): tendermint.abci.types.RequestInitChain; + + /** + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.types.RequestInitChain.verify|verify} messages. + * @param message RequestInitChain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestInitChain, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestInitChain message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestInitChain.verify|verify} messages. + * @param message RequestInitChain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestInitChain, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestInitChain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestInitChain; + + /** + * Decodes a RequestInitChain message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestInitChain; + + /** + * Verifies a RequestInitChain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestInitChain message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestInitChain + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestInitChain; + + /** + * Creates a plain object from a RequestInitChain message. Also converts values to other types if specified. + * @param message RequestInitChain + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestInitChain, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestInitChain to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestQuery. */ + interface IRequestQuery { + /** RequestQuery data */ + data?: Uint8Array | null; + + /** RequestQuery path */ + path?: string | null; + + /** RequestQuery height */ + height?: number | Long | null; + + /** RequestQuery prove */ + prove?: boolean | null; + } + + /** Represents a RequestQuery. */ + class RequestQuery implements IRequestQuery { + /** + * Constructs a new RequestQuery. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestQuery); + + /** RequestQuery data. */ + public data: Uint8Array; + + /** RequestQuery path. */ + public path: string; + + /** RequestQuery height. */ + public height: number | Long; + + /** RequestQuery prove. */ + public prove: boolean; + + /** + * Creates a new RequestQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestQuery instance + */ + public static create( + properties?: tendermint.abci.types.IRequestQuery, + ): tendermint.abci.types.RequestQuery; + + /** + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.types.RequestQuery.verify|verify} messages. + * @param message RequestQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestQuery, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestQuery message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestQuery.verify|verify} messages. + * @param message RequestQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestQuery, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestQuery; + + /** + * Decodes a RequestQuery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestQuery; + + /** + * Verifies a RequestQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestQuery + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestQuery; + + /** + * Creates a plain object from a RequestQuery message. Also converts values to other types if specified. + * @param message RequestQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestQuery, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestBeginBlock. */ + interface IRequestBeginBlock { + /** RequestBeginBlock hash */ + hash?: Uint8Array | null; + + /** RequestBeginBlock header */ + header?: tendermint.abci.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo */ + lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators */ + byzantineValidators?: tendermint.abci.types.IEvidence[] | null; + } + + /** Represents a RequestBeginBlock. */ + class RequestBeginBlock implements IRequestBeginBlock { + /** + * Constructs a new RequestBeginBlock. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestBeginBlock); + + /** RequestBeginBlock hash. */ + public hash: Uint8Array; + + /** RequestBeginBlock header. */ + public header?: tendermint.abci.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo. */ + public lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators. */ + public byzantineValidators: tendermint.abci.types.IEvidence[]; + + /** + * Creates a new RequestBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestBeginBlock instance + */ + public static create( + properties?: tendermint.abci.types.IRequestBeginBlock, + ): tendermint.abci.types.RequestBeginBlock; + + /** + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.types.RequestBeginBlock.verify|verify} messages. + * @param message RequestBeginBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestBeginBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestBeginBlock.verify|verify} messages. + * @param message RequestBeginBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestBeginBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestBeginBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestBeginBlock; + + /** + * Decodes a RequestBeginBlock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestBeginBlock; + + /** + * Verifies a RequestBeginBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestBeginBlock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestBeginBlock + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestBeginBlock; + + /** + * Creates a plain object from a RequestBeginBlock message. Also converts values to other types if specified. + * @param message RequestBeginBlock + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestBeginBlock, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestBeginBlock to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** CheckTxType enum. */ + enum CheckTxType { + New = 0, + Recheck = 1, + } + + /** Properties of a RequestCheckTx. */ + interface IRequestCheckTx { + /** RequestCheckTx tx */ + tx?: Uint8Array | null; + + /** RequestCheckTx type */ + type?: tendermint.abci.types.CheckTxType | null; + } + + /** Represents a RequestCheckTx. */ + class RequestCheckTx implements IRequestCheckTx { + /** + * Constructs a new RequestCheckTx. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestCheckTx); + + /** RequestCheckTx tx. */ + public tx: Uint8Array; + + /** RequestCheckTx type. */ + public type: tendermint.abci.types.CheckTxType; + + /** + * Creates a new RequestCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCheckTx instance + */ + public static create( + properties?: tendermint.abci.types.IRequestCheckTx, + ): tendermint.abci.types.RequestCheckTx; + + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.types.RequestCheckTx.verify|verify} messages. + * @param message RequestCheckTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestCheckTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestCheckTx.verify|verify} messages. + * @param message RequestCheckTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestCheckTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestCheckTx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestCheckTx; + + /** + * Decodes a RequestCheckTx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestCheckTx; + + /** + * Verifies a RequestCheckTx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestCheckTx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestCheckTx + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestCheckTx; + + /** + * Creates a plain object from a RequestCheckTx message. Also converts values to other types if specified. + * @param message RequestCheckTx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestCheckTx, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestCheckTx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestDeliverTx. */ + interface IRequestDeliverTx { + /** RequestDeliverTx tx */ + tx?: Uint8Array | null; + } + + /** Represents a RequestDeliverTx. */ + class RequestDeliverTx implements IRequestDeliverTx { + /** + * Constructs a new RequestDeliverTx. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestDeliverTx); + + /** RequestDeliverTx tx. */ + public tx: Uint8Array; + + /** + * Creates a new RequestDeliverTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestDeliverTx instance + */ + public static create( + properties?: tendermint.abci.types.IRequestDeliverTx, + ): tendermint.abci.types.RequestDeliverTx; + + /** + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.types.RequestDeliverTx.verify|verify} messages. + * @param message RequestDeliverTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestDeliverTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestDeliverTx.verify|verify} messages. + * @param message RequestDeliverTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestDeliverTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestDeliverTx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestDeliverTx; + + /** + * Decodes a RequestDeliverTx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestDeliverTx; + + /** + * Verifies a RequestDeliverTx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestDeliverTx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestDeliverTx + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestDeliverTx; + + /** + * Creates a plain object from a RequestDeliverTx message. Also converts values to other types if specified. + * @param message RequestDeliverTx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestDeliverTx, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestDeliverTx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestEndBlock. */ + interface IRequestEndBlock { + /** RequestEndBlock height */ + height?: number | Long | null; + } + + /** Represents a RequestEndBlock. */ + class RequestEndBlock implements IRequestEndBlock { + /** + * Constructs a new RequestEndBlock. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestEndBlock); + + /** RequestEndBlock height. */ + public height: number | Long; + + /** + * Creates a new RequestEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestEndBlock instance + */ + public static create( + properties?: tendermint.abci.types.IRequestEndBlock, + ): tendermint.abci.types.RequestEndBlock; + + /** + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.types.RequestEndBlock.verify|verify} messages. + * @param message RequestEndBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestEndBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestEndBlock.verify|verify} messages. + * @param message RequestEndBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestEndBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestEndBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestEndBlock; + + /** + * Decodes a RequestEndBlock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestEndBlock; + + /** + * Verifies a RequestEndBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestEndBlock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestEndBlock + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestEndBlock; + + /** + * Creates a plain object from a RequestEndBlock message. Also converts values to other types if specified. + * @param message RequestEndBlock + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestEndBlock, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestEndBlock to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RequestCommit. */ + interface IRequestCommit {} + + /** Represents a RequestCommit. */ + class RequestCommit implements IRequestCommit { + /** + * Constructs a new RequestCommit. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IRequestCommit); + + /** + * Creates a new RequestCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCommit instance + */ + public static create( + properties?: tendermint.abci.types.IRequestCommit, + ): tendermint.abci.types.RequestCommit; + + /** + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.types.RequestCommit.verify|verify} messages. + * @param message RequestCommit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IRequestCommit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified RequestCommit message, length delimited. Does not implicitly {@link tendermint.abci.types.RequestCommit.verify|verify} messages. + * @param message RequestCommit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IRequestCommit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestCommit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RequestCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.RequestCommit; + + /** + * Decodes a RequestCommit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RequestCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.RequestCommit; + + /** + * Verifies a RequestCommit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a RequestCommit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RequestCommit + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.RequestCommit; + + /** + * Creates a plain object from a RequestCommit message. Also converts values to other types if specified. + * @param message RequestCommit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.RequestCommit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this RequestCommit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Response. */ + interface IResponse { + /** Response exception */ + exception?: tendermint.abci.types.IResponseException | null; + + /** Response echo */ + echo?: tendermint.abci.types.IResponseEcho | null; + + /** Response flush */ + flush?: tendermint.abci.types.IResponseFlush | null; + + /** Response info */ + info?: tendermint.abci.types.IResponseInfo | null; + + /** Response setOption */ + setOption?: tendermint.abci.types.IResponseSetOption | null; + + /** Response initChain */ + initChain?: tendermint.abci.types.IResponseInitChain | null; + + /** Response query */ + query?: tendermint.abci.types.IResponseQuery | null; + + /** Response beginBlock */ + beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; + + /** Response checkTx */ + checkTx?: tendermint.abci.types.IResponseCheckTx | null; + + /** Response deliverTx */ + deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; + + /** Response endBlock */ + endBlock?: tendermint.abci.types.IResponseEndBlock | null; + + /** Response commit */ + commit?: tendermint.abci.types.IResponseCommit | null; + } + + /** Represents a Response. */ + class Response implements IResponse { + /** + * Constructs a new Response. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponse); + + /** Response exception. */ + public exception?: tendermint.abci.types.IResponseException | null; + + /** Response echo. */ + public echo?: tendermint.abci.types.IResponseEcho | null; + + /** Response flush. */ + public flush?: tendermint.abci.types.IResponseFlush | null; + + /** Response info. */ + public info?: tendermint.abci.types.IResponseInfo | null; + + /** Response setOption. */ + public setOption?: tendermint.abci.types.IResponseSetOption | null; + + /** Response initChain. */ + public initChain?: tendermint.abci.types.IResponseInitChain | null; + + /** Response query. */ + public query?: tendermint.abci.types.IResponseQuery | null; + + /** Response beginBlock. */ + public beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; + + /** Response checkTx. */ + public checkTx?: tendermint.abci.types.IResponseCheckTx | null; + + /** Response deliverTx. */ + public deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; + + /** Response endBlock. */ + public endBlock?: tendermint.abci.types.IResponseEndBlock | null; + + /** Response commit. */ + public commit?: tendermint.abci.types.IResponseCommit | null; + + /** Response value. */ + public value?: + | "exception" + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit"; + + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: tendermint.abci.types.IResponse): tendermint.abci.types.Response; + + /** + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.types.Response.verify|verify} messages. + * @param message Response message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Response message, length delimited. Does not implicitly {@link tendermint.abci.types.Response.verify|verify} messages. + * @param message Response message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponse, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Response message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Response + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Response; + + /** + * Decodes a Response message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Response + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Response; + + /** + * Verifies a Response message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Response message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Response + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Response; + + /** + * Creates a plain object from a Response message. Also converts values to other types if specified. + * @param message Response + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Response, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Response to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseException. */ + interface IResponseException { + /** ResponseException error */ + error?: string | null; + } + + /** Represents a ResponseException. */ + class ResponseException implements IResponseException { + /** + * Constructs a new ResponseException. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseException); + + /** ResponseException error. */ + public error: string; + + /** + * Creates a new ResponseException instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseException instance + */ + public static create( + properties?: tendermint.abci.types.IResponseException, + ): tendermint.abci.types.ResponseException; + + /** + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.types.ResponseException.verify|verify} messages. + * @param message ResponseException message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseException, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseException message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseException.verify|verify} messages. + * @param message ResponseException message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseException, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseException message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseException + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseException; + + /** + * Decodes a ResponseException message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseException + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseException; + + /** + * Verifies a ResponseException message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseException message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseException + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseException; + + /** + * Creates a plain object from a ResponseException message. Also converts values to other types if specified. + * @param message ResponseException + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseException, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseException to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseEcho. */ + interface IResponseEcho { + /** ResponseEcho message */ + message?: string | null; + } + + /** Represents a ResponseEcho. */ + class ResponseEcho implements IResponseEcho { + /** + * Constructs a new ResponseEcho. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseEcho); + + /** ResponseEcho message. */ + public message: string; + + /** + * Creates a new ResponseEcho instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEcho instance + */ + public static create( + properties?: tendermint.abci.types.IResponseEcho, + ): tendermint.abci.types.ResponseEcho; + + /** + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.types.ResponseEcho.verify|verify} messages. + * @param message ResponseEcho message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseEcho, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseEcho message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseEcho.verify|verify} messages. + * @param message ResponseEcho message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseEcho, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseEcho message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseEcho; + + /** + * Decodes a ResponseEcho message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseEcho; + + /** + * Verifies a ResponseEcho message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseEcho message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseEcho + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseEcho; + + /** + * Creates a plain object from a ResponseEcho message. Also converts values to other types if specified. + * @param message ResponseEcho + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseEcho, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseEcho to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseFlush. */ + interface IResponseFlush {} + + /** Represents a ResponseFlush. */ + class ResponseFlush implements IResponseFlush { + /** + * Constructs a new ResponseFlush. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseFlush); + + /** + * Creates a new ResponseFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseFlush instance + */ + public static create( + properties?: tendermint.abci.types.IResponseFlush, + ): tendermint.abci.types.ResponseFlush; + + /** + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.types.ResponseFlush.verify|verify} messages. + * @param message ResponseFlush message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseFlush, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseFlush message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseFlush.verify|verify} messages. + * @param message ResponseFlush message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseFlush, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseFlush message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseFlush; + + /** + * Decodes a ResponseFlush message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseFlush; + + /** + * Verifies a ResponseFlush message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseFlush message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseFlush + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseFlush; + + /** + * Creates a plain object from a ResponseFlush message. Also converts values to other types if specified. + * @param message ResponseFlush + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseFlush, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseFlush to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseInfo. */ + interface IResponseInfo { + /** ResponseInfo data */ + data?: string | null; + + /** ResponseInfo version */ + version?: string | null; + + /** ResponseInfo appVersion */ + appVersion?: number | Long | null; + + /** ResponseInfo lastBlockHeight */ + lastBlockHeight?: number | Long | null; + + /** ResponseInfo lastBlockAppHash */ + lastBlockAppHash?: Uint8Array | null; + } + + /** Represents a ResponseInfo. */ + class ResponseInfo implements IResponseInfo { + /** + * Constructs a new ResponseInfo. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseInfo); + + /** ResponseInfo data. */ + public data: string; + + /** ResponseInfo version. */ + public version: string; + + /** ResponseInfo appVersion. */ + public appVersion: number | Long; + + /** ResponseInfo lastBlockHeight. */ + public lastBlockHeight: number | Long; + + /** ResponseInfo lastBlockAppHash. */ + public lastBlockAppHash: Uint8Array; + + /** + * Creates a new ResponseInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInfo instance + */ + public static create( + properties?: tendermint.abci.types.IResponseInfo, + ): tendermint.abci.types.ResponseInfo; + + /** + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.types.ResponseInfo.verify|verify} messages. + * @param message ResponseInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseInfo message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseInfo.verify|verify} messages. + * @param message ResponseInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseInfo; + + /** + * Decodes a ResponseInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseInfo; + + /** + * Verifies a ResponseInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseInfo + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseInfo; + + /** + * Creates a plain object from a ResponseInfo message. Also converts values to other types if specified. + * @param message ResponseInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseSetOption. */ + interface IResponseSetOption { + /** ResponseSetOption code */ + code?: number | null; + + /** ResponseSetOption log */ + log?: string | null; + + /** ResponseSetOption info */ + info?: string | null; + } + + /** Represents a ResponseSetOption. */ + class ResponseSetOption implements IResponseSetOption { + /** + * Constructs a new ResponseSetOption. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseSetOption); + + /** ResponseSetOption code. */ + public code: number; + + /** ResponseSetOption log. */ + public log: string; + + /** ResponseSetOption info. */ + public info: string; + + /** + * Creates a new ResponseSetOption instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseSetOption instance + */ + public static create( + properties?: tendermint.abci.types.IResponseSetOption, + ): tendermint.abci.types.ResponseSetOption; + + /** + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.types.ResponseSetOption.verify|verify} messages. + * @param message ResponseSetOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseSetOption, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseSetOption message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseSetOption.verify|verify} messages. + * @param message ResponseSetOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseSetOption, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseSetOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseSetOption; + + /** + * Decodes a ResponseSetOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseSetOption; + + /** + * Verifies a ResponseSetOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseSetOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseSetOption + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseSetOption; + + /** + * Creates a plain object from a ResponseSetOption message. Also converts values to other types if specified. + * @param message ResponseSetOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseSetOption, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseSetOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseInitChain. */ + interface IResponseInitChain { + /** ResponseInitChain consensusParams */ + consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseInitChain validators */ + validators?: tendermint.abci.types.IValidatorUpdate[] | null; + } + + /** Represents a ResponseInitChain. */ + class ResponseInitChain implements IResponseInitChain { + /** + * Constructs a new ResponseInitChain. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseInitChain); + + /** ResponseInitChain consensusParams. */ + public consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseInitChain validators. */ + public validators: tendermint.abci.types.IValidatorUpdate[]; + + /** + * Creates a new ResponseInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInitChain instance + */ + public static create( + properties?: tendermint.abci.types.IResponseInitChain, + ): tendermint.abci.types.ResponseInitChain; + + /** + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.types.ResponseInitChain.verify|verify} messages. + * @param message ResponseInitChain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseInitChain, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseInitChain message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseInitChain.verify|verify} messages. + * @param message ResponseInitChain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseInitChain, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseInitChain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseInitChain; + + /** + * Decodes a ResponseInitChain message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseInitChain; + + /** + * Verifies a ResponseInitChain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseInitChain message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseInitChain + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseInitChain; + + /** + * Creates a plain object from a ResponseInitChain message. Also converts values to other types if specified. + * @param message ResponseInitChain + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseInitChain, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseInitChain to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseQuery. */ + interface IResponseQuery { + /** ResponseQuery code */ + code?: number | null; + + /** ResponseQuery log */ + log?: string | null; + + /** ResponseQuery info */ + info?: string | null; + + /** ResponseQuery index */ + index?: number | Long | null; + + /** ResponseQuery key */ + key?: Uint8Array | null; + + /** ResponseQuery value */ + value?: Uint8Array | null; + + /** ResponseQuery proof */ + proof?: tendermint.crypto.merkle.IProof | null; + + /** ResponseQuery height */ + height?: number | Long | null; + + /** ResponseQuery codespace */ + codespace?: string | null; + } + + /** Represents a ResponseQuery. */ + class ResponseQuery implements IResponseQuery { + /** + * Constructs a new ResponseQuery. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseQuery); + + /** ResponseQuery code. */ + public code: number; + + /** ResponseQuery log. */ + public log: string; + + /** ResponseQuery info. */ + public info: string; + + /** ResponseQuery index. */ + public index: number | Long; + + /** ResponseQuery key. */ + public key: Uint8Array; + + /** ResponseQuery value. */ + public value: Uint8Array; + + /** ResponseQuery proof. */ + public proof?: tendermint.crypto.merkle.IProof | null; + + /** ResponseQuery height. */ + public height: number | Long; + + /** ResponseQuery codespace. */ + public codespace: string; + + /** + * Creates a new ResponseQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseQuery instance + */ + public static create( + properties?: tendermint.abci.types.IResponseQuery, + ): tendermint.abci.types.ResponseQuery; + + /** + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.types.ResponseQuery.verify|verify} messages. + * @param message ResponseQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseQuery, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseQuery message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseQuery.verify|verify} messages. + * @param message ResponseQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseQuery, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseQuery; + + /** + * Decodes a ResponseQuery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseQuery; + + /** + * Verifies a ResponseQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseQuery + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseQuery; + + /** + * Creates a plain object from a ResponseQuery message. Also converts values to other types if specified. + * @param message ResponseQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseQuery, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseBeginBlock. */ + interface IResponseBeginBlock { + /** ResponseBeginBlock events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a ResponseBeginBlock. */ + class ResponseBeginBlock implements IResponseBeginBlock { + /** + * Constructs a new ResponseBeginBlock. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseBeginBlock); + + /** ResponseBeginBlock events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new ResponseBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseBeginBlock instance + */ + public static create( + properties?: tendermint.abci.types.IResponseBeginBlock, + ): tendermint.abci.types.ResponseBeginBlock; + + /** + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.types.ResponseBeginBlock.verify|verify} messages. + * @param message ResponseBeginBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseBeginBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseBeginBlock message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseBeginBlock.verify|verify} messages. + * @param message ResponseBeginBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseBeginBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseBeginBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseBeginBlock; + + /** + * Decodes a ResponseBeginBlock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseBeginBlock; + + /** + * Verifies a ResponseBeginBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseBeginBlock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseBeginBlock + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseBeginBlock; + + /** + * Creates a plain object from a ResponseBeginBlock message. Also converts values to other types if specified. + * @param message ResponseBeginBlock + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseBeginBlock, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseBeginBlock to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseCheckTx. */ + interface IResponseCheckTx { + /** ResponseCheckTx code */ + code?: number | null; + + /** ResponseCheckTx data */ + data?: Uint8Array | null; + + /** ResponseCheckTx log */ + log?: string | null; + + /** ResponseCheckTx info */ + info?: string | null; + + /** ResponseCheckTx gasWanted */ + gasWanted?: number | Long | null; + + /** ResponseCheckTx gasUsed */ + gasUsed?: number | Long | null; + + /** ResponseCheckTx events */ + events?: tendermint.abci.types.IEvent[] | null; + + /** ResponseCheckTx codespace */ + codespace?: string | null; + } + + /** Represents a ResponseCheckTx. */ + class ResponseCheckTx implements IResponseCheckTx { + /** + * Constructs a new ResponseCheckTx. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseCheckTx); + + /** ResponseCheckTx code. */ + public code: number; + + /** ResponseCheckTx data. */ + public data: Uint8Array; + + /** ResponseCheckTx log. */ + public log: string; + + /** ResponseCheckTx info. */ + public info: string; + + /** ResponseCheckTx gasWanted. */ + public gasWanted: number | Long; + + /** ResponseCheckTx gasUsed. */ + public gasUsed: number | Long; + + /** ResponseCheckTx events. */ + public events: tendermint.abci.types.IEvent[]; + + /** ResponseCheckTx codespace. */ + public codespace: string; + + /** + * Creates a new ResponseCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCheckTx instance + */ + public static create( + properties?: tendermint.abci.types.IResponseCheckTx, + ): tendermint.abci.types.ResponseCheckTx; + + /** + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.types.ResponseCheckTx.verify|verify} messages. + * @param message ResponseCheckTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseCheckTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseCheckTx message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseCheckTx.verify|verify} messages. + * @param message ResponseCheckTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseCheckTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseCheckTx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseCheckTx; + + /** + * Decodes a ResponseCheckTx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseCheckTx; + + /** + * Verifies a ResponseCheckTx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseCheckTx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseCheckTx + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseCheckTx; + + /** + * Creates a plain object from a ResponseCheckTx message. Also converts values to other types if specified. + * @param message ResponseCheckTx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseCheckTx, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseCheckTx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseDeliverTx. */ + interface IResponseDeliverTx { + /** ResponseDeliverTx code */ + code?: number | null; + + /** ResponseDeliverTx data */ + data?: Uint8Array | null; + + /** ResponseDeliverTx log */ + log?: string | null; + + /** ResponseDeliverTx info */ + info?: string | null; + + /** ResponseDeliverTx gasWanted */ + gasWanted?: number | Long | null; + + /** ResponseDeliverTx gasUsed */ + gasUsed?: number | Long | null; + + /** ResponseDeliverTx events */ + events?: tendermint.abci.types.IEvent[] | null; + + /** ResponseDeliverTx codespace */ + codespace?: string | null; + } + + /** Represents a ResponseDeliverTx. */ + class ResponseDeliverTx implements IResponseDeliverTx { + /** + * Constructs a new ResponseDeliverTx. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseDeliverTx); + + /** ResponseDeliverTx code. */ + public code: number; + + /** ResponseDeliverTx data. */ + public data: Uint8Array; + + /** ResponseDeliverTx log. */ + public log: string; + + /** ResponseDeliverTx info. */ + public info: string; + + /** ResponseDeliverTx gasWanted. */ + public gasWanted: number | Long; + + /** ResponseDeliverTx gasUsed. */ + public gasUsed: number | Long; + + /** ResponseDeliverTx events. */ + public events: tendermint.abci.types.IEvent[]; + + /** ResponseDeliverTx codespace. */ + public codespace: string; + + /** + * Creates a new ResponseDeliverTx instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseDeliverTx instance + */ + public static create( + properties?: tendermint.abci.types.IResponseDeliverTx, + ): tendermint.abci.types.ResponseDeliverTx; + + /** + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.types.ResponseDeliverTx.verify|verify} messages. + * @param message ResponseDeliverTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseDeliverTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseDeliverTx message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseDeliverTx.verify|verify} messages. + * @param message ResponseDeliverTx message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseDeliverTx, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseDeliverTx message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseDeliverTx; + + /** + * Decodes a ResponseDeliverTx message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseDeliverTx; + + /** + * Verifies a ResponseDeliverTx message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseDeliverTx message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseDeliverTx + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseDeliverTx; + + /** + * Creates a plain object from a ResponseDeliverTx message. Also converts values to other types if specified. + * @param message ResponseDeliverTx + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseDeliverTx, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseDeliverTx to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseEndBlock. */ + interface IResponseEndBlock { + /** ResponseEndBlock validatorUpdates */ + validatorUpdates?: tendermint.abci.types.IValidatorUpdate[] | null; + + /** ResponseEndBlock consensusParamUpdates */ + consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseEndBlock events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a ResponseEndBlock. */ + class ResponseEndBlock implements IResponseEndBlock { + /** + * Constructs a new ResponseEndBlock. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseEndBlock); + + /** ResponseEndBlock validatorUpdates. */ + public validatorUpdates: tendermint.abci.types.IValidatorUpdate[]; + + /** ResponseEndBlock consensusParamUpdates. */ + public consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseEndBlock events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new ResponseEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEndBlock instance + */ + public static create( + properties?: tendermint.abci.types.IResponseEndBlock, + ): tendermint.abci.types.ResponseEndBlock; + + /** + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.types.ResponseEndBlock.verify|verify} messages. + * @param message ResponseEndBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseEndBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseEndBlock message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseEndBlock.verify|verify} messages. + * @param message ResponseEndBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseEndBlock, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseEndBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseEndBlock; + + /** + * Decodes a ResponseEndBlock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseEndBlock; + + /** + * Verifies a ResponseEndBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseEndBlock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseEndBlock + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseEndBlock; + + /** + * Creates a plain object from a ResponseEndBlock message. Also converts values to other types if specified. + * @param message ResponseEndBlock + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseEndBlock, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseEndBlock to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ResponseCommit. */ + interface IResponseCommit { + /** ResponseCommit data */ + data?: Uint8Array | null; + } + + /** Represents a ResponseCommit. */ + class ResponseCommit implements IResponseCommit { + /** + * Constructs a new ResponseCommit. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IResponseCommit); + + /** ResponseCommit data. */ + public data: Uint8Array; + + /** + * Creates a new ResponseCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCommit instance + */ + public static create( + properties?: tendermint.abci.types.IResponseCommit, + ): tendermint.abci.types.ResponseCommit; + + /** + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.types.ResponseCommit.verify|verify} messages. + * @param message ResponseCommit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IResponseCommit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ResponseCommit message, length delimited. Does not implicitly {@link tendermint.abci.types.ResponseCommit.verify|verify} messages. + * @param message ResponseCommit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IResponseCommit, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseCommit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResponseCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ResponseCommit; + + /** + * Decodes a ResponseCommit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResponseCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ResponseCommit; + + /** + * Verifies a ResponseCommit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ResponseCommit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResponseCommit + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ResponseCommit; + + /** + * Creates a plain object from a ResponseCommit message. Also converts values to other types if specified. + * @param message ResponseCommit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ResponseCommit, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ResponseCommit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.abci.types.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.abci.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.abci.types.IValidatorParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.abci.types.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.abci.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.abci.types.IValidatorParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create( + properties?: tendermint.abci.types.IConsensusParams, + ): tendermint.abci.types.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.types.ConsensusParams.verify|verify} messages. + * @param message ConsensusParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IConsensusParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ConsensusParams message, length delimited. Does not implicitly {@link tendermint.abci.types.ConsensusParams.verify|verify} messages. + * @param message ConsensusParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IConsensusParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConsensusParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConsensusParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ConsensusParams; + + /** + * Decodes a ConsensusParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConsensusParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ConsensusParams; + + /** + * Verifies a ConsensusParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ConsensusParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConsensusParams + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ConsensusParams; + + /** + * Creates a plain object from a ConsensusParams message. Also converts values to other types if specified. + * @param message ConsensusParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ConsensusParams, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ConsensusParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BlockParams. */ + interface IBlockParams { + /** BlockParams maxBytes */ + maxBytes?: number | Long | null; + + /** BlockParams maxGas */ + maxGas?: number | Long | null; + } + + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { + /** + * Constructs a new BlockParams. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IBlockParams); + + /** BlockParams maxBytes. */ + public maxBytes: number | Long; + + /** BlockParams maxGas. */ + public maxGas: number | Long; + + /** + * Creates a new BlockParams instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockParams instance + */ + public static create( + properties?: tendermint.abci.types.IBlockParams, + ): tendermint.abci.types.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.types.BlockParams.verify|verify} messages. + * @param message BlockParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IBlockParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified BlockParams message, length delimited. Does not implicitly {@link tendermint.abci.types.BlockParams.verify|verify} messages. + * @param message BlockParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IBlockParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a BlockParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.BlockParams; + + /** + * Decodes a BlockParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.BlockParams; + + /** + * Verifies a BlockParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a BlockParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BlockParams + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.BlockParams; + + /** + * Creates a plain object from a BlockParams message. Also converts values to other types if specified. + * @param message BlockParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.BlockParams, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this BlockParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EvidenceParams. */ + interface IEvidenceParams { + /** EvidenceParams maxAgeNumBlocks */ + maxAgeNumBlocks?: number | Long | null; + + /** EvidenceParams maxAgeDuration */ + maxAgeDuration?: google.protobuf.IDuration | null; + } + + /** Represents an EvidenceParams. */ + class EvidenceParams implements IEvidenceParams { + /** + * Constructs a new EvidenceParams. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IEvidenceParams); + + /** EvidenceParams maxAgeNumBlocks. */ + public maxAgeNumBlocks: number | Long; + + /** EvidenceParams maxAgeDuration. */ + public maxAgeDuration?: google.protobuf.IDuration | null; + + /** + * Creates a new EvidenceParams instance using the specified properties. + * @param [properties] Properties to set + * @returns EvidenceParams instance + */ + public static create( + properties?: tendermint.abci.types.IEvidenceParams, + ): tendermint.abci.types.EvidenceParams; + + /** + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.abci.types.EvidenceParams.verify|verify} messages. + * @param message EvidenceParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IEvidenceParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EvidenceParams message, length delimited. Does not implicitly {@link tendermint.abci.types.EvidenceParams.verify|verify} messages. + * @param message EvidenceParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IEvidenceParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EvidenceParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvidenceParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.EvidenceParams; + + /** + * Decodes an EvidenceParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvidenceParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.EvidenceParams; + + /** + * Verifies an EvidenceParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EvidenceParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvidenceParams + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.EvidenceParams; + + /** + * Creates a plain object from an EvidenceParams message. Also converts values to other types if specified. + * @param message EvidenceParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.EvidenceParams, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EvidenceParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorParams. */ + interface IValidatorParams { + /** ValidatorParams pubKeyTypes */ + pubKeyTypes?: string[] | null; + } + + /** Represents a ValidatorParams. */ + class ValidatorParams implements IValidatorParams { + /** + * Constructs a new ValidatorParams. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IValidatorParams); + + /** ValidatorParams pubKeyTypes. */ + public pubKeyTypes: string[]; + + /** + * Creates a new ValidatorParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorParams instance + */ + public static create( + properties?: tendermint.abci.types.IValidatorParams, + ): tendermint.abci.types.ValidatorParams; + + /** + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.abci.types.ValidatorParams.verify|verify} messages. + * @param message ValidatorParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IValidatorParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorParams message, length delimited. Does not implicitly {@link tendermint.abci.types.ValidatorParams.verify|verify} messages. + * @param message ValidatorParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IValidatorParams, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ValidatorParams; + + /** + * Decodes a ValidatorParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ValidatorParams; + + /** + * Verifies a ValidatorParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorParams + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ValidatorParams; + + /** + * Creates a plain object from a ValidatorParams message. Also converts values to other types if specified. + * @param message ValidatorParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ValidatorParams, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a LastCommitInfo. */ + interface ILastCommitInfo { + /** LastCommitInfo round */ + round?: number | null; + + /** LastCommitInfo votes */ + votes?: tendermint.abci.types.IVoteInfo[] | null; + } + + /** Represents a LastCommitInfo. */ + class LastCommitInfo implements ILastCommitInfo { + /** + * Constructs a new LastCommitInfo. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.ILastCommitInfo); + + /** LastCommitInfo round. */ + public round: number; + + /** LastCommitInfo votes. */ + public votes: tendermint.abci.types.IVoteInfo[]; + + /** + * Creates a new LastCommitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns LastCommitInfo instance + */ + public static create( + properties?: tendermint.abci.types.ILastCommitInfo, + ): tendermint.abci.types.LastCommitInfo; + + /** + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.types.LastCommitInfo.verify|verify} messages. + * @param message LastCommitInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.ILastCommitInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified LastCommitInfo message, length delimited. Does not implicitly {@link tendermint.abci.types.LastCommitInfo.verify|verify} messages. + * @param message LastCommitInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.ILastCommitInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a LastCommitInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LastCommitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.LastCommitInfo; + + /** + * Decodes a LastCommitInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LastCommitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.LastCommitInfo; + + /** + * Verifies a LastCommitInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a LastCommitInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LastCommitInfo + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.LastCommitInfo; + + /** + * Creates a plain object from a LastCommitInfo message. Also converts values to other types if specified. + * @param message LastCommitInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.LastCommitInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this LastCommitInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Event. */ + interface IEvent { + /** Event type */ + type?: string | null; + + /** Event attributes */ + attributes?: tendermint.libs.kv.IPair[] | null; + } + + /** Represents an Event. */ + class Event implements IEvent { + /** + * Constructs a new Event. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IEvent); + + /** Event type. */ + public type: string; + + /** Event attributes. */ + public attributes: tendermint.libs.kv.IPair[]; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: tendermint.abci.types.IEvent): tendermint.abci.types.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.types.Event.verify|verify} messages. + * @param message Event message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IEvent, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Event message, length delimited. Does not implicitly {@link tendermint.abci.types.Event.verify|verify} messages. + * @param message Event message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IEvent, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Event message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Event; + + /** + * Decodes an Event message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Event; + + /** + * Verifies an Event message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Event message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Event + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Event; + + /** + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Event, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Event to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Header. */ + interface IHeader { + /** Header version */ + version?: tendermint.abci.types.IVersion | null; + + /** Header chainId */ + chainId?: string | null; + + /** Header height */ + height?: number | Long | null; + + /** Header time */ + time?: google.protobuf.ITimestamp | null; + + /** Header lastBlockId */ + lastBlockId?: tendermint.abci.types.IBlockID | null; + + /** Header lastCommitHash */ + lastCommitHash?: Uint8Array | null; + + /** Header dataHash */ + dataHash?: Uint8Array | null; + + /** Header validatorsHash */ + validatorsHash?: Uint8Array | null; + + /** Header nextValidatorsHash */ + nextValidatorsHash?: Uint8Array | null; + + /** Header consensusHash */ + consensusHash?: Uint8Array | null; + + /** Header appHash */ + appHash?: Uint8Array | null; + + /** Header lastResultsHash */ + lastResultsHash?: Uint8Array | null; + + /** Header evidenceHash */ + evidenceHash?: Uint8Array | null; + + /** Header proposerAddress */ + proposerAddress?: Uint8Array | null; + } + + /** Represents a Header. */ + class Header implements IHeader { + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IHeader); + + /** Header version. */ + public version?: tendermint.abci.types.IVersion | null; + + /** Header chainId. */ + public chainId: string; + + /** Header height. */ + public height: number | Long; + + /** Header time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Header lastBlockId. */ + public lastBlockId?: tendermint.abci.types.IBlockID | null; + + /** Header lastCommitHash. */ + public lastCommitHash: Uint8Array; + + /** Header dataHash. */ + public dataHash: Uint8Array; + + /** Header validatorsHash. */ + public validatorsHash: Uint8Array; + + /** Header nextValidatorsHash. */ + public nextValidatorsHash: Uint8Array; + + /** Header consensusHash. */ + public consensusHash: Uint8Array; + + /** Header appHash. */ + public appHash: Uint8Array; + + /** Header lastResultsHash. */ + public lastResultsHash: Uint8Array; + + /** Header evidenceHash. */ + public evidenceHash: Uint8Array; + + /** Header proposerAddress. */ + public proposerAddress: Uint8Array; + + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: tendermint.abci.types.IHeader): tendermint.abci.types.Header; + + /** + * Encodes the specified Header message. Does not implicitly {@link tendermint.abci.types.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IHeader, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link tendermint.abci.types.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IHeader, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Header message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Header; + + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Header; + + /** + * Verifies a Header message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Header + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Header; + + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Header, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Version. */ + interface IVersion { + /** Version Block */ + Block?: number | Long | null; + + /** Version App */ + App?: number | Long | null; + } + + /** Represents a Version. */ + class Version implements IVersion { + /** + * Constructs a new Version. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IVersion); + + /** Version Block. */ + public Block: number | Long; + + /** Version App. */ + public App: number | Long; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: tendermint.abci.types.IVersion): tendermint.abci.types.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link tendermint.abci.types.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IVersion, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Version message, length delimited. Does not implicitly {@link tendermint.abci.types.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IVersion, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Version; + + /** + * Decodes a Version message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Version; + + /** + * Verifies a Version message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Version + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Version; + + /** + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Version, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Version to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BlockID. */ + interface IBlockID { + /** BlockID hash */ + hash?: Uint8Array | null; + + /** BlockID partsHeader */ + partsHeader?: tendermint.abci.types.IPartSetHeader | null; + } + + /** Represents a BlockID. */ + class BlockID implements IBlockID { + /** + * Constructs a new BlockID. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IBlockID); + + /** BlockID hash. */ + public hash: Uint8Array; + + /** BlockID partsHeader. */ + public partsHeader?: tendermint.abci.types.IPartSetHeader | null; + + /** + * Creates a new BlockID instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockID instance + */ + public static create(properties?: tendermint.abci.types.IBlockID): tendermint.abci.types.BlockID; + + /** + * Encodes the specified BlockID message. Does not implicitly {@link tendermint.abci.types.BlockID.verify|verify} messages. + * @param message BlockID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IBlockID, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified BlockID message, length delimited. Does not implicitly {@link tendermint.abci.types.BlockID.verify|verify} messages. + * @param message BlockID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IBlockID, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a BlockID message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlockID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.BlockID; + + /** + * Decodes a BlockID message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BlockID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.BlockID; + + /** + * Verifies a BlockID message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a BlockID message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BlockID + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.BlockID; + + /** + * Creates a plain object from a BlockID message. Also converts values to other types if specified. + * @param message BlockID + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.BlockID, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this BlockID to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PartSetHeader. */ + interface IPartSetHeader { + /** PartSetHeader total */ + total?: number | null; + + /** PartSetHeader hash */ + hash?: Uint8Array | null; + } + + /** Represents a PartSetHeader. */ + class PartSetHeader implements IPartSetHeader { + /** + * Constructs a new PartSetHeader. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IPartSetHeader); + + /** PartSetHeader total. */ + public total: number; + + /** PartSetHeader hash. */ + public hash: Uint8Array; + + /** + * Creates a new PartSetHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns PartSetHeader instance + */ + public static create( + properties?: tendermint.abci.types.IPartSetHeader, + ): tendermint.abci.types.PartSetHeader; + + /** + * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.abci.types.PartSetHeader.verify|verify} messages. + * @param message PartSetHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IPartSetHeader, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified PartSetHeader message, length delimited. Does not implicitly {@link tendermint.abci.types.PartSetHeader.verify|verify} messages. + * @param message PartSetHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IPartSetHeader, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PartSetHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PartSetHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.PartSetHeader; + + /** + * Decodes a PartSetHeader message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PartSetHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.PartSetHeader; + + /** + * Verifies a PartSetHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a PartSetHeader message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PartSetHeader + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.PartSetHeader; + + /** + * Creates a plain object from a PartSetHeader message. Also converts values to other types if specified. + * @param message PartSetHeader + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.PartSetHeader, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this PartSetHeader to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Validator. */ + interface IValidator { + /** Validator address */ + address?: Uint8Array | null; + + /** Validator power */ + power?: number | Long | null; + } + + /** Represents a Validator. */ + class Validator implements IValidator { + /** + * Constructs a new Validator. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IValidator); + + /** Validator address. */ + public address: Uint8Array; + + /** Validator power. */ + public power: number | Long; + + /** + * Creates a new Validator instance using the specified properties. + * @param [properties] Properties to set + * @returns Validator instance + */ + public static create(properties?: tendermint.abci.types.IValidator): tendermint.abci.types.Validator; + + /** + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.types.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Validator message, length delimited. Does not implicitly {@link tendermint.abci.types.Validator.verify|verify} messages. + * @param message Validator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IValidator, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Validator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Validator; + + /** + * Decodes a Validator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Validator; + + /** + * Verifies a Validator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Validator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Validator + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Validator; + + /** + * Creates a plain object from a Validator message. Also converts values to other types if specified. + * @param message Validator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Validator, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Validator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ValidatorUpdate. */ + interface IValidatorUpdate { + /** ValidatorUpdate pubKey */ + pubKey?: tendermint.abci.types.IPubKey | null; + + /** ValidatorUpdate power */ + power?: number | Long | null; + } + + /** Represents a ValidatorUpdate. */ + class ValidatorUpdate implements IValidatorUpdate { + /** + * Constructs a new ValidatorUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IValidatorUpdate); + + /** ValidatorUpdate pubKey. */ + public pubKey?: tendermint.abci.types.IPubKey | null; + + /** ValidatorUpdate power. */ + public power: number | Long; + + /** + * Creates a new ValidatorUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorUpdate instance + */ + public static create( + properties?: tendermint.abci.types.IValidatorUpdate, + ): tendermint.abci.types.ValidatorUpdate; + + /** + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.types.ValidatorUpdate.verify|verify} messages. + * @param message ValidatorUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IValidatorUpdate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ValidatorUpdate message, length delimited. Does not implicitly {@link tendermint.abci.types.ValidatorUpdate.verify|verify} messages. + * @param message ValidatorUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IValidatorUpdate, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorUpdate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidatorUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.ValidatorUpdate; + + /** + * Decodes a ValidatorUpdate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidatorUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.abci.types.ValidatorUpdate; + + /** + * Verifies a ValidatorUpdate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ValidatorUpdate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidatorUpdate + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.ValidatorUpdate; + + /** + * Creates a plain object from a ValidatorUpdate message. Also converts values to other types if specified. + * @param message ValidatorUpdate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.ValidatorUpdate, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ValidatorUpdate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a VoteInfo. */ + interface IVoteInfo { + /** VoteInfo validator */ + validator?: tendermint.abci.types.IValidator | null; + + /** VoteInfo signedLastBlock */ + signedLastBlock?: boolean | null; + } + + /** Represents a VoteInfo. */ + class VoteInfo implements IVoteInfo { + /** + * Constructs a new VoteInfo. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IVoteInfo); + + /** VoteInfo validator. */ + public validator?: tendermint.abci.types.IValidator | null; + + /** VoteInfo signedLastBlock. */ + public signedLastBlock: boolean; + + /** + * Creates a new VoteInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns VoteInfo instance + */ + public static create(properties?: tendermint.abci.types.IVoteInfo): tendermint.abci.types.VoteInfo; + + /** + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.types.VoteInfo.verify|verify} messages. + * @param message VoteInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IVoteInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified VoteInfo message, length delimited. Does not implicitly {@link tendermint.abci.types.VoteInfo.verify|verify} messages. + * @param message VoteInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IVoteInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a VoteInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VoteInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.VoteInfo; + + /** + * Decodes a VoteInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VoteInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.VoteInfo; + + /** + * Verifies a VoteInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a VoteInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VoteInfo + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.VoteInfo; + + /** + * Creates a plain object from a VoteInfo message. Also converts values to other types if specified. + * @param message VoteInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.VoteInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this VoteInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PubKey. */ + interface IPubKey { + /** PubKey type */ + type?: string | null; + + /** PubKey data */ + data?: Uint8Array | null; + } + + /** Represents a PubKey. */ + class PubKey implements IPubKey { + /** + * Constructs a new PubKey. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IPubKey); + + /** PubKey type. */ + public type: string; + + /** PubKey data. */ + public data: Uint8Array; + + /** + * Creates a new PubKey instance using the specified properties. + * @param [properties] Properties to set + * @returns PubKey instance + */ + public static create(properties?: tendermint.abci.types.IPubKey): tendermint.abci.types.PubKey; + + /** + * Encodes the specified PubKey message. Does not implicitly {@link tendermint.abci.types.PubKey.verify|verify} messages. + * @param message PubKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IPubKey, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified PubKey message, length delimited. Does not implicitly {@link tendermint.abci.types.PubKey.verify|verify} messages. + * @param message PubKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IPubKey, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PubKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PubKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.PubKey; + + /** + * Decodes a PubKey message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PubKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.PubKey; + + /** + * Verifies a PubKey message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a PubKey message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PubKey + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.PubKey; + + /** + * Creates a plain object from a PubKey message. Also converts values to other types if specified. + * @param message PubKey + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.PubKey, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this PubKey to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Evidence. */ + interface IEvidence { + /** Evidence type */ + type?: string | null; + + /** Evidence validator */ + validator?: tendermint.abci.types.IValidator | null; + + /** Evidence height */ + height?: number | Long | null; + + /** Evidence time */ + time?: google.protobuf.ITimestamp | null; + + /** Evidence totalVotingPower */ + totalVotingPower?: number | Long | null; + } + + /** Represents an Evidence. */ + class Evidence implements IEvidence { + /** + * Constructs a new Evidence. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.abci.types.IEvidence); + + /** Evidence type. */ + public type: string; + + /** Evidence validator. */ + public validator?: tendermint.abci.types.IValidator | null; + + /** Evidence height. */ + public height: number | Long; + + /** Evidence time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Evidence totalVotingPower. */ + public totalVotingPower: number | Long; + + /** + * Creates a new Evidence instance using the specified properties. + * @param [properties] Properties to set + * @returns Evidence instance + */ + public static create(properties?: tendermint.abci.types.IEvidence): tendermint.abci.types.Evidence; + + /** + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.types.Evidence.verify|verify} messages. + * @param message Evidence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.abci.types.IEvidence, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Evidence message, length delimited. Does not implicitly {@link tendermint.abci.types.Evidence.verify|verify} messages. + * @param message Evidence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.abci.types.IEvidence, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Evidence message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Evidence + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.abci.types.Evidence; + + /** + * Decodes an Evidence message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Evidence + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.abci.types.Evidence; + + /** + * Verifies an Evidence message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Evidence message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Evidence + */ + public static fromObject(object: { [k: string]: any }): tendermint.abci.types.Evidence; + + /** + * Creates a plain object from an Evidence message. Also converts values to other types if specified. + * @param message Evidence + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.abci.types.Evidence, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Evidence to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Represents a ABCIApplication */ + class ABCIApplication extends $protobuf.rpc.Service { + /** + * Constructs a new ABCIApplication service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ABCIApplication service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): ABCIApplication; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEcho + */ + public echo( + request: tendermint.abci.types.IRequestEcho, + callback: tendermint.abci.types.ABCIApplication.EchoCallback, + ): void; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @returns Promise + */ + public echo(request: tendermint.abci.types.IRequestEcho): Promise; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseFlush + */ + public flush( + request: tendermint.abci.types.IRequestFlush, + callback: tendermint.abci.types.ABCIApplication.FlushCallback, + ): void; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @returns Promise + */ + public flush( + request: tendermint.abci.types.IRequestFlush, + ): Promise; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInfo + */ + public info( + request: tendermint.abci.types.IRequestInfo, + callback: tendermint.abci.types.ABCIApplication.InfoCallback, + ): void; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @returns Promise + */ + public info(request: tendermint.abci.types.IRequestInfo): Promise; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseSetOption + */ + public setOption( + request: tendermint.abci.types.IRequestSetOption, + callback: tendermint.abci.types.ABCIApplication.SetOptionCallback, + ): void; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @returns Promise + */ + public setOption( + request: tendermint.abci.types.IRequestSetOption, + ): Promise; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx + */ + public deliverTx( + request: tendermint.abci.types.IRequestDeliverTx, + callback: tendermint.abci.types.ABCIApplication.DeliverTxCallback, + ): void; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @returns Promise + */ + public deliverTx( + request: tendermint.abci.types.IRequestDeliverTx, + ): Promise; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCheckTx + */ + public checkTx( + request: tendermint.abci.types.IRequestCheckTx, + callback: tendermint.abci.types.ABCIApplication.CheckTxCallback, + ): void; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @returns Promise + */ + public checkTx( + request: tendermint.abci.types.IRequestCheckTx, + ): Promise; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseQuery + */ + public query( + request: tendermint.abci.types.IRequestQuery, + callback: tendermint.abci.types.ABCIApplication.QueryCallback, + ): void; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @returns Promise + */ + public query( + request: tendermint.abci.types.IRequestQuery, + ): Promise; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCommit + */ + public commit( + request: tendermint.abci.types.IRequestCommit, + callback: tendermint.abci.types.ABCIApplication.CommitCallback, + ): void; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @returns Promise + */ + public commit( + request: tendermint.abci.types.IRequestCommit, + ): Promise; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInitChain + */ + public initChain( + request: tendermint.abci.types.IRequestInitChain, + callback: tendermint.abci.types.ABCIApplication.InitChainCallback, + ): void; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @returns Promise + */ + public initChain( + request: tendermint.abci.types.IRequestInitChain, + ): Promise; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock + */ + public beginBlock( + request: tendermint.abci.types.IRequestBeginBlock, + callback: tendermint.abci.types.ABCIApplication.BeginBlockCallback, + ): void; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @returns Promise + */ + public beginBlock( + request: tendermint.abci.types.IRequestBeginBlock, + ): Promise; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEndBlock + */ + public endBlock( + request: tendermint.abci.types.IRequestEndBlock, + callback: tendermint.abci.types.ABCIApplication.EndBlockCallback, + ): void; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @returns Promise + */ + public endBlock( + request: tendermint.abci.types.IRequestEndBlock, + ): Promise; + } + + namespace ABCIApplication { + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#echo}. + * @param error Error, if any + * @param [response] ResponseEcho + */ + type EchoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseEcho) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#flush}. + * @param error Error, if any + * @param [response] ResponseFlush + */ + type FlushCallback = (error: Error | null, response?: tendermint.abci.types.ResponseFlush) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#info}. + * @param error Error, if any + * @param [response] ResponseInfo + */ + type InfoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseInfo) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#setOption}. + * @param error Error, if any + * @param [response] ResponseSetOption + */ + type SetOptionCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseSetOption, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#deliverTx}. + * @param error Error, if any + * @param [response] ResponseDeliverTx + */ + type DeliverTxCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseDeliverTx, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#checkTx}. + * @param error Error, if any + * @param [response] ResponseCheckTx + */ + type CheckTxCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseCheckTx, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#query}. + * @param error Error, if any + * @param [response] ResponseQuery + */ + type QueryCallback = (error: Error | null, response?: tendermint.abci.types.ResponseQuery) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#commit}. + * @param error Error, if any + * @param [response] ResponseCommit + */ + type CommitCallback = (error: Error | null, response?: tendermint.abci.types.ResponseCommit) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#initChain}. + * @param error Error, if any + * @param [response] ResponseInitChain + */ + type InitChainCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseInitChain, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#beginBlock}. + * @param error Error, if any + * @param [response] ResponseBeginBlock + */ + type BeginBlockCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseBeginBlock, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#endBlock}. + * @param error Error, if any + * @param [response] ResponseEndBlock + */ + type EndBlockCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseEndBlock, + ) => void; + } + } + } + + /** Namespace crypto. */ + namespace crypto { + /** Namespace merkle. */ + namespace merkle { + /** Properties of a ProofOp. */ + interface IProofOp { + /** ProofOp type */ + type?: string | null; + + /** ProofOp key */ + key?: Uint8Array | null; + + /** ProofOp data */ + data?: Uint8Array | null; + } + + /** Represents a ProofOp. */ + class ProofOp implements IProofOp { + /** + * Constructs a new ProofOp. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.crypto.merkle.IProofOp); + + /** ProofOp type. */ + public type: string; + + /** ProofOp key. */ + public key: Uint8Array; + + /** ProofOp data. */ + public data: Uint8Array; + + /** + * Creates a new ProofOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOp instance + */ + public static create( + properties?: tendermint.crypto.merkle.IProofOp, + ): tendermint.crypto.merkle.ProofOp; + + /** + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.merkle.ProofOp.verify|verify} messages. + * @param message ProofOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.crypto.merkle.IProofOp, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ProofOp message, length delimited. Does not implicitly {@link tendermint.crypto.merkle.ProofOp.verify|verify} messages. + * @param message ProofOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.crypto.merkle.IProofOp, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ProofOp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProofOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.crypto.merkle.ProofOp; + + /** + * Decodes a ProofOp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProofOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): tendermint.crypto.merkle.ProofOp; + + /** + * Verifies a ProofOp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ProofOp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProofOp + */ + public static fromObject(object: { [k: string]: any }): tendermint.crypto.merkle.ProofOp; + + /** + * Creates a plain object from a ProofOp message. Also converts values to other types if specified. + * @param message ProofOp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.crypto.merkle.ProofOp, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ProofOp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Proof. */ + interface IProof { + /** Proof ops */ + ops?: tendermint.crypto.merkle.IProofOp[] | null; + } + + /** Represents a Proof. */ + class Proof implements IProof { + /** + * Constructs a new Proof. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.crypto.merkle.IProof); + + /** Proof ops. */ + public ops: tendermint.crypto.merkle.IProofOp[]; + + /** + * Creates a new Proof instance using the specified properties. + * @param [properties] Properties to set + * @returns Proof instance + */ + public static create(properties?: tendermint.crypto.merkle.IProof): tendermint.crypto.merkle.Proof; + + /** + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.merkle.Proof.verify|verify} messages. + * @param message Proof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.crypto.merkle.IProof, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Proof message, length delimited. Does not implicitly {@link tendermint.crypto.merkle.Proof.verify|verify} messages. + * @param message Proof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.crypto.merkle.IProof, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Proof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Proof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.crypto.merkle.Proof; + + /** + * Decodes a Proof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Proof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.crypto.merkle.Proof; + + /** + * Verifies a Proof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Proof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Proof + */ + public static fromObject(object: { [k: string]: any }): tendermint.crypto.merkle.Proof; + + /** + * Creates a plain object from a Proof message. Also converts values to other types if specified. + * @param message Proof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.crypto.merkle.Proof, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Proof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace libs. */ + namespace libs { + /** Namespace kv. */ + namespace kv { + /** Properties of a Pair. */ + interface IPair { + /** Pair key */ + key?: Uint8Array | null; + + /** Pair value */ + value?: Uint8Array | null; + } + + /** Represents a Pair. */ + class Pair implements IPair { + /** + * Constructs a new Pair. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.libs.kv.IPair); + + /** Pair key. */ + public key: Uint8Array; + + /** Pair value. */ + public value: Uint8Array; + + /** + * Creates a new Pair instance using the specified properties. + * @param [properties] Properties to set + * @returns Pair instance + */ + public static create(properties?: tendermint.libs.kv.IPair): tendermint.libs.kv.Pair; + + /** + * Encodes the specified Pair message. Does not implicitly {@link tendermint.libs.kv.Pair.verify|verify} messages. + * @param message Pair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: tendermint.libs.kv.IPair, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Pair message, length delimited. Does not implicitly {@link tendermint.libs.kv.Pair.verify|verify} messages. + * @param message Pair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.libs.kv.IPair, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Pair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): tendermint.libs.kv.Pair; + + /** + * Decodes a Pair message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.libs.kv.Pair; + + /** + * Verifies a Pair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Pair message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Pair + */ + public static fromObject(object: { [k: string]: any }): tendermint.libs.kv.Pair; + + /** + * Creates a plain object from a Pair message. Also converts values to other types if specified. + * @param message Pair + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.libs.kv.Pair, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Pair to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a KI64Pair. */ + interface IKI64Pair { + /** KI64Pair key */ + key?: Uint8Array | null; + + /** KI64Pair value */ + value?: number | Long | null; + } + + /** Represents a KI64Pair. */ + class KI64Pair implements IKI64Pair { + /** + * Constructs a new KI64Pair. + * @param [properties] Properties to set + */ + constructor(properties?: tendermint.libs.kv.IKI64Pair); + + /** KI64Pair key. */ + public key: Uint8Array; + + /** KI64Pair value. */ + public value: number | Long; + + /** + * Creates a new KI64Pair instance using the specified properties. + * @param [properties] Properties to set + * @returns KI64Pair instance + */ + public static create(properties?: tendermint.libs.kv.IKI64Pair): tendermint.libs.kv.KI64Pair; + + /** + * Encodes the specified KI64Pair message. Does not implicitly {@link tendermint.libs.kv.KI64Pair.verify|verify} messages. + * @param message KI64Pair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: tendermint.libs.kv.IKI64Pair, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified KI64Pair message, length delimited. Does not implicitly {@link tendermint.libs.kv.KI64Pair.verify|verify} messages. + * @param message KI64Pair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: tendermint.libs.kv.IKI64Pair, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a KI64Pair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KI64Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): tendermint.libs.kv.KI64Pair; + + /** + * Decodes a KI64Pair message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KI64Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): tendermint.libs.kv.KI64Pair; + + /** + * Verifies a KI64Pair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a KI64Pair message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KI64Pair + */ + public static fromObject(object: { [k: string]: any }): tendermint.libs.kv.KI64Pair; + + /** + * Creates a plain object from a KI64Pair message. Also converts values to other types if specified. + * @param message KI64Pair + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: tendermint.libs.kv.KI64Pair, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this KI64Pair to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } +} + +/** Namespace google. */ +export namespace google { + /** Namespace protobuf. */ + namespace protobuf { + /** Properties of an Any. */ + interface IAny { + /** Any type_url */ + type_url?: string | null; + + /** Any value */ + value?: Uint8Array | null; + } + + /** Represents an Any. */ + class Any implements IAny { + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IAny, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): google.protobuf.Any; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Any; + + /** + * Verifies an Any message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Any + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.Any, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + /** FileDescriptorSet file */ + file?: google.protobuf.IFileDescriptorProto[] | null; + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create( + properties?: google.protobuf.IFileDescriptorSet, + ): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IFileDescriptorSet, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IFileDescriptorSet, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.FileDescriptorSet, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + /** FileDescriptorProto name */ + name?: string | null; + + /** FileDescriptorProto package */ + package?: string | null; + + /** FileDescriptorProto dependency */ + dependency?: string[] | null; + + /** FileDescriptorProto publicDependency */ + publicDependency?: number[] | null; + + /** FileDescriptorProto weakDependency */ + weakDependency?: number[] | null; + + /** FileDescriptorProto messageType */ + messageType?: google.protobuf.IDescriptorProto[] | null; + + /** FileDescriptorProto enumType */ + enumType?: google.protobuf.IEnumDescriptorProto[] | null; + + /** FileDescriptorProto service */ + service?: google.protobuf.IServiceDescriptorProto[] | null; + + /** FileDescriptorProto extension */ + extension?: google.protobuf.IFieldDescriptorProto[] | null; + + /** FileDescriptorProto options */ + options?: google.protobuf.IFileOptions | null; + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null; + + /** FileDescriptorProto syntax */ + syntax?: string | null; + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: google.protobuf.IFileOptions | null; + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: google.protobuf.ISourceCodeInfo | null; + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IFileDescriptorProto, + ): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IFileDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IFileDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.FileDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + /** DescriptorProto name */ + name?: string | null; + + /** DescriptorProto field */ + field?: google.protobuf.IFieldDescriptorProto[] | null; + + /** DescriptorProto extension */ + extension?: google.protobuf.IFieldDescriptorProto[] | null; + + /** DescriptorProto nestedType */ + nestedType?: google.protobuf.IDescriptorProto[] | null; + + /** DescriptorProto enumType */ + enumType?: google.protobuf.IEnumDescriptorProto[] | null; + + /** DescriptorProto extensionRange */ + extensionRange?: google.protobuf.DescriptorProto.IExtensionRange[] | null; + + /** DescriptorProto oneofDecl */ + oneofDecl?: google.protobuf.IOneofDescriptorProto[] | null; + + /** DescriptorProto options */ + options?: google.protobuf.IMessageOptions | null; + + /** DescriptorProto reservedRange */ + reservedRange?: google.protobuf.DescriptorProto.IReservedRange[] | null; + + /** DescriptorProto reservedName */ + reservedName?: string[] | null; + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: google.protobuf.IMessageOptions | null; + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.DescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DescriptorProto { + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + /** ExtensionRange start */ + start?: number | null; + + /** ExtensionRange end */ + end?: number | null; + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create( + properties?: google.protobuf.DescriptorProto.IExtensionRange, + ): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.DescriptorProto.IExtensionRange, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.DescriptorProto.IExtensionRange, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { + [k: string]: any; + }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.DescriptorProto.ExtensionRange, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + /** ReservedRange start */ + start?: number | null; + + /** ReservedRange end */ + end?: number | null; + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create( + properties?: google.protobuf.DescriptorProto.IReservedRange, + ): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.DescriptorProto.IReservedRange, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.DescriptorProto.IReservedRange, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.DescriptorProto.ReservedRange, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + /** FieldDescriptorProto name */ + name?: string | null; + + /** FieldDescriptorProto number */ + number?: number | null; + + /** FieldDescriptorProto label */ + label?: google.protobuf.FieldDescriptorProto.Label | null; + + /** FieldDescriptorProto type */ + type?: google.protobuf.FieldDescriptorProto.Type | null; + + /** FieldDescriptorProto typeName */ + typeName?: string | null; + + /** FieldDescriptorProto extendee */ + extendee?: string | null; + + /** FieldDescriptorProto defaultValue */ + defaultValue?: string | null; + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: number | null; + + /** FieldDescriptorProto jsonName */ + jsonName?: string | null; + + /** FieldDescriptorProto options */ + options?: google.protobuf.IFieldOptions | null; + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: google.protobuf.IFieldOptions | null; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IFieldDescriptorProto, + ): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IFieldDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IFieldDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.FieldDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldDescriptorProto { + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18, + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3, + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + /** OneofDescriptorProto name */ + name?: string | null; + + /** OneofDescriptorProto options */ + options?: google.protobuf.IOneofOptions | null; + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: google.protobuf.IOneofOptions | null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IOneofDescriptorProto, + ): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IOneofDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IOneofDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.OneofDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + /** EnumDescriptorProto name */ + name?: string | null; + + /** EnumDescriptorProto value */ + value?: google.protobuf.IEnumValueDescriptorProto[] | null; + + /** EnumDescriptorProto options */ + options?: google.protobuf.IEnumOptions | null; + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: google.protobuf.IEnumOptions | null; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IEnumDescriptorProto, + ): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IEnumDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IEnumDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.EnumDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + /** EnumValueDescriptorProto name */ + name?: string | null; + + /** EnumValueDescriptorProto number */ + number?: number | null; + + /** EnumValueDescriptorProto options */ + options?: google.protobuf.IEnumValueOptions | null; + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: google.protobuf.IEnumValueOptions | null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IEnumValueDescriptorProto, + ): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IEnumValueDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IEnumValueDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.EnumValueDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + /** ServiceDescriptorProto name */ + name?: string | null; + + /** ServiceDescriptorProto method */ + method?: google.protobuf.IMethodDescriptorProto[] | null; + + /** ServiceDescriptorProto options */ + options?: google.protobuf.IServiceOptions | null; + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: google.protobuf.IServiceOptions | null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IServiceDescriptorProto, + ): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IServiceDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IServiceDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.ServiceDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + /** MethodDescriptorProto name */ + name?: string | null; + + /** MethodDescriptorProto inputType */ + inputType?: string | null; + + /** MethodDescriptorProto outputType */ + outputType?: string | null; + + /** MethodDescriptorProto options */ + options?: google.protobuf.IMethodOptions | null; + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: boolean | null; + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: boolean | null; + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: google.protobuf.IMethodOptions | null; + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create( + properties?: google.protobuf.IMethodDescriptorProto, + ): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IMethodDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IMethodDescriptorProto, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.MethodDescriptorProto, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + /** FileOptions javaPackage */ + javaPackage?: string | null; + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: string | null; + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: boolean | null; + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: boolean | null; + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: boolean | null; + + /** FileOptions optimizeFor */ + optimizeFor?: google.protobuf.FileOptions.OptimizeMode | null; + + /** FileOptions goPackage */ + goPackage?: string | null; + + /** FileOptions ccGenericServices */ + ccGenericServices?: boolean | null; + + /** FileOptions javaGenericServices */ + javaGenericServices?: boolean | null; + + /** FileOptions pyGenericServices */ + pyGenericServices?: boolean | null; + + /** FileOptions deprecated */ + deprecated?: boolean | null; + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: boolean | null; + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: string | null; + + /** FileOptions csharpNamespace */ + csharpNamespace?: string | null; + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** FileOptions .gogoproto.goprotoGettersAll */ + ".gogoproto.goprotoGettersAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoEnumPrefixAll */ + ".gogoproto.goprotoEnumPrefixAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoStringerAll */ + ".gogoproto.goprotoStringerAll"?: boolean | null; + + /** FileOptions .gogoproto.verboseEqualAll */ + ".gogoproto.verboseEqualAll"?: boolean | null; + + /** FileOptions .gogoproto.faceAll */ + ".gogoproto.faceAll"?: boolean | null; + + /** FileOptions .gogoproto.gostringAll */ + ".gogoproto.gostringAll"?: boolean | null; + + /** FileOptions .gogoproto.populateAll */ + ".gogoproto.populateAll"?: boolean | null; + + /** FileOptions .gogoproto.stringerAll */ + ".gogoproto.stringerAll"?: boolean | null; + + /** FileOptions .gogoproto.onlyoneAll */ + ".gogoproto.onlyoneAll"?: boolean | null; + + /** FileOptions .gogoproto.equalAll */ + ".gogoproto.equalAll"?: boolean | null; + + /** FileOptions .gogoproto.descriptionAll */ + ".gogoproto.descriptionAll"?: boolean | null; + + /** FileOptions .gogoproto.testgenAll */ + ".gogoproto.testgenAll"?: boolean | null; + + /** FileOptions .gogoproto.benchgenAll */ + ".gogoproto.benchgenAll"?: boolean | null; + + /** FileOptions .gogoproto.marshalerAll */ + ".gogoproto.marshalerAll"?: boolean | null; + + /** FileOptions .gogoproto.unmarshalerAll */ + ".gogoproto.unmarshalerAll"?: boolean | null; + + /** FileOptions .gogoproto.stableMarshalerAll */ + ".gogoproto.stableMarshalerAll"?: boolean | null; + + /** FileOptions .gogoproto.sizerAll */ + ".gogoproto.sizerAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoEnumStringerAll */ + ".gogoproto.goprotoEnumStringerAll"?: boolean | null; + + /** FileOptions .gogoproto.enumStringerAll */ + ".gogoproto.enumStringerAll"?: boolean | null; + + /** FileOptions .gogoproto.unsafeMarshalerAll */ + ".gogoproto.unsafeMarshalerAll"?: boolean | null; + + /** FileOptions .gogoproto.unsafeUnmarshalerAll */ + ".gogoproto.unsafeUnmarshalerAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoExtensionsMapAll */ + ".gogoproto.goprotoExtensionsMapAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoUnrecognizedAll */ + ".gogoproto.goprotoUnrecognizedAll"?: boolean | null; + + /** FileOptions .gogoproto.gogoprotoImport */ + ".gogoproto.gogoprotoImport"?: boolean | null; + + /** FileOptions .gogoproto.protosizerAll */ + ".gogoproto.protosizerAll"?: boolean | null; + + /** FileOptions .gogoproto.compareAll */ + ".gogoproto.compareAll"?: boolean | null; + + /** FileOptions .gogoproto.typedeclAll */ + ".gogoproto.typedeclAll"?: boolean | null; + + /** FileOptions .gogoproto.enumdeclAll */ + ".gogoproto.enumdeclAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoRegistration */ + ".gogoproto.goprotoRegistration"?: boolean | null; + + /** FileOptions .gogoproto.messagenameAll */ + ".gogoproto.messagenameAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoSizecacheAll */ + ".gogoproto.goprotoSizecacheAll"?: boolean | null; + + /** FileOptions .gogoproto.goprotoUnkeyedAll */ + ".gogoproto.goprotoUnkeyedAll"?: boolean | null; + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IFileOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IFileOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.FileOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FileOptions { + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3, + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: boolean | null; + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: boolean | null; + + /** MessageOptions deprecated */ + deprecated?: boolean | null; + + /** MessageOptions mapEntry */ + mapEntry?: boolean | null; + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** MessageOptions .cosmos_proto.interfaceType */ + ".cosmos_proto.interfaceType"?: string | null; + + /** MessageOptions .cosmos_proto.implementsInterface */ + ".cosmos_proto.implementsInterface"?: string | null; + + /** MessageOptions .gogoproto.goprotoGetters */ + ".gogoproto.goprotoGetters"?: boolean | null; + + /** MessageOptions .gogoproto.goprotoStringer */ + ".gogoproto.goprotoStringer"?: boolean | null; + + /** MessageOptions .gogoproto.verboseEqual */ + ".gogoproto.verboseEqual"?: boolean | null; + + /** MessageOptions .gogoproto.face */ + ".gogoproto.face"?: boolean | null; + + /** MessageOptions .gogoproto.gostring */ + ".gogoproto.gostring"?: boolean | null; + + /** MessageOptions .gogoproto.populate */ + ".gogoproto.populate"?: boolean | null; + + /** MessageOptions .gogoproto.stringer */ + ".gogoproto.stringer"?: boolean | null; + + /** MessageOptions .gogoproto.onlyone */ + ".gogoproto.onlyone"?: boolean | null; + + /** MessageOptions .gogoproto.equal */ + ".gogoproto.equal"?: boolean | null; + + /** MessageOptions .gogoproto.description */ + ".gogoproto.description"?: boolean | null; + + /** MessageOptions .gogoproto.testgen */ + ".gogoproto.testgen"?: boolean | null; + + /** MessageOptions .gogoproto.benchgen */ + ".gogoproto.benchgen"?: boolean | null; + + /** MessageOptions .gogoproto.marshaler */ + ".gogoproto.marshaler"?: boolean | null; + + /** MessageOptions .gogoproto.unmarshaler */ + ".gogoproto.unmarshaler"?: boolean | null; + + /** MessageOptions .gogoproto.stableMarshaler */ + ".gogoproto.stableMarshaler"?: boolean | null; + + /** MessageOptions .gogoproto.sizer */ + ".gogoproto.sizer"?: boolean | null; + + /** MessageOptions .gogoproto.unsafeMarshaler */ + ".gogoproto.unsafeMarshaler"?: boolean | null; + + /** MessageOptions .gogoproto.unsafeUnmarshaler */ + ".gogoproto.unsafeUnmarshaler"?: boolean | null; + + /** MessageOptions .gogoproto.goprotoExtensionsMap */ + ".gogoproto.goprotoExtensionsMap"?: boolean | null; + + /** MessageOptions .gogoproto.goprotoUnrecognized */ + ".gogoproto.goprotoUnrecognized"?: boolean | null; + + /** MessageOptions .gogoproto.protosizer */ + ".gogoproto.protosizer"?: boolean | null; + + /** MessageOptions .gogoproto.compare */ + ".gogoproto.compare"?: boolean | null; + + /** MessageOptions .gogoproto.typedecl */ + ".gogoproto.typedecl"?: boolean | null; + + /** MessageOptions .gogoproto.messagename */ + ".gogoproto.messagename"?: boolean | null; + + /** MessageOptions .gogoproto.goprotoSizecache */ + ".gogoproto.goprotoSizecache"?: boolean | null; + + /** MessageOptions .gogoproto.goprotoUnkeyed */ + ".gogoproto.goprotoUnkeyed"?: boolean | null; + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IMessageOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IMessageOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.MessageOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + /** FieldOptions ctype */ + ctype?: google.protobuf.FieldOptions.CType | null; + + /** FieldOptions packed */ + packed?: boolean | null; + + /** FieldOptions jstype */ + jstype?: google.protobuf.FieldOptions.JSType | null; + + /** FieldOptions lazy */ + lazy?: boolean | null; + + /** FieldOptions deprecated */ + deprecated?: boolean | null; + + /** FieldOptions weak */ + weak?: boolean | null; + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** FieldOptions .cosmos_proto.acceptsInterface */ + ".cosmos_proto.acceptsInterface"?: string | null; + + /** FieldOptions .gogoproto.nullable */ + ".gogoproto.nullable"?: boolean | null; + + /** FieldOptions .gogoproto.embed */ + ".gogoproto.embed"?: boolean | null; + + /** FieldOptions .gogoproto.customtype */ + ".gogoproto.customtype"?: string | null; + + /** FieldOptions .gogoproto.customname */ + ".gogoproto.customname"?: string | null; + + /** FieldOptions .gogoproto.jsontag */ + ".gogoproto.jsontag"?: string | null; + + /** FieldOptions .gogoproto.moretags */ + ".gogoproto.moretags"?: string | null; + + /** FieldOptions .gogoproto.casttype */ + ".gogoproto.casttype"?: string | null; + + /** FieldOptions .gogoproto.castkey */ + ".gogoproto.castkey"?: string | null; + + /** FieldOptions .gogoproto.castvalue */ + ".gogoproto.castvalue"?: string | null; + + /** FieldOptions .gogoproto.stdtime */ + ".gogoproto.stdtime"?: boolean | null; + + /** FieldOptions .gogoproto.stdduration */ + ".gogoproto.stdduration"?: boolean | null; + + /** FieldOptions .gogoproto.wktpointer */ + ".gogoproto.wktpointer"?: boolean | null; + + /** FieldOptions .gogoproto.castrepeated */ + ".gogoproto.castrepeated"?: string | null; + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IFieldOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IFieldOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.FieldOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldOptions { + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2, + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2, + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IOneofOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IOneofOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.OneofOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + /** EnumOptions allowAlias */ + allowAlias?: boolean | null; + + /** EnumOptions deprecated */ + deprecated?: boolean | null; + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** EnumOptions .gogoproto.goprotoEnumPrefix */ + ".gogoproto.goprotoEnumPrefix"?: boolean | null; + + /** EnumOptions .gogoproto.goprotoEnumStringer */ + ".gogoproto.goprotoEnumStringer"?: boolean | null; + + /** EnumOptions .gogoproto.enumStringer */ + ".gogoproto.enumStringer"?: boolean | null; + + /** EnumOptions .gogoproto.enumCustomname */ + ".gogoproto.enumCustomname"?: string | null; + + /** EnumOptions .gogoproto.enumdecl */ + ".gogoproto.enumdecl"?: boolean | null; + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IEnumOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IEnumOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.EnumOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + /** EnumValueOptions deprecated */ + deprecated?: boolean | null; + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** EnumValueOptions .gogoproto.enumvalueCustomname */ + ".gogoproto.enumvalueCustomname"?: string | null; + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IEnumValueOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IEnumValueOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.EnumValueOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + /** ServiceOptions deprecated */ + deprecated?: boolean | null; + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IServiceOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IServiceOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.ServiceOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + /** MethodOptions deprecated */ + deprecated?: boolean | null; + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IMethodOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IMethodOptions, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.MethodOptions, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + /** UninterpretedOption name */ + name?: google.protobuf.UninterpretedOption.INamePart[] | null; + + /** UninterpretedOption identifierValue */ + identifierValue?: string | null; + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: number | Long | null; + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: number | Long | null; + + /** UninterpretedOption doubleValue */ + doubleValue?: number | null; + + /** UninterpretedOption stringValue */ + stringValue?: Uint8Array | null; + + /** UninterpretedOption aggregateValue */ + aggregateValue?: string | null; + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: number | Long; + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: number | Long; + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create( + properties?: google.protobuf.IUninterpretedOption, + ): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IUninterpretedOption, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IUninterpretedOption, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.UninterpretedOption, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace UninterpretedOption { + /** Properties of a NamePart. */ + interface INamePart { + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create( + properties?: google.protobuf.UninterpretedOption.INamePart, + ): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.UninterpretedOption.INamePart, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.UninterpretedOption.INamePart, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.UninterpretedOption.NamePart, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + /** SourceCodeInfo location */ + location?: google.protobuf.SourceCodeInfo.ILocation[] | null; + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.ISourceCodeInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.ISourceCodeInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.SourceCodeInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SourceCodeInfo { + /** Properties of a Location. */ + interface ILocation { + /** Location path */ + path?: number[] | null; + + /** Location span */ + span?: number[] | null; + + /** Location leadingComments */ + leadingComments?: string | null; + + /** Location trailingComments */ + trailingComments?: string | null; + + /** Location leadingDetachedComments */ + leadingDetachedComments?: string[] | null; + } + + /** Represents a Location. */ + class Location implements ILocation { + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create( + properties?: google.protobuf.SourceCodeInfo.ILocation, + ): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.SourceCodeInfo.ILocation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.SourceCodeInfo.ILocation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.SourceCodeInfo.Location, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + /** GeneratedCodeInfo annotation */ + annotation?: google.protobuf.GeneratedCodeInfo.IAnnotation[] | null; + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create( + properties?: google.protobuf.IGeneratedCodeInfo, + ): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.IGeneratedCodeInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IGeneratedCodeInfo, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.GeneratedCodeInfo, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace GeneratedCodeInfo { + /** Properties of an Annotation. */ + interface IAnnotation { + /** Annotation path */ + path?: number[] | null; + + /** Annotation sourceFile */ + sourceFile?: string | null; + + /** Annotation begin */ + begin?: number | null; + + /** Annotation end */ + end?: number | null; + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create( + properties?: google.protobuf.GeneratedCodeInfo.IAnnotation, + ): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode( + message: google.protobuf.GeneratedCodeInfo.IAnnotation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.GeneratedCodeInfo.IAnnotation, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number, + ): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array, + ): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.GeneratedCodeInfo.Annotation, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a Timestamp. */ + interface ITimestamp { + /** Timestamp seconds */ + seconds?: number | Long | null; + + /** Timestamp nanos */ + nanos?: number | null; + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: number | Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.ITimestamp, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): google.protobuf.Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Timestamp; + + /** + * Verifies a Timestamp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.Timestamp, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Duration. */ + interface IDuration { + /** Duration seconds */ + seconds?: number | Long | null; + + /** Duration nanos */ + nanos?: number | null; + } + + /** Represents a Duration. */ + class Duration implements IDuration { + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: number | Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited( + message: google.protobuf.IDuration, + writer?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): google.protobuf.Duration; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): string | null; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Duration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject( + message: google.protobuf.Duration, + options?: $protobuf.IConversionOptions, + ): { [k: string]: any }; + + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +}