From a645ab35738befc5e5cd17e2d540dc57c8aef00f Mon Sep 17 00:00:00 2001 From: willclarktech Date: Tue, 16 Jun 2020 13:24:09 +0100 Subject: [PATCH] demo-protobuf: Specify necessary proto files in pack script --- packages/demo-protobuf/package.json | 2 +- .../src/generated/codecimpl.d.ts | 8761 +----- .../demo-protobuf/src/generated/codecimpl.js | 19026 ++---------- .../types/generated/codecimpl.d.ts | 23946 ++-------------- 4 files changed, 4632 insertions(+), 47103 deletions(-) diff --git a/packages/demo-protobuf/package.json b/packages/demo-protobuf/package.json index 9b251f57..997dc050 100644 --- a/packages/demo-protobuf/package.json +++ b/packages/demo-protobuf/package.json @@ -34,7 +34,7 @@ "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js", "get-proto": "./scripts/get-proto.sh", "prepack-proto": "mkdir -p src/generated", - "pack-proto": "pbjs -t static-module -w commonjs -o src/generated/codecimpl.js --sparse --no-beautify --no-delimited --no-verify --no-convert ./proto/**/*.proto", + "pack-proto": "pbjs -t static-module -w commonjs -o src/generated/codecimpl.js --sparse --no-beautify --no-delimited --no-verify --no-convert ./proto/cosmos/cosmos-sdk/{x/bank/types/types.proto,types/types.proto,types/tx/types.proto,types/tx/signing/types.proto,third_party/proto/tendermint/**/*.proto,crypto/types/types.proto}", "define-proto": "pbts src/generated/codecimpl.js -o src/generated/codecimpl.d.ts" }, "dependencies": { diff --git a/packages/demo-protobuf/src/generated/codecimpl.d.ts b/packages/demo-protobuf/src/generated/codecimpl.d.ts index 5c531b7c..211113b9 100644 --- a/packages/demo-protobuf/src/generated/codecimpl.d.ts +++ b/packages/demo-protobuf/src/generated/codecimpl.d.ts @@ -2,755 +2,772 @@ 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 [p] Properties to set - */ - constructor(p?: 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 m Dog message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.IDog, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Dog message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.Dog; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Cat message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.ICat, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Cat message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.Cat; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m HasAnimal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.IHasAnimal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HasAnimal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.HasAnimal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m HasHasAnimal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.IHasHasAnimal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HasHasAnimal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.HasHasAnimal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m HasHasHasAnimal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.IHasHasHasAnimal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HasHasHasAnimal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.HasHasHasAnimal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m EchoRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.IEchoRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EchoRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.EchoRequest; - } - - /** Properties of an EchoResponse. */ - interface IEchoResponse { - - /** EchoResponse message */ - message?: (string|null); - } - - /** Represents an EchoResponse. */ - class EchoResponse implements IEchoResponse { - - /** - * Constructs a new EchoResponse. - * @param [p] Properties to set - */ - constructor(p?: 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 m EchoResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.IEchoResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EchoResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.EchoResponse; - } - - /** Properties of a SayHelloRequest. */ - interface ISayHelloRequest { - - /** SayHelloRequest name */ - name?: (string|null); - } - - /** Represents a SayHelloRequest. */ - class SayHelloRequest implements ISayHelloRequest { - - /** - * Constructs a new SayHelloRequest. - * @param [p] Properties to set - */ - constructor(p?: 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 m SayHelloRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.ISayHelloRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SayHelloRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.SayHelloRequest; - } - - /** Properties of a SayHelloResponse. */ - interface ISayHelloResponse { - - /** SayHelloResponse greeting */ - greeting?: (string|null); - } - - /** Represents a SayHelloResponse. */ - class SayHelloResponse implements ISayHelloResponse { - - /** - * Constructs a new SayHelloResponse. - * @param [p] Properties to set - */ - constructor(p?: 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 m SayHelloResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.codec.v1.ISayHelloResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SayHelloResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.codec.v1.SayHelloResponse; + /** Namespace x. */ + namespace x { + + /** Namespace bank. */ + namespace bank { + + /** Namespace v1. */ + namespace v1 { + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MsgSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IMsgSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.MsgSend; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Input message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IInput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Input message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.Input; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Output message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IOutput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Output message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.Output; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MsgMultiSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IMsgMultiSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgMultiSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.MsgMultiSend; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Supply message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.ISupply, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.Supply; + } } } } - /** Namespace crypto. */ - namespace crypto { + /** Namespace v1. */ + namespace v1 { - /** Namespace v1. */ - namespace v1 { + /** Properties of a Coin. */ + interface ICoin { - /** Properties of a PublicKey. */ - interface IPublicKey { + /** Coin denom */ + denom?: (string|null); - /** PublicKey secp256k1 */ - secp256k1?: (Uint8Array|null); + /** Coin amount */ + amount?: (string|null); + } - /** PublicKey ed25519 */ - ed25519?: (Uint8Array|null); + /** Represents a Coin. */ + class Coin implements ICoin { - /** PublicKey sr25519 */ - sr25519?: (Uint8Array|null); + /** + * Constructs a new Coin. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.v1.ICoin); - /** PublicKey multisig */ - multisig?: (cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null); + /** Coin denom. */ + public denom: string; - /** PublicKey secp256r1 */ - secp256r1?: (Uint8Array|null); + /** Coin amount. */ + public amount: string; - /** PublicKey anyPubkey */ - anyPubkey?: (google.protobuf.IAny|null); - } + /** + * 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; - /** Represents a PublicKey. */ - class PublicKey implements IPublicKey { + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos_sdk.v1.Coin.verify|verify} messages. + * @param m Coin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.ICoin, w?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new PublicKey. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.crypto.v1.IPublicKey); + /** + * Decodes a Coin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.Coin; + } - /** PublicKey secp256k1. */ - public secp256k1: Uint8Array; + /** Properties of a DecCoin. */ + interface IDecCoin { - /** PublicKey ed25519. */ - public ed25519: Uint8Array; + /** DecCoin denom */ + denom?: (string|null); - /** PublicKey sr25519. */ - public sr25519: Uint8Array; + /** DecCoin amount */ + amount?: (string|null); + } - /** PublicKey multisig. */ - public multisig?: (cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null); + /** Represents a DecCoin. */ + class DecCoin implements IDecCoin { - /** PublicKey secp256r1. */ - public secp256r1: Uint8Array; + /** + * Constructs a new DecCoin. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.v1.IDecCoin); - /** PublicKey anyPubkey. */ - public anyPubkey?: (google.protobuf.IAny|null); + /** DecCoin denom. */ + public denom: string; - /** PublicKey sum. */ - public sum?: ("secp256k1"|"ed25519"|"sr25519"|"multisig"|"secp256r1"|"anyPubkey"); + /** DecCoin amount. */ + public amount: string; - /** - * 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; + /** + * 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 PublicKey message. Does not implicitly {@link cosmos_sdk.crypto.v1.PublicKey.verify|verify} messages. - * @param m PublicKey message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.crypto.v1.IPublicKey, w?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos_sdk.v1.DecCoin.verify|verify} messages. + * @param m DecCoin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a PublicKey message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.PublicKey; - } + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.DecCoin; + } - /** Properties of a PubKeyMultisigThreshold. */ - interface IPubKeyMultisigThreshold { + /** Properties of an IntProto. */ + interface IIntProto { - /** PubKeyMultisigThreshold threshold */ - threshold?: (number|null); + /** IntProto int */ + int?: (string|null); + } - /** PubKeyMultisigThreshold publicKeys */ - publicKeys?: (cosmos_sdk.crypto.v1.IPublicKey[]|null); - } + /** Represents an IntProto. */ + class IntProto implements IIntProto { - /** Represents a PubKeyMultisigThreshold. */ - class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { + /** + * Constructs a new IntProto. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.v1.IIntProto); - /** - * Constructs a new PubKeyMultisigThreshold. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold); + /** IntProto int. */ + public int: string; - /** PubKeyMultisigThreshold threshold. */ - public threshold: number; + /** + * 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; - /** PubKeyMultisigThreshold publicKeys. */ - public publicKeys: cosmos_sdk.crypto.v1.IPublicKey[]; + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos_sdk.v1.IntProto.verify|verify} messages. + * @param m IntProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Decodes an IntProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.IntProto; + } - /** - * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.verify|verify} messages. - * @param m PubKeyMultisigThreshold message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold, w?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DecProto. */ + interface IDecProto { - /** - * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.PubKeyMultisigThreshold; - } + /** DecProto dec */ + dec?: (string|null); + } - /** Properties of a MultiSignature. */ - interface IMultiSignature { + /** Represents a DecProto. */ + class DecProto implements IDecProto { - /** MultiSignature signatures */ - signatures?: (Uint8Array[]|null); - } + /** + * Constructs a new DecProto. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.v1.IDecProto); - /** Represents a MultiSignature. */ - class MultiSignature implements IMultiSignature { + /** DecProto dec. */ + public dec: string; - /** - * Constructs a new MultiSignature. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.crypto.v1.IMultiSignature); + /** + * 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; - /** MultiSignature signatures. */ - public signatures: Uint8Array[]; + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos_sdk.v1.DecProto.verify|verify} messages. + * @param m DecProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Decodes a DecProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.DecProto; + } - /** - * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos_sdk.crypto.v1.MultiSignature.verify|verify} messages. - * @param m MultiSignature message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.crypto.v1.IMultiSignature, w?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a ValAddresses. */ + interface IValAddresses { - /** - * Decodes a MultiSignature message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.MultiSignature; - } + /** ValAddresses addresses */ + addresses?: (Uint8Array[]|null); + } - /** Properties of a CompactBitArray. */ - interface ICompactBitArray { + /** Represents a ValAddresses. */ + class ValAddresses implements IValAddresses { - /** CompactBitArray extraBitsStored */ - extraBitsStored?: (number|null); + /** + * Constructs a new ValAddresses. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.v1.IValAddresses); - /** CompactBitArray elems */ - elems?: (Uint8Array|null); - } + /** ValAddresses addresses. */ + public addresses: Uint8Array[]; - /** Represents a CompactBitArray. */ - class CompactBitArray implements ICompactBitArray { + /** + * 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; - /** - * Constructs a new CompactBitArray. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.crypto.v1.ICompactBitArray); + /** + * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos_sdk.v1.ValAddresses.verify|verify} messages. + * @param m ValAddresses message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IValAddresses, w?: $protobuf.Writer): $protobuf.Writer; - /** CompactBitArray extraBitsStored. */ - public extraBitsStored: number; + /** + * Decodes a ValAddresses message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.ValAddresses; + } - /** CompactBitArray elems. */ - public elems: Uint8Array; + /** Properties of a GasInfo. */ + interface IGasInfo { - /** - * 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; + /** GasInfo gasWanted */ + gasWanted?: (number|Long|null); - /** - * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos_sdk.crypto.v1.CompactBitArray.verify|verify} messages. - * @param m CompactBitArray message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.crypto.v1.ICompactBitArray, w?: $protobuf.Writer): $protobuf.Writer; + /** GasInfo gasUsed */ + gasUsed?: (number|Long|null); + } - /** - * Decodes a CompactBitArray message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.CompactBitArray; - } + /** Represents a GasInfo. */ + class GasInfo implements IGasInfo { + + /** + * Constructs a new GasInfo. + * @param [p] Properties to set + */ + constructor(p?: 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 m GasInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IGasInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GasInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.GasInfo; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Result message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IResult, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.Result; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m SimulationResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.ISimulationResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.SimulationResponse; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MsgData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IMsgData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.MsgData; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m TxData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.ITxData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.TxData; } } /** Namespace tx. */ namespace tx { - /** Namespace signing. */ - namespace signing { - - /** Namespace v1. */ - namespace v1 { - - /** SignMode enum. */ - enum SignMode { - SIGN_MODE_UNSPECIFIED = 0, - SIGN_MODE_DIRECT = 1, - SIGN_MODE_TEXTUAL = 2, - SIGN_MODE_LEGACY_AMINO_JSON = 127 - } - } - } - /** Namespace v1. */ namespace v1 { @@ -1255,6966 +1272,253 @@ export namespace cosmos_sdk { public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.tx.v1.Fee; } } - } - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Coin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.ICoin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Coin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.Coin; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DecCoin message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecCoin message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.DecCoin; - } - - /** Properties of an IntProto. */ - interface IIntProto { - - /** IntProto int */ - int?: (string|null); - } - - /** Represents an IntProto. */ - class IntProto implements IIntProto { - - /** - * Constructs a new IntProto. - * @param [p] Properties to set - */ - constructor(p?: 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 m IntProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.IntProto; - } - - /** Properties of a DecProto. */ - interface IDecProto { - - /** DecProto dec */ - dec?: (string|null); - } - - /** Represents a DecProto. */ - class DecProto implements IDecProto { - - /** - * Constructs a new DecProto. - * @param [p] Properties to set - */ - constructor(p?: 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 m DecProto message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecProto message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.DecProto; - } - - /** Properties of a ValAddresses. */ - interface IValAddresses { - - /** ValAddresses addresses */ - addresses?: (Uint8Array[]|null); - } - - /** Represents a ValAddresses. */ - class ValAddresses implements IValAddresses { - - /** - * Constructs a new ValAddresses. - * @param [p] Properties to set - */ - constructor(p?: 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 m ValAddresses message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IValAddresses, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValAddresses message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.ValAddresses; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m GasInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IGasInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GasInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.GasInfo; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Result message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IResult, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Result message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.Result; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m SimulationResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.ISimulationResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SimulationResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.SimulationResponse; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgData message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.IMsgData, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgData message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.MsgData; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m TxData message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.v1.ITxData, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TxData message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.v1.TxData; - } - } - - /** Namespace x. */ - namespace x { - - /** Namespace auth. */ - namespace auth { + /** Namespace signing. */ + namespace signing { /** 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 [p] Properties to set - */ - constructor(p?: 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 m BaseAccount message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.v1.IBaseAccount, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BaseAccount message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.v1.BaseAccount; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ModuleAccount message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.v1.IModuleAccount, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ModuleAccount message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.v1.ModuleAccount; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Params message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.v1.IParams, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Params message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.v1.Params; - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m BaseVestingAccount message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BaseVestingAccount message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ContinuousVestingAccount message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContinuousVestingAccount message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DelayedVestingAccount message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DelayedVestingAccount message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Period message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.vesting.v1.IPeriod, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Period message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.vesting.v1.Period; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m PeriodicVestingAccount message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PeriodicVestingAccount message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount; - } - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m QueryBalanceRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQueryBalanceRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryBalanceRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QueryBalanceRequest; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m QueryBalanceResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQueryBalanceResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryBalanceResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QueryBalanceResponse; - } - - /** Properties of a QueryAllBalancesRequest. */ - interface IQueryAllBalancesRequest { - - /** QueryAllBalancesRequest address */ - address?: (Uint8Array|null); - } - - /** Represents a QueryAllBalancesRequest. */ - class QueryAllBalancesRequest implements IQueryAllBalancesRequest { - - /** - * Constructs a new QueryAllBalancesRequest. - * @param [p] Properties to set - */ - constructor(p?: 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 m QueryAllBalancesRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryAllBalancesRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QueryAllBalancesRequest; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m QueryAllBalancesResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryAllBalancesResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QueryAllBalancesResponse; - } - - /** Properties of a QueryTotalSupplyRequest. */ - interface IQueryTotalSupplyRequest { - } - - /** Represents a QueryTotalSupplyRequest. */ - class QueryTotalSupplyRequest implements IQueryTotalSupplyRequest { - - /** - * Constructs a new QueryTotalSupplyRequest. - * @param [p] Properties to set - */ - constructor(p?: 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 m QueryTotalSupplyRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryTotalSupplyRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m QueryTotalSupplyResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryTotalSupplyResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse; - } - - /** Properties of a QuerySupplyOfRequest. */ - interface IQuerySupplyOfRequest { - - /** QuerySupplyOfRequest denom */ - denom?: (string|null); - } - - /** Represents a QuerySupplyOfRequest. */ - class QuerySupplyOfRequest implements IQuerySupplyOfRequest { - - /** - * Constructs a new QuerySupplyOfRequest. - * @param [p] Properties to set - */ - constructor(p?: 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 m QuerySupplyOfRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QuerySupplyOfRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QuerySupplyOfRequest; - } - - /** Properties of a QuerySupplyOfResponse. */ - interface IQuerySupplyOfResponse { - - /** QuerySupplyOfResponse amount */ - amount?: (string|null); - } - - /** Represents a QuerySupplyOfResponse. */ - class QuerySupplyOfResponse implements IQuerySupplyOfResponse { - - /** - * Constructs a new QuerySupplyOfResponse. - * @param [p] Properties to set - */ - constructor(p?: 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 m QuerySupplyOfResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QuerySupplyOfResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.QuerySupplyOfResponse; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgSend message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IMsgSend, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgSend message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.MsgSend; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Input message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IInput, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Input message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.Input; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Output message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IOutput, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Output message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.Output; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgMultiSend message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.IMsgMultiSend, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgMultiSend message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.MsgMultiSend; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Supply message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.bank.v1.ISupply, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Supply message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.bank.v1.Supply; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Capability message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.capability.v1.ICapability, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Capability message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.capability.v1.Capability; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Owner message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.capability.v1.IOwner, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Owner message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.capability.v1.Owner; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m CapabilityOwners message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.capability.v1.ICapabilityOwners, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CapabilityOwners message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.capability.v1.CapabilityOwners; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgVerifyInvariant message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgVerifyInvariant message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.crisis.v1.MsgVerifyInvariant; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgSetWithdrawAddress message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgSetWithdrawAddress message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgWithdrawDelegatorReward message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgWithdrawDelegatorReward message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward; - } - - /** Properties of a MsgWithdrawValidatorCommission. */ - interface IMsgWithdrawValidatorCommission { - - /** MsgWithdrawValidatorCommission validatorAddress */ - validatorAddress?: (Uint8Array|null); - } - - /** Represents a MsgWithdrawValidatorCommission. */ - class MsgWithdrawValidatorCommission implements IMsgWithdrawValidatorCommission { - - /** - * Constructs a new MsgWithdrawValidatorCommission. - * @param [p] Properties to set - */ - constructor(p?: 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 m MsgWithdrawValidatorCommission message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgWithdrawValidatorCommission message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgFundCommunityPool message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgFundCommunityPool message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.MsgFundCommunityPool; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Params message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IParams, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Params message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.Params; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorHistoricalRewards message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorHistoricalRewards message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorCurrentRewards message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorCurrentRewards message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorAccumulatedCommission message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorAccumulatedCommission message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorOutstandingRewards message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorOutstandingRewards message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorSlashEvent message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IValidatorSlashEvent, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorSlashEvent message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.ValidatorSlashEvent; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorSlashEvents message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IValidatorSlashEvents, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorSlashEvents message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.ValidatorSlashEvents; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m FeePool message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IFeePool, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeePool message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.FeePool; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m CommunityPoolSpendProposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommunityPoolSpendProposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DelegatorStartingInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DelegatorStartingInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.distribution.v1.DelegatorStartingInfo; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgSubmitEvidence message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgSubmitEvidence message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.evidence.v1.MsgSubmitEvidence; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Equivocation message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.evidence.v1.IEquivocation, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Equivocation message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.evidence.v1.Equivocation; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgSubmitProposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.IMsgSubmitProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgSubmitProposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.MsgSubmitProposal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgVote message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.IMsgVote, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgVote message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.MsgVote; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgDeposit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.IMsgDeposit, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgDeposit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.MsgDeposit; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m TextProposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.ITextProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TextProposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.TextProposal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Deposit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.IDeposit, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Deposit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.Deposit; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Proposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.IProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Proposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.Proposal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m TallyResult message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.ITallyResult, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TallyResult message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.TallyResult; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Vote message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.gov.v1.IVote, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Vote message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.gov.v1.Vote; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgTransfer message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.transfer.v1.IMsgTransfer, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgTransfer message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.transfer.v1.MsgTransfer; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m FungibleTokenPacketData message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.transfer.v1.FungibleTokenPacketData; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m FungibleTokenPacketAcknowledgement message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FungibleTokenPacketAcknowledgement message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgConnectionOpenInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit; - } - - /** 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?: (Uint8Array|null); - - /** MsgConnectionOpenTry proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgConnectionOpenTry proofConsensus */ - proofConsensus?: (Uint8Array|null); - - /** MsgConnectionOpenTry consensusHeight */ - consensusHeight?: (number|Long|null); - - /** MsgConnectionOpenTry signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgConnectionOpenTry. */ - class MsgConnectionOpenTry implements IMsgConnectionOpenTry { - - /** - * Constructs a new MsgConnectionOpenTry. - * @param [p] Properties to set - */ - constructor(p?: 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: Uint8Array; - - /** MsgConnectionOpenTry proofHeight. */ - public proofHeight: (number|Long); - - /** MsgConnectionOpenTry proofConsensus. */ - public proofConsensus: Uint8Array; - - /** 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 m MsgConnectionOpenTry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry; - } - - /** Properties of a MsgConnectionOpenAck. */ - interface IMsgConnectionOpenAck { - - /** MsgConnectionOpenAck connectionId */ - connectionId?: (string|null); - - /** MsgConnectionOpenAck version */ - version?: (string|null); - - /** MsgConnectionOpenAck proofTry */ - proofTry?: (Uint8Array|null); - - /** MsgConnectionOpenAck proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgConnectionOpenAck proofConsensus */ - proofConsensus?: (Uint8Array|null); - - /** MsgConnectionOpenAck consensusHeight */ - consensusHeight?: (number|Long|null); - - /** MsgConnectionOpenAck signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgConnectionOpenAck. */ - class MsgConnectionOpenAck implements IMsgConnectionOpenAck { - - /** - * Constructs a new MsgConnectionOpenAck. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck); - - /** MsgConnectionOpenAck connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenAck version. */ - public version: string; - - /** MsgConnectionOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgConnectionOpenAck proofHeight. */ - public proofHeight: (number|Long); - - /** MsgConnectionOpenAck proofConsensus. */ - public proofConsensus: Uint8Array; - - /** 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 m MsgConnectionOpenAck message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck; - } - - /** Properties of a MsgConnectionOpenConfirm. */ - interface IMsgConnectionOpenConfirm { - - /** MsgConnectionOpenConfirm connectionId */ - connectionId?: (string|null); - - /** MsgConnectionOpenConfirm proofAck */ - proofAck?: (Uint8Array|null); - - /** MsgConnectionOpenConfirm proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgConnectionOpenConfirm signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgConnectionOpenConfirm. */ - class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { - - /** - * Constructs a new MsgConnectionOpenConfirm. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm); - - /** MsgConnectionOpenConfirm connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** 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 m MsgConnectionOpenConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ConnectionEnd message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.IConnectionEnd, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConnectionEnd message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.ConnectionEnd; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Counterparty message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.ICounterparty, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Counterparty message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.Counterparty; - } - - /** Properties of a ClientPaths. */ - interface IClientPaths { - - /** ClientPaths paths */ - paths?: (string[]|null); - } - - /** Represents a ClientPaths. */ - class ClientPaths implements IClientPaths { - - /** - * Constructs a new ClientPaths. - * @param [p] Properties to set - */ - constructor(p?: 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 m ClientPaths message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.connection.v1.IClientPaths, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClientPaths message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.connection.v1.ClientPaths; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgChannelOpenInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit; - } - - /** 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?: (Uint8Array|null); - - /** MsgChannelOpenTry proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgChannelOpenTry signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgChannelOpenTry. */ - class MsgChannelOpenTry implements IMsgChannelOpenTry { - - /** - * Constructs a new MsgChannelOpenTry. - * @param [p] Properties to set - */ - constructor(p?: 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: Uint8Array; - - /** 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 m MsgChannelOpenTry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry; - } - - /** Properties of a MsgChannelOpenAck. */ - interface IMsgChannelOpenAck { - - /** MsgChannelOpenAck portId */ - portId?: (string|null); - - /** MsgChannelOpenAck channelId */ - channelId?: (string|null); - - /** MsgChannelOpenAck counterpartyVersion */ - counterpartyVersion?: (string|null); - - /** MsgChannelOpenAck proofTry */ - proofTry?: (Uint8Array|null); - - /** MsgChannelOpenAck proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgChannelOpenAck signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgChannelOpenAck. */ - class MsgChannelOpenAck implements IMsgChannelOpenAck { - - /** - * Constructs a new MsgChannelOpenAck. - * @param [p] Properties to set - */ - constructor(p?: 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: Uint8Array; - - /** 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 m MsgChannelOpenAck message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck; - } - - /** Properties of a MsgChannelOpenConfirm. */ - interface IMsgChannelOpenConfirm { - - /** MsgChannelOpenConfirm portId */ - portId?: (string|null); - - /** MsgChannelOpenConfirm channelId */ - channelId?: (string|null); - - /** MsgChannelOpenConfirm proofAck */ - proofAck?: (Uint8Array|null); - - /** MsgChannelOpenConfirm proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgChannelOpenConfirm signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgChannelOpenConfirm. */ - class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { - - /** - * Constructs a new MsgChannelOpenConfirm. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm); - - /** MsgChannelOpenConfirm portId. */ - public portId: string; - - /** MsgChannelOpenConfirm channelId. */ - public channelId: string; - - /** MsgChannelOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** 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 m MsgChannelOpenConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgChannelCloseInit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit; - } - - /** Properties of a MsgChannelCloseConfirm. */ - interface IMsgChannelCloseConfirm { - - /** MsgChannelCloseConfirm portId */ - portId?: (string|null); - - /** MsgChannelCloseConfirm channelId */ - channelId?: (string|null); - - /** MsgChannelCloseConfirm proofInit */ - proofInit?: (Uint8Array|null); - - /** MsgChannelCloseConfirm proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgChannelCloseConfirm signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgChannelCloseConfirm. */ - class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { - - /** - * Constructs a new MsgChannelCloseConfirm. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm); - - /** MsgChannelCloseConfirm portId. */ - public portId: string; - - /** MsgChannelCloseConfirm channelId. */ - public channelId: string; - - /** MsgChannelCloseConfirm proofInit. */ - public proofInit: Uint8Array; - - /** 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 m MsgChannelCloseConfirm message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm; - } - - /** Properties of a MsgPacket. */ - interface IMsgPacket { - - /** MsgPacket packet */ - packet?: (cosmos_sdk.x.ibc.channel.v1.IPacket|null); - - /** MsgPacket proof */ - proof?: (Uint8Array|null); - - /** MsgPacket proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgPacket signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgPacket. */ - class MsgPacket implements IMsgPacket { - - /** - * Constructs a new MsgPacket. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.x.ibc.channel.v1.IMsgPacket); - - /** MsgPacket packet. */ - public packet?: (cosmos_sdk.x.ibc.channel.v1.IPacket|null); - - /** MsgPacket proof. */ - public proof: Uint8Array; - - /** 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 m MsgPacket message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgPacket, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgPacket message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgPacket; - } - - /** Properties of a MsgTimeout. */ - interface IMsgTimeout { - - /** MsgTimeout packet */ - packet?: (cosmos_sdk.x.ibc.channel.v1.IPacket|null); - - /** MsgTimeout proof */ - proof?: (Uint8Array|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 [p] Properties to set - */ - constructor(p?: cosmos_sdk.x.ibc.channel.v1.IMsgTimeout); - - /** MsgTimeout packet. */ - public packet?: (cosmos_sdk.x.ibc.channel.v1.IPacket|null); - - /** MsgTimeout proof. */ - public proof: Uint8Array; - - /** 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 m MsgTimeout message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgTimeout, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgTimeout message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgTimeout; - } - - /** 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?: (Uint8Array|null); - - /** MsgAcknowledgement proofHeight */ - proofHeight?: (number|Long|null); - - /** MsgAcknowledgement signer */ - signer?: (Uint8Array|null); - } - - /** Represents a MsgAcknowledgement. */ - class MsgAcknowledgement implements IMsgAcknowledgement { - - /** - * Constructs a new MsgAcknowledgement. - * @param [p] Properties to set - */ - constructor(p?: 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: Uint8Array; - - /** 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 m MsgAcknowledgement message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Channel message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IChannel, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Channel message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.Channel; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Counterparty message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.ICounterparty, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Counterparty message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.Counterparty; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Packet message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.channel.v1.IPacket, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Packet message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.channel.v1.Packet; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MerkleRoot message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MerkleRoot message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.commitment.v1.MerkleRoot; - } - - /** Properties of a MerklePrefix. */ - interface IMerklePrefix { - - /** MerklePrefix keyPrefix */ - keyPrefix?: (Uint8Array|null); - } - - /** Represents a MerklePrefix. */ - class MerklePrefix implements IMerklePrefix { - - /** - * Constructs a new MerklePrefix. - * @param [p] Properties to set - */ - constructor(p?: 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 m MerklePrefix message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MerklePrefix message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.commitment.v1.MerklePrefix; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MerklePath message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.commitment.v1.IMerklePath, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MerklePath message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.commitment.v1.MerklePath; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MerkleProof message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.commitment.v1.IMerkleProof, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MerkleProof message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.commitment.v1.MerkleProof; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m KeyPath message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.commitment.v1.IKeyPath, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyPath message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.commitment.v1.KeyPath; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Key message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.ibc.commitment.v1.IKey, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Key message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.ibc.commitment.v1.Key; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Minter message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.mint.v1.IMinter, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Minter message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.mint.v1.Minter; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Params message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.mint.v1.IParams, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Params message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.mint.v1.Params; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ParameterChangeProposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.params.v1.IParameterChangeProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParameterChangeProposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.params.v1.ParameterChangeProposal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ParamChange message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.params.v1.IParamChange, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParamChange message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.params.v1.ParamChange; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgUnjail message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.slashing.v1.IMsgUnjail, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgUnjail message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.slashing.v1.MsgUnjail; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m ValidatorSigningInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.slashing.v1.IValidatorSigningInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidatorSigningInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.slashing.v1.ValidatorSigningInfo; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgCreateValidator message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IMsgCreateValidator, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgCreateValidator message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.MsgCreateValidator; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgEditValidator message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IMsgEditValidator, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgEditValidator message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.MsgEditValidator; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgDelegate message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IMsgDelegate, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgDelegate message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.MsgDelegate; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgBeginRedelegate message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IMsgBeginRedelegate, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgBeginRedelegate message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.MsgBeginRedelegate; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m MsgUndelegate message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IMsgUndelegate, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgUndelegate message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.MsgUndelegate; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m HistoricalInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IHistoricalInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HistoricalInfo message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.HistoricalInfo; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m CommissionRates message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.ICommissionRates, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommissionRates message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.CommissionRates; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Commission message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.ICommission, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Commission message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.Commission; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Description message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IDescription, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Description message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.Description; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Validator message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IValidator, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Validator message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.Validator; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DVPair message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IDVPair, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DVPair message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.DVPair; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DVPairs message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IDVPairs, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DVPairs message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.DVPairs; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DVVTriplet message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IDVVTriplet, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DVVTriplet message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.DVVTriplet; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m DVVTriplets message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IDVVTriplets, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DVVTriplets message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.DVVTriplets; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Delegation message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IDelegation, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Delegation message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.Delegation; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m UnbondingDelegation message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IUnbondingDelegation, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnbondingDelegation message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.UnbondingDelegation; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m UnbondingDelegationEntry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnbondingDelegationEntry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.UnbondingDelegationEntry; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m RedelegationEntry message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IRedelegationEntry, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedelegationEntry message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.RedelegationEntry; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Redelegation message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IRedelegation, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Redelegation message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.Redelegation; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Params message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.staking.v1.IParams, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Params message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.staking.v1.Params; - } - } - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m Plan message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.upgrade.v1.IPlan, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Plan message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.upgrade.v1.Plan; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m SoftwareUpgradeProposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal; - } - - /** 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 [p] Properties to set - */ - constructor(p?: 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 m CancelSoftwareUpgradeProposal message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal; + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127 } } } } - /** Namespace ibc. */ - namespace ibc { + /** Namespace crypto. */ + namespace crypto { - /** Namespace localhost. */ - namespace localhost { + /** Namespace v1. */ + namespace v1 { - /** Namespace v1. */ - namespace v1 { + /** Properties of a PublicKey. */ + interface IPublicKey { - /** Properties of a MsgCreateClient. */ - interface IMsgCreateClient { + /** PublicKey secp256k1 */ + secp256k1?: (Uint8Array|null); - /** MsgCreateClient signer */ - signer?: (Uint8Array|null); - } + /** PublicKey ed25519 */ + ed25519?: (Uint8Array|null); - /** Represents a MsgCreateClient. */ - class MsgCreateClient implements IMsgCreateClient { + /** PublicKey sr25519 */ + sr25519?: (Uint8Array|null); - /** - * Constructs a new MsgCreateClient. - * @param [p] Properties to set - */ - constructor(p?: cosmos_sdk.ibc.localhost.v1.IMsgCreateClient); + /** PublicKey multisig */ + multisig?: (cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null); - /** MsgCreateClient signer. */ - public signer: Uint8Array; + /** PublicKey secp256r1 */ + secp256r1?: (Uint8Array|null); - /** - * 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; + /** PublicKey anyPubkey */ + anyPubkey?: (google.protobuf.IAny|null); + } - /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link cosmos_sdk.ibc.localhost.v1.MsgCreateClient.verify|verify} messages. - * @param m MsgCreateClient message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos_sdk.ibc.localhost.v1.IMsgCreateClient, w?: $protobuf.Writer): $protobuf.Writer; + /** Represents a PublicKey. */ + class PublicKey implements IPublicKey { - /** - * Decodes a MsgCreateClient message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.ibc.localhost.v1.MsgCreateClient; - } + /** + * Constructs a new PublicKey. + * @param [p] Properties to set + */ + constructor(p?: 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 m PublicKey message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.crypto.v1.IPublicKey, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicKey message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.PublicKey; + } + + /** Properties of a PubKeyMultisigThreshold. */ + interface IPubKeyMultisigThreshold { + + /** PubKeyMultisigThreshold threshold */ + threshold?: (number|null); + + /** PubKeyMultisigThreshold publicKeys */ + publicKeys?: (cosmos_sdk.crypto.v1.IPublicKey[]|null); + } + + /** Represents a PubKeyMultisigThreshold. */ + class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { + + /** + * Constructs a new PubKeyMultisigThreshold. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold); + + /** PubKeyMultisigThreshold threshold. */ + public threshold: number; + + /** PubKeyMultisigThreshold publicKeys. */ + public publicKeys: 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 m PubKeyMultisigThreshold message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.PubKeyMultisigThreshold; + } + + /** Properties of a MultiSignature. */ + interface IMultiSignature { + + /** MultiSignature signatures */ + signatures?: (Uint8Array[]|null); + } + + /** Represents a MultiSignature. */ + class MultiSignature implements IMultiSignature { + + /** + * Constructs a new MultiSignature. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.crypto.v1.IMultiSignature); + + /** MultiSignature signatures. */ + public signatures: 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 m MultiSignature message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.crypto.v1.IMultiSignature, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiSignature message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.MultiSignature; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m CompactBitArray message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.crypto.v1.ICompactBitArray, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompactBitArray message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): cosmos_sdk.crypto.v1.CompactBitArray; } } } @@ -11134,201 +4438,6 @@ export namespace google { public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): google.protobuf.Any; } - /** Properties of a FileOptions. */ - interface IFileOptions { - } - - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { - - /** - * Constructs a new FileOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFileOptions); - - /** - * 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 m FileOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFileOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): google.protobuf.FileOptions; - } - - /** Properties of a MessageOptions. */ - interface IMessageOptions { - } - - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { - - /** - * Constructs a new MessageOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IMessageOptions); - - /** - * 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 m MessageOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IMessageOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): google.protobuf.MessageOptions; - } - - /** Properties of a FieldOptions. */ - interface IFieldOptions { - } - - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { - - /** - * Constructs a new FieldOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IFieldOptions); - - /** - * 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 m FieldOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IFieldOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): google.protobuf.FieldOptions; - } - - /** Properties of an EnumOptions. */ - interface IEnumOptions { - } - - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { - - /** - * Constructs a new EnumOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumOptions); - - /** - * 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 m EnumOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): google.protobuf.EnumOptions; - } - - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { - } - - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { - - /** - * Constructs a new EnumValueOptions. - * @param [p] Properties to set - */ - constructor(p?: google.protobuf.IEnumValueOptions); - - /** - * 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 m EnumValueOptions message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: google.protobuf.IEnumValueOptions, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] 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(r: ($protobuf.Reader|Uint8Array), l?: number): google.protobuf.EnumValueOptions; - } - /** Properties of a Timestamp. */ interface ITimestamp { diff --git a/packages/demo-protobuf/src/generated/codecimpl.js b/packages/demo-protobuf/src/generated/codecimpl.js index 3c767e1e..99911965 100644 --- a/packages/demo-protobuf/src/generated/codecimpl.js +++ b/packages/demo-protobuf/src/generated/codecimpl.js @@ -18,1526 +18,1660 @@ $root.cosmos_sdk = (function() { */ var cosmos_sdk = {}; - cosmos_sdk.codec = (function() { + cosmos_sdk.x = (function() { /** - * Namespace codec. + * Namespace x. * @memberof cosmos_sdk * @namespace */ - var codec = {}; + var x = {}; - codec.v1 = (function() { + x.bank = (function() { /** - * Namespace v1. - * @memberof cosmos_sdk.codec + * Namespace bank. + * @memberof cosmos_sdk.x * @namespace */ - var v1 = {}; + var bank = {}; - v1.Dog = (function() { + bank.v1 = (function() { /** - * Properties of a Dog. - * @memberof cosmos_sdk.codec.v1 - * @interface IDog - * @property {string|null} [size] Dog size - * @property {string|null} [name] Dog name + * Namespace v1. + * @memberof cosmos_sdk.x.bank + * @namespace */ + var v1 = {}; - /** - * Constructs a new Dog. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a Dog. - * @implements IDog - * @constructor - * @param {cosmos_sdk.codec.v1.IDog=} [p] Properties to set - */ - function Dog(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } + v1.MsgSend = (function() { - /** - * Dog size. - * @member {string} size - * @memberof cosmos_sdk.codec.v1.Dog - * @instance - */ - Dog.prototype.size = ""; + /** + * Properties of a MsgSend. + * @memberof cosmos_sdk.x.bank.v1 + * @interface IMsgSend + * @property {Uint8Array|null} [fromAddress] MsgSend fromAddress + * @property {Uint8Array|null} [toAddress] MsgSend toAddress + * @property {Array.|null} [amount] MsgSend amount + */ - /** - * Dog name. - * @member {string} name - * @memberof cosmos_sdk.codec.v1.Dog - * @instance - */ - Dog.prototype.name = ""; - - /** - * Creates a new Dog instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.Dog - * @static - * @param {cosmos_sdk.codec.v1.IDog=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.Dog} Dog instance - */ - Dog.create = function create(properties) { - return new Dog(properties); - }; - - /** - * Encodes the specified Dog message. Does not implicitly {@link cosmos_sdk.codec.v1.Dog.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.Dog - * @static - * @param {cosmos_sdk.codec.v1.IDog} m Dog message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Dog.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.size != null && Object.hasOwnProperty.call(m, "size")) - w.uint32(10).string(m.size); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) - w.uint32(18).string(m.name); - return w; - }; - - /** - * Decodes a Dog message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.Dog - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.Dog} Dog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Dog.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.Dog(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.size = r.string(); - break; - case 2: - m.name = r.string(); - break; - default: - r.skipType(t & 7); - break; - } + /** + * Constructs a new MsgSend. + * @memberof cosmos_sdk.x.bank.v1 + * @classdesc Represents a MsgSend. + * @implements IMsgSend + * @constructor + * @param {cosmos_sdk.x.bank.v1.IMsgSend=} [p] Properties to set + */ + function MsgSend(p) { + this.amount = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return Dog; - })(); + /** + * MsgSend fromAddress. + * @member {Uint8Array} fromAddress + * @memberof cosmos_sdk.x.bank.v1.MsgSend + * @instance + */ + MsgSend.prototype.fromAddress = $util.newBuffer([]); - v1.Cat = (function() { + /** + * MsgSend toAddress. + * @member {Uint8Array} toAddress + * @memberof cosmos_sdk.x.bank.v1.MsgSend + * @instance + */ + MsgSend.prototype.toAddress = $util.newBuffer([]); - /** - * Properties of a Cat. - * @memberof cosmos_sdk.codec.v1 - * @interface ICat - * @property {string|null} [moniker] Cat moniker - * @property {number|null} [lives] Cat lives - */ + /** + * MsgSend amount. + * @member {Array.} amount + * @memberof cosmos_sdk.x.bank.v1.MsgSend + * @instance + */ + MsgSend.prototype.amount = $util.emptyArray; - /** - * Constructs a new Cat. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a Cat. - * @implements ICat - * @constructor - * @param {cosmos_sdk.codec.v1.ICat=} [p] Properties to set - */ - function Cat(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } + /** + * Creates a new MsgSend instance using the specified properties. + * @function create + * @memberof cosmos_sdk.x.bank.v1.MsgSend + * @static + * @param {cosmos_sdk.x.bank.v1.IMsgSend=} [properties] Properties to set + * @returns {cosmos_sdk.x.bank.v1.MsgSend} MsgSend instance + */ + MsgSend.create = function create(properties) { + return new MsgSend(properties); + }; - /** - * Cat moniker. - * @member {string} moniker - * @memberof cosmos_sdk.codec.v1.Cat - * @instance - */ - Cat.prototype.moniker = ""; - - /** - * Cat lives. - * @member {number} lives - * @memberof cosmos_sdk.codec.v1.Cat - * @instance - */ - Cat.prototype.lives = 0; - - /** - * Creates a new Cat instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.Cat - * @static - * @param {cosmos_sdk.codec.v1.ICat=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.Cat} Cat instance - */ - Cat.create = function create(properties) { - return new Cat(properties); - }; - - /** - * Encodes the specified Cat message. Does not implicitly {@link cosmos_sdk.codec.v1.Cat.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.Cat - * @static - * @param {cosmos_sdk.codec.v1.ICat} m Cat message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Cat.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.moniker != null && Object.hasOwnProperty.call(m, "moniker")) - w.uint32(10).string(m.moniker); - if (m.lives != null && Object.hasOwnProperty.call(m, "lives")) - w.uint32(16).int32(m.lives); - return w; - }; - - /** - * Decodes a Cat message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.Cat - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.Cat} Cat - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Cat.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.Cat(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.moniker = r.string(); - break; - case 2: - m.lives = r.int32(); - break; - default: - r.skipType(t & 7); - break; + /** + * Encodes the specified MsgSend message. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgSend.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.x.bank.v1.MsgSend + * @static + * @param {cosmos_sdk.x.bank.v1.IMsgSend} m MsgSend message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSend.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.fromAddress != null && Object.hasOwnProperty.call(m, "fromAddress")) + w.uint32(10).bytes(m.fromAddress); + if (m.toAddress != null && Object.hasOwnProperty.call(m, "toAddress")) + w.uint32(18).bytes(m.toAddress); + if (m.amount != null && m.amount.length) { + for (var i = 0; i < m.amount.length; ++i) + $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); } - } - return m; - }; + return w; + }; - return Cat; - })(); - - v1.HasAnimal = (function() { - - /** - * Properties of a HasAnimal. - * @memberof cosmos_sdk.codec.v1 - * @interface IHasAnimal - * @property {google.protobuf.IAny|null} [animal] HasAnimal animal - * @property {number|Long|null} [x] HasAnimal x - */ - - /** - * Constructs a new HasAnimal. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a HasAnimal. - * @implements IHasAnimal - * @constructor - * @param {cosmos_sdk.codec.v1.IHasAnimal=} [p] Properties to set - */ - function HasAnimal(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * HasAnimal animal. - * @member {google.protobuf.IAny|null|undefined} animal - * @memberof cosmos_sdk.codec.v1.HasAnimal - * @instance - */ - HasAnimal.prototype.animal = null; - - /** - * HasAnimal x. - * @member {number|Long} x - * @memberof cosmos_sdk.codec.v1.HasAnimal - * @instance - */ - HasAnimal.prototype.x = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new HasAnimal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.HasAnimal - * @static - * @param {cosmos_sdk.codec.v1.IHasAnimal=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.HasAnimal} HasAnimal instance - */ - HasAnimal.create = function create(properties) { - return new HasAnimal(properties); - }; - - /** - * Encodes the specified HasAnimal message. Does not implicitly {@link cosmos_sdk.codec.v1.HasAnimal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.HasAnimal - * @static - * @param {cosmos_sdk.codec.v1.IHasAnimal} m HasAnimal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HasAnimal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.animal != null && Object.hasOwnProperty.call(m, "animal")) - $root.google.protobuf.Any.encode(m.animal, w.uint32(10).fork()).ldelim(); - if (m.x != null && Object.hasOwnProperty.call(m, "x")) - w.uint32(16).int64(m.x); - return w; - }; - - /** - * Decodes a HasAnimal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.HasAnimal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.HasAnimal} HasAnimal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HasAnimal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.HasAnimal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.animal = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 2: - m.x = r.int64(); - break; - default: - r.skipType(t & 7); - break; + /** + * Decodes a MsgSend message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.x.bank.v1.MsgSend + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.x.bank.v1.MsgSend} MsgSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSend.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.MsgSend(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.fromAddress = r.bytes(); + break; + case 2: + m.toAddress = r.bytes(); + break; + case 3: + if (!(m.amount && m.amount.length)) + m.amount = []; + m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + + return MsgSend; + })(); + + v1.Input = (function() { + + /** + * Properties of an Input. + * @memberof cosmos_sdk.x.bank.v1 + * @interface IInput + * @property {Uint8Array|null} [address] Input address + * @property {Array.|null} [coins] Input coins + */ + + /** + * Constructs a new Input. + * @memberof cosmos_sdk.x.bank.v1 + * @classdesc Represents an Input. + * @implements IInput + * @constructor + * @param {cosmos_sdk.x.bank.v1.IInput=} [p] Properties to set + */ + function Input(p) { + this.coins = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return HasAnimal; - })(); + /** + * Input address. + * @member {Uint8Array} address + * @memberof cosmos_sdk.x.bank.v1.Input + * @instance + */ + Input.prototype.address = $util.newBuffer([]); - v1.HasHasAnimal = (function() { + /** + * Input coins. + * @member {Array.} coins + * @memberof cosmos_sdk.x.bank.v1.Input + * @instance + */ + Input.prototype.coins = $util.emptyArray; - /** - * Properties of a HasHasAnimal. - * @memberof cosmos_sdk.codec.v1 - * @interface IHasHasAnimal - * @property {google.protobuf.IAny|null} [hasAnimal] HasHasAnimal hasAnimal - */ + /** + * Creates a new Input instance using the specified properties. + * @function create + * @memberof cosmos_sdk.x.bank.v1.Input + * @static + * @param {cosmos_sdk.x.bank.v1.IInput=} [properties] Properties to set + * @returns {cosmos_sdk.x.bank.v1.Input} Input instance + */ + Input.create = function create(properties) { + return new Input(properties); + }; - /** - * Constructs a new HasHasAnimal. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a HasHasAnimal. - * @implements IHasHasAnimal - * @constructor - * @param {cosmos_sdk.codec.v1.IHasHasAnimal=} [p] Properties to set - */ - function HasHasAnimal(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * HasHasAnimal hasAnimal. - * @member {google.protobuf.IAny|null|undefined} hasAnimal - * @memberof cosmos_sdk.codec.v1.HasHasAnimal - * @instance - */ - HasHasAnimal.prototype.hasAnimal = null; - - /** - * Creates a new HasHasAnimal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.HasHasAnimal - * @static - * @param {cosmos_sdk.codec.v1.IHasHasAnimal=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.HasHasAnimal} HasHasAnimal instance - */ - HasHasAnimal.create = function create(properties) { - return new HasHasAnimal(properties); - }; - - /** - * Encodes the specified HasHasAnimal message. Does not implicitly {@link cosmos_sdk.codec.v1.HasHasAnimal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.HasHasAnimal - * @static - * @param {cosmos_sdk.codec.v1.IHasHasAnimal} m HasHasAnimal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HasHasAnimal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.hasAnimal != null && Object.hasOwnProperty.call(m, "hasAnimal")) - $root.google.protobuf.Any.encode(m.hasAnimal, w.uint32(10).fork()).ldelim(); - return w; - }; - - /** - * Decodes a HasHasAnimal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.HasHasAnimal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.HasHasAnimal} HasHasAnimal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HasHasAnimal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.HasHasAnimal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.hasAnimal = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + /** + * Encodes the specified Input message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Input.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.x.bank.v1.Input + * @static + * @param {cosmos_sdk.x.bank.v1.IInput} m Input message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Input.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) + w.uint32(10).bytes(m.address); + if (m.coins != null && m.coins.length) { + for (var i = 0; i < m.coins.length; ++i) + $root.cosmos_sdk.v1.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); } - } - return m; - }; + return w; + }; - return HasHasAnimal; - })(); - - v1.HasHasHasAnimal = (function() { - - /** - * Properties of a HasHasHasAnimal. - * @memberof cosmos_sdk.codec.v1 - * @interface IHasHasHasAnimal - * @property {google.protobuf.IAny|null} [hasHasAnimal] HasHasHasAnimal hasHasAnimal - */ - - /** - * Constructs a new HasHasHasAnimal. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a HasHasHasAnimal. - * @implements IHasHasHasAnimal - * @constructor - * @param {cosmos_sdk.codec.v1.IHasHasHasAnimal=} [p] Properties to set - */ - function HasHasHasAnimal(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * HasHasHasAnimal hasHasAnimal. - * @member {google.protobuf.IAny|null|undefined} hasHasAnimal - * @memberof cosmos_sdk.codec.v1.HasHasHasAnimal - * @instance - */ - HasHasHasAnimal.prototype.hasHasAnimal = null; - - /** - * Creates a new HasHasHasAnimal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.HasHasHasAnimal - * @static - * @param {cosmos_sdk.codec.v1.IHasHasHasAnimal=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.HasHasHasAnimal} HasHasHasAnimal instance - */ - HasHasHasAnimal.create = function create(properties) { - return new HasHasHasAnimal(properties); - }; - - /** - * Encodes the specified HasHasHasAnimal message. Does not implicitly {@link cosmos_sdk.codec.v1.HasHasHasAnimal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.HasHasHasAnimal - * @static - * @param {cosmos_sdk.codec.v1.IHasHasHasAnimal} m HasHasHasAnimal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HasHasHasAnimal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.hasHasAnimal != null && Object.hasOwnProperty.call(m, "hasHasAnimal")) - $root.google.protobuf.Any.encode(m.hasHasAnimal, w.uint32(10).fork()).ldelim(); - return w; - }; - - /** - * Decodes a HasHasHasAnimal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.HasHasHasAnimal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.HasHasHasAnimal} HasHasHasAnimal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HasHasHasAnimal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.HasHasHasAnimal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.hasHasAnimal = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + /** + * Decodes an Input message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.x.bank.v1.Input + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.x.bank.v1.Input} Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Input.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.Input(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + if (!(m.coins && m.coins.length)) + m.coins = []; + m.coins.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + + return Input; + })(); + + v1.Output = (function() { + + /** + * Properties of an Output. + * @memberof cosmos_sdk.x.bank.v1 + * @interface IOutput + * @property {Uint8Array|null} [address] Output address + * @property {Array.|null} [coins] Output coins + */ + + /** + * Constructs a new Output. + * @memberof cosmos_sdk.x.bank.v1 + * @classdesc Represents an Output. + * @implements IOutput + * @constructor + * @param {cosmos_sdk.x.bank.v1.IOutput=} [p] Properties to set + */ + function Output(p) { + this.coins = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return HasHasHasAnimal; - })(); + /** + * Output address. + * @member {Uint8Array} address + * @memberof cosmos_sdk.x.bank.v1.Output + * @instance + */ + Output.prototype.address = $util.newBuffer([]); - v1.TestService = (function() { + /** + * Output coins. + * @member {Array.} coins + * @memberof cosmos_sdk.x.bank.v1.Output + * @instance + */ + Output.prototype.coins = $util.emptyArray; - /** - * Constructs a new TestService service. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a TestService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function TestService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Creates a new Output instance using the specified properties. + * @function create + * @memberof cosmos_sdk.x.bank.v1.Output + * @static + * @param {cosmos_sdk.x.bank.v1.IOutput=} [properties] Properties to set + * @returns {cosmos_sdk.x.bank.v1.Output} Output instance + */ + Output.create = function create(properties) { + return new Output(properties); + }; - (TestService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestService; - - /** - * Creates new TestService service using the specified rpc implementation. - * @function create - * @memberof cosmos_sdk.codec.v1.TestService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {TestService} RPC service. Useful where requests and/or responses are streamed. - */ - TestService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link cosmos_sdk.codec.v1.TestService#echo}. - * @memberof cosmos_sdk.codec.v1.TestService - * @typedef EchoCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {cosmos_sdk.codec.v1.EchoResponse} [response] EchoResponse - */ - - /** - * Calls Echo. - * @function echo - * @memberof cosmos_sdk.codec.v1.TestService - * @instance - * @param {cosmos_sdk.codec.v1.IEchoRequest} request EchoRequest message or plain object - * @param {cosmos_sdk.codec.v1.TestService.EchoCallback} callback Node-style callback called with the error, if any, and EchoResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestService.prototype.echo = function echo(request, callback) { - return this.rpcCall(echo, $root.cosmos_sdk.codec.v1.EchoRequest, $root.cosmos_sdk.codec.v1.EchoResponse, request, callback); - }, "name", { value: "Echo" }); - - /** - * Calls Echo. - * @function echo - * @memberof cosmos_sdk.codec.v1.TestService - * @instance - * @param {cosmos_sdk.codec.v1.IEchoRequest} request EchoRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link cosmos_sdk.codec.v1.TestService#sayHello}. - * @memberof cosmos_sdk.codec.v1.TestService - * @typedef SayHelloCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {cosmos_sdk.codec.v1.SayHelloResponse} [response] SayHelloResponse - */ - - /** - * Calls SayHello. - * @function sayHello - * @memberof cosmos_sdk.codec.v1.TestService - * @instance - * @param {cosmos_sdk.codec.v1.ISayHelloRequest} request SayHelloRequest message or plain object - * @param {cosmos_sdk.codec.v1.TestService.SayHelloCallback} callback Node-style callback called with the error, if any, and SayHelloResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestService.prototype.sayHello = function sayHello(request, callback) { - return this.rpcCall(sayHello, $root.cosmos_sdk.codec.v1.SayHelloRequest, $root.cosmos_sdk.codec.v1.SayHelloResponse, request, callback); - }, "name", { value: "SayHello" }); - - /** - * Calls SayHello. - * @function sayHello - * @memberof cosmos_sdk.codec.v1.TestService - * @instance - * @param {cosmos_sdk.codec.v1.ISayHelloRequest} request SayHelloRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return TestService; - })(); - - v1.EchoRequest = (function() { - - /** - * Properties of an EchoRequest. - * @memberof cosmos_sdk.codec.v1 - * @interface IEchoRequest - * @property {string|null} [message] EchoRequest message - */ - - /** - * Constructs a new EchoRequest. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents an EchoRequest. - * @implements IEchoRequest - * @constructor - * @param {cosmos_sdk.codec.v1.IEchoRequest=} [p] Properties to set - */ - function EchoRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * EchoRequest message. - * @member {string} message - * @memberof cosmos_sdk.codec.v1.EchoRequest - * @instance - */ - EchoRequest.prototype.message = ""; - - /** - * Creates a new EchoRequest instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.EchoRequest - * @static - * @param {cosmos_sdk.codec.v1.IEchoRequest=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.EchoRequest} EchoRequest instance - */ - EchoRequest.create = function create(properties) { - return new EchoRequest(properties); - }; - - /** - * Encodes the specified EchoRequest message. Does not implicitly {@link cosmos_sdk.codec.v1.EchoRequest.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.EchoRequest - * @static - * @param {cosmos_sdk.codec.v1.IEchoRequest} m EchoRequest message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EchoRequest.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.message != null && Object.hasOwnProperty.call(m, "message")) - w.uint32(10).string(m.message); - return w; - }; - - /** - * Decodes an EchoRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.EchoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.EchoRequest} EchoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EchoRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.EchoRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.message = r.string(); - break; - default: - r.skipType(t & 7); - break; + /** + * Encodes the specified Output message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Output.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.x.bank.v1.Output + * @static + * @param {cosmos_sdk.x.bank.v1.IOutput} m Output message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Output.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) + w.uint32(10).bytes(m.address); + if (m.coins != null && m.coins.length) { + for (var i = 0; i < m.coins.length; ++i) + $root.cosmos_sdk.v1.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); } - } - return m; - }; + return w; + }; - return EchoRequest; - })(); - - v1.EchoResponse = (function() { - - /** - * Properties of an EchoResponse. - * @memberof cosmos_sdk.codec.v1 - * @interface IEchoResponse - * @property {string|null} [message] EchoResponse message - */ - - /** - * Constructs a new EchoResponse. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents an EchoResponse. - * @implements IEchoResponse - * @constructor - * @param {cosmos_sdk.codec.v1.IEchoResponse=} [p] Properties to set - */ - function EchoResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * EchoResponse message. - * @member {string} message - * @memberof cosmos_sdk.codec.v1.EchoResponse - * @instance - */ - EchoResponse.prototype.message = ""; - - /** - * Creates a new EchoResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.EchoResponse - * @static - * @param {cosmos_sdk.codec.v1.IEchoResponse=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.EchoResponse} EchoResponse instance - */ - EchoResponse.create = function create(properties) { - return new EchoResponse(properties); - }; - - /** - * Encodes the specified EchoResponse message. Does not implicitly {@link cosmos_sdk.codec.v1.EchoResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.EchoResponse - * @static - * @param {cosmos_sdk.codec.v1.IEchoResponse} m EchoResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EchoResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.message != null && Object.hasOwnProperty.call(m, "message")) - w.uint32(10).string(m.message); - return w; - }; - - /** - * Decodes an EchoResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.EchoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.EchoResponse} EchoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EchoResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.EchoResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.message = r.string(); - break; - default: - r.skipType(t & 7); - break; + /** + * Decodes an Output message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.x.bank.v1.Output + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.x.bank.v1.Output} Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Output.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.Output(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + if (!(m.coins && m.coins.length)) + m.coins = []; + m.coins.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + + return Output; + })(); + + v1.MsgMultiSend = (function() { + + /** + * Properties of a MsgMultiSend. + * @memberof cosmos_sdk.x.bank.v1 + * @interface IMsgMultiSend + * @property {Array.|null} [inputs] MsgMultiSend inputs + * @property {Array.|null} [outputs] MsgMultiSend outputs + */ + + /** + * Constructs a new MsgMultiSend. + * @memberof cosmos_sdk.x.bank.v1 + * @classdesc Represents a MsgMultiSend. + * @implements IMsgMultiSend + * @constructor + * @param {cosmos_sdk.x.bank.v1.IMsgMultiSend=} [p] Properties to set + */ + function MsgMultiSend(p) { + this.inputs = []; + this.outputs = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return EchoResponse; - })(); + /** + * MsgMultiSend inputs. + * @member {Array.} inputs + * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend + * @instance + */ + MsgMultiSend.prototype.inputs = $util.emptyArray; - v1.SayHelloRequest = (function() { + /** + * MsgMultiSend outputs. + * @member {Array.} outputs + * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend + * @instance + */ + MsgMultiSend.prototype.outputs = $util.emptyArray; - /** - * Properties of a SayHelloRequest. - * @memberof cosmos_sdk.codec.v1 - * @interface ISayHelloRequest - * @property {string|null} [name] SayHelloRequest name - */ + /** + * Creates a new MsgMultiSend instance using the specified properties. + * @function create + * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend + * @static + * @param {cosmos_sdk.x.bank.v1.IMsgMultiSend=} [properties] Properties to set + * @returns {cosmos_sdk.x.bank.v1.MsgMultiSend} MsgMultiSend instance + */ + MsgMultiSend.create = function create(properties) { + return new MsgMultiSend(properties); + }; - /** - * Constructs a new SayHelloRequest. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a SayHelloRequest. - * @implements ISayHelloRequest - * @constructor - * @param {cosmos_sdk.codec.v1.ISayHelloRequest=} [p] Properties to set - */ - function SayHelloRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * SayHelloRequest name. - * @member {string} name - * @memberof cosmos_sdk.codec.v1.SayHelloRequest - * @instance - */ - SayHelloRequest.prototype.name = ""; - - /** - * Creates a new SayHelloRequest instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.SayHelloRequest - * @static - * @param {cosmos_sdk.codec.v1.ISayHelloRequest=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.SayHelloRequest} SayHelloRequest instance - */ - SayHelloRequest.create = function create(properties) { - return new SayHelloRequest(properties); - }; - - /** - * Encodes the specified SayHelloRequest message. Does not implicitly {@link cosmos_sdk.codec.v1.SayHelloRequest.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.SayHelloRequest - * @static - * @param {cosmos_sdk.codec.v1.ISayHelloRequest} m SayHelloRequest message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SayHelloRequest.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) - w.uint32(10).string(m.name); - return w; - }; - - /** - * Decodes a SayHelloRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.SayHelloRequest - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.SayHelloRequest} SayHelloRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SayHelloRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.SayHelloRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - default: - r.skipType(t & 7); - break; + /** + * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgMultiSend.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend + * @static + * @param {cosmos_sdk.x.bank.v1.IMsgMultiSend} m MsgMultiSend message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgMultiSend.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.inputs != null && m.inputs.length) { + for (var i = 0; i < m.inputs.length; ++i) + $root.cosmos_sdk.x.bank.v1.Input.encode(m.inputs[i], w.uint32(10).fork()).ldelim(); } - } - return m; - }; - - return SayHelloRequest; - })(); - - v1.SayHelloResponse = (function() { - - /** - * Properties of a SayHelloResponse. - * @memberof cosmos_sdk.codec.v1 - * @interface ISayHelloResponse - * @property {string|null} [greeting] SayHelloResponse greeting - */ - - /** - * Constructs a new SayHelloResponse. - * @memberof cosmos_sdk.codec.v1 - * @classdesc Represents a SayHelloResponse. - * @implements ISayHelloResponse - * @constructor - * @param {cosmos_sdk.codec.v1.ISayHelloResponse=} [p] Properties to set - */ - function SayHelloResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * SayHelloResponse greeting. - * @member {string} greeting - * @memberof cosmos_sdk.codec.v1.SayHelloResponse - * @instance - */ - SayHelloResponse.prototype.greeting = ""; - - /** - * Creates a new SayHelloResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.codec.v1.SayHelloResponse - * @static - * @param {cosmos_sdk.codec.v1.ISayHelloResponse=} [properties] Properties to set - * @returns {cosmos_sdk.codec.v1.SayHelloResponse} SayHelloResponse instance - */ - SayHelloResponse.create = function create(properties) { - return new SayHelloResponse(properties); - }; - - /** - * Encodes the specified SayHelloResponse message. Does not implicitly {@link cosmos_sdk.codec.v1.SayHelloResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.codec.v1.SayHelloResponse - * @static - * @param {cosmos_sdk.codec.v1.ISayHelloResponse} m SayHelloResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SayHelloResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.greeting != null && Object.hasOwnProperty.call(m, "greeting")) - w.uint32(10).string(m.greeting); - return w; - }; - - /** - * Decodes a SayHelloResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.codec.v1.SayHelloResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.codec.v1.SayHelloResponse} SayHelloResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SayHelloResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.codec.v1.SayHelloResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.greeting = r.string(); - break; - default: - r.skipType(t & 7); - break; + if (m.outputs != null && m.outputs.length) { + for (var i = 0; i < m.outputs.length; ++i) + $root.cosmos_sdk.x.bank.v1.Output.encode(m.outputs[i], w.uint32(18).fork()).ldelim(); } - } - return m; - }; + return w; + }; - return SayHelloResponse; + /** + * Decodes a MsgMultiSend message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.x.bank.v1.MsgMultiSend} MsgMultiSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgMultiSend.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.MsgMultiSend(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.inputs && m.inputs.length)) + m.inputs = []; + m.inputs.push($root.cosmos_sdk.x.bank.v1.Input.decode(r, r.uint32())); + break; + case 2: + if (!(m.outputs && m.outputs.length)) + m.outputs = []; + m.outputs.push($root.cosmos_sdk.x.bank.v1.Output.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return MsgMultiSend; + })(); + + v1.Supply = (function() { + + /** + * Properties of a Supply. + * @memberof cosmos_sdk.x.bank.v1 + * @interface ISupply + * @property {Array.|null} [total] Supply total + */ + + /** + * Constructs a new Supply. + * @memberof cosmos_sdk.x.bank.v1 + * @classdesc Represents a Supply. + * @implements ISupply + * @constructor + * @param {cosmos_sdk.x.bank.v1.ISupply=} [p] Properties to set + */ + function Supply(p) { + this.total = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * Supply total. + * @member {Array.} total + * @memberof cosmos_sdk.x.bank.v1.Supply + * @instance + */ + Supply.prototype.total = $util.emptyArray; + + /** + * Creates a new Supply instance using the specified properties. + * @function create + * @memberof cosmos_sdk.x.bank.v1.Supply + * @static + * @param {cosmos_sdk.x.bank.v1.ISupply=} [properties] Properties to set + * @returns {cosmos_sdk.x.bank.v1.Supply} Supply instance + */ + Supply.create = function create(properties) { + return new Supply(properties); + }; + + /** + * Encodes the specified Supply message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Supply.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.x.bank.v1.Supply + * @static + * @param {cosmos_sdk.x.bank.v1.ISupply} m Supply message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Supply.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.total != null && m.total.length) { + for (var i = 0; i < m.total.length; ++i) + $root.cosmos_sdk.v1.Coin.encode(m.total[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.x.bank.v1.Supply + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.x.bank.v1.Supply} Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Supply.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.Supply(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.total && m.total.length)) + m.total = []; + m.total.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return Supply; + })(); + + return v1; })(); - return v1; + return bank; })(); - return codec; + return x; })(); - cosmos_sdk.crypto = (function() { + cosmos_sdk.v1 = (function() { /** - * Namespace crypto. + * Namespace v1. * @memberof cosmos_sdk * @namespace */ - var crypto = {}; + var v1 = {}; - crypto.v1 = (function() { + v1.Coin = (function() { /** - * Namespace v1. - * @memberof cosmos_sdk.crypto - * @namespace + * Properties of a Coin. + * @memberof cosmos_sdk.v1 + * @interface ICoin + * @property {string|null} [denom] Coin denom + * @property {string|null} [amount] Coin amount */ - var v1 = {}; - v1.PublicKey = (function() { + /** + * Constructs a new Coin. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a Coin. + * @implements ICoin + * @constructor + * @param {cosmos_sdk.v1.ICoin=} [p] Properties to set + */ + function Coin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } - /** - * Properties of a PublicKey. - * @memberof cosmos_sdk.crypto.v1 - * @interface IPublicKey - * @property {Uint8Array|null} [secp256k1] PublicKey secp256k1 - * @property {Uint8Array|null} [ed25519] PublicKey ed25519 - * @property {Uint8Array|null} [sr25519] PublicKey sr25519 - * @property {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null} [multisig] PublicKey multisig - * @property {Uint8Array|null} [secp256r1] PublicKey secp256r1 - * @property {google.protobuf.IAny|null} [anyPubkey] PublicKey anyPubkey - */ + /** + * Coin denom. + * @member {string} denom + * @memberof cosmos_sdk.v1.Coin + * @instance + */ + Coin.prototype.denom = ""; - /** - * Constructs a new PublicKey. - * @memberof cosmos_sdk.crypto.v1 - * @classdesc Represents a PublicKey. - * @implements IPublicKey - * @constructor - * @param {cosmos_sdk.crypto.v1.IPublicKey=} [p] Properties to set - */ - function PublicKey(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; + /** + * Coin amount. + * @member {string} amount + * @memberof cosmos_sdk.v1.Coin + * @instance + */ + Coin.prototype.amount = ""; + + /** + * Creates a new Coin instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.Coin + * @static + * @param {cosmos_sdk.v1.ICoin=} [properties] Properties to set + * @returns {cosmos_sdk.v1.Coin} Coin instance + */ + Coin.create = function create(properties) { + return new Coin(properties); + }; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos_sdk.v1.Coin.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.Coin + * @static + * @param {cosmos_sdk.v1.ICoin} m Coin message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Coin.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) + w.uint32(10).string(m.denom); + if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) + w.uint32(18).string(m.amount); + return w; + }; + + /** + * Decodes a Coin message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.Coin + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.Coin} Coin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Coin.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.Coin(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + case 2: + m.amount = r.string(); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; - /** - * PublicKey secp256k1. - * @member {Uint8Array} secp256k1 - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - PublicKey.prototype.secp256k1 = $util.newBuffer([]); - - /** - * PublicKey ed25519. - * @member {Uint8Array} ed25519 - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - PublicKey.prototype.ed25519 = $util.newBuffer([]); - - /** - * PublicKey sr25519. - * @member {Uint8Array} sr25519 - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - PublicKey.prototype.sr25519 = $util.newBuffer([]); - - /** - * PublicKey multisig. - * @member {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null|undefined} multisig - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - PublicKey.prototype.multisig = null; - - /** - * PublicKey secp256r1. - * @member {Uint8Array} secp256r1 - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - PublicKey.prototype.secp256r1 = $util.newBuffer([]); - - /** - * PublicKey anyPubkey. - * @member {google.protobuf.IAny|null|undefined} anyPubkey - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - PublicKey.prototype.anyPubkey = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * PublicKey sum. - * @member {"secp256k1"|"ed25519"|"sr25519"|"multisig"|"secp256r1"|"anyPubkey"|undefined} sum - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @instance - */ - Object.defineProperty(PublicKey.prototype, "sum", { - get: $util.oneOfGetter($oneOfFields = ["secp256k1", "ed25519", "sr25519", "multisig", "secp256r1", "anyPubkey"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PublicKey instance using the specified properties. - * @function create - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @static - * @param {cosmos_sdk.crypto.v1.IPublicKey=} [properties] Properties to set - * @returns {cosmos_sdk.crypto.v1.PublicKey} PublicKey instance - */ - PublicKey.create = function create(properties) { - return new PublicKey(properties); - }; - - /** - * Encodes the specified PublicKey message. Does not implicitly {@link cosmos_sdk.crypto.v1.PublicKey.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @static - * @param {cosmos_sdk.crypto.v1.IPublicKey} m PublicKey message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicKey.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.secp256k1 != null && Object.hasOwnProperty.call(m, "secp256k1")) - w.uint32(10).bytes(m.secp256k1); - if (m.ed25519 != null && Object.hasOwnProperty.call(m, "ed25519")) - w.uint32(18).bytes(m.ed25519); - if (m.sr25519 != null && Object.hasOwnProperty.call(m, "sr25519")) - w.uint32(26).bytes(m.sr25519); - if (m.multisig != null && Object.hasOwnProperty.call(m, "multisig")) - $root.cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.encode(m.multisig, w.uint32(34).fork()).ldelim(); - if (m.secp256r1 != null && Object.hasOwnProperty.call(m, "secp256r1")) - w.uint32(42).bytes(m.secp256r1); - if (m.anyPubkey != null && Object.hasOwnProperty.call(m, "anyPubkey")) - $root.google.protobuf.Any.encode(m.anyPubkey, w.uint32(122).fork()).ldelim(); - return w; - }; - - /** - * Decodes a PublicKey message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.crypto.v1.PublicKey - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.crypto.v1.PublicKey} PublicKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicKey.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.PublicKey(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.secp256k1 = r.bytes(); - break; - case 2: - m.ed25519 = r.bytes(); - break; - case 3: - m.sr25519 = r.bytes(); - break; - case 4: - m.multisig = $root.cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.decode(r, r.uint32()); - break; - case 5: - m.secp256r1 = r.bytes(); - break; - case 15: - m.anyPubkey = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return PublicKey; - })(); - - v1.PubKeyMultisigThreshold = (function() { - - /** - * Properties of a PubKeyMultisigThreshold. - * @memberof cosmos_sdk.crypto.v1 - * @interface IPubKeyMultisigThreshold - * @property {number|null} [threshold] PubKeyMultisigThreshold threshold - * @property {Array.|null} [publicKeys] PubKeyMultisigThreshold publicKeys - */ - - /** - * Constructs a new PubKeyMultisigThreshold. - * @memberof cosmos_sdk.crypto.v1 - * @classdesc Represents a PubKeyMultisigThreshold. - * @implements IPubKeyMultisigThreshold - * @constructor - * @param {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold=} [p] Properties to set - */ - function PubKeyMultisigThreshold(p) { - this.publicKeys = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * PubKeyMultisigThreshold threshold. - * @member {number} threshold - * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold - * @instance - */ - PubKeyMultisigThreshold.prototype.threshold = 0; - - /** - * PubKeyMultisigThreshold publicKeys. - * @member {Array.} publicKeys - * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold - * @instance - */ - PubKeyMultisigThreshold.prototype.publicKeys = $util.emptyArray; - - /** - * Creates a new PubKeyMultisigThreshold instance using the specified properties. - * @function create - * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold - * @static - * @param {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold=} [properties] Properties to set - * @returns {cosmos_sdk.crypto.v1.PubKeyMultisigThreshold} PubKeyMultisigThreshold instance - */ - PubKeyMultisigThreshold.create = function create(properties) { - return new PubKeyMultisigThreshold(properties); - }; - - /** - * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold - * @static - * @param {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold} m PubKeyMultisigThreshold message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PubKeyMultisigThreshold.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.threshold != null && Object.hasOwnProperty.call(m, "threshold")) - w.uint32(8).uint32(m.threshold); - if (m.publicKeys != null && m.publicKeys.length) { - for (var i = 0; i < m.publicKeys.length; ++i) - $root.cosmos_sdk.crypto.v1.PublicKey.encode(m.publicKeys[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.crypto.v1.PubKeyMultisigThreshold} PubKeyMultisigThreshold - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PubKeyMultisigThreshold.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.PubKeyMultisigThreshold(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.threshold = r.uint32(); - break; - case 2: - if (!(m.publicKeys && m.publicKeys.length)) - m.publicKeys = []; - m.publicKeys.push($root.cosmos_sdk.crypto.v1.PublicKey.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return PubKeyMultisigThreshold; - })(); - - v1.MultiSignature = (function() { - - /** - * Properties of a MultiSignature. - * @memberof cosmos_sdk.crypto.v1 - * @interface IMultiSignature - * @property {Array.|null} [signatures] MultiSignature signatures - */ - - /** - * Constructs a new MultiSignature. - * @memberof cosmos_sdk.crypto.v1 - * @classdesc Represents a MultiSignature. - * @implements IMultiSignature - * @constructor - * @param {cosmos_sdk.crypto.v1.IMultiSignature=} [p] Properties to set - */ - function MultiSignature(p) { - this.signatures = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MultiSignature signatures. - * @member {Array.} signatures - * @memberof cosmos_sdk.crypto.v1.MultiSignature - * @instance - */ - MultiSignature.prototype.signatures = $util.emptyArray; - - /** - * Creates a new MultiSignature instance using the specified properties. - * @function create - * @memberof cosmos_sdk.crypto.v1.MultiSignature - * @static - * @param {cosmos_sdk.crypto.v1.IMultiSignature=} [properties] Properties to set - * @returns {cosmos_sdk.crypto.v1.MultiSignature} MultiSignature instance - */ - MultiSignature.create = function create(properties) { - return new MultiSignature(properties); - }; - - /** - * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos_sdk.crypto.v1.MultiSignature.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.crypto.v1.MultiSignature - * @static - * @param {cosmos_sdk.crypto.v1.IMultiSignature} m MultiSignature message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MultiSignature.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.signatures != null && m.signatures.length) { - for (var i = 0; i < m.signatures.length; ++i) - w.uint32(10).bytes(m.signatures[i]); - } - return w; - }; - - /** - * Decodes a MultiSignature message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.crypto.v1.MultiSignature - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.crypto.v1.MultiSignature} MultiSignature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MultiSignature.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.MultiSignature(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.signatures && m.signatures.length)) - m.signatures = []; - m.signatures.push(r.bytes()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MultiSignature; - })(); - - v1.CompactBitArray = (function() { - - /** - * Properties of a CompactBitArray. - * @memberof cosmos_sdk.crypto.v1 - * @interface ICompactBitArray - * @property {number|null} [extraBitsStored] CompactBitArray extraBitsStored - * @property {Uint8Array|null} [elems] CompactBitArray elems - */ - - /** - * Constructs a new CompactBitArray. - * @memberof cosmos_sdk.crypto.v1 - * @classdesc Represents a CompactBitArray. - * @implements ICompactBitArray - * @constructor - * @param {cosmos_sdk.crypto.v1.ICompactBitArray=} [p] Properties to set - */ - function CompactBitArray(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * CompactBitArray extraBitsStored. - * @member {number} extraBitsStored - * @memberof cosmos_sdk.crypto.v1.CompactBitArray - * @instance - */ - CompactBitArray.prototype.extraBitsStored = 0; - - /** - * CompactBitArray elems. - * @member {Uint8Array} elems - * @memberof cosmos_sdk.crypto.v1.CompactBitArray - * @instance - */ - CompactBitArray.prototype.elems = $util.newBuffer([]); - - /** - * Creates a new CompactBitArray instance using the specified properties. - * @function create - * @memberof cosmos_sdk.crypto.v1.CompactBitArray - * @static - * @param {cosmos_sdk.crypto.v1.ICompactBitArray=} [properties] Properties to set - * @returns {cosmos_sdk.crypto.v1.CompactBitArray} CompactBitArray instance - */ - CompactBitArray.create = function create(properties) { - return new CompactBitArray(properties); - }; - - /** - * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos_sdk.crypto.v1.CompactBitArray.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.crypto.v1.CompactBitArray - * @static - * @param {cosmos_sdk.crypto.v1.ICompactBitArray} m CompactBitArray message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactBitArray.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.extraBitsStored != null && Object.hasOwnProperty.call(m, "extraBitsStored")) - w.uint32(8).uint32(m.extraBitsStored); - if (m.elems != null && Object.hasOwnProperty.call(m, "elems")) - w.uint32(18).bytes(m.elems); - return w; - }; - - /** - * Decodes a CompactBitArray message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.crypto.v1.CompactBitArray - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.crypto.v1.CompactBitArray} CompactBitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactBitArray.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.CompactBitArray(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.extraBitsStored = r.uint32(); - break; - case 2: - m.elems = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return CompactBitArray; - })(); - - return v1; + return Coin; })(); - return crypto; + v1.DecCoin = (function() { + + /** + * Properties of a DecCoin. + * @memberof cosmos_sdk.v1 + * @interface IDecCoin + * @property {string|null} [denom] DecCoin denom + * @property {string|null} [amount] DecCoin amount + */ + + /** + * Constructs a new DecCoin. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a DecCoin. + * @implements IDecCoin + * @constructor + * @param {cosmos_sdk.v1.IDecCoin=} [p] Properties to set + */ + function DecCoin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * DecCoin denom. + * @member {string} denom + * @memberof cosmos_sdk.v1.DecCoin + * @instance + */ + DecCoin.prototype.denom = ""; + + /** + * DecCoin amount. + * @member {string} amount + * @memberof cosmos_sdk.v1.DecCoin + * @instance + */ + DecCoin.prototype.amount = ""; + + /** + * Creates a new DecCoin instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.DecCoin + * @static + * @param {cosmos_sdk.v1.IDecCoin=} [properties] Properties to set + * @returns {cosmos_sdk.v1.DecCoin} DecCoin instance + */ + DecCoin.create = function create(properties) { + return new DecCoin(properties); + }; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos_sdk.v1.DecCoin.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.DecCoin + * @static + * @param {cosmos_sdk.v1.IDecCoin} m DecCoin message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecCoin.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) + w.uint32(10).string(m.denom); + if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) + w.uint32(18).string(m.amount); + return w; + }; + + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.DecCoin + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.DecCoin} DecCoin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecCoin.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.DecCoin(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + case 2: + m.amount = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return DecCoin; + })(); + + v1.IntProto = (function() { + + /** + * Properties of an IntProto. + * @memberof cosmos_sdk.v1 + * @interface IIntProto + * @property {string|null} [int] IntProto int + */ + + /** + * Constructs a new IntProto. + * @memberof cosmos_sdk.v1 + * @classdesc Represents an IntProto. + * @implements IIntProto + * @constructor + * @param {cosmos_sdk.v1.IIntProto=} [p] Properties to set + */ + function IntProto(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * IntProto int. + * @member {string} int + * @memberof cosmos_sdk.v1.IntProto + * @instance + */ + IntProto.prototype.int = ""; + + /** + * Creates a new IntProto instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.IntProto + * @static + * @param {cosmos_sdk.v1.IIntProto=} [properties] Properties to set + * @returns {cosmos_sdk.v1.IntProto} IntProto instance + */ + IntProto.create = function create(properties) { + return new IntProto(properties); + }; + + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos_sdk.v1.IntProto.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.IntProto + * @static + * @param {cosmos_sdk.v1.IIntProto} m IntProto message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntProto.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.int != null && Object.hasOwnProperty.call(m, "int")) + w.uint32(10).string(m.int); + return w; + }; + + /** + * Decodes an IntProto message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.IntProto + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.IntProto} IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntProto.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.IntProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.int = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return IntProto; + })(); + + v1.DecProto = (function() { + + /** + * Properties of a DecProto. + * @memberof cosmos_sdk.v1 + * @interface IDecProto + * @property {string|null} [dec] DecProto dec + */ + + /** + * Constructs a new DecProto. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a DecProto. + * @implements IDecProto + * @constructor + * @param {cosmos_sdk.v1.IDecProto=} [p] Properties to set + */ + function DecProto(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * DecProto dec. + * @member {string} dec + * @memberof cosmos_sdk.v1.DecProto + * @instance + */ + DecProto.prototype.dec = ""; + + /** + * Creates a new DecProto instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.DecProto + * @static + * @param {cosmos_sdk.v1.IDecProto=} [properties] Properties to set + * @returns {cosmos_sdk.v1.DecProto} DecProto instance + */ + DecProto.create = function create(properties) { + return new DecProto(properties); + }; + + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos_sdk.v1.DecProto.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.DecProto + * @static + * @param {cosmos_sdk.v1.IDecProto} m DecProto message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecProto.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.dec != null && Object.hasOwnProperty.call(m, "dec")) + w.uint32(10).string(m.dec); + return w; + }; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.DecProto + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.DecProto} DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecProto.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.DecProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.dec = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return DecProto; + })(); + + v1.ValAddresses = (function() { + + /** + * Properties of a ValAddresses. + * @memberof cosmos_sdk.v1 + * @interface IValAddresses + * @property {Array.|null} [addresses] ValAddresses addresses + */ + + /** + * Constructs a new ValAddresses. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a ValAddresses. + * @implements IValAddresses + * @constructor + * @param {cosmos_sdk.v1.IValAddresses=} [p] Properties to set + */ + function ValAddresses(p) { + this.addresses = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * ValAddresses addresses. + * @member {Array.} addresses + * @memberof cosmos_sdk.v1.ValAddresses + * @instance + */ + ValAddresses.prototype.addresses = $util.emptyArray; + + /** + * Creates a new ValAddresses instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.ValAddresses + * @static + * @param {cosmos_sdk.v1.IValAddresses=} [properties] Properties to set + * @returns {cosmos_sdk.v1.ValAddresses} ValAddresses instance + */ + ValAddresses.create = function create(properties) { + return new ValAddresses(properties); + }; + + /** + * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos_sdk.v1.ValAddresses.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.ValAddresses + * @static + * @param {cosmos_sdk.v1.IValAddresses} m ValAddresses message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValAddresses.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.addresses != null && m.addresses.length) { + for (var i = 0; i < m.addresses.length; ++i) + w.uint32(10).bytes(m.addresses[i]); + } + return w; + }; + + /** + * Decodes a ValAddresses message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.ValAddresses + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.ValAddresses} ValAddresses + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValAddresses.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.ValAddresses(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.addresses && m.addresses.length)) + m.addresses = []; + m.addresses.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return ValAddresses; + })(); + + v1.GasInfo = (function() { + + /** + * Properties of a GasInfo. + * @memberof cosmos_sdk.v1 + * @interface IGasInfo + * @property {number|Long|null} [gasWanted] GasInfo gasWanted + * @property {number|Long|null} [gasUsed] GasInfo gasUsed + */ + + /** + * Constructs a new GasInfo. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a GasInfo. + * @implements IGasInfo + * @constructor + * @param {cosmos_sdk.v1.IGasInfo=} [p] Properties to set + */ + function GasInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * GasInfo gasWanted. + * @member {number|Long} gasWanted + * @memberof cosmos_sdk.v1.GasInfo + * @instance + */ + GasInfo.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * GasInfo gasUsed. + * @member {number|Long} gasUsed + * @memberof cosmos_sdk.v1.GasInfo + * @instance + */ + GasInfo.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new GasInfo instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.GasInfo + * @static + * @param {cosmos_sdk.v1.IGasInfo=} [properties] Properties to set + * @returns {cosmos_sdk.v1.GasInfo} GasInfo instance + */ + GasInfo.create = function create(properties) { + return new GasInfo(properties); + }; + + /** + * Encodes the specified GasInfo message. Does not implicitly {@link cosmos_sdk.v1.GasInfo.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.GasInfo + * @static + * @param {cosmos_sdk.v1.IGasInfo} m GasInfo message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GasInfo.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) + w.uint32(8).uint64(m.gasWanted); + if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) + w.uint32(16).uint64(m.gasUsed); + return w; + }; + + /** + * Decodes a GasInfo message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.GasInfo + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.GasInfo} GasInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GasInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.GasInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.gasWanted = r.uint64(); + break; + case 2: + m.gasUsed = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return GasInfo; + })(); + + v1.Result = (function() { + + /** + * Properties of a Result. + * @memberof cosmos_sdk.v1 + * @interface IResult + * @property {Uint8Array|null} [data] Result data + * @property {string|null} [log] Result log + * @property {Array.|null} [events] Result events + */ + + /** + * Constructs a new Result. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a Result. + * @implements IResult + * @constructor + * @param {cosmos_sdk.v1.IResult=} [p] Properties to set + */ + function Result(p) { + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * Result data. + * @member {Uint8Array} data + * @memberof cosmos_sdk.v1.Result + * @instance + */ + Result.prototype.data = $util.newBuffer([]); + + /** + * Result log. + * @member {string} log + * @memberof cosmos_sdk.v1.Result + * @instance + */ + Result.prototype.log = ""; + + /** + * Result events. + * @member {Array.} events + * @memberof cosmos_sdk.v1.Result + * @instance + */ + Result.prototype.events = $util.emptyArray; + + /** + * Creates a new Result instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.Result + * @static + * @param {cosmos_sdk.v1.IResult=} [properties] Properties to set + * @returns {cosmos_sdk.v1.Result} Result instance + */ + Result.create = function create(properties) { + return new Result(properties); + }; + + /** + * Encodes the specified Result message. Does not implicitly {@link cosmos_sdk.v1.Result.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.Result + * @static + * @param {cosmos_sdk.v1.IResult} m Result message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Result.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) + w.uint32(10).bytes(m.data); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) + w.uint32(18).string(m.log); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.Result + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.Result(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.data = r.bytes(); + break; + case 2: + m.log = r.string(); + break; + case 3: + if (!(m.events && m.events.length)) + m.events = []; + m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return Result; + })(); + + v1.SimulationResponse = (function() { + + /** + * Properties of a SimulationResponse. + * @memberof cosmos_sdk.v1 + * @interface ISimulationResponse + * @property {cosmos_sdk.v1.IGasInfo|null} [gasInfo] SimulationResponse gasInfo + * @property {cosmos_sdk.v1.IResult|null} [result] SimulationResponse result + */ + + /** + * Constructs a new SimulationResponse. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a SimulationResponse. + * @implements ISimulationResponse + * @constructor + * @param {cosmos_sdk.v1.ISimulationResponse=} [p] Properties to set + */ + function SimulationResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * SimulationResponse gasInfo. + * @member {cosmos_sdk.v1.IGasInfo|null|undefined} gasInfo + * @memberof cosmos_sdk.v1.SimulationResponse + * @instance + */ + SimulationResponse.prototype.gasInfo = null; + + /** + * SimulationResponse result. + * @member {cosmos_sdk.v1.IResult|null|undefined} result + * @memberof cosmos_sdk.v1.SimulationResponse + * @instance + */ + SimulationResponse.prototype.result = null; + + /** + * Creates a new SimulationResponse instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.SimulationResponse + * @static + * @param {cosmos_sdk.v1.ISimulationResponse=} [properties] Properties to set + * @returns {cosmos_sdk.v1.SimulationResponse} SimulationResponse instance + */ + SimulationResponse.create = function create(properties) { + return new SimulationResponse(properties); + }; + + /** + * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos_sdk.v1.SimulationResponse.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.SimulationResponse + * @static + * @param {cosmos_sdk.v1.ISimulationResponse} m SimulationResponse message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SimulationResponse.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.gasInfo != null && Object.hasOwnProperty.call(m, "gasInfo")) + $root.cosmos_sdk.v1.GasInfo.encode(m.gasInfo, w.uint32(10).fork()).ldelim(); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) + $root.cosmos_sdk.v1.Result.encode(m.result, w.uint32(18).fork()).ldelim(); + return w; + }; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.SimulationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.SimulationResponse} SimulationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SimulationResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.SimulationResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.gasInfo = $root.cosmos_sdk.v1.GasInfo.decode(r, r.uint32()); + break; + case 2: + m.result = $root.cosmos_sdk.v1.Result.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return SimulationResponse; + })(); + + v1.MsgData = (function() { + + /** + * Properties of a MsgData. + * @memberof cosmos_sdk.v1 + * @interface IMsgData + * @property {string|null} [msgType] MsgData msgType + * @property {Uint8Array|null} [data] MsgData data + */ + + /** + * Constructs a new MsgData. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a MsgData. + * @implements IMsgData + * @constructor + * @param {cosmos_sdk.v1.IMsgData=} [p] Properties to set + */ + function MsgData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * MsgData msgType. + * @member {string} msgType + * @memberof cosmos_sdk.v1.MsgData + * @instance + */ + MsgData.prototype.msgType = ""; + + /** + * MsgData data. + * @member {Uint8Array} data + * @memberof cosmos_sdk.v1.MsgData + * @instance + */ + MsgData.prototype.data = $util.newBuffer([]); + + /** + * Creates a new MsgData instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.MsgData + * @static + * @param {cosmos_sdk.v1.IMsgData=} [properties] Properties to set + * @returns {cosmos_sdk.v1.MsgData} MsgData instance + */ + MsgData.create = function create(properties) { + return new MsgData(properties); + }; + + /** + * Encodes the specified MsgData message. Does not implicitly {@link cosmos_sdk.v1.MsgData.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.MsgData + * @static + * @param {cosmos_sdk.v1.IMsgData} m MsgData message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.msgType != null && Object.hasOwnProperty.call(m, "msgType")) + w.uint32(10).string(m.msgType); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) + w.uint32(18).bytes(m.data); + return w; + }; + + /** + * Decodes a MsgData message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.MsgData + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.MsgData} MsgData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgData.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.MsgData(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.msgType = r.string(); + break; + case 2: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return MsgData; + })(); + + v1.TxData = (function() { + + /** + * Properties of a TxData. + * @memberof cosmos_sdk.v1 + * @interface ITxData + * @property {Array.|null} [data] TxData data + */ + + /** + * Constructs a new TxData. + * @memberof cosmos_sdk.v1 + * @classdesc Represents a TxData. + * @implements ITxData + * @constructor + * @param {cosmos_sdk.v1.ITxData=} [p] Properties to set + */ + function TxData(p) { + this.data = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; + } + + /** + * TxData data. + * @member {Array.} data + * @memberof cosmos_sdk.v1.TxData + * @instance + */ + TxData.prototype.data = $util.emptyArray; + + /** + * Creates a new TxData instance using the specified properties. + * @function create + * @memberof cosmos_sdk.v1.TxData + * @static + * @param {cosmos_sdk.v1.ITxData=} [properties] Properties to set + * @returns {cosmos_sdk.v1.TxData} TxData instance + */ + TxData.create = function create(properties) { + return new TxData(properties); + }; + + /** + * Encodes the specified TxData message. Does not implicitly {@link cosmos_sdk.v1.TxData.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.v1.TxData + * @static + * @param {cosmos_sdk.v1.ITxData} m TxData message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TxData.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.data != null && m.data.length) { + for (var i = 0; i < m.data.length; ++i) + $root.cosmos_sdk.v1.MsgData.encode(m.data[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + + /** + * Decodes a TxData message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.v1.TxData + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.v1.TxData} TxData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TxData.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.TxData(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.data && m.data.length)) + m.data = []; + m.data.push($root.cosmos_sdk.v1.MsgData.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return TxData; + })(); + + return v1; })(); cosmos_sdk.tx = (function() { @@ -1549,48 +1683,6 @@ $root.cosmos_sdk = (function() { */ var tx = {}; - tx.signing = (function() { - - /** - * Namespace signing. - * @memberof cosmos_sdk.tx - * @namespace - */ - var signing = {}; - - signing.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.tx.signing - * @namespace - */ - var v1 = {}; - - /** - * SignMode enum. - * @name cosmos_sdk.tx.signing.v1.SignMode - * @enum {number} - * @property {number} SIGN_MODE_UNSPECIFIED=0 SIGN_MODE_UNSPECIFIED value - * @property {number} SIGN_MODE_DIRECT=1 SIGN_MODE_DIRECT value - * @property {number} SIGN_MODE_TEXTUAL=2 SIGN_MODE_TEXTUAL value - * @property {number} SIGN_MODE_LEGACY_AMINO_JSON=127 SIGN_MODE_LEGACY_AMINO_JSON value - */ - v1.SignMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SIGN_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "SIGN_MODE_DIRECT"] = 1; - values[valuesById[2] = "SIGN_MODE_TEXTUAL"] = 2; - values[valuesById[127] = "SIGN_MODE_LEGACY_AMINO_JSON"] = 127; - return values; - })(); - - return v1; - })(); - - return signing; - })(); - tx.v1 = (function() { /** @@ -2699,15109 +2791,572 @@ $root.cosmos_sdk = (function() { return v1; })(); + tx.signing = (function() { + + /** + * Namespace signing. + * @memberof cosmos_sdk.tx + * @namespace + */ + var signing = {}; + + signing.v1 = (function() { + + /** + * Namespace v1. + * @memberof cosmos_sdk.tx.signing + * @namespace + */ + var v1 = {}; + + /** + * SignMode enum. + * @name cosmos_sdk.tx.signing.v1.SignMode + * @enum {number} + * @property {number} SIGN_MODE_UNSPECIFIED=0 SIGN_MODE_UNSPECIFIED value + * @property {number} SIGN_MODE_DIRECT=1 SIGN_MODE_DIRECT value + * @property {number} SIGN_MODE_TEXTUAL=2 SIGN_MODE_TEXTUAL value + * @property {number} SIGN_MODE_LEGACY_AMINO_JSON=127 SIGN_MODE_LEGACY_AMINO_JSON value + */ + v1.SignMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SIGN_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SIGN_MODE_DIRECT"] = 1; + values[valuesById[2] = "SIGN_MODE_TEXTUAL"] = 2; + values[valuesById[127] = "SIGN_MODE_LEGACY_AMINO_JSON"] = 127; + return values; + })(); + + return v1; + })(); + + return signing; + })(); + return tx; })(); - cosmos_sdk.v1 = (function() { + cosmos_sdk.crypto = (function() { /** - * Namespace v1. + * Namespace crypto. * @memberof cosmos_sdk * @namespace */ - var v1 = {}; + var crypto = {}; - v1.Coin = (function() { + crypto.v1 = (function() { /** - * Properties of a Coin. - * @memberof cosmos_sdk.v1 - * @interface ICoin - * @property {string|null} [denom] Coin denom - * @property {string|null} [amount] Coin amount + * Namespace v1. + * @memberof cosmos_sdk.crypto + * @namespace */ + var v1 = {}; - /** - * Constructs a new Coin. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a Coin. - * @implements ICoin - * @constructor - * @param {cosmos_sdk.v1.ICoin=} [p] Properties to set - */ - function Coin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } + v1.PublicKey = (function() { - /** - * Coin denom. - * @member {string} denom - * @memberof cosmos_sdk.v1.Coin - * @instance - */ - Coin.prototype.denom = ""; + /** + * Properties of a PublicKey. + * @memberof cosmos_sdk.crypto.v1 + * @interface IPublicKey + * @property {Uint8Array|null} [secp256k1] PublicKey secp256k1 + * @property {Uint8Array|null} [ed25519] PublicKey ed25519 + * @property {Uint8Array|null} [sr25519] PublicKey sr25519 + * @property {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null} [multisig] PublicKey multisig + * @property {Uint8Array|null} [secp256r1] PublicKey secp256r1 + * @property {google.protobuf.IAny|null} [anyPubkey] PublicKey anyPubkey + */ - /** - * Coin amount. - * @member {string} amount - * @memberof cosmos_sdk.v1.Coin - * @instance - */ - Coin.prototype.amount = ""; - - /** - * Creates a new Coin instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.Coin - * @static - * @param {cosmos_sdk.v1.ICoin=} [properties] Properties to set - * @returns {cosmos_sdk.v1.Coin} Coin instance - */ - Coin.create = function create(properties) { - return new Coin(properties); - }; - - /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos_sdk.v1.Coin.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.Coin - * @static - * @param {cosmos_sdk.v1.ICoin} m Coin message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Coin.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) - w.uint32(10).string(m.denom); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - w.uint32(18).string(m.amount); - return w; - }; - - /** - * Decodes a Coin message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.Coin - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.Coin} Coin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Coin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.Coin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - case 2: - m.amount = r.string(); - break; - default: - r.skipType(t & 7); - break; - } + /** + * Constructs a new PublicKey. + * @memberof cosmos_sdk.crypto.v1 + * @classdesc Represents a PublicKey. + * @implements IPublicKey + * @constructor + * @param {cosmos_sdk.crypto.v1.IPublicKey=} [p] Properties to set + */ + function PublicKey(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return Coin; - })(); + /** + * PublicKey secp256k1. + * @member {Uint8Array} secp256k1 + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + PublicKey.prototype.secp256k1 = $util.newBuffer([]); - v1.DecCoin = (function() { + /** + * PublicKey ed25519. + * @member {Uint8Array} ed25519 + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + PublicKey.prototype.ed25519 = $util.newBuffer([]); - /** - * Properties of a DecCoin. - * @memberof cosmos_sdk.v1 - * @interface IDecCoin - * @property {string|null} [denom] DecCoin denom - * @property {string|null} [amount] DecCoin amount - */ + /** + * PublicKey sr25519. + * @member {Uint8Array} sr25519 + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + PublicKey.prototype.sr25519 = $util.newBuffer([]); - /** - * Constructs a new DecCoin. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a DecCoin. - * @implements IDecCoin - * @constructor - * @param {cosmos_sdk.v1.IDecCoin=} [p] Properties to set - */ - function DecCoin(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } + /** + * PublicKey multisig. + * @member {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold|null|undefined} multisig + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + PublicKey.prototype.multisig = null; - /** - * DecCoin denom. - * @member {string} denom - * @memberof cosmos_sdk.v1.DecCoin - * @instance - */ - DecCoin.prototype.denom = ""; + /** + * PublicKey secp256r1. + * @member {Uint8Array} secp256r1 + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + PublicKey.prototype.secp256r1 = $util.newBuffer([]); - /** - * DecCoin amount. - * @member {string} amount - * @memberof cosmos_sdk.v1.DecCoin - * @instance - */ - DecCoin.prototype.amount = ""; + /** + * PublicKey anyPubkey. + * @member {google.protobuf.IAny|null|undefined} anyPubkey + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + PublicKey.prototype.anyPubkey = null; - /** - * Creates a new DecCoin instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.DecCoin - * @static - * @param {cosmos_sdk.v1.IDecCoin=} [properties] Properties to set - * @returns {cosmos_sdk.v1.DecCoin} DecCoin instance - */ - DecCoin.create = function create(properties) { - return new DecCoin(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos_sdk.v1.DecCoin.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.DecCoin - * @static - * @param {cosmos_sdk.v1.IDecCoin} m DecCoin message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DecCoin.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) - w.uint32(10).string(m.denom); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - w.uint32(18).string(m.amount); - return w; - }; + /** + * PublicKey sum. + * @member {"secp256k1"|"ed25519"|"sr25519"|"multisig"|"secp256r1"|"anyPubkey"|undefined} sum + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @instance + */ + Object.defineProperty(PublicKey.prototype, "sum", { + get: $util.oneOfGetter($oneOfFields = ["secp256k1", "ed25519", "sr25519", "multisig", "secp256r1", "anyPubkey"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Decodes a DecCoin message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.DecCoin - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.DecCoin} DecCoin - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecCoin.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.DecCoin(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - case 2: - m.amount = r.string(); - break; - default: - r.skipType(t & 7); - break; + /** + * Creates a new PublicKey instance using the specified properties. + * @function create + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @static + * @param {cosmos_sdk.crypto.v1.IPublicKey=} [properties] Properties to set + * @returns {cosmos_sdk.crypto.v1.PublicKey} PublicKey instance + */ + PublicKey.create = function create(properties) { + return new PublicKey(properties); + }; + + /** + * Encodes the specified PublicKey message. Does not implicitly {@link cosmos_sdk.crypto.v1.PublicKey.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @static + * @param {cosmos_sdk.crypto.v1.IPublicKey} m PublicKey message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublicKey.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.secp256k1 != null && Object.hasOwnProperty.call(m, "secp256k1")) + w.uint32(10).bytes(m.secp256k1); + if (m.ed25519 != null && Object.hasOwnProperty.call(m, "ed25519")) + w.uint32(18).bytes(m.ed25519); + if (m.sr25519 != null && Object.hasOwnProperty.call(m, "sr25519")) + w.uint32(26).bytes(m.sr25519); + if (m.multisig != null && Object.hasOwnProperty.call(m, "multisig")) + $root.cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.encode(m.multisig, w.uint32(34).fork()).ldelim(); + if (m.secp256r1 != null && Object.hasOwnProperty.call(m, "secp256r1")) + w.uint32(42).bytes(m.secp256r1); + if (m.anyPubkey != null && Object.hasOwnProperty.call(m, "anyPubkey")) + $root.google.protobuf.Any.encode(m.anyPubkey, w.uint32(122).fork()).ldelim(); + return w; + }; + + /** + * Decodes a PublicKey message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.crypto.v1.PublicKey + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.crypto.v1.PublicKey} PublicKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublicKey.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.PublicKey(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.secp256k1 = r.bytes(); + break; + case 2: + m.ed25519 = r.bytes(); + break; + case 3: + m.sr25519 = r.bytes(); + break; + case 4: + m.multisig = $root.cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.decode(r, r.uint32()); + break; + case 5: + m.secp256r1 = r.bytes(); + break; + case 15: + m.anyPubkey = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + + return PublicKey; + })(); + + v1.PubKeyMultisigThreshold = (function() { + + /** + * Properties of a PubKeyMultisigThreshold. + * @memberof cosmos_sdk.crypto.v1 + * @interface IPubKeyMultisigThreshold + * @property {number|null} [threshold] PubKeyMultisigThreshold threshold + * @property {Array.|null} [publicKeys] PubKeyMultisigThreshold publicKeys + */ + + /** + * Constructs a new PubKeyMultisigThreshold. + * @memberof cosmos_sdk.crypto.v1 + * @classdesc Represents a PubKeyMultisigThreshold. + * @implements IPubKeyMultisigThreshold + * @constructor + * @param {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold=} [p] Properties to set + */ + function PubKeyMultisigThreshold(p) { + this.publicKeys = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return DecCoin; - })(); + /** + * PubKeyMultisigThreshold threshold. + * @member {number} threshold + * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold + * @instance + */ + PubKeyMultisigThreshold.prototype.threshold = 0; - v1.IntProto = (function() { + /** + * PubKeyMultisigThreshold publicKeys. + * @member {Array.} publicKeys + * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold + * @instance + */ + PubKeyMultisigThreshold.prototype.publicKeys = $util.emptyArray; - /** - * Properties of an IntProto. - * @memberof cosmos_sdk.v1 - * @interface IIntProto - * @property {string|null} [int] IntProto int - */ + /** + * Creates a new PubKeyMultisigThreshold instance using the specified properties. + * @function create + * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold + * @static + * @param {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold=} [properties] Properties to set + * @returns {cosmos_sdk.crypto.v1.PubKeyMultisigThreshold} PubKeyMultisigThreshold instance + */ + PubKeyMultisigThreshold.create = function create(properties) { + return new PubKeyMultisigThreshold(properties); + }; - /** - * Constructs a new IntProto. - * @memberof cosmos_sdk.v1 - * @classdesc Represents an IntProto. - * @implements IIntProto - * @constructor - * @param {cosmos_sdk.v1.IIntProto=} [p] Properties to set - */ - function IntProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * IntProto int. - * @member {string} int - * @memberof cosmos_sdk.v1.IntProto - * @instance - */ - IntProto.prototype.int = ""; - - /** - * Creates a new IntProto instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.IntProto - * @static - * @param {cosmos_sdk.v1.IIntProto=} [properties] Properties to set - * @returns {cosmos_sdk.v1.IntProto} IntProto instance - */ - IntProto.create = function create(properties) { - return new IntProto(properties); - }; - - /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos_sdk.v1.IntProto.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.IntProto - * @static - * @param {cosmos_sdk.v1.IIntProto} m IntProto message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntProto.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.int != null && Object.hasOwnProperty.call(m, "int")) - w.uint32(10).string(m.int); - return w; - }; - - /** - * Decodes an IntProto message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.IntProto - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.IntProto} IntProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.IntProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.int = r.string(); - break; - default: - r.skipType(t & 7); - break; + /** + * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos_sdk.crypto.v1.PubKeyMultisigThreshold.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold + * @static + * @param {cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold} m PubKeyMultisigThreshold message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PubKeyMultisigThreshold.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.threshold != null && Object.hasOwnProperty.call(m, "threshold")) + w.uint32(8).uint32(m.threshold); + if (m.publicKeys != null && m.publicKeys.length) { + for (var i = 0; i < m.publicKeys.length; ++i) + $root.cosmos_sdk.crypto.v1.PublicKey.encode(m.publicKeys[i], w.uint32(18).fork()).ldelim(); } + return w; + }; + + /** + * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.crypto.v1.PubKeyMultisigThreshold + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.crypto.v1.PubKeyMultisigThreshold} PubKeyMultisigThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PubKeyMultisigThreshold.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.PubKeyMultisigThreshold(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.threshold = r.uint32(); + break; + case 2: + if (!(m.publicKeys && m.publicKeys.length)) + m.publicKeys = []; + m.publicKeys.push($root.cosmos_sdk.crypto.v1.PublicKey.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return PubKeyMultisigThreshold; + })(); + + v1.MultiSignature = (function() { + + /** + * Properties of a MultiSignature. + * @memberof cosmos_sdk.crypto.v1 + * @interface IMultiSignature + * @property {Array.|null} [signatures] MultiSignature signatures + */ + + /** + * Constructs a new MultiSignature. + * @memberof cosmos_sdk.crypto.v1 + * @classdesc Represents a MultiSignature. + * @implements IMultiSignature + * @constructor + * @param {cosmos_sdk.crypto.v1.IMultiSignature=} [p] Properties to set + */ + function MultiSignature(p) { + this.signatures = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - return IntProto; - })(); + /** + * MultiSignature signatures. + * @member {Array.} signatures + * @memberof cosmos_sdk.crypto.v1.MultiSignature + * @instance + */ + MultiSignature.prototype.signatures = $util.emptyArray; - v1.DecProto = (function() { + /** + * Creates a new MultiSignature instance using the specified properties. + * @function create + * @memberof cosmos_sdk.crypto.v1.MultiSignature + * @static + * @param {cosmos_sdk.crypto.v1.IMultiSignature=} [properties] Properties to set + * @returns {cosmos_sdk.crypto.v1.MultiSignature} MultiSignature instance + */ + MultiSignature.create = function create(properties) { + return new MultiSignature(properties); + }; - /** - * Properties of a DecProto. - * @memberof cosmos_sdk.v1 - * @interface IDecProto - * @property {string|null} [dec] DecProto dec - */ - - /** - * Constructs a new DecProto. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a DecProto. - * @implements IDecProto - * @constructor - * @param {cosmos_sdk.v1.IDecProto=} [p] Properties to set - */ - function DecProto(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DecProto dec. - * @member {string} dec - * @memberof cosmos_sdk.v1.DecProto - * @instance - */ - DecProto.prototype.dec = ""; - - /** - * Creates a new DecProto instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.DecProto - * @static - * @param {cosmos_sdk.v1.IDecProto=} [properties] Properties to set - * @returns {cosmos_sdk.v1.DecProto} DecProto instance - */ - DecProto.create = function create(properties) { - return new DecProto(properties); - }; - - /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos_sdk.v1.DecProto.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.DecProto - * @static - * @param {cosmos_sdk.v1.IDecProto} m DecProto message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DecProto.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.dec != null && Object.hasOwnProperty.call(m, "dec")) - w.uint32(10).string(m.dec); - return w; - }; - - /** - * Decodes a DecProto message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.DecProto - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.DecProto} DecProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecProto.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.DecProto(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.dec = r.string(); - break; - default: - r.skipType(t & 7); - break; + /** + * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos_sdk.crypto.v1.MultiSignature.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.crypto.v1.MultiSignature + * @static + * @param {cosmos_sdk.crypto.v1.IMultiSignature} m MultiSignature message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiSignature.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) + w.uint32(10).bytes(m.signatures[i]); } + return w; + }; + + /** + * Decodes a MultiSignature message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.crypto.v1.MultiSignature + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.crypto.v1.MultiSignature} MultiSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiSignature.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.MultiSignature(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.signatures && m.signatures.length)) + m.signatures = []; + m.signatures.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + + return MultiSignature; + })(); + + v1.CompactBitArray = (function() { + + /** + * Properties of a CompactBitArray. + * @memberof cosmos_sdk.crypto.v1 + * @interface ICompactBitArray + * @property {number|null} [extraBitsStored] CompactBitArray extraBitsStored + * @property {Uint8Array|null} [elems] CompactBitArray elems + */ + + /** + * Constructs a new CompactBitArray. + * @memberof cosmos_sdk.crypto.v1 + * @classdesc Represents a CompactBitArray. + * @implements ICompactBitArray + * @constructor + * @param {cosmos_sdk.crypto.v1.ICompactBitArray=} [p] Properties to set + */ + function CompactBitArray(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) + this[ks[i]] = p[ks[i]]; } - return m; - }; - - return DecProto; - })(); - - v1.ValAddresses = (function() { - - /** - * Properties of a ValAddresses. - * @memberof cosmos_sdk.v1 - * @interface IValAddresses - * @property {Array.|null} [addresses] ValAddresses addresses - */ - - /** - * Constructs a new ValAddresses. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a ValAddresses. - * @implements IValAddresses - * @constructor - * @param {cosmos_sdk.v1.IValAddresses=} [p] Properties to set - */ - function ValAddresses(p) { - this.addresses = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValAddresses addresses. - * @member {Array.} addresses - * @memberof cosmos_sdk.v1.ValAddresses - * @instance - */ - ValAddresses.prototype.addresses = $util.emptyArray; - - /** - * Creates a new ValAddresses instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.ValAddresses - * @static - * @param {cosmos_sdk.v1.IValAddresses=} [properties] Properties to set - * @returns {cosmos_sdk.v1.ValAddresses} ValAddresses instance - */ - ValAddresses.create = function create(properties) { - return new ValAddresses(properties); - }; - - /** - * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos_sdk.v1.ValAddresses.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.ValAddresses - * @static - * @param {cosmos_sdk.v1.IValAddresses} m ValAddresses message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValAddresses.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.addresses != null && m.addresses.length) { - for (var i = 0; i < m.addresses.length; ++i) - w.uint32(10).bytes(m.addresses[i]); - } - return w; - }; - - /** - * Decodes a ValAddresses message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.ValAddresses - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.ValAddresses} ValAddresses - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValAddresses.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.ValAddresses(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.addresses && m.addresses.length)) - m.addresses = []; - m.addresses.push(r.bytes()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValAddresses; - })(); - - v1.GasInfo = (function() { - - /** - * Properties of a GasInfo. - * @memberof cosmos_sdk.v1 - * @interface IGasInfo - * @property {number|Long|null} [gasWanted] GasInfo gasWanted - * @property {number|Long|null} [gasUsed] GasInfo gasUsed - */ - - /** - * Constructs a new GasInfo. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a GasInfo. - * @implements IGasInfo - * @constructor - * @param {cosmos_sdk.v1.IGasInfo=} [p] Properties to set - */ - function GasInfo(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * GasInfo gasWanted. - * @member {number|Long} gasWanted - * @memberof cosmos_sdk.v1.GasInfo - * @instance - */ - GasInfo.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GasInfo gasUsed. - * @member {number|Long} gasUsed - * @memberof cosmos_sdk.v1.GasInfo - * @instance - */ - GasInfo.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new GasInfo instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.GasInfo - * @static - * @param {cosmos_sdk.v1.IGasInfo=} [properties] Properties to set - * @returns {cosmos_sdk.v1.GasInfo} GasInfo instance - */ - GasInfo.create = function create(properties) { - return new GasInfo(properties); - }; - - /** - * Encodes the specified GasInfo message. Does not implicitly {@link cosmos_sdk.v1.GasInfo.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.GasInfo - * @static - * @param {cosmos_sdk.v1.IGasInfo} m GasInfo message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GasInfo.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) - w.uint32(8).uint64(m.gasWanted); - if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) - w.uint32(16).uint64(m.gasUsed); - return w; - }; - - /** - * Decodes a GasInfo message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.GasInfo - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.GasInfo} GasInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GasInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.GasInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.gasWanted = r.uint64(); - break; - case 2: - m.gasUsed = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return GasInfo; - })(); - - v1.Result = (function() { - - /** - * Properties of a Result. - * @memberof cosmos_sdk.v1 - * @interface IResult - * @property {Uint8Array|null} [data] Result data - * @property {string|null} [log] Result log - * @property {Array.|null} [events] Result events - */ - - /** - * Constructs a new Result. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a Result. - * @implements IResult - * @constructor - * @param {cosmos_sdk.v1.IResult=} [p] Properties to set - */ - function Result(p) { - this.events = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Result data. - * @member {Uint8Array} data - * @memberof cosmos_sdk.v1.Result - * @instance - */ - Result.prototype.data = $util.newBuffer([]); - - /** - * Result log. - * @member {string} log - * @memberof cosmos_sdk.v1.Result - * @instance - */ - Result.prototype.log = ""; - - /** - * Result events. - * @member {Array.} events - * @memberof cosmos_sdk.v1.Result - * @instance - */ - Result.prototype.events = $util.emptyArray; - - /** - * Creates a new Result instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.Result - * @static - * @param {cosmos_sdk.v1.IResult=} [properties] Properties to set - * @returns {cosmos_sdk.v1.Result} Result instance - */ - Result.create = function create(properties) { - return new Result(properties); - }; - - /** - * Encodes the specified Result message. Does not implicitly {@link cosmos_sdk.v1.Result.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.Result - * @static - * @param {cosmos_sdk.v1.IResult} m Result message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Result.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) - w.uint32(10).bytes(m.data); - if (m.log != null && Object.hasOwnProperty.call(m, "log")) - w.uint32(18).string(m.log); - if (m.events != null && m.events.length) { - for (var i = 0; i < m.events.length; ++i) - $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a Result message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.Result - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.Result} Result - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Result.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.Result(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.bytes(); - break; - case 2: - m.log = r.string(); - break; - case 3: - if (!(m.events && m.events.length)) - m.events = []; - m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Result; - })(); - - v1.SimulationResponse = (function() { - - /** - * Properties of a SimulationResponse. - * @memberof cosmos_sdk.v1 - * @interface ISimulationResponse - * @property {cosmos_sdk.v1.IGasInfo|null} [gasInfo] SimulationResponse gasInfo - * @property {cosmos_sdk.v1.IResult|null} [result] SimulationResponse result - */ - - /** - * Constructs a new SimulationResponse. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a SimulationResponse. - * @implements ISimulationResponse - * @constructor - * @param {cosmos_sdk.v1.ISimulationResponse=} [p] Properties to set - */ - function SimulationResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * SimulationResponse gasInfo. - * @member {cosmos_sdk.v1.IGasInfo|null|undefined} gasInfo - * @memberof cosmos_sdk.v1.SimulationResponse - * @instance - */ - SimulationResponse.prototype.gasInfo = null; - - /** - * SimulationResponse result. - * @member {cosmos_sdk.v1.IResult|null|undefined} result - * @memberof cosmos_sdk.v1.SimulationResponse - * @instance - */ - SimulationResponse.prototype.result = null; - - /** - * Creates a new SimulationResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.SimulationResponse - * @static - * @param {cosmos_sdk.v1.ISimulationResponse=} [properties] Properties to set - * @returns {cosmos_sdk.v1.SimulationResponse} SimulationResponse instance - */ - SimulationResponse.create = function create(properties) { - return new SimulationResponse(properties); - }; - - /** - * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos_sdk.v1.SimulationResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.SimulationResponse - * @static - * @param {cosmos_sdk.v1.ISimulationResponse} m SimulationResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SimulationResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.gasInfo != null && Object.hasOwnProperty.call(m, "gasInfo")) - $root.cosmos_sdk.v1.GasInfo.encode(m.gasInfo, w.uint32(10).fork()).ldelim(); - if (m.result != null && Object.hasOwnProperty.call(m, "result")) - $root.cosmos_sdk.v1.Result.encode(m.result, w.uint32(18).fork()).ldelim(); - return w; - }; - - /** - * Decodes a SimulationResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.SimulationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.SimulationResponse} SimulationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SimulationResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.SimulationResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.gasInfo = $root.cosmos_sdk.v1.GasInfo.decode(r, r.uint32()); - break; - case 2: - m.result = $root.cosmos_sdk.v1.Result.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return SimulationResponse; - })(); - - v1.MsgData = (function() { - - /** - * Properties of a MsgData. - * @memberof cosmos_sdk.v1 - * @interface IMsgData - * @property {string|null} [msgType] MsgData msgType - * @property {Uint8Array|null} [data] MsgData data - */ - - /** - * Constructs a new MsgData. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a MsgData. - * @implements IMsgData - * @constructor - * @param {cosmos_sdk.v1.IMsgData=} [p] Properties to set - */ - function MsgData(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgData msgType. - * @member {string} msgType - * @memberof cosmos_sdk.v1.MsgData - * @instance - */ - MsgData.prototype.msgType = ""; - - /** - * MsgData data. - * @member {Uint8Array} data - * @memberof cosmos_sdk.v1.MsgData - * @instance - */ - MsgData.prototype.data = $util.newBuffer([]); - - /** - * Creates a new MsgData instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.MsgData - * @static - * @param {cosmos_sdk.v1.IMsgData=} [properties] Properties to set - * @returns {cosmos_sdk.v1.MsgData} MsgData instance - */ - MsgData.create = function create(properties) { - return new MsgData(properties); - }; - - /** - * Encodes the specified MsgData message. Does not implicitly {@link cosmos_sdk.v1.MsgData.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.MsgData - * @static - * @param {cosmos_sdk.v1.IMsgData} m MsgData message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgData.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.msgType != null && Object.hasOwnProperty.call(m, "msgType")) - w.uint32(10).string(m.msgType); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) - w.uint32(18).bytes(m.data); - return w; - }; - - /** - * Decodes a MsgData message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.MsgData - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.MsgData} MsgData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgData.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.MsgData(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.msgType = r.string(); - break; - case 2: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgData; - })(); - - v1.TxData = (function() { - - /** - * Properties of a TxData. - * @memberof cosmos_sdk.v1 - * @interface ITxData - * @property {Array.|null} [data] TxData data - */ - - /** - * Constructs a new TxData. - * @memberof cosmos_sdk.v1 - * @classdesc Represents a TxData. - * @implements ITxData - * @constructor - * @param {cosmos_sdk.v1.ITxData=} [p] Properties to set - */ - function TxData(p) { - this.data = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * TxData data. - * @member {Array.} data - * @memberof cosmos_sdk.v1.TxData - * @instance - */ - TxData.prototype.data = $util.emptyArray; - - /** - * Creates a new TxData instance using the specified properties. - * @function create - * @memberof cosmos_sdk.v1.TxData - * @static - * @param {cosmos_sdk.v1.ITxData=} [properties] Properties to set - * @returns {cosmos_sdk.v1.TxData} TxData instance - */ - TxData.create = function create(properties) { - return new TxData(properties); - }; - - /** - * Encodes the specified TxData message. Does not implicitly {@link cosmos_sdk.v1.TxData.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.v1.TxData - * @static - * @param {cosmos_sdk.v1.ITxData} m TxData message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TxData.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.data != null && m.data.length) { - for (var i = 0; i < m.data.length; ++i) - $root.cosmos_sdk.v1.MsgData.encode(m.data[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a TxData message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.v1.TxData - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.v1.TxData} TxData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TxData.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.v1.TxData(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.data && m.data.length)) - m.data = []; - m.data.push($root.cosmos_sdk.v1.MsgData.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return TxData; - })(); - - return v1; - })(); - - cosmos_sdk.x = (function() { - - /** - * Namespace x. - * @memberof cosmos_sdk - * @namespace - */ - var x = {}; - - x.auth = (function() { - - /** - * Namespace auth. - * @memberof cosmos_sdk.x - * @namespace - */ - var auth = {}; - - auth.v1 = (function() { /** - * Namespace v1. - * @memberof cosmos_sdk.x.auth - * @namespace + * CompactBitArray extraBitsStored. + * @member {number} extraBitsStored + * @memberof cosmos_sdk.crypto.v1.CompactBitArray + * @instance */ - var v1 = {}; + CompactBitArray.prototype.extraBitsStored = 0; - v1.BaseAccount = (function() { + /** + * CompactBitArray elems. + * @member {Uint8Array} elems + * @memberof cosmos_sdk.crypto.v1.CompactBitArray + * @instance + */ + CompactBitArray.prototype.elems = $util.newBuffer([]); - /** - * Properties of a BaseAccount. - * @memberof cosmos_sdk.x.auth.v1 - * @interface IBaseAccount - * @property {Uint8Array|null} [address] BaseAccount address - * @property {Uint8Array|null} [pubKey] BaseAccount pubKey - * @property {number|Long|null} [accountNumber] BaseAccount accountNumber - * @property {number|Long|null} [sequence] BaseAccount sequence - */ + /** + * Creates a new CompactBitArray instance using the specified properties. + * @function create + * @memberof cosmos_sdk.crypto.v1.CompactBitArray + * @static + * @param {cosmos_sdk.crypto.v1.ICompactBitArray=} [properties] Properties to set + * @returns {cosmos_sdk.crypto.v1.CompactBitArray} CompactBitArray instance + */ + CompactBitArray.create = function create(properties) { + return new CompactBitArray(properties); + }; - /** - * Constructs a new BaseAccount. - * @memberof cosmos_sdk.x.auth.v1 - * @classdesc Represents a BaseAccount. - * @implements IBaseAccount - * @constructor - * @param {cosmos_sdk.x.auth.v1.IBaseAccount=} [p] Properties to set - */ - function BaseAccount(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; + /** + * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos_sdk.crypto.v1.CompactBitArray.verify|verify} messages. + * @function encode + * @memberof cosmos_sdk.crypto.v1.CompactBitArray + * @static + * @param {cosmos_sdk.crypto.v1.ICompactBitArray} m CompactBitArray message or plain object to encode + * @param {$protobuf.Writer} [w] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompactBitArray.encode = function encode(m, w) { + if (!w) + w = $Writer.create(); + if (m.extraBitsStored != null && Object.hasOwnProperty.call(m, "extraBitsStored")) + w.uint32(8).uint32(m.extraBitsStored); + if (m.elems != null && Object.hasOwnProperty.call(m, "elems")) + w.uint32(18).bytes(m.elems); + return w; + }; + + /** + * Decodes a CompactBitArray message from the specified reader or buffer. + * @function decode + * @memberof cosmos_sdk.crypto.v1.CompactBitArray + * @static + * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from + * @param {number} [l] Message length if known beforehand + * @returns {cosmos_sdk.crypto.v1.CompactBitArray} CompactBitArray + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompactBitArray.decode = function decode(r, l) { + if (!(r instanceof $Reader)) + r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.crypto.v1.CompactBitArray(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.extraBitsStored = r.uint32(); + break; + case 2: + m.elems = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; - /** - * BaseAccount address. - * @member {Uint8Array} address - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @instance - */ - BaseAccount.prototype.address = $util.newBuffer([]); - - /** - * BaseAccount pubKey. - * @member {Uint8Array} pubKey - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @instance - */ - BaseAccount.prototype.pubKey = $util.newBuffer([]); - - /** - * BaseAccount accountNumber. - * @member {number|Long} accountNumber - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @instance - */ - BaseAccount.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * BaseAccount sequence. - * @member {number|Long} sequence - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @instance - */ - BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new BaseAccount instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @static - * @param {cosmos_sdk.x.auth.v1.IBaseAccount=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.v1.BaseAccount} BaseAccount instance - */ - BaseAccount.create = function create(properties) { - return new BaseAccount(properties); - }; - - /** - * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos_sdk.x.auth.v1.BaseAccount.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @static - * @param {cosmos_sdk.x.auth.v1.IBaseAccount} m BaseAccount message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BaseAccount.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) - w.uint32(10).bytes(m.address); - if (m.pubKey != null && Object.hasOwnProperty.call(m, "pubKey")) - w.uint32(18).bytes(m.pubKey); - if (m.accountNumber != null && Object.hasOwnProperty.call(m, "accountNumber")) - w.uint32(24).uint64(m.accountNumber); - if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) - w.uint32(32).uint64(m.sequence); - return w; - }; - - /** - * Decodes a BaseAccount message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.v1.BaseAccount - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.v1.BaseAccount} BaseAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BaseAccount.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.v1.BaseAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 2: - m.pubKey = r.bytes(); - break; - case 3: - m.accountNumber = r.uint64(); - break; - case 4: - m.sequence = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return BaseAccount; - })(); - - v1.ModuleAccount = (function() { - - /** - * Properties of a ModuleAccount. - * @memberof cosmos_sdk.x.auth.v1 - * @interface IModuleAccount - * @property {cosmos_sdk.x.auth.v1.IBaseAccount|null} [baseAccount] ModuleAccount baseAccount - * @property {string|null} [name] ModuleAccount name - * @property {Array.|null} [permissions] ModuleAccount permissions - */ - - /** - * Constructs a new ModuleAccount. - * @memberof cosmos_sdk.x.auth.v1 - * @classdesc Represents a ModuleAccount. - * @implements IModuleAccount - * @constructor - * @param {cosmos_sdk.x.auth.v1.IModuleAccount=} [p] Properties to set - */ - function ModuleAccount(p) { - this.permissions = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ModuleAccount baseAccount. - * @member {cosmos_sdk.x.auth.v1.IBaseAccount|null|undefined} baseAccount - * @memberof cosmos_sdk.x.auth.v1.ModuleAccount - * @instance - */ - ModuleAccount.prototype.baseAccount = null; - - /** - * ModuleAccount name. - * @member {string} name - * @memberof cosmos_sdk.x.auth.v1.ModuleAccount - * @instance - */ - ModuleAccount.prototype.name = ""; - - /** - * ModuleAccount permissions. - * @member {Array.} permissions - * @memberof cosmos_sdk.x.auth.v1.ModuleAccount - * @instance - */ - ModuleAccount.prototype.permissions = $util.emptyArray; - - /** - * Creates a new ModuleAccount instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.v1.ModuleAccount - * @static - * @param {cosmos_sdk.x.auth.v1.IModuleAccount=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.v1.ModuleAccount} ModuleAccount instance - */ - ModuleAccount.create = function create(properties) { - return new ModuleAccount(properties); - }; - - /** - * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos_sdk.x.auth.v1.ModuleAccount.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.v1.ModuleAccount - * @static - * @param {cosmos_sdk.x.auth.v1.IModuleAccount} m ModuleAccount message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModuleAccount.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.baseAccount != null && Object.hasOwnProperty.call(m, "baseAccount")) - $root.cosmos_sdk.x.auth.v1.BaseAccount.encode(m.baseAccount, w.uint32(10).fork()).ldelim(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) - w.uint32(18).string(m.name); - if (m.permissions != null && m.permissions.length) { - for (var i = 0; i < m.permissions.length; ++i) - w.uint32(26).string(m.permissions[i]); - } - return w; - }; - - /** - * Decodes a ModuleAccount message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.v1.ModuleAccount - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.v1.ModuleAccount} ModuleAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModuleAccount.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.v1.ModuleAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.baseAccount = $root.cosmos_sdk.x.auth.v1.BaseAccount.decode(r, r.uint32()); - break; - case 2: - m.name = r.string(); - break; - case 3: - if (!(m.permissions && m.permissions.length)) - m.permissions = []; - m.permissions.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ModuleAccount; - })(); - - v1.Params = (function() { - - /** - * Properties of a Params. - * @memberof cosmos_sdk.x.auth.v1 - * @interface IParams - * @property {number|Long|null} [maxMemoCharacters] Params maxMemoCharacters - * @property {number|Long|null} [txSigLimit] Params txSigLimit - * @property {number|Long|null} [txSizeCostPerByte] Params txSizeCostPerByte - * @property {number|Long|null} [sigVerifyCostEd25519] Params sigVerifyCostEd25519 - * @property {number|Long|null} [sigVerifyCostSecp256k1] Params sigVerifyCostSecp256k1 - */ - - /** - * Constructs a new Params. - * @memberof cosmos_sdk.x.auth.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {cosmos_sdk.x.auth.v1.IParams=} [p] Properties to set - */ - function Params(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Params maxMemoCharacters. - * @member {number|Long} maxMemoCharacters - * @memberof cosmos_sdk.x.auth.v1.Params - * @instance - */ - Params.prototype.maxMemoCharacters = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params txSigLimit. - * @member {number|Long} txSigLimit - * @memberof cosmos_sdk.x.auth.v1.Params - * @instance - */ - Params.prototype.txSigLimit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params txSizeCostPerByte. - * @member {number|Long} txSizeCostPerByte - * @memberof cosmos_sdk.x.auth.v1.Params - * @instance - */ - Params.prototype.txSizeCostPerByte = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params sigVerifyCostEd25519. - * @member {number|Long} sigVerifyCostEd25519 - * @memberof cosmos_sdk.x.auth.v1.Params - * @instance - */ - Params.prototype.sigVerifyCostEd25519 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params sigVerifyCostSecp256k1. - * @member {number|Long} sigVerifyCostSecp256k1 - * @memberof cosmos_sdk.x.auth.v1.Params - * @instance - */ - Params.prototype.sigVerifyCostSecp256k1 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new Params instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.v1.Params - * @static - * @param {cosmos_sdk.x.auth.v1.IParams=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.v1.Params} Params instance - */ - Params.create = function create(properties) { - return new Params(properties); - }; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.auth.v1.Params.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.v1.Params - * @static - * @param {cosmos_sdk.x.auth.v1.IParams} m Params message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.maxMemoCharacters != null && Object.hasOwnProperty.call(m, "maxMemoCharacters")) - w.uint32(8).uint64(m.maxMemoCharacters); - if (m.txSigLimit != null && Object.hasOwnProperty.call(m, "txSigLimit")) - w.uint32(16).uint64(m.txSigLimit); - if (m.txSizeCostPerByte != null && Object.hasOwnProperty.call(m, "txSizeCostPerByte")) - w.uint32(24).uint64(m.txSizeCostPerByte); - if (m.sigVerifyCostEd25519 != null && Object.hasOwnProperty.call(m, "sigVerifyCostEd25519")) - w.uint32(32).uint64(m.sigVerifyCostEd25519); - if (m.sigVerifyCostSecp256k1 != null && Object.hasOwnProperty.call(m, "sigVerifyCostSecp256k1")) - w.uint32(40).uint64(m.sigVerifyCostSecp256k1); - return w; - }; - - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.v1.Params(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.maxMemoCharacters = r.uint64(); - break; - case 2: - m.txSigLimit = r.uint64(); - break; - case 3: - m.txSizeCostPerByte = r.uint64(); - break; - case 4: - m.sigVerifyCostEd25519 = r.uint64(); - break; - case 5: - m.sigVerifyCostSecp256k1 = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Params; - })(); - - return v1; + return CompactBitArray; })(); - auth.vesting = (function() { - - /** - * Namespace vesting. - * @memberof cosmos_sdk.x.auth - * @namespace - */ - var vesting = {}; - - vesting.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.auth.vesting - * @namespace - */ - var v1 = {}; - - v1.BaseVestingAccount = (function() { - - /** - * Properties of a BaseVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @interface IBaseVestingAccount - * @property {cosmos_sdk.x.auth.v1.IBaseAccount|null} [baseAccount] BaseVestingAccount baseAccount - * @property {Array.|null} [originalVesting] BaseVestingAccount originalVesting - * @property {Array.|null} [delegatedFree] BaseVestingAccount delegatedFree - * @property {Array.|null} [delegatedVesting] BaseVestingAccount delegatedVesting - * @property {number|Long|null} [endTime] BaseVestingAccount endTime - */ - - /** - * Constructs a new BaseVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @classdesc Represents a BaseVestingAccount. - * @implements IBaseVestingAccount - * @constructor - * @param {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount=} [p] Properties to set - */ - function BaseVestingAccount(p) { - this.originalVesting = []; - this.delegatedFree = []; - this.delegatedVesting = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * BaseVestingAccount baseAccount. - * @member {cosmos_sdk.x.auth.v1.IBaseAccount|null|undefined} baseAccount - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @instance - */ - BaseVestingAccount.prototype.baseAccount = null; - - /** - * BaseVestingAccount originalVesting. - * @member {Array.} originalVesting - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @instance - */ - BaseVestingAccount.prototype.originalVesting = $util.emptyArray; - - /** - * BaseVestingAccount delegatedFree. - * @member {Array.} delegatedFree - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @instance - */ - BaseVestingAccount.prototype.delegatedFree = $util.emptyArray; - - /** - * BaseVestingAccount delegatedVesting. - * @member {Array.} delegatedVesting - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @instance - */ - BaseVestingAccount.prototype.delegatedVesting = $util.emptyArray; - - /** - * BaseVestingAccount endTime. - * @member {number|Long} endTime - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @instance - */ - BaseVestingAccount.prototype.endTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new BaseVestingAccount instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount} BaseVestingAccount instance - */ - BaseVestingAccount.create = function create(properties) { - return new BaseVestingAccount(properties); - }; - - /** - * Encodes the specified BaseVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount} m BaseVestingAccount message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BaseVestingAccount.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.baseAccount != null && Object.hasOwnProperty.call(m, "baseAccount")) - $root.cosmos_sdk.x.auth.v1.BaseAccount.encode(m.baseAccount, w.uint32(10).fork()).ldelim(); - if (m.originalVesting != null && m.originalVesting.length) { - for (var i = 0; i < m.originalVesting.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.originalVesting[i], w.uint32(18).fork()).ldelim(); - } - if (m.delegatedFree != null && m.delegatedFree.length) { - for (var i = 0; i < m.delegatedFree.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.delegatedFree[i], w.uint32(26).fork()).ldelim(); - } - if (m.delegatedVesting != null && m.delegatedVesting.length) { - for (var i = 0; i < m.delegatedVesting.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.delegatedVesting[i], w.uint32(34).fork()).ldelim(); - } - if (m.endTime != null && Object.hasOwnProperty.call(m, "endTime")) - w.uint32(40).int64(m.endTime); - return w; - }; - - /** - * Decodes a BaseVestingAccount message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount} BaseVestingAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BaseVestingAccount.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.baseAccount = $root.cosmos_sdk.x.auth.v1.BaseAccount.decode(r, r.uint32()); - break; - case 2: - if (!(m.originalVesting && m.originalVesting.length)) - m.originalVesting = []; - m.originalVesting.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 3: - if (!(m.delegatedFree && m.delegatedFree.length)) - m.delegatedFree = []; - m.delegatedFree.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 4: - if (!(m.delegatedVesting && m.delegatedVesting.length)) - m.delegatedVesting = []; - m.delegatedVesting.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 5: - m.endTime = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return BaseVestingAccount; - })(); - - v1.ContinuousVestingAccount = (function() { - - /** - * Properties of a ContinuousVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @interface IContinuousVestingAccount - * @property {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount|null} [baseVestingAccount] ContinuousVestingAccount baseVestingAccount - * @property {number|Long|null} [startTime] ContinuousVestingAccount startTime - */ - - /** - * Constructs a new ContinuousVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @classdesc Represents a ContinuousVestingAccount. - * @implements IContinuousVestingAccount - * @constructor - * @param {cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount=} [p] Properties to set - */ - function ContinuousVestingAccount(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ContinuousVestingAccount baseVestingAccount. - * @member {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount|null|undefined} baseVestingAccount - * @memberof cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount - * @instance - */ - ContinuousVestingAccount.prototype.baseVestingAccount = null; - - /** - * ContinuousVestingAccount startTime. - * @member {number|Long} startTime - * @memberof cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount - * @instance - */ - ContinuousVestingAccount.prototype.startTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new ContinuousVestingAccount instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount} ContinuousVestingAccount instance - */ - ContinuousVestingAccount.create = function create(properties) { - return new ContinuousVestingAccount(properties); - }; - - /** - * Encodes the specified ContinuousVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IContinuousVestingAccount} m ContinuousVestingAccount message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContinuousVestingAccount.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.baseVestingAccount != null && Object.hasOwnProperty.call(m, "baseVestingAccount")) - $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.encode(m.baseVestingAccount, w.uint32(10).fork()).ldelim(); - if (m.startTime != null && Object.hasOwnProperty.call(m, "startTime")) - w.uint32(16).int64(m.startTime); - return w; - }; - - /** - * Decodes a ContinuousVestingAccount message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount} ContinuousVestingAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContinuousVestingAccount.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.vesting.v1.ContinuousVestingAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.baseVestingAccount = $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.decode(r, r.uint32()); - break; - case 2: - m.startTime = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ContinuousVestingAccount; - })(); - - v1.DelayedVestingAccount = (function() { - - /** - * Properties of a DelayedVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @interface IDelayedVestingAccount - * @property {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount|null} [baseVestingAccount] DelayedVestingAccount baseVestingAccount - */ - - /** - * Constructs a new DelayedVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @classdesc Represents a DelayedVestingAccount. - * @implements IDelayedVestingAccount - * @constructor - * @param {cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount=} [p] Properties to set - */ - function DelayedVestingAccount(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DelayedVestingAccount baseVestingAccount. - * @member {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount|null|undefined} baseVestingAccount - * @memberof cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount - * @instance - */ - DelayedVestingAccount.prototype.baseVestingAccount = null; - - /** - * Creates a new DelayedVestingAccount instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount} DelayedVestingAccount instance - */ - DelayedVestingAccount.create = function create(properties) { - return new DelayedVestingAccount(properties); - }; - - /** - * Encodes the specified DelayedVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IDelayedVestingAccount} m DelayedVestingAccount message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DelayedVestingAccount.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.baseVestingAccount != null && Object.hasOwnProperty.call(m, "baseVestingAccount")) - $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.encode(m.baseVestingAccount, w.uint32(10).fork()).ldelim(); - return w; - }; - - /** - * Decodes a DelayedVestingAccount message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount} DelayedVestingAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DelayedVestingAccount.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.vesting.v1.DelayedVestingAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.baseVestingAccount = $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return DelayedVestingAccount; - })(); - - v1.Period = (function() { - - /** - * Properties of a Period. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @interface IPeriod - * @property {number|Long|null} [length] Period length - * @property {Array.|null} [amount] Period amount - */ - - /** - * Constructs a new Period. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @classdesc Represents a Period. - * @implements IPeriod - * @constructor - * @param {cosmos_sdk.x.auth.vesting.v1.IPeriod=} [p] Properties to set - */ - function Period(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Period length. - * @member {number|Long} length - * @memberof cosmos_sdk.x.auth.vesting.v1.Period - * @instance - */ - Period.prototype.length = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Period amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.auth.vesting.v1.Period - * @instance - */ - Period.prototype.amount = $util.emptyArray; - - /** - * Creates a new Period instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.vesting.v1.Period - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IPeriod=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.vesting.v1.Period} Period instance - */ - Period.create = function create(properties) { - return new Period(properties); - }; - - /** - * Encodes the specified Period message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.Period.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.vesting.v1.Period - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IPeriod} m Period message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Period.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.length != null && Object.hasOwnProperty.call(m, "length")) - w.uint32(8).int64(m.length); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a Period message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.vesting.v1.Period - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.vesting.v1.Period} Period - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Period.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.vesting.v1.Period(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.length = r.int64(); - break; - case 2: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Period; - })(); - - v1.PeriodicVestingAccount = (function() { - - /** - * Properties of a PeriodicVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @interface IPeriodicVestingAccount - * @property {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount|null} [baseVestingAccount] PeriodicVestingAccount baseVestingAccount - * @property {number|Long|null} [startTime] PeriodicVestingAccount startTime - * @property {Array.|null} [vestingPeriods] PeriodicVestingAccount vestingPeriods - */ - - /** - * Constructs a new PeriodicVestingAccount. - * @memberof cosmos_sdk.x.auth.vesting.v1 - * @classdesc Represents a PeriodicVestingAccount. - * @implements IPeriodicVestingAccount - * @constructor - * @param {cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount=} [p] Properties to set - */ - function PeriodicVestingAccount(p) { - this.vestingPeriods = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * PeriodicVestingAccount baseVestingAccount. - * @member {cosmos_sdk.x.auth.vesting.v1.IBaseVestingAccount|null|undefined} baseVestingAccount - * @memberof cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount - * @instance - */ - PeriodicVestingAccount.prototype.baseVestingAccount = null; - - /** - * PeriodicVestingAccount startTime. - * @member {number|Long} startTime - * @memberof cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount - * @instance - */ - PeriodicVestingAccount.prototype.startTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PeriodicVestingAccount vestingPeriods. - * @member {Array.} vestingPeriods - * @memberof cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount - * @instance - */ - PeriodicVestingAccount.prototype.vestingPeriods = $util.emptyArray; - - /** - * Creates a new PeriodicVestingAccount instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount=} [properties] Properties to set - * @returns {cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount} PeriodicVestingAccount instance - */ - PeriodicVestingAccount.create = function create(properties) { - return new PeriodicVestingAccount(properties); - }; - - /** - * Encodes the specified PeriodicVestingAccount message. Does not implicitly {@link cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount - * @static - * @param {cosmos_sdk.x.auth.vesting.v1.IPeriodicVestingAccount} m PeriodicVestingAccount message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PeriodicVestingAccount.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.baseVestingAccount != null && Object.hasOwnProperty.call(m, "baseVestingAccount")) - $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.encode(m.baseVestingAccount, w.uint32(10).fork()).ldelim(); - if (m.startTime != null && Object.hasOwnProperty.call(m, "startTime")) - w.uint32(16).int64(m.startTime); - if (m.vestingPeriods != null && m.vestingPeriods.length) { - for (var i = 0; i < m.vestingPeriods.length; ++i) - $root.cosmos_sdk.x.auth.vesting.v1.Period.encode(m.vestingPeriods[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a PeriodicVestingAccount message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount} PeriodicVestingAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PeriodicVestingAccount.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.auth.vesting.v1.PeriodicVestingAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.baseVestingAccount = $root.cosmos_sdk.x.auth.vesting.v1.BaseVestingAccount.decode(r, r.uint32()); - break; - case 2: - m.startTime = r.int64(); - break; - case 3: - if (!(m.vestingPeriods && m.vestingPeriods.length)) - m.vestingPeriods = []; - m.vestingPeriods.push($root.cosmos_sdk.x.auth.vesting.v1.Period.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return PeriodicVestingAccount; - })(); - - return v1; - })(); - - return vesting; - })(); - - return auth; + return v1; })(); - x.bank = (function() { - - /** - * Namespace bank. - * @memberof cosmos_sdk.x - * @namespace - */ - var bank = {}; - - bank.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.bank - * @namespace - */ - var v1 = {}; - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Creates new Query service using the specified rpc implementation. - * @function create - * @memberof cosmos_sdk.x.bank.v1.Query - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Query} RPC service. Useful where requests and/or responses are streamed. - */ - Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#balance}. - * @memberof cosmos_sdk.x.bank.v1.Query - * @typedef BalanceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {cosmos_sdk.x.bank.v1.QueryBalanceResponse} [response] QueryBalanceResponse - */ - - /** - * Calls Balance. - * @function balance - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceRequest} request QueryBalanceRequest message or plain object - * @param {cosmos_sdk.x.bank.v1.Query.BalanceCallback} callback Node-style callback called with the error, if any, and QueryBalanceResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.balance = function balance(request, callback) { - return this.rpcCall(balance, $root.cosmos_sdk.x.bank.v1.QueryBalanceRequest, $root.cosmos_sdk.x.bank.v1.QueryBalanceResponse, request, callback); - }, "name", { value: "Balance" }); - - /** - * Calls Balance. - * @function balance - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceRequest} request QueryBalanceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#allBalances}. - * @memberof cosmos_sdk.x.bank.v1.Query - * @typedef AllBalancesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {cosmos_sdk.x.bank.v1.QueryAllBalancesResponse} [response] QueryAllBalancesResponse - */ - - /** - * Calls AllBalances. - * @function allBalances - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest} request QueryAllBalancesRequest message or plain object - * @param {cosmos_sdk.x.bank.v1.Query.AllBalancesCallback} callback Node-style callback called with the error, if any, and QueryAllBalancesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.allBalances = function allBalances(request, callback) { - return this.rpcCall(allBalances, $root.cosmos_sdk.x.bank.v1.QueryAllBalancesRequest, $root.cosmos_sdk.x.bank.v1.QueryAllBalancesResponse, request, callback); - }, "name", { value: "AllBalances" }); - - /** - * Calls AllBalances. - * @function allBalances - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest} request QueryAllBalancesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#totalSupply}. - * @memberof cosmos_sdk.x.bank.v1.Query - * @typedef TotalSupplyCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse} [response] QueryTotalSupplyResponse - */ - - /** - * Calls TotalSupply. - * @function totalSupply - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest} request QueryTotalSupplyRequest message or plain object - * @param {cosmos_sdk.x.bank.v1.Query.TotalSupplyCallback} callback Node-style callback called with the error, if any, and QueryTotalSupplyResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalSupply = function totalSupply(request, callback) { - return this.rpcCall(totalSupply, $root.cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest, $root.cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse, request, callback); - }, "name", { value: "TotalSupply" }); - - /** - * Calls TotalSupply. - * @function totalSupply - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest} request QueryTotalSupplyRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link cosmos_sdk.x.bank.v1.Query#supplyOf}. - * @memberof cosmos_sdk.x.bank.v1.Query - * @typedef SupplyOfCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {cosmos_sdk.x.bank.v1.QuerySupplyOfResponse} [response] QuerySupplyOfResponse - */ - - /** - * Calls SupplyOf. - * @function supplyOf - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest} request QuerySupplyOfRequest message or plain object - * @param {cosmos_sdk.x.bank.v1.Query.SupplyOfCallback} callback Node-style callback called with the error, if any, and QuerySupplyOfResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.supplyOf = function supplyOf(request, callback) { - return this.rpcCall(supplyOf, $root.cosmos_sdk.x.bank.v1.QuerySupplyOfRequest, $root.cosmos_sdk.x.bank.v1.QuerySupplyOfResponse, request, callback); - }, "name", { value: "SupplyOf" }); - - /** - * Calls SupplyOf. - * @function supplyOf - * @memberof cosmos_sdk.x.bank.v1.Query - * @instance - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest} request QuerySupplyOfRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Query; - })(); - - v1.QueryBalanceRequest = (function() { - - /** - * Properties of a QueryBalanceRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQueryBalanceRequest - * @property {Uint8Array|null} [address] QueryBalanceRequest address - * @property {string|null} [denom] QueryBalanceRequest denom - */ - - /** - * Constructs a new QueryBalanceRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QueryBalanceRequest. - * @implements IQueryBalanceRequest - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceRequest=} [p] Properties to set - */ - function QueryBalanceRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QueryBalanceRequest address. - * @member {Uint8Array} address - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceRequest - * @instance - */ - QueryBalanceRequest.prototype.address = $util.newBuffer([]); - - /** - * QueryBalanceRequest denom. - * @member {string} denom - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceRequest - * @instance - */ - QueryBalanceRequest.prototype.denom = ""; - - /** - * Creates a new QueryBalanceRequest instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceRequest=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QueryBalanceRequest} QueryBalanceRequest instance - */ - QueryBalanceRequest.create = function create(properties) { - return new QueryBalanceRequest(properties); - }; - - /** - * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryBalanceRequest.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceRequest} m QueryBalanceRequest message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryBalanceRequest.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) - w.uint32(10).bytes(m.address); - if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) - w.uint32(18).string(m.denom); - return w; - }; - - /** - * Decodes a QueryBalanceRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QueryBalanceRequest} QueryBalanceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryBalanceRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QueryBalanceRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 2: - m.denom = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QueryBalanceRequest; - })(); - - v1.QueryBalanceResponse = (function() { - - /** - * Properties of a QueryBalanceResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQueryBalanceResponse - * @property {cosmos_sdk.v1.ICoin|null} [balance] QueryBalanceResponse balance - */ - - /** - * Constructs a new QueryBalanceResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QueryBalanceResponse. - * @implements IQueryBalanceResponse - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceResponse=} [p] Properties to set - */ - function QueryBalanceResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QueryBalanceResponse balance. - * @member {cosmos_sdk.v1.ICoin|null|undefined} balance - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceResponse - * @instance - */ - QueryBalanceResponse.prototype.balance = null; - - /** - * Creates a new QueryBalanceResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceResponse=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QueryBalanceResponse} QueryBalanceResponse instance - */ - QueryBalanceResponse.create = function create(properties) { - return new QueryBalanceResponse(properties); - }; - - /** - * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryBalanceResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryBalanceResponse} m QueryBalanceResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryBalanceResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.balance != null && Object.hasOwnProperty.call(m, "balance")) - $root.cosmos_sdk.v1.Coin.encode(m.balance, w.uint32(10).fork()).ldelim(); - return w; - }; - - /** - * Decodes a QueryBalanceResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QueryBalanceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QueryBalanceResponse} QueryBalanceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryBalanceResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QueryBalanceResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.balance = $root.cosmos_sdk.v1.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QueryBalanceResponse; - })(); - - v1.QueryAllBalancesRequest = (function() { - - /** - * Properties of a QueryAllBalancesRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQueryAllBalancesRequest - * @property {Uint8Array|null} [address] QueryAllBalancesRequest address - */ - - /** - * Constructs a new QueryAllBalancesRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QueryAllBalancesRequest. - * @implements IQueryAllBalancesRequest - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest=} [p] Properties to set - */ - function QueryAllBalancesRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QueryAllBalancesRequest address. - * @member {Uint8Array} address - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesRequest - * @instance - */ - QueryAllBalancesRequest.prototype.address = $util.newBuffer([]); - - /** - * Creates a new QueryAllBalancesRequest instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QueryAllBalancesRequest} QueryAllBalancesRequest instance - */ - QueryAllBalancesRequest.create = function create(properties) { - return new QueryAllBalancesRequest(properties); - }; - - /** - * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryAllBalancesRequest.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesRequest} m QueryAllBalancesRequest message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryAllBalancesRequest.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) - w.uint32(10).bytes(m.address); - return w; - }; - - /** - * Decodes a QueryAllBalancesRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QueryAllBalancesRequest} QueryAllBalancesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryAllBalancesRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QueryAllBalancesRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QueryAllBalancesRequest; - })(); - - v1.QueryAllBalancesResponse = (function() { - - /** - * Properties of a QueryAllBalancesResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQueryAllBalancesResponse - * @property {Array.|null} [balances] QueryAllBalancesResponse balances - */ - - /** - * Constructs a new QueryAllBalancesResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QueryAllBalancesResponse. - * @implements IQueryAllBalancesResponse - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse=} [p] Properties to set - */ - function QueryAllBalancesResponse(p) { - this.balances = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QueryAllBalancesResponse balances. - * @member {Array.} balances - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesResponse - * @instance - */ - QueryAllBalancesResponse.prototype.balances = $util.emptyArray; - - /** - * Creates a new QueryAllBalancesResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QueryAllBalancesResponse} QueryAllBalancesResponse instance - */ - QueryAllBalancesResponse.create = function create(properties) { - return new QueryAllBalancesResponse(properties); - }; - - /** - * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryAllBalancesResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryAllBalancesResponse} m QueryAllBalancesResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryAllBalancesResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.balances != null && m.balances.length) { - for (var i = 0; i < m.balances.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.balances[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a QueryAllBalancesResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QueryAllBalancesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QueryAllBalancesResponse} QueryAllBalancesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryAllBalancesResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QueryAllBalancesResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.balances && m.balances.length)) - m.balances = []; - m.balances.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QueryAllBalancesResponse; - })(); - - v1.QueryTotalSupplyRequest = (function() { - - /** - * Properties of a QueryTotalSupplyRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQueryTotalSupplyRequest - */ - - /** - * Constructs a new QueryTotalSupplyRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QueryTotalSupplyRequest. - * @implements IQueryTotalSupplyRequest - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest=} [p] Properties to set - */ - function QueryTotalSupplyRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Creates a new QueryTotalSupplyRequest instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest} QueryTotalSupplyRequest instance - */ - QueryTotalSupplyRequest.create = function create(properties) { - return new QueryTotalSupplyRequest(properties); - }; - - /** - * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyRequest} m QueryTotalSupplyRequest message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryTotalSupplyRequest.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - return w; - }; - - /** - * Decodes a QueryTotalSupplyRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest} QueryTotalSupplyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryTotalSupplyRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QueryTotalSupplyRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QueryTotalSupplyRequest; - })(); - - v1.QueryTotalSupplyResponse = (function() { - - /** - * Properties of a QueryTotalSupplyResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQueryTotalSupplyResponse - * @property {Array.|null} [supply] QueryTotalSupplyResponse supply - */ - - /** - * Constructs a new QueryTotalSupplyResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QueryTotalSupplyResponse. - * @implements IQueryTotalSupplyResponse - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse=} [p] Properties to set - */ - function QueryTotalSupplyResponse(p) { - this.supply = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QueryTotalSupplyResponse supply. - * @member {Array.} supply - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse - * @instance - */ - QueryTotalSupplyResponse.prototype.supply = $util.emptyArray; - - /** - * Creates a new QueryTotalSupplyResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse} QueryTotalSupplyResponse instance - */ - QueryTotalSupplyResponse.create = function create(properties) { - return new QueryTotalSupplyResponse(properties); - }; - - /** - * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQueryTotalSupplyResponse} m QueryTotalSupplyResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryTotalSupplyResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.supply != null && m.supply.length) { - for (var i = 0; i < m.supply.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.supply[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a QueryTotalSupplyResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse} QueryTotalSupplyResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryTotalSupplyResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QueryTotalSupplyResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.supply && m.supply.length)) - m.supply = []; - m.supply.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QueryTotalSupplyResponse; - })(); - - v1.QuerySupplyOfRequest = (function() { - - /** - * Properties of a QuerySupplyOfRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQuerySupplyOfRequest - * @property {string|null} [denom] QuerySupplyOfRequest denom - */ - - /** - * Constructs a new QuerySupplyOfRequest. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QuerySupplyOfRequest. - * @implements IQuerySupplyOfRequest - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest=} [p] Properties to set - */ - function QuerySupplyOfRequest(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QuerySupplyOfRequest denom. - * @member {string} denom - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfRequest - * @instance - */ - QuerySupplyOfRequest.prototype.denom = ""; - - /** - * Creates a new QuerySupplyOfRequest instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QuerySupplyOfRequest} QuerySupplyOfRequest instance - */ - QuerySupplyOfRequest.create = function create(properties) { - return new QuerySupplyOfRequest(properties); - }; - - /** - * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QuerySupplyOfRequest.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfRequest - * @static - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfRequest} m QuerySupplyOfRequest message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QuerySupplyOfRequest.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) - w.uint32(10).string(m.denom); - return w; - }; - - /** - * Decodes a QuerySupplyOfRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfRequest - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QuerySupplyOfRequest} QuerySupplyOfRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QuerySupplyOfRequest.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QuerySupplyOfRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QuerySupplyOfRequest; - })(); - - v1.QuerySupplyOfResponse = (function() { - - /** - * Properties of a QuerySupplyOfResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IQuerySupplyOfResponse - * @property {string|null} [amount] QuerySupplyOfResponse amount - */ - - /** - * Constructs a new QuerySupplyOfResponse. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a QuerySupplyOfResponse. - * @implements IQuerySupplyOfResponse - * @constructor - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse=} [p] Properties to set - */ - function QuerySupplyOfResponse(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * QuerySupplyOfResponse amount. - * @member {string} amount - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfResponse - * @instance - */ - QuerySupplyOfResponse.prototype.amount = ""; - - /** - * Creates a new QuerySupplyOfResponse instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.QuerySupplyOfResponse} QuerySupplyOfResponse instance - */ - QuerySupplyOfResponse.create = function create(properties) { - return new QuerySupplyOfResponse(properties); - }; - - /** - * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos_sdk.x.bank.v1.QuerySupplyOfResponse.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfResponse - * @static - * @param {cosmos_sdk.x.bank.v1.IQuerySupplyOfResponse} m QuerySupplyOfResponse message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QuerySupplyOfResponse.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - w.uint32(10).string(m.amount); - return w; - }; - - /** - * Decodes a QuerySupplyOfResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.QuerySupplyOfResponse - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.QuerySupplyOfResponse} QuerySupplyOfResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QuerySupplyOfResponse.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.QuerySupplyOfResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.amount = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return QuerySupplyOfResponse; - })(); - - v1.MsgSend = (function() { - - /** - * Properties of a MsgSend. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IMsgSend - * @property {Uint8Array|null} [fromAddress] MsgSend fromAddress - * @property {Uint8Array|null} [toAddress] MsgSend toAddress - * @property {Array.|null} [amount] MsgSend amount - */ - - /** - * Constructs a new MsgSend. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a MsgSend. - * @implements IMsgSend - * @constructor - * @param {cosmos_sdk.x.bank.v1.IMsgSend=} [p] Properties to set - */ - function MsgSend(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgSend fromAddress. - * @member {Uint8Array} fromAddress - * @memberof cosmos_sdk.x.bank.v1.MsgSend - * @instance - */ - MsgSend.prototype.fromAddress = $util.newBuffer([]); - - /** - * MsgSend toAddress. - * @member {Uint8Array} toAddress - * @memberof cosmos_sdk.x.bank.v1.MsgSend - * @instance - */ - MsgSend.prototype.toAddress = $util.newBuffer([]); - - /** - * MsgSend amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.bank.v1.MsgSend - * @instance - */ - MsgSend.prototype.amount = $util.emptyArray; - - /** - * Creates a new MsgSend instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.MsgSend - * @static - * @param {cosmos_sdk.x.bank.v1.IMsgSend=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.MsgSend} MsgSend instance - */ - MsgSend.create = function create(properties) { - return new MsgSend(properties); - }; - - /** - * Encodes the specified MsgSend message. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgSend.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.MsgSend - * @static - * @param {cosmos_sdk.x.bank.v1.IMsgSend} m MsgSend message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSend.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.fromAddress != null && Object.hasOwnProperty.call(m, "fromAddress")) - w.uint32(10).bytes(m.fromAddress); - if (m.toAddress != null && Object.hasOwnProperty.call(m, "toAddress")) - w.uint32(18).bytes(m.toAddress); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a MsgSend message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.MsgSend - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.MsgSend} MsgSend - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSend.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.MsgSend(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.fromAddress = r.bytes(); - break; - case 2: - m.toAddress = r.bytes(); - break; - case 3: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgSend; - })(); - - v1.Input = (function() { - - /** - * Properties of an Input. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IInput - * @property {Uint8Array|null} [address] Input address - * @property {Array.|null} [coins] Input coins - */ - - /** - * Constructs a new Input. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents an Input. - * @implements IInput - * @constructor - * @param {cosmos_sdk.x.bank.v1.IInput=} [p] Properties to set - */ - function Input(p) { - this.coins = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Input address. - * @member {Uint8Array} address - * @memberof cosmos_sdk.x.bank.v1.Input - * @instance - */ - Input.prototype.address = $util.newBuffer([]); - - /** - * Input coins. - * @member {Array.} coins - * @memberof cosmos_sdk.x.bank.v1.Input - * @instance - */ - Input.prototype.coins = $util.emptyArray; - - /** - * Creates a new Input instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.Input - * @static - * @param {cosmos_sdk.x.bank.v1.IInput=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.Input} Input instance - */ - Input.create = function create(properties) { - return new Input(properties); - }; - - /** - * Encodes the specified Input message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Input.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.Input - * @static - * @param {cosmos_sdk.x.bank.v1.IInput} m Input message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Input.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) - w.uint32(10).bytes(m.address); - if (m.coins != null && m.coins.length) { - for (var i = 0; i < m.coins.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes an Input message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.Input - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.Input} Input - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Input.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.Input(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 2: - if (!(m.coins && m.coins.length)) - m.coins = []; - m.coins.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Input; - })(); - - v1.Output = (function() { - - /** - * Properties of an Output. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IOutput - * @property {Uint8Array|null} [address] Output address - * @property {Array.|null} [coins] Output coins - */ - - /** - * Constructs a new Output. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents an Output. - * @implements IOutput - * @constructor - * @param {cosmos_sdk.x.bank.v1.IOutput=} [p] Properties to set - */ - function Output(p) { - this.coins = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Output address. - * @member {Uint8Array} address - * @memberof cosmos_sdk.x.bank.v1.Output - * @instance - */ - Output.prototype.address = $util.newBuffer([]); - - /** - * Output coins. - * @member {Array.} coins - * @memberof cosmos_sdk.x.bank.v1.Output - * @instance - */ - Output.prototype.coins = $util.emptyArray; - - /** - * Creates a new Output instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.Output - * @static - * @param {cosmos_sdk.x.bank.v1.IOutput=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.Output} Output instance - */ - Output.create = function create(properties) { - return new Output(properties); - }; - - /** - * Encodes the specified Output message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Output.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.Output - * @static - * @param {cosmos_sdk.x.bank.v1.IOutput} m Output message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Output.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) - w.uint32(10).bytes(m.address); - if (m.coins != null && m.coins.length) { - for (var i = 0; i < m.coins.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes an Output message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.Output - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.Output} Output - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Output.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.Output(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 2: - if (!(m.coins && m.coins.length)) - m.coins = []; - m.coins.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Output; - })(); - - v1.MsgMultiSend = (function() { - - /** - * Properties of a MsgMultiSend. - * @memberof cosmos_sdk.x.bank.v1 - * @interface IMsgMultiSend - * @property {Array.|null} [inputs] MsgMultiSend inputs - * @property {Array.|null} [outputs] MsgMultiSend outputs - */ - - /** - * Constructs a new MsgMultiSend. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a MsgMultiSend. - * @implements IMsgMultiSend - * @constructor - * @param {cosmos_sdk.x.bank.v1.IMsgMultiSend=} [p] Properties to set - */ - function MsgMultiSend(p) { - this.inputs = []; - this.outputs = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgMultiSend inputs. - * @member {Array.} inputs - * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend - * @instance - */ - MsgMultiSend.prototype.inputs = $util.emptyArray; - - /** - * MsgMultiSend outputs. - * @member {Array.} outputs - * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend - * @instance - */ - MsgMultiSend.prototype.outputs = $util.emptyArray; - - /** - * Creates a new MsgMultiSend instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend - * @static - * @param {cosmos_sdk.x.bank.v1.IMsgMultiSend=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.MsgMultiSend} MsgMultiSend instance - */ - MsgMultiSend.create = function create(properties) { - return new MsgMultiSend(properties); - }; - - /** - * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos_sdk.x.bank.v1.MsgMultiSend.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend - * @static - * @param {cosmos_sdk.x.bank.v1.IMsgMultiSend} m MsgMultiSend message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgMultiSend.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.inputs != null && m.inputs.length) { - for (var i = 0; i < m.inputs.length; ++i) - $root.cosmos_sdk.x.bank.v1.Input.encode(m.inputs[i], w.uint32(10).fork()).ldelim(); - } - if (m.outputs != null && m.outputs.length) { - for (var i = 0; i < m.outputs.length; ++i) - $root.cosmos_sdk.x.bank.v1.Output.encode(m.outputs[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a MsgMultiSend message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.MsgMultiSend - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.MsgMultiSend} MsgMultiSend - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgMultiSend.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.MsgMultiSend(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.inputs && m.inputs.length)) - m.inputs = []; - m.inputs.push($root.cosmos_sdk.x.bank.v1.Input.decode(r, r.uint32())); - break; - case 2: - if (!(m.outputs && m.outputs.length)) - m.outputs = []; - m.outputs.push($root.cosmos_sdk.x.bank.v1.Output.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgMultiSend; - })(); - - v1.Supply = (function() { - - /** - * Properties of a Supply. - * @memberof cosmos_sdk.x.bank.v1 - * @interface ISupply - * @property {Array.|null} [total] Supply total - */ - - /** - * Constructs a new Supply. - * @memberof cosmos_sdk.x.bank.v1 - * @classdesc Represents a Supply. - * @implements ISupply - * @constructor - * @param {cosmos_sdk.x.bank.v1.ISupply=} [p] Properties to set - */ - function Supply(p) { - this.total = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Supply total. - * @member {Array.} total - * @memberof cosmos_sdk.x.bank.v1.Supply - * @instance - */ - Supply.prototype.total = $util.emptyArray; - - /** - * Creates a new Supply instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.bank.v1.Supply - * @static - * @param {cosmos_sdk.x.bank.v1.ISupply=} [properties] Properties to set - * @returns {cosmos_sdk.x.bank.v1.Supply} Supply instance - */ - Supply.create = function create(properties) { - return new Supply(properties); - }; - - /** - * Encodes the specified Supply message. Does not implicitly {@link cosmos_sdk.x.bank.v1.Supply.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.bank.v1.Supply - * @static - * @param {cosmos_sdk.x.bank.v1.ISupply} m Supply message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Supply.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.total != null && m.total.length) { - for (var i = 0; i < m.total.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.total[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a Supply message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.bank.v1.Supply - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.bank.v1.Supply} Supply - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Supply.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.bank.v1.Supply(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.total && m.total.length)) - m.total = []; - m.total.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Supply; - })(); - - return v1; - })(); - - return bank; - })(); - - x.capability = (function() { - - /** - * Namespace capability. - * @memberof cosmos_sdk.x - * @namespace - */ - var capability = {}; - - capability.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.capability - * @namespace - */ - var v1 = {}; - - v1.Capability = (function() { - - /** - * Properties of a Capability. - * @memberof cosmos_sdk.x.capability.v1 - * @interface ICapability - * @property {number|Long|null} [index] Capability index - */ - - /** - * Constructs a new Capability. - * @memberof cosmos_sdk.x.capability.v1 - * @classdesc Represents a Capability. - * @implements ICapability - * @constructor - * @param {cosmos_sdk.x.capability.v1.ICapability=} [p] Properties to set - */ - function Capability(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Capability index. - * @member {number|Long} index - * @memberof cosmos_sdk.x.capability.v1.Capability - * @instance - */ - Capability.prototype.index = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new Capability instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.capability.v1.Capability - * @static - * @param {cosmos_sdk.x.capability.v1.ICapability=} [properties] Properties to set - * @returns {cosmos_sdk.x.capability.v1.Capability} Capability instance - */ - Capability.create = function create(properties) { - return new Capability(properties); - }; - - /** - * Encodes the specified Capability message. Does not implicitly {@link cosmos_sdk.x.capability.v1.Capability.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.capability.v1.Capability - * @static - * @param {cosmos_sdk.x.capability.v1.ICapability} m Capability message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Capability.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.index != null && Object.hasOwnProperty.call(m, "index")) - w.uint32(8).uint64(m.index); - return w; - }; - - /** - * Decodes a Capability message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.capability.v1.Capability - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.capability.v1.Capability} Capability - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Capability.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.capability.v1.Capability(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.index = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Capability; - })(); - - v1.Owner = (function() { - - /** - * Properties of an Owner. - * @memberof cosmos_sdk.x.capability.v1 - * @interface IOwner - * @property {string|null} [module] Owner module - * @property {string|null} [name] Owner name - */ - - /** - * Constructs a new Owner. - * @memberof cosmos_sdk.x.capability.v1 - * @classdesc Represents an Owner. - * @implements IOwner - * @constructor - * @param {cosmos_sdk.x.capability.v1.IOwner=} [p] Properties to set - */ - function Owner(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Owner module. - * @member {string} module - * @memberof cosmos_sdk.x.capability.v1.Owner - * @instance - */ - Owner.prototype.module = ""; - - /** - * Owner name. - * @member {string} name - * @memberof cosmos_sdk.x.capability.v1.Owner - * @instance - */ - Owner.prototype.name = ""; - - /** - * Creates a new Owner instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.capability.v1.Owner - * @static - * @param {cosmos_sdk.x.capability.v1.IOwner=} [properties] Properties to set - * @returns {cosmos_sdk.x.capability.v1.Owner} Owner instance - */ - Owner.create = function create(properties) { - return new Owner(properties); - }; - - /** - * Encodes the specified Owner message. Does not implicitly {@link cosmos_sdk.x.capability.v1.Owner.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.capability.v1.Owner - * @static - * @param {cosmos_sdk.x.capability.v1.IOwner} m Owner message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Owner.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.module != null && Object.hasOwnProperty.call(m, "module")) - w.uint32(10).string(m.module); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) - w.uint32(18).string(m.name); - return w; - }; - - /** - * Decodes an Owner message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.capability.v1.Owner - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.capability.v1.Owner} Owner - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Owner.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.capability.v1.Owner(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.module = r.string(); - break; - case 2: - m.name = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Owner; - })(); - - v1.CapabilityOwners = (function() { - - /** - * Properties of a CapabilityOwners. - * @memberof cosmos_sdk.x.capability.v1 - * @interface ICapabilityOwners - * @property {Array.|null} [owners] CapabilityOwners owners - */ - - /** - * Constructs a new CapabilityOwners. - * @memberof cosmos_sdk.x.capability.v1 - * @classdesc Represents a CapabilityOwners. - * @implements ICapabilityOwners - * @constructor - * @param {cosmos_sdk.x.capability.v1.ICapabilityOwners=} [p] Properties to set - */ - function CapabilityOwners(p) { - this.owners = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * CapabilityOwners owners. - * @member {Array.} owners - * @memberof cosmos_sdk.x.capability.v1.CapabilityOwners - * @instance - */ - CapabilityOwners.prototype.owners = $util.emptyArray; - - /** - * Creates a new CapabilityOwners instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.capability.v1.CapabilityOwners - * @static - * @param {cosmos_sdk.x.capability.v1.ICapabilityOwners=} [properties] Properties to set - * @returns {cosmos_sdk.x.capability.v1.CapabilityOwners} CapabilityOwners instance - */ - CapabilityOwners.create = function create(properties) { - return new CapabilityOwners(properties); - }; - - /** - * Encodes the specified CapabilityOwners message. Does not implicitly {@link cosmos_sdk.x.capability.v1.CapabilityOwners.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.capability.v1.CapabilityOwners - * @static - * @param {cosmos_sdk.x.capability.v1.ICapabilityOwners} m CapabilityOwners message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CapabilityOwners.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.owners != null && m.owners.length) { - for (var i = 0; i < m.owners.length; ++i) - $root.cosmos_sdk.x.capability.v1.Owner.encode(m.owners[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a CapabilityOwners message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.capability.v1.CapabilityOwners - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.capability.v1.CapabilityOwners} CapabilityOwners - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CapabilityOwners.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.capability.v1.CapabilityOwners(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.owners && m.owners.length)) - m.owners = []; - m.owners.push($root.cosmos_sdk.x.capability.v1.Owner.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return CapabilityOwners; - })(); - - return v1; - })(); - - return capability; - })(); - - x.crisis = (function() { - - /** - * Namespace crisis. - * @memberof cosmos_sdk.x - * @namespace - */ - var crisis = {}; - - crisis.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.crisis - * @namespace - */ - var v1 = {}; - - v1.MsgVerifyInvariant = (function() { - - /** - * Properties of a MsgVerifyInvariant. - * @memberof cosmos_sdk.x.crisis.v1 - * @interface IMsgVerifyInvariant - * @property {Uint8Array|null} [sender] MsgVerifyInvariant sender - * @property {string|null} [invariantModuleName] MsgVerifyInvariant invariantModuleName - * @property {string|null} [invariantRoute] MsgVerifyInvariant invariantRoute - */ - - /** - * Constructs a new MsgVerifyInvariant. - * @memberof cosmos_sdk.x.crisis.v1 - * @classdesc Represents a MsgVerifyInvariant. - * @implements IMsgVerifyInvariant - * @constructor - * @param {cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant=} [p] Properties to set - */ - function MsgVerifyInvariant(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgVerifyInvariant sender. - * @member {Uint8Array} sender - * @memberof cosmos_sdk.x.crisis.v1.MsgVerifyInvariant - * @instance - */ - MsgVerifyInvariant.prototype.sender = $util.newBuffer([]); - - /** - * MsgVerifyInvariant invariantModuleName. - * @member {string} invariantModuleName - * @memberof cosmos_sdk.x.crisis.v1.MsgVerifyInvariant - * @instance - */ - MsgVerifyInvariant.prototype.invariantModuleName = ""; - - /** - * MsgVerifyInvariant invariantRoute. - * @member {string} invariantRoute - * @memberof cosmos_sdk.x.crisis.v1.MsgVerifyInvariant - * @instance - */ - MsgVerifyInvariant.prototype.invariantRoute = ""; - - /** - * Creates a new MsgVerifyInvariant instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.crisis.v1.MsgVerifyInvariant - * @static - * @param {cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant=} [properties] Properties to set - * @returns {cosmos_sdk.x.crisis.v1.MsgVerifyInvariant} MsgVerifyInvariant instance - */ - MsgVerifyInvariant.create = function create(properties) { - return new MsgVerifyInvariant(properties); - }; - - /** - * Encodes the specified MsgVerifyInvariant message. Does not implicitly {@link cosmos_sdk.x.crisis.v1.MsgVerifyInvariant.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.crisis.v1.MsgVerifyInvariant - * @static - * @param {cosmos_sdk.x.crisis.v1.IMsgVerifyInvariant} m MsgVerifyInvariant message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgVerifyInvariant.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) - w.uint32(10).bytes(m.sender); - if (m.invariantModuleName != null && Object.hasOwnProperty.call(m, "invariantModuleName")) - w.uint32(18).string(m.invariantModuleName); - if (m.invariantRoute != null && Object.hasOwnProperty.call(m, "invariantRoute")) - w.uint32(26).string(m.invariantRoute); - return w; - }; - - /** - * Decodes a MsgVerifyInvariant message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.crisis.v1.MsgVerifyInvariant - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.crisis.v1.MsgVerifyInvariant} MsgVerifyInvariant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgVerifyInvariant.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.crisis.v1.MsgVerifyInvariant(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sender = r.bytes(); - break; - case 2: - m.invariantModuleName = r.string(); - break; - case 3: - m.invariantRoute = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgVerifyInvariant; - })(); - - return v1; - })(); - - return crisis; - })(); - - x.distribution = (function() { - - /** - * Namespace distribution. - * @memberof cosmos_sdk.x - * @namespace - */ - var distribution = {}; - - distribution.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.distribution - * @namespace - */ - var v1 = {}; - - v1.MsgSetWithdrawAddress = (function() { - - /** - * Properties of a MsgSetWithdrawAddress. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IMsgSetWithdrawAddress - * @property {Uint8Array|null} [delegatorAddress] MsgSetWithdrawAddress delegatorAddress - * @property {Uint8Array|null} [withdrawAddress] MsgSetWithdrawAddress withdrawAddress - */ - - /** - * Constructs a new MsgSetWithdrawAddress. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a MsgSetWithdrawAddress. - * @implements IMsgSetWithdrawAddress - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress=} [p] Properties to set - */ - function MsgSetWithdrawAddress(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgSetWithdrawAddress delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress - * @instance - */ - MsgSetWithdrawAddress.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * MsgSetWithdrawAddress withdrawAddress. - * @member {Uint8Array} withdrawAddress - * @memberof cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress - * @instance - */ - MsgSetWithdrawAddress.prototype.withdrawAddress = $util.newBuffer([]); - - /** - * Creates a new MsgSetWithdrawAddress instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress} MsgSetWithdrawAddress instance - */ - MsgSetWithdrawAddress.create = function create(properties) { - return new MsgSetWithdrawAddress(properties); - }; - - /** - * Encodes the specified MsgSetWithdrawAddress message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgSetWithdrawAddress} m MsgSetWithdrawAddress message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSetWithdrawAddress.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.withdrawAddress != null && Object.hasOwnProperty.call(m, "withdrawAddress")) - w.uint32(18).bytes(m.withdrawAddress); - return w; - }; - - /** - * Decodes a MsgSetWithdrawAddress message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress} MsgSetWithdrawAddress - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSetWithdrawAddress.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.MsgSetWithdrawAddress(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.withdrawAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgSetWithdrawAddress; - })(); - - v1.MsgWithdrawDelegatorReward = (function() { - - /** - * Properties of a MsgWithdrawDelegatorReward. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IMsgWithdrawDelegatorReward - * @property {Uint8Array|null} [delegatorAddress] MsgWithdrawDelegatorReward delegatorAddress - * @property {Uint8Array|null} [validatorAddress] MsgWithdrawDelegatorReward validatorAddress - */ - - /** - * Constructs a new MsgWithdrawDelegatorReward. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a MsgWithdrawDelegatorReward. - * @implements IMsgWithdrawDelegatorReward - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward=} [p] Properties to set - */ - function MsgWithdrawDelegatorReward(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgWithdrawDelegatorReward delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward - * @instance - */ - MsgWithdrawDelegatorReward.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * MsgWithdrawDelegatorReward validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward - * @instance - */ - MsgWithdrawDelegatorReward.prototype.validatorAddress = $util.newBuffer([]); - - /** - * Creates a new MsgWithdrawDelegatorReward instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward} MsgWithdrawDelegatorReward instance - */ - MsgWithdrawDelegatorReward.create = function create(properties) { - return new MsgWithdrawDelegatorReward(properties); - }; - - /** - * Encodes the specified MsgWithdrawDelegatorReward message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgWithdrawDelegatorReward} m MsgWithdrawDelegatorReward message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgWithdrawDelegatorReward.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - return w; - }; - - /** - * Decodes a MsgWithdrawDelegatorReward message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward} MsgWithdrawDelegatorReward - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgWithdrawDelegatorReward.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.MsgWithdrawDelegatorReward(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgWithdrawDelegatorReward; - })(); - - v1.MsgWithdrawValidatorCommission = (function() { - - /** - * Properties of a MsgWithdrawValidatorCommission. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IMsgWithdrawValidatorCommission - * @property {Uint8Array|null} [validatorAddress] MsgWithdrawValidatorCommission validatorAddress - */ - - /** - * Constructs a new MsgWithdrawValidatorCommission. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a MsgWithdrawValidatorCommission. - * @implements IMsgWithdrawValidatorCommission - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission=} [p] Properties to set - */ - function MsgWithdrawValidatorCommission(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgWithdrawValidatorCommission validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission - * @instance - */ - MsgWithdrawValidatorCommission.prototype.validatorAddress = $util.newBuffer([]); - - /** - * Creates a new MsgWithdrawValidatorCommission instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission} MsgWithdrawValidatorCommission instance - */ - MsgWithdrawValidatorCommission.create = function create(properties) { - return new MsgWithdrawValidatorCommission(properties); - }; - - /** - * Encodes the specified MsgWithdrawValidatorCommission message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgWithdrawValidatorCommission} m MsgWithdrawValidatorCommission message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgWithdrawValidatorCommission.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(10).bytes(m.validatorAddress); - return w; - }; - - /** - * Decodes a MsgWithdrawValidatorCommission message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission} MsgWithdrawValidatorCommission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgWithdrawValidatorCommission.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.MsgWithdrawValidatorCommission(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.validatorAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgWithdrawValidatorCommission; - })(); - - v1.MsgFundCommunityPool = (function() { - - /** - * Properties of a MsgFundCommunityPool. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IMsgFundCommunityPool - * @property {Array.|null} [amount] MsgFundCommunityPool amount - * @property {Uint8Array|null} [depositor] MsgFundCommunityPool depositor - */ - - /** - * Constructs a new MsgFundCommunityPool. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a MsgFundCommunityPool. - * @implements IMsgFundCommunityPool - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool=} [p] Properties to set - */ - function MsgFundCommunityPool(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgFundCommunityPool amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.distribution.v1.MsgFundCommunityPool - * @instance - */ - MsgFundCommunityPool.prototype.amount = $util.emptyArray; - - /** - * MsgFundCommunityPool depositor. - * @member {Uint8Array} depositor - * @memberof cosmos_sdk.x.distribution.v1.MsgFundCommunityPool - * @instance - */ - MsgFundCommunityPool.prototype.depositor = $util.newBuffer([]); - - /** - * Creates a new MsgFundCommunityPool instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.MsgFundCommunityPool - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.MsgFundCommunityPool} MsgFundCommunityPool instance - */ - MsgFundCommunityPool.create = function create(properties) { - return new MsgFundCommunityPool(properties); - }; - - /** - * Encodes the specified MsgFundCommunityPool message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.MsgFundCommunityPool.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.MsgFundCommunityPool - * @static - * @param {cosmos_sdk.x.distribution.v1.IMsgFundCommunityPool} m MsgFundCommunityPool message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgFundCommunityPool.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(10).fork()).ldelim(); - } - if (m.depositor != null && Object.hasOwnProperty.call(m, "depositor")) - w.uint32(18).bytes(m.depositor); - return w; - }; - - /** - * Decodes a MsgFundCommunityPool message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.MsgFundCommunityPool - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.MsgFundCommunityPool} MsgFundCommunityPool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgFundCommunityPool.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.MsgFundCommunityPool(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 2: - m.depositor = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgFundCommunityPool; - })(); - - v1.Params = (function() { - - /** - * Properties of a Params. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IParams - * @property {string|null} [communityTax] Params communityTax - * @property {string|null} [baseProposerReward] Params baseProposerReward - * @property {string|null} [bonusProposerReward] Params bonusProposerReward - * @property {boolean|null} [withdrawAddrEnabled] Params withdrawAddrEnabled - */ - - /** - * Constructs a new Params. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IParams=} [p] Properties to set - */ - function Params(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Params communityTax. - * @member {string} communityTax - * @memberof cosmos_sdk.x.distribution.v1.Params - * @instance - */ - Params.prototype.communityTax = ""; - - /** - * Params baseProposerReward. - * @member {string} baseProposerReward - * @memberof cosmos_sdk.x.distribution.v1.Params - * @instance - */ - Params.prototype.baseProposerReward = ""; - - /** - * Params bonusProposerReward. - * @member {string} bonusProposerReward - * @memberof cosmos_sdk.x.distribution.v1.Params - * @instance - */ - Params.prototype.bonusProposerReward = ""; - - /** - * Params withdrawAddrEnabled. - * @member {boolean} withdrawAddrEnabled - * @memberof cosmos_sdk.x.distribution.v1.Params - * @instance - */ - Params.prototype.withdrawAddrEnabled = false; - - /** - * Creates a new Params instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.Params - * @static - * @param {cosmos_sdk.x.distribution.v1.IParams=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.Params} Params instance - */ - Params.create = function create(properties) { - return new Params(properties); - }; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.Params.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.Params - * @static - * @param {cosmos_sdk.x.distribution.v1.IParams} m Params message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.communityTax != null && Object.hasOwnProperty.call(m, "communityTax")) - w.uint32(10).string(m.communityTax); - if (m.baseProposerReward != null && Object.hasOwnProperty.call(m, "baseProposerReward")) - w.uint32(18).string(m.baseProposerReward); - if (m.bonusProposerReward != null && Object.hasOwnProperty.call(m, "bonusProposerReward")) - w.uint32(26).string(m.bonusProposerReward); - if (m.withdrawAddrEnabled != null && Object.hasOwnProperty.call(m, "withdrawAddrEnabled")) - w.uint32(32).bool(m.withdrawAddrEnabled); - return w; - }; - - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.Params(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.communityTax = r.string(); - break; - case 2: - m.baseProposerReward = r.string(); - break; - case 3: - m.bonusProposerReward = r.string(); - break; - case 4: - m.withdrawAddrEnabled = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Params; - })(); - - v1.ValidatorHistoricalRewards = (function() { - - /** - * Properties of a ValidatorHistoricalRewards. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IValidatorHistoricalRewards - * @property {Array.|null} [cumulativeRewardRatio] ValidatorHistoricalRewards cumulativeRewardRatio - * @property {number|null} [referenceCount] ValidatorHistoricalRewards referenceCount - */ - - /** - * Constructs a new ValidatorHistoricalRewards. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a ValidatorHistoricalRewards. - * @implements IValidatorHistoricalRewards - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards=} [p] Properties to set - */ - function ValidatorHistoricalRewards(p) { - this.cumulativeRewardRatio = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorHistoricalRewards cumulativeRewardRatio. - * @member {Array.} cumulativeRewardRatio - * @memberof cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards - * @instance - */ - ValidatorHistoricalRewards.prototype.cumulativeRewardRatio = $util.emptyArray; - - /** - * ValidatorHistoricalRewards referenceCount. - * @member {number} referenceCount - * @memberof cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards - * @instance - */ - ValidatorHistoricalRewards.prototype.referenceCount = 0; - - /** - * Creates a new ValidatorHistoricalRewards instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards} ValidatorHistoricalRewards instance - */ - ValidatorHistoricalRewards.create = function create(properties) { - return new ValidatorHistoricalRewards(properties); - }; - - /** - * Encodes the specified ValidatorHistoricalRewards message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorHistoricalRewards} m ValidatorHistoricalRewards message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorHistoricalRewards.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.cumulativeRewardRatio != null && m.cumulativeRewardRatio.length) { - for (var i = 0; i < m.cumulativeRewardRatio.length; ++i) - $root.cosmos_sdk.v1.DecCoin.encode(m.cumulativeRewardRatio[i], w.uint32(10).fork()).ldelim(); - } - if (m.referenceCount != null && Object.hasOwnProperty.call(m, "referenceCount")) - w.uint32(16).uint32(m.referenceCount); - return w; - }; - - /** - * Decodes a ValidatorHistoricalRewards message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards} ValidatorHistoricalRewards - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorHistoricalRewards.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.ValidatorHistoricalRewards(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.cumulativeRewardRatio && m.cumulativeRewardRatio.length)) - m.cumulativeRewardRatio = []; - m.cumulativeRewardRatio.push($root.cosmos_sdk.v1.DecCoin.decode(r, r.uint32())); - break; - case 2: - m.referenceCount = r.uint32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorHistoricalRewards; - })(); - - v1.ValidatorCurrentRewards = (function() { - - /** - * Properties of a ValidatorCurrentRewards. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IValidatorCurrentRewards - * @property {Array.|null} [rewards] ValidatorCurrentRewards rewards - * @property {number|Long|null} [period] ValidatorCurrentRewards period - */ - - /** - * Constructs a new ValidatorCurrentRewards. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a ValidatorCurrentRewards. - * @implements IValidatorCurrentRewards - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards=} [p] Properties to set - */ - function ValidatorCurrentRewards(p) { - this.rewards = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorCurrentRewards rewards. - * @member {Array.} rewards - * @memberof cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards - * @instance - */ - ValidatorCurrentRewards.prototype.rewards = $util.emptyArray; - - /** - * ValidatorCurrentRewards period. - * @member {number|Long} period - * @memberof cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards - * @instance - */ - ValidatorCurrentRewards.prototype.period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new ValidatorCurrentRewards instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards} ValidatorCurrentRewards instance - */ - ValidatorCurrentRewards.create = function create(properties) { - return new ValidatorCurrentRewards(properties); - }; - - /** - * Encodes the specified ValidatorCurrentRewards message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorCurrentRewards} m ValidatorCurrentRewards message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorCurrentRewards.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.rewards != null && m.rewards.length) { - for (var i = 0; i < m.rewards.length; ++i) - $root.cosmos_sdk.v1.DecCoin.encode(m.rewards[i], w.uint32(10).fork()).ldelim(); - } - if (m.period != null && Object.hasOwnProperty.call(m, "period")) - w.uint32(16).uint64(m.period); - return w; - }; - - /** - * Decodes a ValidatorCurrentRewards message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards} ValidatorCurrentRewards - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorCurrentRewards.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.ValidatorCurrentRewards(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.rewards && m.rewards.length)) - m.rewards = []; - m.rewards.push($root.cosmos_sdk.v1.DecCoin.decode(r, r.uint32())); - break; - case 2: - m.period = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorCurrentRewards; - })(); - - v1.ValidatorAccumulatedCommission = (function() { - - /** - * Properties of a ValidatorAccumulatedCommission. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IValidatorAccumulatedCommission - * @property {Array.|null} [commission] ValidatorAccumulatedCommission commission - */ - - /** - * Constructs a new ValidatorAccumulatedCommission. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a ValidatorAccumulatedCommission. - * @implements IValidatorAccumulatedCommission - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission=} [p] Properties to set - */ - function ValidatorAccumulatedCommission(p) { - this.commission = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorAccumulatedCommission commission. - * @member {Array.} commission - * @memberof cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission - * @instance - */ - ValidatorAccumulatedCommission.prototype.commission = $util.emptyArray; - - /** - * Creates a new ValidatorAccumulatedCommission instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission} ValidatorAccumulatedCommission instance - */ - ValidatorAccumulatedCommission.create = function create(properties) { - return new ValidatorAccumulatedCommission(properties); - }; - - /** - * Encodes the specified ValidatorAccumulatedCommission message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorAccumulatedCommission} m ValidatorAccumulatedCommission message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorAccumulatedCommission.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.commission != null && m.commission.length) { - for (var i = 0; i < m.commission.length; ++i) - $root.cosmos_sdk.v1.DecCoin.encode(m.commission[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a ValidatorAccumulatedCommission message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission} ValidatorAccumulatedCommission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorAccumulatedCommission.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.ValidatorAccumulatedCommission(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.commission && m.commission.length)) - m.commission = []; - m.commission.push($root.cosmos_sdk.v1.DecCoin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorAccumulatedCommission; - })(); - - v1.ValidatorOutstandingRewards = (function() { - - /** - * Properties of a ValidatorOutstandingRewards. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IValidatorOutstandingRewards - * @property {Array.|null} [rewards] ValidatorOutstandingRewards rewards - */ - - /** - * Constructs a new ValidatorOutstandingRewards. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a ValidatorOutstandingRewards. - * @implements IValidatorOutstandingRewards - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards=} [p] Properties to set - */ - function ValidatorOutstandingRewards(p) { - this.rewards = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorOutstandingRewards rewards. - * @member {Array.} rewards - * @memberof cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards - * @instance - */ - ValidatorOutstandingRewards.prototype.rewards = $util.emptyArray; - - /** - * Creates a new ValidatorOutstandingRewards instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards} ValidatorOutstandingRewards instance - */ - ValidatorOutstandingRewards.create = function create(properties) { - return new ValidatorOutstandingRewards(properties); - }; - - /** - * Encodes the specified ValidatorOutstandingRewards message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorOutstandingRewards} m ValidatorOutstandingRewards message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorOutstandingRewards.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.rewards != null && m.rewards.length) { - for (var i = 0; i < m.rewards.length; ++i) - $root.cosmos_sdk.v1.DecCoin.encode(m.rewards[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a ValidatorOutstandingRewards message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards} ValidatorOutstandingRewards - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorOutstandingRewards.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.ValidatorOutstandingRewards(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.rewards && m.rewards.length)) - m.rewards = []; - m.rewards.push($root.cosmos_sdk.v1.DecCoin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorOutstandingRewards; - })(); - - v1.ValidatorSlashEvent = (function() { - - /** - * Properties of a ValidatorSlashEvent. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IValidatorSlashEvent - * @property {number|Long|null} [validatorPeriod] ValidatorSlashEvent validatorPeriod - * @property {string|null} [fraction] ValidatorSlashEvent fraction - */ - - /** - * Constructs a new ValidatorSlashEvent. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a ValidatorSlashEvent. - * @implements IValidatorSlashEvent - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IValidatorSlashEvent=} [p] Properties to set - */ - function ValidatorSlashEvent(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorSlashEvent validatorPeriod. - * @member {number|Long} validatorPeriod - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvent - * @instance - */ - ValidatorSlashEvent.prototype.validatorPeriod = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ValidatorSlashEvent fraction. - * @member {string} fraction - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvent - * @instance - */ - ValidatorSlashEvent.prototype.fraction = ""; - - /** - * Creates a new ValidatorSlashEvent instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvent - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorSlashEvent=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.ValidatorSlashEvent} ValidatorSlashEvent instance - */ - ValidatorSlashEvent.create = function create(properties) { - return new ValidatorSlashEvent(properties); - }; - - /** - * Encodes the specified ValidatorSlashEvent message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorSlashEvent.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvent - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorSlashEvent} m ValidatorSlashEvent message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorSlashEvent.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.validatorPeriod != null && Object.hasOwnProperty.call(m, "validatorPeriod")) - w.uint32(8).uint64(m.validatorPeriod); - if (m.fraction != null && Object.hasOwnProperty.call(m, "fraction")) - w.uint32(18).string(m.fraction); - return w; - }; - - /** - * Decodes a ValidatorSlashEvent message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvent - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.ValidatorSlashEvent} ValidatorSlashEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorSlashEvent.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.ValidatorSlashEvent(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.validatorPeriod = r.uint64(); - break; - case 2: - m.fraction = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorSlashEvent; - })(); - - v1.ValidatorSlashEvents = (function() { - - /** - * Properties of a ValidatorSlashEvents. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IValidatorSlashEvents - * @property {Array.|null} [validatorSlashEvents] ValidatorSlashEvents validatorSlashEvents - */ - - /** - * Constructs a new ValidatorSlashEvents. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a ValidatorSlashEvents. - * @implements IValidatorSlashEvents - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IValidatorSlashEvents=} [p] Properties to set - */ - function ValidatorSlashEvents(p) { - this.validatorSlashEvents = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorSlashEvents validatorSlashEvents. - * @member {Array.} validatorSlashEvents - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvents - * @instance - */ - ValidatorSlashEvents.prototype.validatorSlashEvents = $util.emptyArray; - - /** - * Creates a new ValidatorSlashEvents instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvents - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorSlashEvents=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.ValidatorSlashEvents} ValidatorSlashEvents instance - */ - ValidatorSlashEvents.create = function create(properties) { - return new ValidatorSlashEvents(properties); - }; - - /** - * Encodes the specified ValidatorSlashEvents message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.ValidatorSlashEvents.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvents - * @static - * @param {cosmos_sdk.x.distribution.v1.IValidatorSlashEvents} m ValidatorSlashEvents message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorSlashEvents.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.validatorSlashEvents != null && m.validatorSlashEvents.length) { - for (var i = 0; i < m.validatorSlashEvents.length; ++i) - $root.cosmos_sdk.x.distribution.v1.ValidatorSlashEvent.encode(m.validatorSlashEvents[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a ValidatorSlashEvents message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.ValidatorSlashEvents - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.ValidatorSlashEvents} ValidatorSlashEvents - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorSlashEvents.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.ValidatorSlashEvents(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.validatorSlashEvents && m.validatorSlashEvents.length)) - m.validatorSlashEvents = []; - m.validatorSlashEvents.push($root.cosmos_sdk.x.distribution.v1.ValidatorSlashEvent.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorSlashEvents; - })(); - - v1.FeePool = (function() { - - /** - * Properties of a FeePool. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IFeePool - * @property {Array.|null} [communityPool] FeePool communityPool - */ - - /** - * Constructs a new FeePool. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a FeePool. - * @implements IFeePool - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IFeePool=} [p] Properties to set - */ - function FeePool(p) { - this.communityPool = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * FeePool communityPool. - * @member {Array.} communityPool - * @memberof cosmos_sdk.x.distribution.v1.FeePool - * @instance - */ - FeePool.prototype.communityPool = $util.emptyArray; - - /** - * Creates a new FeePool instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.FeePool - * @static - * @param {cosmos_sdk.x.distribution.v1.IFeePool=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.FeePool} FeePool instance - */ - FeePool.create = function create(properties) { - return new FeePool(properties); - }; - - /** - * Encodes the specified FeePool message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.FeePool.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.FeePool - * @static - * @param {cosmos_sdk.x.distribution.v1.IFeePool} m FeePool message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeePool.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.communityPool != null && m.communityPool.length) { - for (var i = 0; i < m.communityPool.length; ++i) - $root.cosmos_sdk.v1.DecCoin.encode(m.communityPool[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a FeePool message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.FeePool - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.FeePool} FeePool - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeePool.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.FeePool(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.communityPool && m.communityPool.length)) - m.communityPool = []; - m.communityPool.push($root.cosmos_sdk.v1.DecCoin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return FeePool; - })(); - - v1.CommunityPoolSpendProposal = (function() { - - /** - * Properties of a CommunityPoolSpendProposal. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface ICommunityPoolSpendProposal - * @property {string|null} [title] CommunityPoolSpendProposal title - * @property {string|null} [description] CommunityPoolSpendProposal description - * @property {Uint8Array|null} [recipient] CommunityPoolSpendProposal recipient - * @property {Array.|null} [amount] CommunityPoolSpendProposal amount - */ - - /** - * Constructs a new CommunityPoolSpendProposal. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a CommunityPoolSpendProposal. - * @implements ICommunityPoolSpendProposal - * @constructor - * @param {cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal=} [p] Properties to set - */ - function CommunityPoolSpendProposal(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * CommunityPoolSpendProposal title. - * @member {string} title - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @instance - */ - CommunityPoolSpendProposal.prototype.title = ""; - - /** - * CommunityPoolSpendProposal description. - * @member {string} description - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @instance - */ - CommunityPoolSpendProposal.prototype.description = ""; - - /** - * CommunityPoolSpendProposal recipient. - * @member {Uint8Array} recipient - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @instance - */ - CommunityPoolSpendProposal.prototype.recipient = $util.newBuffer([]); - - /** - * CommunityPoolSpendProposal amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @instance - */ - CommunityPoolSpendProposal.prototype.amount = $util.emptyArray; - - /** - * Creates a new CommunityPoolSpendProposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @static - * @param {cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal} CommunityPoolSpendProposal instance - */ - CommunityPoolSpendProposal.create = function create(properties) { - return new CommunityPoolSpendProposal(properties); - }; - - /** - * Encodes the specified CommunityPoolSpendProposal message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @static - * @param {cosmos_sdk.x.distribution.v1.ICommunityPoolSpendProposal} m CommunityPoolSpendProposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommunityPoolSpendProposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(10).string(m.title); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - w.uint32(18).string(m.description); - if (m.recipient != null && Object.hasOwnProperty.call(m, "recipient")) - w.uint32(26).bytes(m.recipient); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(34).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a CommunityPoolSpendProposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal} CommunityPoolSpendProposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommunityPoolSpendProposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.CommunityPoolSpendProposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.title = r.string(); - break; - case 2: - m.description = r.string(); - break; - case 3: - m.recipient = r.bytes(); - break; - case 4: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return CommunityPoolSpendProposal; - })(); - - v1.DelegatorStartingInfo = (function() { - - /** - * Properties of a DelegatorStartingInfo. - * @memberof cosmos_sdk.x.distribution.v1 - * @interface IDelegatorStartingInfo - * @property {number|Long|null} [previousPeriod] DelegatorStartingInfo previousPeriod - * @property {string|null} [stake] DelegatorStartingInfo stake - * @property {number|Long|null} [height] DelegatorStartingInfo height - */ - - /** - * Constructs a new DelegatorStartingInfo. - * @memberof cosmos_sdk.x.distribution.v1 - * @classdesc Represents a DelegatorStartingInfo. - * @implements IDelegatorStartingInfo - * @constructor - * @param {cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo=} [p] Properties to set - */ - function DelegatorStartingInfo(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DelegatorStartingInfo previousPeriod. - * @member {number|Long} previousPeriod - * @memberof cosmos_sdk.x.distribution.v1.DelegatorStartingInfo - * @instance - */ - DelegatorStartingInfo.prototype.previousPeriod = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * DelegatorStartingInfo stake. - * @member {string} stake - * @memberof cosmos_sdk.x.distribution.v1.DelegatorStartingInfo - * @instance - */ - DelegatorStartingInfo.prototype.stake = ""; - - /** - * DelegatorStartingInfo height. - * @member {number|Long} height - * @memberof cosmos_sdk.x.distribution.v1.DelegatorStartingInfo - * @instance - */ - DelegatorStartingInfo.prototype.height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new DelegatorStartingInfo instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.distribution.v1.DelegatorStartingInfo - * @static - * @param {cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo=} [properties] Properties to set - * @returns {cosmos_sdk.x.distribution.v1.DelegatorStartingInfo} DelegatorStartingInfo instance - */ - DelegatorStartingInfo.create = function create(properties) { - return new DelegatorStartingInfo(properties); - }; - - /** - * Encodes the specified DelegatorStartingInfo message. Does not implicitly {@link cosmos_sdk.x.distribution.v1.DelegatorStartingInfo.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.distribution.v1.DelegatorStartingInfo - * @static - * @param {cosmos_sdk.x.distribution.v1.IDelegatorStartingInfo} m DelegatorStartingInfo message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DelegatorStartingInfo.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.previousPeriod != null && Object.hasOwnProperty.call(m, "previousPeriod")) - w.uint32(8).uint64(m.previousPeriod); - if (m.stake != null && Object.hasOwnProperty.call(m, "stake")) - w.uint32(18).string(m.stake); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) - w.uint32(24).uint64(m.height); - return w; - }; - - /** - * Decodes a DelegatorStartingInfo message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.distribution.v1.DelegatorStartingInfo - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.distribution.v1.DelegatorStartingInfo} DelegatorStartingInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DelegatorStartingInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.distribution.v1.DelegatorStartingInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.previousPeriod = r.uint64(); - break; - case 2: - m.stake = r.string(); - break; - case 3: - m.height = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return DelegatorStartingInfo; - })(); - - return v1; - })(); - - return distribution; - })(); - - x.evidence = (function() { - - /** - * Namespace evidence. - * @memberof cosmos_sdk.x - * @namespace - */ - var evidence = {}; - - evidence.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.evidence - * @namespace - */ - var v1 = {}; - - v1.MsgSubmitEvidence = (function() { - - /** - * Properties of a MsgSubmitEvidence. - * @memberof cosmos_sdk.x.evidence.v1 - * @interface IMsgSubmitEvidence - * @property {Uint8Array|null} [submitter] MsgSubmitEvidence submitter - * @property {google.protobuf.IAny|null} [evidence] MsgSubmitEvidence evidence - */ - - /** - * Constructs a new MsgSubmitEvidence. - * @memberof cosmos_sdk.x.evidence.v1 - * @classdesc Represents a MsgSubmitEvidence. - * @implements IMsgSubmitEvidence - * @constructor - * @param {cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence=} [p] Properties to set - */ - function MsgSubmitEvidence(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgSubmitEvidence submitter. - * @member {Uint8Array} submitter - * @memberof cosmos_sdk.x.evidence.v1.MsgSubmitEvidence - * @instance - */ - MsgSubmitEvidence.prototype.submitter = $util.newBuffer([]); - - /** - * MsgSubmitEvidence evidence. - * @member {google.protobuf.IAny|null|undefined} evidence - * @memberof cosmos_sdk.x.evidence.v1.MsgSubmitEvidence - * @instance - */ - MsgSubmitEvidence.prototype.evidence = null; - - /** - * Creates a new MsgSubmitEvidence instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.evidence.v1.MsgSubmitEvidence - * @static - * @param {cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence=} [properties] Properties to set - * @returns {cosmos_sdk.x.evidence.v1.MsgSubmitEvidence} MsgSubmitEvidence instance - */ - MsgSubmitEvidence.create = function create(properties) { - return new MsgSubmitEvidence(properties); - }; - - /** - * Encodes the specified MsgSubmitEvidence message. Does not implicitly {@link cosmos_sdk.x.evidence.v1.MsgSubmitEvidence.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.evidence.v1.MsgSubmitEvidence - * @static - * @param {cosmos_sdk.x.evidence.v1.IMsgSubmitEvidence} m MsgSubmitEvidence message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSubmitEvidence.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.submitter != null && Object.hasOwnProperty.call(m, "submitter")) - w.uint32(10).bytes(m.submitter); - if (m.evidence != null && Object.hasOwnProperty.call(m, "evidence")) - $root.google.protobuf.Any.encode(m.evidence, w.uint32(18).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MsgSubmitEvidence message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.evidence.v1.MsgSubmitEvidence - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.evidence.v1.MsgSubmitEvidence} MsgSubmitEvidence - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSubmitEvidence.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.evidence.v1.MsgSubmitEvidence(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.submitter = r.bytes(); - break; - case 2: - m.evidence = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgSubmitEvidence; - })(); - - v1.Equivocation = (function() { - - /** - * Properties of an Equivocation. - * @memberof cosmos_sdk.x.evidence.v1 - * @interface IEquivocation - * @property {number|Long|null} [height] Equivocation height - * @property {google.protobuf.ITimestamp|null} [time] Equivocation time - * @property {number|Long|null} [power] Equivocation power - * @property {Uint8Array|null} [consensusAddress] Equivocation consensusAddress - */ - - /** - * Constructs a new Equivocation. - * @memberof cosmos_sdk.x.evidence.v1 - * @classdesc Represents an Equivocation. - * @implements IEquivocation - * @constructor - * @param {cosmos_sdk.x.evidence.v1.IEquivocation=} [p] Properties to set - */ - function Equivocation(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Equivocation height. - * @member {number|Long} height - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @instance - */ - Equivocation.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Equivocation time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @instance - */ - Equivocation.prototype.time = null; - - /** - * Equivocation power. - * @member {number|Long} power - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @instance - */ - Equivocation.prototype.power = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Equivocation consensusAddress. - * @member {Uint8Array} consensusAddress - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @instance - */ - Equivocation.prototype.consensusAddress = $util.newBuffer([]); - - /** - * Creates a new Equivocation instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @static - * @param {cosmos_sdk.x.evidence.v1.IEquivocation=} [properties] Properties to set - * @returns {cosmos_sdk.x.evidence.v1.Equivocation} Equivocation instance - */ - Equivocation.create = function create(properties) { - return new Equivocation(properties); - }; - - /** - * Encodes the specified Equivocation message. Does not implicitly {@link cosmos_sdk.x.evidence.v1.Equivocation.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @static - * @param {cosmos_sdk.x.evidence.v1.IEquivocation} m Equivocation message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Equivocation.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) - w.uint32(8).int64(m.height); - if (m.time != null && Object.hasOwnProperty.call(m, "time")) - $root.google.protobuf.Timestamp.encode(m.time, w.uint32(18).fork()).ldelim(); - if (m.power != null && Object.hasOwnProperty.call(m, "power")) - w.uint32(24).int64(m.power); - if (m.consensusAddress != null && Object.hasOwnProperty.call(m, "consensusAddress")) - w.uint32(34).bytes(m.consensusAddress); - return w; - }; - - /** - * Decodes an Equivocation message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.evidence.v1.Equivocation - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.evidence.v1.Equivocation} Equivocation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Equivocation.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.evidence.v1.Equivocation(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.height = r.int64(); - break; - case 2: - m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 3: - m.power = r.int64(); - break; - case 4: - m.consensusAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Equivocation; - })(); - - return v1; - })(); - - return evidence; - })(); - - x.gov = (function() { - - /** - * Namespace gov. - * @memberof cosmos_sdk.x - * @namespace - */ - var gov = {}; - - gov.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.gov - * @namespace - */ - var v1 = {}; - - v1.MsgSubmitProposal = (function() { - - /** - * Properties of a MsgSubmitProposal. - * @memberof cosmos_sdk.x.gov.v1 - * @interface IMsgSubmitProposal - * @property {google.protobuf.IAny|null} [content] MsgSubmitProposal content - * @property {Array.|null} [initialDeposit] MsgSubmitProposal initialDeposit - * @property {Uint8Array|null} [proposer] MsgSubmitProposal proposer - */ - - /** - * Constructs a new MsgSubmitProposal. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a MsgSubmitProposal. - * @implements IMsgSubmitProposal - * @constructor - * @param {cosmos_sdk.x.gov.v1.IMsgSubmitProposal=} [p] Properties to set - */ - function MsgSubmitProposal(p) { - this.initialDeposit = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgSubmitProposal content. - * @member {google.protobuf.IAny|null|undefined} content - * @memberof cosmos_sdk.x.gov.v1.MsgSubmitProposal - * @instance - */ - MsgSubmitProposal.prototype.content = null; - - /** - * MsgSubmitProposal initialDeposit. - * @member {Array.} initialDeposit - * @memberof cosmos_sdk.x.gov.v1.MsgSubmitProposal - * @instance - */ - MsgSubmitProposal.prototype.initialDeposit = $util.emptyArray; - - /** - * MsgSubmitProposal proposer. - * @member {Uint8Array} proposer - * @memberof cosmos_sdk.x.gov.v1.MsgSubmitProposal - * @instance - */ - MsgSubmitProposal.prototype.proposer = $util.newBuffer([]); - - /** - * Creates a new MsgSubmitProposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.MsgSubmitProposal - * @static - * @param {cosmos_sdk.x.gov.v1.IMsgSubmitProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.MsgSubmitProposal} MsgSubmitProposal instance - */ - MsgSubmitProposal.create = function create(properties) { - return new MsgSubmitProposal(properties); - }; - - /** - * Encodes the specified MsgSubmitProposal message. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgSubmitProposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.MsgSubmitProposal - * @static - * @param {cosmos_sdk.x.gov.v1.IMsgSubmitProposal} m MsgSubmitProposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgSubmitProposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.content != null && Object.hasOwnProperty.call(m, "content")) - $root.google.protobuf.Any.encode(m.content, w.uint32(10).fork()).ldelim(); - if (m.initialDeposit != null && m.initialDeposit.length) { - for (var i = 0; i < m.initialDeposit.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.initialDeposit[i], w.uint32(18).fork()).ldelim(); - } - if (m.proposer != null && Object.hasOwnProperty.call(m, "proposer")) - w.uint32(26).bytes(m.proposer); - return w; - }; - - /** - * Decodes a MsgSubmitProposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.MsgSubmitProposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.MsgSubmitProposal} MsgSubmitProposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgSubmitProposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.MsgSubmitProposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.content = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 2: - if (!(m.initialDeposit && m.initialDeposit.length)) - m.initialDeposit = []; - m.initialDeposit.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 3: - m.proposer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgSubmitProposal; - })(); - - v1.MsgVote = (function() { - - /** - * Properties of a MsgVote. - * @memberof cosmos_sdk.x.gov.v1 - * @interface IMsgVote - * @property {number|Long|null} [proposalId] MsgVote proposalId - * @property {Uint8Array|null} [voter] MsgVote voter - * @property {cosmos_sdk.x.gov.v1.VoteOption|null} [option] MsgVote option - */ - - /** - * Constructs a new MsgVote. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a MsgVote. - * @implements IMsgVote - * @constructor - * @param {cosmos_sdk.x.gov.v1.IMsgVote=} [p] Properties to set - */ - function MsgVote(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgVote proposalId. - * @member {number|Long} proposalId - * @memberof cosmos_sdk.x.gov.v1.MsgVote - * @instance - */ - MsgVote.prototype.proposalId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgVote voter. - * @member {Uint8Array} voter - * @memberof cosmos_sdk.x.gov.v1.MsgVote - * @instance - */ - MsgVote.prototype.voter = $util.newBuffer([]); - - /** - * MsgVote option. - * @member {cosmos_sdk.x.gov.v1.VoteOption} option - * @memberof cosmos_sdk.x.gov.v1.MsgVote - * @instance - */ - MsgVote.prototype.option = 0; - - /** - * Creates a new MsgVote instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.MsgVote - * @static - * @param {cosmos_sdk.x.gov.v1.IMsgVote=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.MsgVote} MsgVote instance - */ - MsgVote.create = function create(properties) { - return new MsgVote(properties); - }; - - /** - * Encodes the specified MsgVote message. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgVote.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.MsgVote - * @static - * @param {cosmos_sdk.x.gov.v1.IMsgVote} m MsgVote message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgVote.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.proposalId != null && Object.hasOwnProperty.call(m, "proposalId")) - w.uint32(8).uint64(m.proposalId); - if (m.voter != null && Object.hasOwnProperty.call(m, "voter")) - w.uint32(18).bytes(m.voter); - if (m.option != null && Object.hasOwnProperty.call(m, "option")) - w.uint32(24).int32(m.option); - return w; - }; - - /** - * Decodes a MsgVote message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.MsgVote - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.MsgVote} MsgVote - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgVote.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.MsgVote(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.proposalId = r.uint64(); - break; - case 2: - m.voter = r.bytes(); - break; - case 3: - m.option = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgVote; - })(); - - v1.MsgDeposit = (function() { - - /** - * Properties of a MsgDeposit. - * @memberof cosmos_sdk.x.gov.v1 - * @interface IMsgDeposit - * @property {number|Long|null} [proposalId] MsgDeposit proposalId - * @property {Uint8Array|null} [depositor] MsgDeposit depositor - * @property {Array.|null} [amount] MsgDeposit amount - */ - - /** - * Constructs a new MsgDeposit. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a MsgDeposit. - * @implements IMsgDeposit - * @constructor - * @param {cosmos_sdk.x.gov.v1.IMsgDeposit=} [p] Properties to set - */ - function MsgDeposit(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgDeposit proposalId. - * @member {number|Long} proposalId - * @memberof cosmos_sdk.x.gov.v1.MsgDeposit - * @instance - */ - MsgDeposit.prototype.proposalId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgDeposit depositor. - * @member {Uint8Array} depositor - * @memberof cosmos_sdk.x.gov.v1.MsgDeposit - * @instance - */ - MsgDeposit.prototype.depositor = $util.newBuffer([]); - - /** - * MsgDeposit amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.gov.v1.MsgDeposit - * @instance - */ - MsgDeposit.prototype.amount = $util.emptyArray; - - /** - * Creates a new MsgDeposit instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.MsgDeposit - * @static - * @param {cosmos_sdk.x.gov.v1.IMsgDeposit=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.MsgDeposit} MsgDeposit instance - */ - MsgDeposit.create = function create(properties) { - return new MsgDeposit(properties); - }; - - /** - * Encodes the specified MsgDeposit message. Does not implicitly {@link cosmos_sdk.x.gov.v1.MsgDeposit.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.MsgDeposit - * @static - * @param {cosmos_sdk.x.gov.v1.IMsgDeposit} m MsgDeposit message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgDeposit.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.proposalId != null && Object.hasOwnProperty.call(m, "proposalId")) - w.uint32(8).uint64(m.proposalId); - if (m.depositor != null && Object.hasOwnProperty.call(m, "depositor")) - w.uint32(18).bytes(m.depositor); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a MsgDeposit message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.MsgDeposit - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.MsgDeposit} MsgDeposit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgDeposit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.MsgDeposit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.proposalId = r.uint64(); - break; - case 2: - m.depositor = r.bytes(); - break; - case 3: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgDeposit; - })(); - - /** - * VoteOption enum. - * @name cosmos_sdk.x.gov.v1.VoteOption - * @enum {number} - * @property {number} VOTE_OPTION_UNSPECIFIED=0 VOTE_OPTION_UNSPECIFIED value - * @property {number} VOTE_OPTION_YES=1 VOTE_OPTION_YES value - * @property {number} VOTE_OPTION_ABSTAIN=2 VOTE_OPTION_ABSTAIN value - * @property {number} VOTE_OPTION_NO=3 VOTE_OPTION_NO value - * @property {number} VOTE_OPTION_NO_WITH_VETO=4 VOTE_OPTION_NO_WITH_VETO value - */ - v1.VoteOption = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VOTE_OPTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "VOTE_OPTION_YES"] = 1; - values[valuesById[2] = "VOTE_OPTION_ABSTAIN"] = 2; - values[valuesById[3] = "VOTE_OPTION_NO"] = 3; - values[valuesById[4] = "VOTE_OPTION_NO_WITH_VETO"] = 4; - return values; - })(); - - v1.TextProposal = (function() { - - /** - * Properties of a TextProposal. - * @memberof cosmos_sdk.x.gov.v1 - * @interface ITextProposal - * @property {string|null} [title] TextProposal title - * @property {string|null} [description] TextProposal description - */ - - /** - * Constructs a new TextProposal. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a TextProposal. - * @implements ITextProposal - * @constructor - * @param {cosmos_sdk.x.gov.v1.ITextProposal=} [p] Properties to set - */ - function TextProposal(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * TextProposal title. - * @member {string} title - * @memberof cosmos_sdk.x.gov.v1.TextProposal - * @instance - */ - TextProposal.prototype.title = ""; - - /** - * TextProposal description. - * @member {string} description - * @memberof cosmos_sdk.x.gov.v1.TextProposal - * @instance - */ - TextProposal.prototype.description = ""; - - /** - * Creates a new TextProposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.TextProposal - * @static - * @param {cosmos_sdk.x.gov.v1.ITextProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.TextProposal} TextProposal instance - */ - TextProposal.create = function create(properties) { - return new TextProposal(properties); - }; - - /** - * Encodes the specified TextProposal message. Does not implicitly {@link cosmos_sdk.x.gov.v1.TextProposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.TextProposal - * @static - * @param {cosmos_sdk.x.gov.v1.ITextProposal} m TextProposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TextProposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(10).string(m.title); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - w.uint32(18).string(m.description); - return w; - }; - - /** - * Decodes a TextProposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.TextProposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.TextProposal} TextProposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TextProposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.TextProposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.title = r.string(); - break; - case 2: - m.description = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return TextProposal; - })(); - - v1.Deposit = (function() { - - /** - * Properties of a Deposit. - * @memberof cosmos_sdk.x.gov.v1 - * @interface IDeposit - * @property {number|Long|null} [proposalId] Deposit proposalId - * @property {Uint8Array|null} [depositor] Deposit depositor - * @property {Array.|null} [amount] Deposit amount - */ - - /** - * Constructs a new Deposit. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a Deposit. - * @implements IDeposit - * @constructor - * @param {cosmos_sdk.x.gov.v1.IDeposit=} [p] Properties to set - */ - function Deposit(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Deposit proposalId. - * @member {number|Long} proposalId - * @memberof cosmos_sdk.x.gov.v1.Deposit - * @instance - */ - Deposit.prototype.proposalId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Deposit depositor. - * @member {Uint8Array} depositor - * @memberof cosmos_sdk.x.gov.v1.Deposit - * @instance - */ - Deposit.prototype.depositor = $util.newBuffer([]); - - /** - * Deposit amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.gov.v1.Deposit - * @instance - */ - Deposit.prototype.amount = $util.emptyArray; - - /** - * Creates a new Deposit instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.Deposit - * @static - * @param {cosmos_sdk.x.gov.v1.IDeposit=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.Deposit} Deposit instance - */ - Deposit.create = function create(properties) { - return new Deposit(properties); - }; - - /** - * Encodes the specified Deposit message. Does not implicitly {@link cosmos_sdk.x.gov.v1.Deposit.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.Deposit - * @static - * @param {cosmos_sdk.x.gov.v1.IDeposit} m Deposit message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Deposit.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.proposalId != null && Object.hasOwnProperty.call(m, "proposalId")) - w.uint32(8).uint64(m.proposalId); - if (m.depositor != null && Object.hasOwnProperty.call(m, "depositor")) - w.uint32(18).bytes(m.depositor); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a Deposit message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.Deposit - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.Deposit} Deposit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Deposit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.Deposit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.proposalId = r.uint64(); - break; - case 2: - m.depositor = r.bytes(); - break; - case 3: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Deposit; - })(); - - v1.Proposal = (function() { - - /** - * Properties of a Proposal. - * @memberof cosmos_sdk.x.gov.v1 - * @interface IProposal - * @property {number|Long|null} [proposalId] Proposal proposalId - * @property {google.protobuf.IAny|null} [content] Proposal content - * @property {cosmos_sdk.x.gov.v1.ProposalStatus|null} [status] Proposal status - * @property {cosmos_sdk.x.gov.v1.ITallyResult|null} [finalTallyResult] Proposal finalTallyResult - * @property {google.protobuf.ITimestamp|null} [submitTime] Proposal submitTime - * @property {google.protobuf.ITimestamp|null} [depositEndTime] Proposal depositEndTime - * @property {Array.|null} [totalDeposit] Proposal totalDeposit - * @property {google.protobuf.ITimestamp|null} [votingStartTime] Proposal votingStartTime - * @property {google.protobuf.ITimestamp|null} [votingEndTime] Proposal votingEndTime - */ - - /** - * Constructs a new Proposal. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a Proposal. - * @implements IProposal - * @constructor - * @param {cosmos_sdk.x.gov.v1.IProposal=} [p] Properties to set - */ - function Proposal(p) { - this.totalDeposit = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Proposal proposalId. - * @member {number|Long} proposalId - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.proposalId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Proposal content. - * @member {google.protobuf.IAny|null|undefined} content - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.content = null; - - /** - * Proposal status. - * @member {cosmos_sdk.x.gov.v1.ProposalStatus} status - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.status = 0; - - /** - * Proposal finalTallyResult. - * @member {cosmos_sdk.x.gov.v1.ITallyResult|null|undefined} finalTallyResult - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.finalTallyResult = null; - - /** - * Proposal submitTime. - * @member {google.protobuf.ITimestamp|null|undefined} submitTime - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.submitTime = null; - - /** - * Proposal depositEndTime. - * @member {google.protobuf.ITimestamp|null|undefined} depositEndTime - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.depositEndTime = null; - - /** - * Proposal totalDeposit. - * @member {Array.} totalDeposit - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.totalDeposit = $util.emptyArray; - - /** - * Proposal votingStartTime. - * @member {google.protobuf.ITimestamp|null|undefined} votingStartTime - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.votingStartTime = null; - - /** - * Proposal votingEndTime. - * @member {google.protobuf.ITimestamp|null|undefined} votingEndTime - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @instance - */ - Proposal.prototype.votingEndTime = null; - - /** - * Creates a new Proposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @static - * @param {cosmos_sdk.x.gov.v1.IProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.Proposal} Proposal instance - */ - Proposal.create = function create(properties) { - return new Proposal(properties); - }; - - /** - * Encodes the specified Proposal message. Does not implicitly {@link cosmos_sdk.x.gov.v1.Proposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @static - * @param {cosmos_sdk.x.gov.v1.IProposal} m Proposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Proposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.proposalId != null && Object.hasOwnProperty.call(m, "proposalId")) - w.uint32(8).uint64(m.proposalId); - if (m.content != null && Object.hasOwnProperty.call(m, "content")) - $root.google.protobuf.Any.encode(m.content, w.uint32(18).fork()).ldelim(); - if (m.status != null && Object.hasOwnProperty.call(m, "status")) - w.uint32(24).int32(m.status); - if (m.finalTallyResult != null && Object.hasOwnProperty.call(m, "finalTallyResult")) - $root.cosmos_sdk.x.gov.v1.TallyResult.encode(m.finalTallyResult, w.uint32(34).fork()).ldelim(); - if (m.submitTime != null && Object.hasOwnProperty.call(m, "submitTime")) - $root.google.protobuf.Timestamp.encode(m.submitTime, w.uint32(42).fork()).ldelim(); - if (m.depositEndTime != null && Object.hasOwnProperty.call(m, "depositEndTime")) - $root.google.protobuf.Timestamp.encode(m.depositEndTime, w.uint32(50).fork()).ldelim(); - if (m.totalDeposit != null && m.totalDeposit.length) { - for (var i = 0; i < m.totalDeposit.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.totalDeposit[i], w.uint32(58).fork()).ldelim(); - } - if (m.votingStartTime != null && Object.hasOwnProperty.call(m, "votingStartTime")) - $root.google.protobuf.Timestamp.encode(m.votingStartTime, w.uint32(66).fork()).ldelim(); - if (m.votingEndTime != null && Object.hasOwnProperty.call(m, "votingEndTime")) - $root.google.protobuf.Timestamp.encode(m.votingEndTime, w.uint32(74).fork()).ldelim(); - return w; - }; - - /** - * Decodes a Proposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.Proposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.Proposal} Proposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Proposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.Proposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.proposalId = r.uint64(); - break; - case 2: - m.content = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 3: - m.status = r.int32(); - break; - case 4: - m.finalTallyResult = $root.cosmos_sdk.x.gov.v1.TallyResult.decode(r, r.uint32()); - break; - case 5: - m.submitTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 6: - m.depositEndTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 7: - if (!(m.totalDeposit && m.totalDeposit.length)) - m.totalDeposit = []; - m.totalDeposit.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 8: - m.votingStartTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 9: - m.votingEndTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Proposal; - })(); - - /** - * ProposalStatus enum. - * @name cosmos_sdk.x.gov.v1.ProposalStatus - * @enum {number} - * @property {number} PROPOSAL_STATUS_UNSPECIFIED=0 PROPOSAL_STATUS_UNSPECIFIED value - * @property {number} PROPOSAL_STATUS_DEPOSIT_PERIOD=1 PROPOSAL_STATUS_DEPOSIT_PERIOD value - * @property {number} PROPOSAL_STATUS_VOTING_PERIOD=2 PROPOSAL_STATUS_VOTING_PERIOD value - * @property {number} PROPOSAL_STATUS_PASSED=3 PROPOSAL_STATUS_PASSED value - * @property {number} PROPOSAL_STATUS_REJECTED=4 PROPOSAL_STATUS_REJECTED value - * @property {number} PROPOSAL_STATUS_FAILED=5 PROPOSAL_STATUS_FAILED value - */ - v1.ProposalStatus = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PROPOSAL_STATUS_UNSPECIFIED"] = 0; - values[valuesById[1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1; - values[valuesById[2] = "PROPOSAL_STATUS_VOTING_PERIOD"] = 2; - values[valuesById[3] = "PROPOSAL_STATUS_PASSED"] = 3; - values[valuesById[4] = "PROPOSAL_STATUS_REJECTED"] = 4; - values[valuesById[5] = "PROPOSAL_STATUS_FAILED"] = 5; - return values; - })(); - - v1.TallyResult = (function() { - - /** - * Properties of a TallyResult. - * @memberof cosmos_sdk.x.gov.v1 - * @interface ITallyResult - * @property {string|null} [yes] TallyResult yes - * @property {string|null} [abstain] TallyResult abstain - * @property {string|null} [no] TallyResult no - * @property {string|null} [noWithVeto] TallyResult noWithVeto - */ - - /** - * Constructs a new TallyResult. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a TallyResult. - * @implements ITallyResult - * @constructor - * @param {cosmos_sdk.x.gov.v1.ITallyResult=} [p] Properties to set - */ - function TallyResult(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * TallyResult yes. - * @member {string} yes - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @instance - */ - TallyResult.prototype.yes = ""; - - /** - * TallyResult abstain. - * @member {string} abstain - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @instance - */ - TallyResult.prototype.abstain = ""; - - /** - * TallyResult no. - * @member {string} no - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @instance - */ - TallyResult.prototype.no = ""; - - /** - * TallyResult noWithVeto. - * @member {string} noWithVeto - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @instance - */ - TallyResult.prototype.noWithVeto = ""; - - /** - * Creates a new TallyResult instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @static - * @param {cosmos_sdk.x.gov.v1.ITallyResult=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.TallyResult} TallyResult instance - */ - TallyResult.create = function create(properties) { - return new TallyResult(properties); - }; - - /** - * Encodes the specified TallyResult message. Does not implicitly {@link cosmos_sdk.x.gov.v1.TallyResult.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @static - * @param {cosmos_sdk.x.gov.v1.ITallyResult} m TallyResult message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TallyResult.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.yes != null && Object.hasOwnProperty.call(m, "yes")) - w.uint32(10).string(m.yes); - if (m.abstain != null && Object.hasOwnProperty.call(m, "abstain")) - w.uint32(18).string(m.abstain); - if (m.no != null && Object.hasOwnProperty.call(m, "no")) - w.uint32(26).string(m.no); - if (m.noWithVeto != null && Object.hasOwnProperty.call(m, "noWithVeto")) - w.uint32(34).string(m.noWithVeto); - return w; - }; - - /** - * Decodes a TallyResult message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.TallyResult - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.TallyResult} TallyResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TallyResult.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.TallyResult(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.yes = r.string(); - break; - case 2: - m.abstain = r.string(); - break; - case 3: - m.no = r.string(); - break; - case 4: - m.noWithVeto = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return TallyResult; - })(); - - v1.Vote = (function() { - - /** - * Properties of a Vote. - * @memberof cosmos_sdk.x.gov.v1 - * @interface IVote - * @property {number|Long|null} [proposalId] Vote proposalId - * @property {Uint8Array|null} [voter] Vote voter - * @property {cosmos_sdk.x.gov.v1.VoteOption|null} [option] Vote option - */ - - /** - * Constructs a new Vote. - * @memberof cosmos_sdk.x.gov.v1 - * @classdesc Represents a Vote. - * @implements IVote - * @constructor - * @param {cosmos_sdk.x.gov.v1.IVote=} [p] Properties to set - */ - function Vote(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Vote proposalId. - * @member {number|Long} proposalId - * @memberof cosmos_sdk.x.gov.v1.Vote - * @instance - */ - Vote.prototype.proposalId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Vote voter. - * @member {Uint8Array} voter - * @memberof cosmos_sdk.x.gov.v1.Vote - * @instance - */ - Vote.prototype.voter = $util.newBuffer([]); - - /** - * Vote option. - * @member {cosmos_sdk.x.gov.v1.VoteOption} option - * @memberof cosmos_sdk.x.gov.v1.Vote - * @instance - */ - Vote.prototype.option = 0; - - /** - * Creates a new Vote instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.gov.v1.Vote - * @static - * @param {cosmos_sdk.x.gov.v1.IVote=} [properties] Properties to set - * @returns {cosmos_sdk.x.gov.v1.Vote} Vote instance - */ - Vote.create = function create(properties) { - return new Vote(properties); - }; - - /** - * Encodes the specified Vote message. Does not implicitly {@link cosmos_sdk.x.gov.v1.Vote.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.gov.v1.Vote - * @static - * @param {cosmos_sdk.x.gov.v1.IVote} m Vote message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Vote.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.proposalId != null && Object.hasOwnProperty.call(m, "proposalId")) - w.uint32(8).uint64(m.proposalId); - if (m.voter != null && Object.hasOwnProperty.call(m, "voter")) - w.uint32(18).bytes(m.voter); - if (m.option != null && Object.hasOwnProperty.call(m, "option")) - w.uint32(24).int32(m.option); - return w; - }; - - /** - * Decodes a Vote message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.gov.v1.Vote - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.gov.v1.Vote} Vote - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Vote.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.gov.v1.Vote(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.proposalId = r.uint64(); - break; - case 2: - m.voter = r.bytes(); - break; - case 3: - m.option = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Vote; - })(); - - return v1; - })(); - - return gov; - })(); - - x.transfer = (function() { - - /** - * Namespace transfer. - * @memberof cosmos_sdk.x - * @namespace - */ - var transfer = {}; - - transfer.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.transfer - * @namespace - */ - var v1 = {}; - - v1.MsgTransfer = (function() { - - /** - * Properties of a MsgTransfer. - * @memberof cosmos_sdk.x.transfer.v1 - * @interface IMsgTransfer - * @property {string|null} [sourcePort] MsgTransfer sourcePort - * @property {string|null} [sourceChannel] MsgTransfer sourceChannel - * @property {Array.|null} [amount] MsgTransfer amount - * @property {Uint8Array|null} [sender] MsgTransfer sender - * @property {string|null} [receiver] MsgTransfer receiver - * @property {number|Long|null} [timeoutHeight] MsgTransfer timeoutHeight - * @property {number|Long|null} [timeoutTimestamp] MsgTransfer timeoutTimestamp - */ - - /** - * Constructs a new MsgTransfer. - * @memberof cosmos_sdk.x.transfer.v1 - * @classdesc Represents a MsgTransfer. - * @implements IMsgTransfer - * @constructor - * @param {cosmos_sdk.x.transfer.v1.IMsgTransfer=} [p] Properties to set - */ - function MsgTransfer(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgTransfer sourcePort. - * @member {string} sourcePort - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.sourcePort = ""; - - /** - * MsgTransfer sourceChannel. - * @member {string} sourceChannel - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.sourceChannel = ""; - - /** - * MsgTransfer amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.amount = $util.emptyArray; - - /** - * MsgTransfer sender. - * @member {Uint8Array} sender - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.sender = $util.newBuffer([]); - - /** - * MsgTransfer receiver. - * @member {string} receiver - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.receiver = ""; - - /** - * MsgTransfer timeoutHeight. - * @member {number|Long} timeoutHeight - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgTransfer timeoutTimestamp. - * @member {number|Long} timeoutTimestamp - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.timeoutTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new MsgTransfer instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @static - * @param {cosmos_sdk.x.transfer.v1.IMsgTransfer=} [properties] Properties to set - * @returns {cosmos_sdk.x.transfer.v1.MsgTransfer} MsgTransfer instance - */ - MsgTransfer.create = function create(properties) { - return new MsgTransfer(properties); - }; - - /** - * Encodes the specified MsgTransfer message. Does not implicitly {@link cosmos_sdk.x.transfer.v1.MsgTransfer.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @static - * @param {cosmos_sdk.x.transfer.v1.IMsgTransfer} m MsgTransfer message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgTransfer.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.sourcePort != null && Object.hasOwnProperty.call(m, "sourcePort")) - w.uint32(10).string(m.sourcePort); - if (m.sourceChannel != null && Object.hasOwnProperty.call(m, "sourceChannel")) - w.uint32(18).string(m.sourceChannel); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); - } - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) - w.uint32(34).bytes(m.sender); - if (m.receiver != null && Object.hasOwnProperty.call(m, "receiver")) - w.uint32(42).string(m.receiver); - if (m.timeoutHeight != null && Object.hasOwnProperty.call(m, "timeoutHeight")) - w.uint32(48).uint64(m.timeoutHeight); - if (m.timeoutTimestamp != null && Object.hasOwnProperty.call(m, "timeoutTimestamp")) - w.uint32(56).uint64(m.timeoutTimestamp); - return w; - }; - - /** - * Decodes a MsgTransfer message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.transfer.v1.MsgTransfer - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.transfer.v1.MsgTransfer} MsgTransfer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgTransfer.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.transfer.v1.MsgTransfer(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sourcePort = r.string(); - break; - case 2: - m.sourceChannel = r.string(); - break; - case 3: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 4: - m.sender = r.bytes(); - break; - case 5: - m.receiver = r.string(); - break; - case 6: - m.timeoutHeight = r.uint64(); - break; - case 7: - m.timeoutTimestamp = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgTransfer; - })(); - - v1.FungibleTokenPacketData = (function() { - - /** - * Properties of a FungibleTokenPacketData. - * @memberof cosmos_sdk.x.transfer.v1 - * @interface IFungibleTokenPacketData - * @property {Array.|null} [amount] FungibleTokenPacketData amount - * @property {string|null} [sender] FungibleTokenPacketData sender - * @property {string|null} [receiver] FungibleTokenPacketData receiver - */ - - /** - * Constructs a new FungibleTokenPacketData. - * @memberof cosmos_sdk.x.transfer.v1 - * @classdesc Represents a FungibleTokenPacketData. - * @implements IFungibleTokenPacketData - * @constructor - * @param {cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData=} [p] Properties to set - */ - function FungibleTokenPacketData(p) { - this.amount = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * FungibleTokenPacketData amount. - * @member {Array.} amount - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.amount = $util.emptyArray; - - /** - * FungibleTokenPacketData sender. - * @member {string} sender - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.sender = ""; - - /** - * FungibleTokenPacketData receiver. - * @member {string} receiver - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.receiver = ""; - - /** - * Creates a new FungibleTokenPacketData instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketData - * @static - * @param {cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData=} [properties] Properties to set - * @returns {cosmos_sdk.x.transfer.v1.FungibleTokenPacketData} FungibleTokenPacketData instance - */ - FungibleTokenPacketData.create = function create(properties) { - return new FungibleTokenPacketData(properties); - }; - - /** - * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link cosmos_sdk.x.transfer.v1.FungibleTokenPacketData.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketData - * @static - * @param {cosmos_sdk.x.transfer.v1.IFungibleTokenPacketData} m FungibleTokenPacketData message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FungibleTokenPacketData.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.amount != null && m.amount.length) { - for (var i = 0; i < m.amount.length; ++i) - $root.cosmos_sdk.v1.Coin.encode(m.amount[i], w.uint32(10).fork()).ldelim(); - } - if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) - w.uint32(18).string(m.sender); - if (m.receiver != null && Object.hasOwnProperty.call(m, "receiver")) - w.uint32(26).string(m.receiver); - return w; - }; - - /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketData - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.transfer.v1.FungibleTokenPacketData} FungibleTokenPacketData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FungibleTokenPacketData.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.transfer.v1.FungibleTokenPacketData(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.amount && m.amount.length)) - m.amount = []; - m.amount.push($root.cosmos_sdk.v1.Coin.decode(r, r.uint32())); - break; - case 2: - m.sender = r.string(); - break; - case 3: - m.receiver = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return FungibleTokenPacketData; - })(); - - v1.FungibleTokenPacketAcknowledgement = (function() { - - /** - * Properties of a FungibleTokenPacketAcknowledgement. - * @memberof cosmos_sdk.x.transfer.v1 - * @interface IFungibleTokenPacketAcknowledgement - * @property {boolean|null} [success] FungibleTokenPacketAcknowledgement success - * @property {string|null} [error] FungibleTokenPacketAcknowledgement error - */ - - /** - * Constructs a new FungibleTokenPacketAcknowledgement. - * @memberof cosmos_sdk.x.transfer.v1 - * @classdesc Represents a FungibleTokenPacketAcknowledgement. - * @implements IFungibleTokenPacketAcknowledgement - * @constructor - * @param {cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement=} [p] Properties to set - */ - function FungibleTokenPacketAcknowledgement(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * FungibleTokenPacketAcknowledgement success. - * @member {boolean} success - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement - * @instance - */ - FungibleTokenPacketAcknowledgement.prototype.success = false; - - /** - * FungibleTokenPacketAcknowledgement error. - * @member {string} error - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement - * @instance - */ - FungibleTokenPacketAcknowledgement.prototype.error = ""; - - /** - * Creates a new FungibleTokenPacketAcknowledgement instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement - * @static - * @param {cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement=} [properties] Properties to set - * @returns {cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement} FungibleTokenPacketAcknowledgement instance - */ - FungibleTokenPacketAcknowledgement.create = function create(properties) { - return new FungibleTokenPacketAcknowledgement(properties); - }; - - /** - * Encodes the specified FungibleTokenPacketAcknowledgement message. Does not implicitly {@link cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement - * @static - * @param {cosmos_sdk.x.transfer.v1.IFungibleTokenPacketAcknowledgement} m FungibleTokenPacketAcknowledgement message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FungibleTokenPacketAcknowledgement.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.success != null && Object.hasOwnProperty.call(m, "success")) - w.uint32(8).bool(m.success); - if (m.error != null && Object.hasOwnProperty.call(m, "error")) - w.uint32(18).string(m.error); - return w; - }; - - /** - * Decodes a FungibleTokenPacketAcknowledgement message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement} FungibleTokenPacketAcknowledgement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FungibleTokenPacketAcknowledgement.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.transfer.v1.FungibleTokenPacketAcknowledgement(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.success = r.bool(); - break; - case 2: - m.error = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return FungibleTokenPacketAcknowledgement; - })(); - - return v1; - })(); - - return transfer; - })(); - - x.ibc = (function() { - - /** - * Namespace ibc. - * @memberof cosmos_sdk.x - * @namespace - */ - var ibc = {}; - - ibc.connection = (function() { - - /** - * Namespace connection. - * @memberof cosmos_sdk.x.ibc - * @namespace - */ - var connection = {}; - - connection.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.ibc.connection - * @namespace - */ - var v1 = {}; - - v1.MsgConnectionOpenInit = (function() { - - /** - * Properties of a MsgConnectionOpenInit. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface IMsgConnectionOpenInit - * @property {string|null} [clientId] MsgConnectionOpenInit clientId - * @property {string|null} [connectionId] MsgConnectionOpenInit connectionId - * @property {cosmos_sdk.x.ibc.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenInit counterparty - * @property {Uint8Array|null} [signer] MsgConnectionOpenInit signer - */ - - /** - * Constructs a new MsgConnectionOpenInit. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a MsgConnectionOpenInit. - * @implements IMsgConnectionOpenInit - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit=} [p] Properties to set - */ - function MsgConnectionOpenInit(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgConnectionOpenInit clientId. - * @member {string} clientId - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.clientId = ""; - - /** - * MsgConnectionOpenInit connectionId. - * @member {string} connectionId - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.connectionId = ""; - - /** - * MsgConnectionOpenInit counterparty. - * @member {cosmos_sdk.x.ibc.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.counterparty = null; - - /** - * MsgConnectionOpenInit signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgConnectionOpenInit instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit instance - */ - MsgConnectionOpenInit.create = function create(properties) { - return new MsgConnectionOpenInit(properties); - }; - - /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenInit} m MsgConnectionOpenInit message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgConnectionOpenInit.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(18).string(m.connectionId); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.cosmos_sdk.x.ibc.connection.v1.Counterparty.encode(m.counterparty, w.uint32(26).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(34).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgConnectionOpenInit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenInit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.connectionId = r.string(); - break; - case 3: - m.counterparty = $root.cosmos_sdk.x.ibc.connection.v1.Counterparty.decode(r, r.uint32()); - break; - case 4: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgConnectionOpenInit; - })(); - - v1.MsgConnectionOpenTry = (function() { - - /** - * Properties of a MsgConnectionOpenTry. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface IMsgConnectionOpenTry - * @property {string|null} [clientId] MsgConnectionOpenTry clientId - * @property {string|null} [connectionId] MsgConnectionOpenTry connectionId - * @property {cosmos_sdk.x.ibc.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenTry counterparty - * @property {Array.|null} [counterpartyVersions] MsgConnectionOpenTry counterpartyVersions - * @property {Uint8Array|null} [proofInit] MsgConnectionOpenTry proofInit - * @property {number|Long|null} [proofHeight] MsgConnectionOpenTry proofHeight - * @property {Uint8Array|null} [proofConsensus] MsgConnectionOpenTry proofConsensus - * @property {number|Long|null} [consensusHeight] MsgConnectionOpenTry consensusHeight - * @property {Uint8Array|null} [signer] MsgConnectionOpenTry signer - */ - - /** - * Constructs a new MsgConnectionOpenTry. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a MsgConnectionOpenTry. - * @implements IMsgConnectionOpenTry - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry=} [p] Properties to set - */ - function MsgConnectionOpenTry(p) { - this.counterpartyVersions = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgConnectionOpenTry clientId. - * @member {string} clientId - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.clientId = ""; - - /** - * MsgConnectionOpenTry connectionId. - * @member {string} connectionId - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.connectionId = ""; - - /** - * MsgConnectionOpenTry counterparty. - * @member {cosmos_sdk.x.ibc.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.counterparty = null; - - /** - * MsgConnectionOpenTry counterpartyVersions. - * @member {Array.} counterpartyVersions - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.counterpartyVersions = $util.emptyArray; - - /** - * MsgConnectionOpenTry proofInit. - * @member {Uint8Array} proofInit - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proofInit = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenTry proofConsensus. - * @member {Uint8Array} proofConsensus - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proofConsensus = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry consensusHeight. - * @member {number|Long} consensusHeight - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.consensusHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenTry signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgConnectionOpenTry instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry instance - */ - MsgConnectionOpenTry.create = function create(properties) { - return new MsgConnectionOpenTry(properties); - }; - - /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenTry} m MsgConnectionOpenTry message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgConnectionOpenTry.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(18).string(m.connectionId); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.cosmos_sdk.x.ibc.connection.v1.Counterparty.encode(m.counterparty, w.uint32(26).fork()).ldelim(); - if (m.counterpartyVersions != null && m.counterpartyVersions.length) { - for (var i = 0; i < m.counterpartyVersions.length; ++i) - w.uint32(34).string(m.counterpartyVersions[i]); - } - if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) - w.uint32(42).bytes(m.proofInit); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(48).uint64(m.proofHeight); - if (m.proofConsensus != null && Object.hasOwnProperty.call(m, "proofConsensus")) - w.uint32(58).bytes(m.proofConsensus); - if (m.consensusHeight != null && Object.hasOwnProperty.call(m, "consensusHeight")) - w.uint32(64).uint64(m.consensusHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(74).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgConnectionOpenTry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenTry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.connectionId = r.string(); - break; - case 3: - m.counterparty = $root.cosmos_sdk.x.ibc.connection.v1.Counterparty.decode(r, r.uint32()); - break; - case 4: - if (!(m.counterpartyVersions && m.counterpartyVersions.length)) - m.counterpartyVersions = []; - m.counterpartyVersions.push(r.string()); - break; - case 5: - m.proofInit = r.bytes(); - break; - case 6: - m.proofHeight = r.uint64(); - break; - case 7: - m.proofConsensus = r.bytes(); - break; - case 8: - m.consensusHeight = r.uint64(); - break; - case 9: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgConnectionOpenTry; - })(); - - v1.MsgConnectionOpenAck = (function() { - - /** - * Properties of a MsgConnectionOpenAck. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface IMsgConnectionOpenAck - * @property {string|null} [connectionId] MsgConnectionOpenAck connectionId - * @property {string|null} [version] MsgConnectionOpenAck version - * @property {Uint8Array|null} [proofTry] MsgConnectionOpenAck proofTry - * @property {number|Long|null} [proofHeight] MsgConnectionOpenAck proofHeight - * @property {Uint8Array|null} [proofConsensus] MsgConnectionOpenAck proofConsensus - * @property {number|Long|null} [consensusHeight] MsgConnectionOpenAck consensusHeight - * @property {Uint8Array|null} [signer] MsgConnectionOpenAck signer - */ - - /** - * Constructs a new MsgConnectionOpenAck. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a MsgConnectionOpenAck. - * @implements IMsgConnectionOpenAck - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck=} [p] Properties to set - */ - function MsgConnectionOpenAck(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgConnectionOpenAck connectionId. - * @member {string} connectionId - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.connectionId = ""; - - /** - * MsgConnectionOpenAck version. - * @member {string} version - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.version = ""; - - /** - * MsgConnectionOpenAck proofTry. - * @member {Uint8Array} proofTry - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proofTry = $util.newBuffer([]); - - /** - * MsgConnectionOpenAck proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenAck proofConsensus. - * @member {Uint8Array} proofConsensus - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proofConsensus = $util.newBuffer([]); - - /** - * MsgConnectionOpenAck consensusHeight. - * @member {number|Long} consensusHeight - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.consensusHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenAck signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgConnectionOpenAck instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck instance - */ - MsgConnectionOpenAck.create = function create(properties) { - return new MsgConnectionOpenAck(properties); - }; - - /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenAck} m MsgConnectionOpenAck message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgConnectionOpenAck.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(10).string(m.connectionId); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) - w.uint32(18).string(m.version); - if (m.proofTry != null && Object.hasOwnProperty.call(m, "proofTry")) - w.uint32(26).bytes(m.proofTry); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - if (m.proofConsensus != null && Object.hasOwnProperty.call(m, "proofConsensus")) - w.uint32(42).bytes(m.proofConsensus); - if (m.consensusHeight != null && Object.hasOwnProperty.call(m, "consensusHeight")) - w.uint32(48).uint64(m.consensusHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(58).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgConnectionOpenAck.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenAck(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connectionId = r.string(); - break; - case 2: - m.version = r.string(); - break; - case 3: - m.proofTry = r.bytes(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - case 5: - m.proofConsensus = r.bytes(); - break; - case 6: - m.consensusHeight = r.uint64(); - break; - case 7: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgConnectionOpenAck; - })(); - - v1.MsgConnectionOpenConfirm = (function() { - - /** - * Properties of a MsgConnectionOpenConfirm. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface IMsgConnectionOpenConfirm - * @property {string|null} [connectionId] MsgConnectionOpenConfirm connectionId - * @property {Uint8Array|null} [proofAck] MsgConnectionOpenConfirm proofAck - * @property {number|Long|null} [proofHeight] MsgConnectionOpenConfirm proofHeight - * @property {Uint8Array|null} [signer] MsgConnectionOpenConfirm signer - */ - - /** - * Constructs a new MsgConnectionOpenConfirm. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a MsgConnectionOpenConfirm. - * @implements IMsgConnectionOpenConfirm - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm=} [p] Properties to set - */ - function MsgConnectionOpenConfirm(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgConnectionOpenConfirm connectionId. - * @member {string} connectionId - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.connectionId = ""; - - /** - * MsgConnectionOpenConfirm proofAck. - * @member {Uint8Array} proofAck - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.proofAck = $util.newBuffer([]); - - /** - * MsgConnectionOpenConfirm proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenConfirm signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgConnectionOpenConfirm instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm instance - */ - MsgConnectionOpenConfirm.create = function create(properties) { - return new MsgConnectionOpenConfirm(properties); - }; - - /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IMsgConnectionOpenConfirm} m MsgConnectionOpenConfirm message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgConnectionOpenConfirm.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(10).string(m.connectionId); - if (m.proofAck != null && Object.hasOwnProperty.call(m, "proofAck")) - w.uint32(18).bytes(m.proofAck); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(24).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(34).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgConnectionOpenConfirm.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.MsgConnectionOpenConfirm(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connectionId = r.string(); - break; - case 2: - m.proofAck = r.bytes(); - break; - case 3: - m.proofHeight = r.uint64(); - break; - case 4: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgConnectionOpenConfirm; - })(); - - v1.ConnectionEnd = (function() { - - /** - * Properties of a ConnectionEnd. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface IConnectionEnd - * @property {string|null} [id] ConnectionEnd id - * @property {string|null} [clientId] ConnectionEnd clientId - * @property {Array.|null} [versions] ConnectionEnd versions - * @property {cosmos_sdk.x.ibc.connection.v1.State|null} [state] ConnectionEnd state - * @property {cosmos_sdk.x.ibc.connection.v1.ICounterparty|null} [counterparty] ConnectionEnd counterparty - */ - - /** - * Constructs a new ConnectionEnd. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a ConnectionEnd. - * @implements IConnectionEnd - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.IConnectionEnd=} [p] Properties to set - */ - function ConnectionEnd(p) { - this.versions = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ConnectionEnd id. - * @member {string} id - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.id = ""; - - /** - * ConnectionEnd clientId. - * @member {string} clientId - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.clientId = ""; - - /** - * ConnectionEnd versions. - * @member {Array.} versions - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.versions = $util.emptyArray; - - /** - * ConnectionEnd state. - * @member {cosmos_sdk.x.ibc.connection.v1.State} state - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.state = 0; - - /** - * ConnectionEnd counterparty. - * @member {cosmos_sdk.x.ibc.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.counterparty = null; - - /** - * Creates a new ConnectionEnd instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IConnectionEnd=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.ConnectionEnd} ConnectionEnd instance - */ - ConnectionEnd.create = function create(properties) { - return new ConnectionEnd(properties); - }; - - /** - * Encodes the specified ConnectionEnd message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.ConnectionEnd.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IConnectionEnd} m ConnectionEnd message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConnectionEnd.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.id != null && Object.hasOwnProperty.call(m, "id")) - w.uint32(10).string(m.id); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(18).string(m.clientId); - if (m.versions != null && m.versions.length) { - for (var i = 0; i < m.versions.length; ++i) - w.uint32(26).string(m.versions[i]); - } - if (m.state != null && Object.hasOwnProperty.call(m, "state")) - w.uint32(32).int32(m.state); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.cosmos_sdk.x.ibc.connection.v1.Counterparty.encode(m.counterparty, w.uint32(42).fork()).ldelim(); - return w; - }; - - /** - * Decodes a ConnectionEnd message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.ConnectionEnd - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.ConnectionEnd} ConnectionEnd - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConnectionEnd.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.ConnectionEnd(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.id = r.string(); - break; - case 2: - m.clientId = r.string(); - break; - case 3: - if (!(m.versions && m.versions.length)) - m.versions = []; - m.versions.push(r.string()); - break; - case 4: - m.state = r.int32(); - break; - case 5: - m.counterparty = $root.cosmos_sdk.x.ibc.connection.v1.Counterparty.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ConnectionEnd; - })(); - - /** - * State enum. - * @name cosmos_sdk.x.ibc.connection.v1.State - * @enum {number} - * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value - * @property {number} STATE_INIT=1 STATE_INIT value - * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value - * @property {number} STATE_OPEN=3 STATE_OPEN value - */ - v1.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "STATE_INIT"] = 1; - values[valuesById[2] = "STATE_TRYOPEN"] = 2; - values[valuesById[3] = "STATE_OPEN"] = 3; - return values; - })(); - - v1.Counterparty = (function() { - - /** - * Properties of a Counterparty. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface ICounterparty - * @property {string|null} [clientId] Counterparty clientId - * @property {string|null} [connectionId] Counterparty connectionId - * @property {cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix|null} [prefix] Counterparty prefix - */ - - /** - * Constructs a new Counterparty. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a Counterparty. - * @implements ICounterparty - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.ICounterparty=} [p] Properties to set - */ - function Counterparty(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Counterparty clientId. - * @member {string} clientId - * @memberof cosmos_sdk.x.ibc.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.clientId = ""; - - /** - * Counterparty connectionId. - * @member {string} connectionId - * @memberof cosmos_sdk.x.ibc.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.connectionId = ""; - - /** - * Counterparty prefix. - * @member {cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix|null|undefined} prefix - * @memberof cosmos_sdk.x.ibc.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.prefix = null; - - /** - * Creates a new Counterparty instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.Counterparty - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.ICounterparty=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.Counterparty} Counterparty instance - */ - Counterparty.create = function create(properties) { - return new Counterparty(properties); - }; - - /** - * Encodes the specified Counterparty message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.Counterparty.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.Counterparty - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.ICounterparty} m Counterparty message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Counterparty.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) - w.uint32(10).string(m.clientId); - if (m.connectionId != null && Object.hasOwnProperty.call(m, "connectionId")) - w.uint32(18).string(m.connectionId); - if (m.prefix != null && Object.hasOwnProperty.call(m, "prefix")) - $root.cosmos_sdk.x.ibc.commitment.v1.MerklePrefix.encode(m.prefix, w.uint32(26).fork()).ldelim(); - return w; - }; - - /** - * Decodes a Counterparty message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.Counterparty - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.Counterparty} Counterparty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Counterparty.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.Counterparty(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - m.connectionId = r.string(); - break; - case 3: - m.prefix = $root.cosmos_sdk.x.ibc.commitment.v1.MerklePrefix.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Counterparty; - })(); - - v1.ClientPaths = (function() { - - /** - * Properties of a ClientPaths. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @interface IClientPaths - * @property {Array.|null} [paths] ClientPaths paths - */ - - /** - * Constructs a new ClientPaths. - * @memberof cosmos_sdk.x.ibc.connection.v1 - * @classdesc Represents a ClientPaths. - * @implements IClientPaths - * @constructor - * @param {cosmos_sdk.x.ibc.connection.v1.IClientPaths=} [p] Properties to set - */ - function ClientPaths(p) { - this.paths = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ClientPaths paths. - * @member {Array.} paths - * @memberof cosmos_sdk.x.ibc.connection.v1.ClientPaths - * @instance - */ - ClientPaths.prototype.paths = $util.emptyArray; - - /** - * Creates a new ClientPaths instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.connection.v1.ClientPaths - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IClientPaths=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.connection.v1.ClientPaths} ClientPaths instance - */ - ClientPaths.create = function create(properties) { - return new ClientPaths(properties); - }; - - /** - * Encodes the specified ClientPaths message. Does not implicitly {@link cosmos_sdk.x.ibc.connection.v1.ClientPaths.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.connection.v1.ClientPaths - * @static - * @param {cosmos_sdk.x.ibc.connection.v1.IClientPaths} m ClientPaths message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClientPaths.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.paths != null && m.paths.length) { - for (var i = 0; i < m.paths.length; ++i) - w.uint32(10).string(m.paths[i]); - } - return w; - }; - - /** - * Decodes a ClientPaths message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.connection.v1.ClientPaths - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.connection.v1.ClientPaths} ClientPaths - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClientPaths.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.connection.v1.ClientPaths(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.paths && m.paths.length)) - m.paths = []; - m.paths.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ClientPaths; - })(); - - return v1; - })(); - - return connection; - })(); - - ibc.channel = (function() { - - /** - * Namespace channel. - * @memberof cosmos_sdk.x.ibc - * @namespace - */ - var channel = {}; - - channel.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.ibc.channel - * @namespace - */ - var v1 = {}; - - v1.MsgChannelOpenInit = (function() { - - /** - * Properties of a MsgChannelOpenInit. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgChannelOpenInit - * @property {string|null} [portId] MsgChannelOpenInit portId - * @property {string|null} [channelId] MsgChannelOpenInit channelId - * @property {cosmos_sdk.x.ibc.channel.v1.IChannel|null} [channel] MsgChannelOpenInit channel - * @property {Uint8Array|null} [signer] MsgChannelOpenInit signer - */ - - /** - * Constructs a new MsgChannelOpenInit. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgChannelOpenInit. - * @implements IMsgChannelOpenInit - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit=} [p] Properties to set - */ - function MsgChannelOpenInit(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgChannelOpenInit portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @instance - */ - MsgChannelOpenInit.prototype.portId = ""; - - /** - * MsgChannelOpenInit channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @instance - */ - MsgChannelOpenInit.prototype.channelId = ""; - - /** - * MsgChannelOpenInit channel. - * @member {cosmos_sdk.x.ibc.channel.v1.IChannel|null|undefined} channel - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @instance - */ - MsgChannelOpenInit.prototype.channel = null; - - /** - * MsgChannelOpenInit signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @instance - */ - MsgChannelOpenInit.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgChannelOpenInit instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit instance - */ - MsgChannelOpenInit.create = function create(properties) { - return new MsgChannelOpenInit(properties); - }; - - /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenInit} m MsgChannelOpenInit message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgChannelOpenInit.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) - $root.cosmos_sdk.x.ibc.channel.v1.Channel.encode(m.channel, w.uint32(26).fork()).ldelim(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(34).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgChannelOpenInit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenInit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.channel = $root.cosmos_sdk.x.ibc.channel.v1.Channel.decode(r, r.uint32()); - break; - case 4: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgChannelOpenInit; - })(); - - v1.MsgChannelOpenTry = (function() { - - /** - * Properties of a MsgChannelOpenTry. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgChannelOpenTry - * @property {string|null} [portId] MsgChannelOpenTry portId - * @property {string|null} [channelId] MsgChannelOpenTry channelId - * @property {cosmos_sdk.x.ibc.channel.v1.IChannel|null} [channel] MsgChannelOpenTry channel - * @property {string|null} [counterpartyVersion] MsgChannelOpenTry counterpartyVersion - * @property {Uint8Array|null} [proofInit] MsgChannelOpenTry proofInit - * @property {number|Long|null} [proofHeight] MsgChannelOpenTry proofHeight - * @property {Uint8Array|null} [signer] MsgChannelOpenTry signer - */ - - /** - * Constructs a new MsgChannelOpenTry. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgChannelOpenTry. - * @implements IMsgChannelOpenTry - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry=} [p] Properties to set - */ - function MsgChannelOpenTry(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgChannelOpenTry portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.portId = ""; - - /** - * MsgChannelOpenTry channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.channelId = ""; - - /** - * MsgChannelOpenTry channel. - * @member {cosmos_sdk.x.ibc.channel.v1.IChannel|null|undefined} channel - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.channel = null; - - /** - * MsgChannelOpenTry counterpartyVersion. - * @member {string} counterpartyVersion - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.counterpartyVersion = ""; - - /** - * MsgChannelOpenTry proofInit. - * @member {Uint8Array} proofInit - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.proofInit = $util.newBuffer([]); - - /** - * MsgChannelOpenTry proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgChannelOpenTry signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @instance - */ - MsgChannelOpenTry.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgChannelOpenTry instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry instance - */ - MsgChannelOpenTry.create = function create(properties) { - return new MsgChannelOpenTry(properties); - }; - - /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenTry} m MsgChannelOpenTry message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgChannelOpenTry.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) - $root.cosmos_sdk.x.ibc.channel.v1.Channel.encode(m.channel, w.uint32(26).fork()).ldelim(); - if (m.counterpartyVersion != null && Object.hasOwnProperty.call(m, "counterpartyVersion")) - w.uint32(34).string(m.counterpartyVersion); - if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) - w.uint32(42).bytes(m.proofInit); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(48).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(58).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgChannelOpenTry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenTry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.channel = $root.cosmos_sdk.x.ibc.channel.v1.Channel.decode(r, r.uint32()); - break; - case 4: - m.counterpartyVersion = r.string(); - break; - case 5: - m.proofInit = r.bytes(); - break; - case 6: - m.proofHeight = r.uint64(); - break; - case 7: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgChannelOpenTry; - })(); - - v1.MsgChannelOpenAck = (function() { - - /** - * Properties of a MsgChannelOpenAck. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgChannelOpenAck - * @property {string|null} [portId] MsgChannelOpenAck portId - * @property {string|null} [channelId] MsgChannelOpenAck channelId - * @property {string|null} [counterpartyVersion] MsgChannelOpenAck counterpartyVersion - * @property {Uint8Array|null} [proofTry] MsgChannelOpenAck proofTry - * @property {number|Long|null} [proofHeight] MsgChannelOpenAck proofHeight - * @property {Uint8Array|null} [signer] MsgChannelOpenAck signer - */ - - /** - * Constructs a new MsgChannelOpenAck. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgChannelOpenAck. - * @implements IMsgChannelOpenAck - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck=} [p] Properties to set - */ - function MsgChannelOpenAck(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgChannelOpenAck portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.portId = ""; - - /** - * MsgChannelOpenAck channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.channelId = ""; - - /** - * MsgChannelOpenAck counterpartyVersion. - * @member {string} counterpartyVersion - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.counterpartyVersion = ""; - - /** - * MsgChannelOpenAck proofTry. - * @member {Uint8Array} proofTry - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.proofTry = $util.newBuffer([]); - - /** - * MsgChannelOpenAck proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgChannelOpenAck signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgChannelOpenAck instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck instance - */ - MsgChannelOpenAck.create = function create(properties) { - return new MsgChannelOpenAck(properties); - }; - - /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenAck} m MsgChannelOpenAck message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgChannelOpenAck.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.counterpartyVersion != null && Object.hasOwnProperty.call(m, "counterpartyVersion")) - w.uint32(26).string(m.counterpartyVersion); - if (m.proofTry != null && Object.hasOwnProperty.call(m, "proofTry")) - w.uint32(34).bytes(m.proofTry); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(40).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(50).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgChannelOpenAck.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenAck(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.counterpartyVersion = r.string(); - break; - case 4: - m.proofTry = r.bytes(); - break; - case 5: - m.proofHeight = r.uint64(); - break; - case 6: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgChannelOpenAck; - })(); - - v1.MsgChannelOpenConfirm = (function() { - - /** - * Properties of a MsgChannelOpenConfirm. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgChannelOpenConfirm - * @property {string|null} [portId] MsgChannelOpenConfirm portId - * @property {string|null} [channelId] MsgChannelOpenConfirm channelId - * @property {Uint8Array|null} [proofAck] MsgChannelOpenConfirm proofAck - * @property {number|Long|null} [proofHeight] MsgChannelOpenConfirm proofHeight - * @property {Uint8Array|null} [signer] MsgChannelOpenConfirm signer - */ - - /** - * Constructs a new MsgChannelOpenConfirm. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgChannelOpenConfirm. - * @implements IMsgChannelOpenConfirm - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm=} [p] Properties to set - */ - function MsgChannelOpenConfirm(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgChannelOpenConfirm portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @instance - */ - MsgChannelOpenConfirm.prototype.portId = ""; - - /** - * MsgChannelOpenConfirm channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @instance - */ - MsgChannelOpenConfirm.prototype.channelId = ""; - - /** - * MsgChannelOpenConfirm proofAck. - * @member {Uint8Array} proofAck - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @instance - */ - MsgChannelOpenConfirm.prototype.proofAck = $util.newBuffer([]); - - /** - * MsgChannelOpenConfirm proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @instance - */ - MsgChannelOpenConfirm.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgChannelOpenConfirm signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @instance - */ - MsgChannelOpenConfirm.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgChannelOpenConfirm instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm instance - */ - MsgChannelOpenConfirm.create = function create(properties) { - return new MsgChannelOpenConfirm(properties); - }; - - /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelOpenConfirm} m MsgChannelOpenConfirm message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgChannelOpenConfirm.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.proofAck != null && Object.hasOwnProperty.call(m, "proofAck")) - w.uint32(26).bytes(m.proofAck); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(42).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgChannelOpenConfirm.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgChannelOpenConfirm(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.proofAck = r.bytes(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - case 5: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgChannelOpenConfirm; - })(); - - v1.MsgChannelCloseInit = (function() { - - /** - * Properties of a MsgChannelCloseInit. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgChannelCloseInit - * @property {string|null} [portId] MsgChannelCloseInit portId - * @property {string|null} [channelId] MsgChannelCloseInit channelId - * @property {Uint8Array|null} [signer] MsgChannelCloseInit signer - */ - - /** - * Constructs a new MsgChannelCloseInit. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgChannelCloseInit. - * @implements IMsgChannelCloseInit - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit=} [p] Properties to set - */ - function MsgChannelCloseInit(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgChannelCloseInit portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit - * @instance - */ - MsgChannelCloseInit.prototype.portId = ""; - - /** - * MsgChannelCloseInit channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit - * @instance - */ - MsgChannelCloseInit.prototype.channelId = ""; - - /** - * MsgChannelCloseInit signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit - * @instance - */ - MsgChannelCloseInit.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgChannelCloseInit instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit instance - */ - MsgChannelCloseInit.create = function create(properties) { - return new MsgChannelCloseInit(properties); - }; - - /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseInit} m MsgChannelCloseInit message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgChannelCloseInit.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(26).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgChannelCloseInit.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseInit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgChannelCloseInit; - })(); - - v1.MsgChannelCloseConfirm = (function() { - - /** - * Properties of a MsgChannelCloseConfirm. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgChannelCloseConfirm - * @property {string|null} [portId] MsgChannelCloseConfirm portId - * @property {string|null} [channelId] MsgChannelCloseConfirm channelId - * @property {Uint8Array|null} [proofInit] MsgChannelCloseConfirm proofInit - * @property {number|Long|null} [proofHeight] MsgChannelCloseConfirm proofHeight - * @property {Uint8Array|null} [signer] MsgChannelCloseConfirm signer - */ - - /** - * Constructs a new MsgChannelCloseConfirm. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgChannelCloseConfirm. - * @implements IMsgChannelCloseConfirm - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm=} [p] Properties to set - */ - function MsgChannelCloseConfirm(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgChannelCloseConfirm portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @instance - */ - MsgChannelCloseConfirm.prototype.portId = ""; - - /** - * MsgChannelCloseConfirm channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @instance - */ - MsgChannelCloseConfirm.prototype.channelId = ""; - - /** - * MsgChannelCloseConfirm proofInit. - * @member {Uint8Array} proofInit - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @instance - */ - MsgChannelCloseConfirm.prototype.proofInit = $util.newBuffer([]); - - /** - * MsgChannelCloseConfirm proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @instance - */ - MsgChannelCloseConfirm.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgChannelCloseConfirm signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @instance - */ - MsgChannelCloseConfirm.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgChannelCloseConfirm instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm instance - */ - MsgChannelCloseConfirm.create = function create(properties) { - return new MsgChannelCloseConfirm(properties); - }; - - /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgChannelCloseConfirm} m MsgChannelCloseConfirm message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgChannelCloseConfirm.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) - w.uint32(26).bytes(m.proofInit); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(42).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgChannelCloseConfirm.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgChannelCloseConfirm(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - case 3: - m.proofInit = r.bytes(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - case 5: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgChannelCloseConfirm; - })(); - - v1.MsgPacket = (function() { - - /** - * Properties of a MsgPacket. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgPacket - * @property {cosmos_sdk.x.ibc.channel.v1.IPacket|null} [packet] MsgPacket packet - * @property {Uint8Array|null} [proof] MsgPacket proof - * @property {number|Long|null} [proofHeight] MsgPacket proofHeight - * @property {Uint8Array|null} [signer] MsgPacket signer - */ - - /** - * Constructs a new MsgPacket. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgPacket. - * @implements IMsgPacket - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgPacket=} [p] Properties to set - */ - function MsgPacket(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgPacket packet. - * @member {cosmos_sdk.x.ibc.channel.v1.IPacket|null|undefined} packet - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @instance - */ - MsgPacket.prototype.packet = null; - - /** - * MsgPacket proof. - * @member {Uint8Array} proof - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @instance - */ - MsgPacket.prototype.proof = $util.newBuffer([]); - - /** - * MsgPacket proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @instance - */ - MsgPacket.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgPacket signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @instance - */ - MsgPacket.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgPacket instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgPacket=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgPacket} MsgPacket instance - */ - MsgPacket.create = function create(properties) { - return new MsgPacket(properties); - }; - - /** - * Encodes the specified MsgPacket message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgPacket.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgPacket} m MsgPacket message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPacket.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.cosmos_sdk.x.ibc.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) - w.uint32(18).bytes(m.proof); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(24).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(34).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgPacket message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgPacket - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgPacket} MsgPacket - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPacket.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgPacket(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.cosmos_sdk.x.ibc.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofHeight = r.uint64(); - break; - case 4: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgPacket; - })(); - - v1.MsgTimeout = (function() { - - /** - * Properties of a MsgTimeout. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgTimeout - * @property {cosmos_sdk.x.ibc.channel.v1.IPacket|null} [packet] MsgTimeout packet - * @property {Uint8Array|null} [proof] MsgTimeout proof - * @property {number|Long|null} [proofHeight] MsgTimeout proofHeight - * @property {number|Long|null} [nextSequenceRecv] MsgTimeout nextSequenceRecv - * @property {Uint8Array|null} [signer] MsgTimeout signer - */ - - /** - * Constructs a new MsgTimeout. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgTimeout. - * @implements IMsgTimeout - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgTimeout=} [p] Properties to set - */ - function MsgTimeout(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgTimeout packet. - * @member {cosmos_sdk.x.ibc.channel.v1.IPacket|null|undefined} packet - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @instance - */ - MsgTimeout.prototype.packet = null; - - /** - * MsgTimeout proof. - * @member {Uint8Array} proof - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @instance - */ - MsgTimeout.prototype.proof = $util.newBuffer([]); - - /** - * MsgTimeout proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @instance - */ - MsgTimeout.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgTimeout nextSequenceRecv. - * @member {number|Long} nextSequenceRecv - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @instance - */ - MsgTimeout.prototype.nextSequenceRecv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgTimeout signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @instance - */ - MsgTimeout.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgTimeout instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgTimeout=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgTimeout} MsgTimeout instance - */ - MsgTimeout.create = function create(properties) { - return new MsgTimeout(properties); - }; - - /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgTimeout.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgTimeout} m MsgTimeout message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgTimeout.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.cosmos_sdk.x.ibc.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) - w.uint32(18).bytes(m.proof); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(24).uint64(m.proofHeight); - if (m.nextSequenceRecv != null && Object.hasOwnProperty.call(m, "nextSequenceRecv")) - w.uint32(32).uint64(m.nextSequenceRecv); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(42).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgTimeout message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgTimeout - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgTimeout} MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgTimeout.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgTimeout(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.cosmos_sdk.x.ibc.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofHeight = r.uint64(); - break; - case 4: - m.nextSequenceRecv = r.uint64(); - break; - case 5: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgTimeout; - })(); - - v1.MsgAcknowledgement = (function() { - - /** - * Properties of a MsgAcknowledgement. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IMsgAcknowledgement - * @property {cosmos_sdk.x.ibc.channel.v1.IPacket|null} [packet] MsgAcknowledgement packet - * @property {Uint8Array|null} [acknowledgement] MsgAcknowledgement acknowledgement - * @property {Uint8Array|null} [proof] MsgAcknowledgement proof - * @property {number|Long|null} [proofHeight] MsgAcknowledgement proofHeight - * @property {Uint8Array|null} [signer] MsgAcknowledgement signer - */ - - /** - * Constructs a new MsgAcknowledgement. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a MsgAcknowledgement. - * @implements IMsgAcknowledgement - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement=} [p] Properties to set - */ - function MsgAcknowledgement(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgAcknowledgement packet. - * @member {cosmos_sdk.x.ibc.channel.v1.IPacket|null|undefined} packet - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @instance - */ - MsgAcknowledgement.prototype.packet = null; - - /** - * MsgAcknowledgement acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @instance - */ - MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); - - /** - * MsgAcknowledgement proof. - * @member {Uint8Array} proof - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @instance - */ - MsgAcknowledgement.prototype.proof = $util.newBuffer([]); - - /** - * MsgAcknowledgement proofHeight. - * @member {number|Long} proofHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @instance - */ - MsgAcknowledgement.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgAcknowledgement signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @instance - */ - MsgAcknowledgement.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgAcknowledgement instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement} MsgAcknowledgement instance - */ - MsgAcknowledgement.create = function create(properties) { - return new MsgAcknowledgement(properties); - }; - - /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IMsgAcknowledgement} m MsgAcknowledgement message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgAcknowledgement.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.cosmos_sdk.x.ibc.channel.v1.Packet.encode(m.packet, w.uint32(10).fork()).ldelim(); - if (m.acknowledgement != null && Object.hasOwnProperty.call(m, "acknowledgement")) - w.uint32(18).bytes(m.acknowledgement); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) - w.uint32(26).bytes(m.proof); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(42).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement} MsgAcknowledgement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgAcknowledgement.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.MsgAcknowledgement(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.cosmos_sdk.x.ibc.channel.v1.Packet.decode(r, r.uint32()); - break; - case 2: - m.acknowledgement = r.bytes(); - break; - case 3: - m.proof = r.bytes(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - case 5: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgAcknowledgement; - })(); - - v1.Channel = (function() { - - /** - * Properties of a Channel. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IChannel - * @property {cosmos_sdk.x.ibc.channel.v1.State|null} [state] Channel state - * @property {cosmos_sdk.x.ibc.channel.v1.Order|null} [ordering] Channel ordering - * @property {cosmos_sdk.x.ibc.channel.v1.ICounterparty|null} [counterparty] Channel counterparty - * @property {Array.|null} [connectionHops] Channel connectionHops - * @property {string|null} [version] Channel version - */ - - /** - * Constructs a new Channel. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a Channel. - * @implements IChannel - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IChannel=} [p] Properties to set - */ - function Channel(p) { - this.connectionHops = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Channel state. - * @member {cosmos_sdk.x.ibc.channel.v1.State} state - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @instance - */ - Channel.prototype.state = 0; - - /** - * Channel ordering. - * @member {cosmos_sdk.x.ibc.channel.v1.Order} ordering - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @instance - */ - Channel.prototype.ordering = 0; - - /** - * Channel counterparty. - * @member {cosmos_sdk.x.ibc.channel.v1.ICounterparty|null|undefined} counterparty - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @instance - */ - Channel.prototype.counterparty = null; - - /** - * Channel connectionHops. - * @member {Array.} connectionHops - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @instance - */ - Channel.prototype.connectionHops = $util.emptyArray; - - /** - * Channel version. - * @member {string} version - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @instance - */ - Channel.prototype.version = ""; - - /** - * Creates a new Channel instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IChannel=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.Channel} Channel instance - */ - Channel.create = function create(properties) { - return new Channel(properties); - }; - - /** - * Encodes the specified Channel message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Channel.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IChannel} m Channel message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Channel.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.state != null && Object.hasOwnProperty.call(m, "state")) - w.uint32(8).int32(m.state); - if (m.ordering != null && Object.hasOwnProperty.call(m, "ordering")) - w.uint32(16).int32(m.ordering); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.cosmos_sdk.x.ibc.channel.v1.Counterparty.encode(m.counterparty, w.uint32(26).fork()).ldelim(); - if (m.connectionHops != null && m.connectionHops.length) { - for (var i = 0; i < m.connectionHops.length; ++i) - w.uint32(34).string(m.connectionHops[i]); - } - if (m.version != null && Object.hasOwnProperty.call(m, "version")) - w.uint32(42).string(m.version); - return w; - }; - - /** - * Decodes a Channel message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.Channel - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.Channel} Channel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Channel.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.Channel(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.state = r.int32(); - break; - case 2: - m.ordering = r.int32(); - break; - case 3: - m.counterparty = $root.cosmos_sdk.x.ibc.channel.v1.Counterparty.decode(r, r.uint32()); - break; - case 4: - if (!(m.connectionHops && m.connectionHops.length)) - m.connectionHops = []; - m.connectionHops.push(r.string()); - break; - case 5: - m.version = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Channel; - })(); - - /** - * State enum. - * @name cosmos_sdk.x.ibc.channel.v1.State - * @enum {number} - * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value - * @property {number} STATE_INIT=1 STATE_INIT value - * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value - * @property {number} STATE_OPEN=3 STATE_OPEN value - * @property {number} STATE_CLOSED=4 STATE_CLOSED value - */ - v1.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "STATE_INIT"] = 1; - values[valuesById[2] = "STATE_TRYOPEN"] = 2; - values[valuesById[3] = "STATE_OPEN"] = 3; - values[valuesById[4] = "STATE_CLOSED"] = 4; - return values; - })(); - - /** - * Order enum. - * @name cosmos_sdk.x.ibc.channel.v1.Order - * @enum {number} - * @property {number} ORDER_NONE_UNSPECIFIED=0 ORDER_NONE_UNSPECIFIED value - * @property {number} ORDER_UNORDERED=1 ORDER_UNORDERED value - * @property {number} ORDER_ORDERED=2 ORDER_ORDERED value - */ - v1.Order = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ORDER_NONE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORDER_UNORDERED"] = 1; - values[valuesById[2] = "ORDER_ORDERED"] = 2; - return values; - })(); - - v1.Counterparty = (function() { - - /** - * Properties of a Counterparty. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface ICounterparty - * @property {string|null} [portId] Counterparty portId - * @property {string|null} [channelId] Counterparty channelId - */ - - /** - * Constructs a new Counterparty. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a Counterparty. - * @implements ICounterparty - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.ICounterparty=} [p] Properties to set - */ - function Counterparty(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Counterparty portId. - * @member {string} portId - * @memberof cosmos_sdk.x.ibc.channel.v1.Counterparty - * @instance - */ - Counterparty.prototype.portId = ""; - - /** - * Counterparty channelId. - * @member {string} channelId - * @memberof cosmos_sdk.x.ibc.channel.v1.Counterparty - * @instance - */ - Counterparty.prototype.channelId = ""; - - /** - * Creates a new Counterparty instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.Counterparty - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.ICounterparty=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.Counterparty} Counterparty instance - */ - Counterparty.create = function create(properties) { - return new Counterparty(properties); - }; - - /** - * Encodes the specified Counterparty message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Counterparty.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.Counterparty - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.ICounterparty} m Counterparty message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Counterparty.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) - w.uint32(10).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(18).string(m.channelId); - return w; - }; - - /** - * Decodes a Counterparty message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.Counterparty - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.Counterparty} Counterparty - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Counterparty.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.Counterparty(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.portId = r.string(); - break; - case 2: - m.channelId = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Counterparty; - })(); - - v1.Packet = (function() { - - /** - * Properties of a Packet. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @interface IPacket - * @property {number|Long|null} [sequence] Packet sequence - * @property {string|null} [sourcePort] Packet sourcePort - * @property {string|null} [sourceChannel] Packet sourceChannel - * @property {string|null} [destinationPort] Packet destinationPort - * @property {string|null} [destinationChannel] Packet destinationChannel - * @property {Uint8Array|null} [data] Packet data - * @property {number|Long|null} [timeoutHeight] Packet timeoutHeight - * @property {number|Long|null} [timeoutTimestamp] Packet timeoutTimestamp - */ - - /** - * Constructs a new Packet. - * @memberof cosmos_sdk.x.ibc.channel.v1 - * @classdesc Represents a Packet. - * @implements IPacket - * @constructor - * @param {cosmos_sdk.x.ibc.channel.v1.IPacket=} [p] Properties to set - */ - function Packet(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Packet sequence. - * @member {number|Long} sequence - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Packet sourcePort. - * @member {string} sourcePort - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.sourcePort = ""; - - /** - * Packet sourceChannel. - * @member {string} sourceChannel - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.sourceChannel = ""; - - /** - * Packet destinationPort. - * @member {string} destinationPort - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.destinationPort = ""; - - /** - * Packet destinationChannel. - * @member {string} destinationChannel - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.destinationChannel = ""; - - /** - * Packet data. - * @member {Uint8Array} data - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.data = $util.newBuffer([]); - - /** - * Packet timeoutHeight. - * @member {number|Long} timeoutHeight - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Packet timeoutTimestamp. - * @member {number|Long} timeoutTimestamp - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @instance - */ - Packet.prototype.timeoutTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new Packet instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IPacket=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.channel.v1.Packet} Packet instance - */ - Packet.create = function create(properties) { - return new Packet(properties); - }; - - /** - * Encodes the specified Packet message. Does not implicitly {@link cosmos_sdk.x.ibc.channel.v1.Packet.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @static - * @param {cosmos_sdk.x.ibc.channel.v1.IPacket} m Packet message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Packet.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) - w.uint32(8).uint64(m.sequence); - if (m.sourcePort != null && Object.hasOwnProperty.call(m, "sourcePort")) - w.uint32(18).string(m.sourcePort); - if (m.sourceChannel != null && Object.hasOwnProperty.call(m, "sourceChannel")) - w.uint32(26).string(m.sourceChannel); - if (m.destinationPort != null && Object.hasOwnProperty.call(m, "destinationPort")) - w.uint32(34).string(m.destinationPort); - if (m.destinationChannel != null && Object.hasOwnProperty.call(m, "destinationChannel")) - w.uint32(42).string(m.destinationChannel); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) - w.uint32(50).bytes(m.data); - if (m.timeoutHeight != null && Object.hasOwnProperty.call(m, "timeoutHeight")) - w.uint32(56).uint64(m.timeoutHeight); - if (m.timeoutTimestamp != null && Object.hasOwnProperty.call(m, "timeoutTimestamp")) - w.uint32(64).uint64(m.timeoutTimestamp); - return w; - }; - - /** - * Decodes a Packet message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.channel.v1.Packet - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.channel.v1.Packet} Packet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Packet.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.channel.v1.Packet(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.sequence = r.uint64(); - break; - case 2: - m.sourcePort = r.string(); - break; - case 3: - m.sourceChannel = r.string(); - break; - case 4: - m.destinationPort = r.string(); - break; - case 5: - m.destinationChannel = r.string(); - break; - case 6: - m.data = r.bytes(); - break; - case 7: - m.timeoutHeight = r.uint64(); - break; - case 8: - m.timeoutTimestamp = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Packet; - })(); - - return v1; - })(); - - return channel; - })(); - - ibc.commitment = (function() { - - /** - * Namespace commitment. - * @memberof cosmos_sdk.x.ibc - * @namespace - */ - var commitment = {}; - - commitment.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.ibc.commitment - * @namespace - */ - var v1 = {}; - - v1.MerkleRoot = (function() { - - /** - * Properties of a MerkleRoot. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @interface IMerkleRoot - * @property {Uint8Array|null} [hash] MerkleRoot hash - */ - - /** - * Constructs a new MerkleRoot. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @classdesc Represents a MerkleRoot. - * @implements IMerkleRoot - * @constructor - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot=} [p] Properties to set - */ - function MerkleRoot(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MerkleRoot hash. - * @member {Uint8Array} hash - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleRoot - * @instance - */ - MerkleRoot.prototype.hash = $util.newBuffer([]); - - /** - * Creates a new MerkleRoot instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleRoot - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerkleRoot} MerkleRoot instance - */ - MerkleRoot.create = function create(properties) { - return new MerkleRoot(properties); - }; - - /** - * Encodes the specified MerkleRoot message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerkleRoot.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleRoot - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerkleRoot} m MerkleRoot message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MerkleRoot.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) - w.uint32(10).bytes(m.hash); - return w; - }; - - /** - * Decodes a MerkleRoot message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleRoot - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerkleRoot} MerkleRoot - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MerkleRoot.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.commitment.v1.MerkleRoot(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.hash = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MerkleRoot; - })(); - - v1.MerklePrefix = (function() { - - /** - * Properties of a MerklePrefix. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @interface IMerklePrefix - * @property {Uint8Array|null} [keyPrefix] MerklePrefix keyPrefix - */ - - /** - * Constructs a new MerklePrefix. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @classdesc Represents a MerklePrefix. - * @implements IMerklePrefix - * @constructor - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix=} [p] Properties to set - */ - function MerklePrefix(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MerklePrefix keyPrefix. - * @member {Uint8Array} keyPrefix - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePrefix - * @instance - */ - MerklePrefix.prototype.keyPrefix = $util.newBuffer([]); - - /** - * Creates a new MerklePrefix instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePrefix - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerklePrefix} MerklePrefix instance - */ - MerklePrefix.create = function create(properties) { - return new MerklePrefix(properties); - }; - - /** - * Encodes the specified MerklePrefix message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerklePrefix.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePrefix - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerklePrefix} m MerklePrefix message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MerklePrefix.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.keyPrefix != null && Object.hasOwnProperty.call(m, "keyPrefix")) - w.uint32(10).bytes(m.keyPrefix); - return w; - }; - - /** - * Decodes a MerklePrefix message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePrefix - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerklePrefix} MerklePrefix - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MerklePrefix.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.commitment.v1.MerklePrefix(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.keyPrefix = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MerklePrefix; - })(); - - v1.MerklePath = (function() { - - /** - * Properties of a MerklePath. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @interface IMerklePath - * @property {cosmos_sdk.x.ibc.commitment.v1.IKeyPath|null} [keyPath] MerklePath keyPath - */ - - /** - * Constructs a new MerklePath. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @classdesc Represents a MerklePath. - * @implements IMerklePath - * @constructor - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerklePath=} [p] Properties to set - */ - function MerklePath(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MerklePath keyPath. - * @member {cosmos_sdk.x.ibc.commitment.v1.IKeyPath|null|undefined} keyPath - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePath - * @instance - */ - MerklePath.prototype.keyPath = null; - - /** - * Creates a new MerklePath instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePath - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerklePath=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerklePath} MerklePath instance - */ - MerklePath.create = function create(properties) { - return new MerklePath(properties); - }; - - /** - * Encodes the specified MerklePath message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerklePath.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePath - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerklePath} m MerklePath message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MerklePath.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.keyPath != null && Object.hasOwnProperty.call(m, "keyPath")) - $root.cosmos_sdk.x.ibc.commitment.v1.KeyPath.encode(m.keyPath, w.uint32(10).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MerklePath message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerklePath - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerklePath} MerklePath - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MerklePath.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.commitment.v1.MerklePath(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.keyPath = $root.cosmos_sdk.x.ibc.commitment.v1.KeyPath.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MerklePath; - })(); - - v1.MerkleProof = (function() { - - /** - * Properties of a MerkleProof. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @interface IMerkleProof - * @property {tendermint.crypto.merkle.IProof|null} [proof] MerkleProof proof - */ - - /** - * Constructs a new MerkleProof. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @classdesc Represents a MerkleProof. - * @implements IMerkleProof - * @constructor - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerkleProof=} [p] Properties to set - */ - function MerkleProof(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MerkleProof proof. - * @member {tendermint.crypto.merkle.IProof|null|undefined} proof - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleProof - * @instance - */ - MerkleProof.prototype.proof = null; - - /** - * Creates a new MerkleProof instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleProof - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerkleProof=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerkleProof} MerkleProof instance - */ - MerkleProof.create = function create(properties) { - return new MerkleProof(properties); - }; - - /** - * Encodes the specified MerkleProof message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.MerkleProof.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleProof - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IMerkleProof} m MerkleProof message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MerkleProof.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) - $root.tendermint.crypto.merkle.Proof.encode(m.proof, w.uint32(10).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MerkleProof message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.commitment.v1.MerkleProof - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.commitment.v1.MerkleProof} MerkleProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MerkleProof.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.commitment.v1.MerkleProof(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.proof = $root.tendermint.crypto.merkle.Proof.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MerkleProof; - })(); - - v1.KeyPath = (function() { - - /** - * Properties of a KeyPath. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @interface IKeyPath - * @property {Array.|null} [keys] KeyPath keys - */ - - /** - * Constructs a new KeyPath. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @classdesc Represents a KeyPath. - * @implements IKeyPath - * @constructor - * @param {cosmos_sdk.x.ibc.commitment.v1.IKeyPath=} [p] Properties to set - */ - function KeyPath(p) { - this.keys = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * KeyPath keys. - * @member {Array.} keys - * @memberof cosmos_sdk.x.ibc.commitment.v1.KeyPath - * @instance - */ - KeyPath.prototype.keys = $util.emptyArray; - - /** - * Creates a new KeyPath instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.commitment.v1.KeyPath - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IKeyPath=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.commitment.v1.KeyPath} KeyPath instance - */ - KeyPath.create = function create(properties) { - return new KeyPath(properties); - }; - - /** - * Encodes the specified KeyPath message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.KeyPath.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.commitment.v1.KeyPath - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IKeyPath} m KeyPath message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyPath.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.keys != null && m.keys.length) { - for (var i = 0; i < m.keys.length; ++i) - $root.cosmos_sdk.x.ibc.commitment.v1.Key.encode(m.keys[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a KeyPath message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.commitment.v1.KeyPath - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.commitment.v1.KeyPath} KeyPath - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyPath.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.commitment.v1.KeyPath(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.keys && m.keys.length)) - m.keys = []; - m.keys.push($root.cosmos_sdk.x.ibc.commitment.v1.Key.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return KeyPath; - })(); - - v1.Key = (function() { - - /** - * Properties of a Key. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @interface IKey - * @property {Uint8Array|null} [name] Key name - * @property {cosmos_sdk.x.ibc.commitment.v1.KeyEncoding|null} [enc] Key enc - */ - - /** - * Constructs a new Key. - * @memberof cosmos_sdk.x.ibc.commitment.v1 - * @classdesc Represents a Key. - * @implements IKey - * @constructor - * @param {cosmos_sdk.x.ibc.commitment.v1.IKey=} [p] Properties to set - */ - function Key(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Key name. - * @member {Uint8Array} name - * @memberof cosmos_sdk.x.ibc.commitment.v1.Key - * @instance - */ - Key.prototype.name = $util.newBuffer([]); - - /** - * Key enc. - * @member {cosmos_sdk.x.ibc.commitment.v1.KeyEncoding} enc - * @memberof cosmos_sdk.x.ibc.commitment.v1.Key - * @instance - */ - Key.prototype.enc = 0; - - /** - * Creates a new Key instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.ibc.commitment.v1.Key - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IKey=} [properties] Properties to set - * @returns {cosmos_sdk.x.ibc.commitment.v1.Key} Key instance - */ - Key.create = function create(properties) { - return new Key(properties); - }; - - /** - * Encodes the specified Key message. Does not implicitly {@link cosmos_sdk.x.ibc.commitment.v1.Key.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.ibc.commitment.v1.Key - * @static - * @param {cosmos_sdk.x.ibc.commitment.v1.IKey} m Key message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Key.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) - w.uint32(10).bytes(m.name); - if (m.enc != null && Object.hasOwnProperty.call(m, "enc")) - w.uint32(16).int32(m.enc); - return w; - }; - - /** - * Decodes a Key message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.ibc.commitment.v1.Key - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.ibc.commitment.v1.Key} Key - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Key.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.ibc.commitment.v1.Key(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.bytes(); - break; - case 2: - m.enc = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Key; - })(); - - /** - * KeyEncoding enum. - * @name cosmos_sdk.x.ibc.commitment.v1.KeyEncoding - * @enum {number} - * @property {number} KEY_ENCODING_URL_UNSPECIFIED=0 KEY_ENCODING_URL_UNSPECIFIED value - * @property {number} KEY_ENCODING_HEX=1 KEY_ENCODING_HEX value - */ - v1.KeyEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KEY_ENCODING_URL_UNSPECIFIED"] = 0; - values[valuesById[1] = "KEY_ENCODING_HEX"] = 1; - return values; - })(); - - return v1; - })(); - - return commitment; - })(); - - return ibc; - })(); - - x.mint = (function() { - - /** - * Namespace mint. - * @memberof cosmos_sdk.x - * @namespace - */ - var mint = {}; - - mint.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.mint - * @namespace - */ - var v1 = {}; - - v1.Minter = (function() { - - /** - * Properties of a Minter. - * @memberof cosmos_sdk.x.mint.v1 - * @interface IMinter - * @property {string|null} [inflation] Minter inflation - * @property {string|null} [annualProvisions] Minter annualProvisions - */ - - /** - * Constructs a new Minter. - * @memberof cosmos_sdk.x.mint.v1 - * @classdesc Represents a Minter. - * @implements IMinter - * @constructor - * @param {cosmos_sdk.x.mint.v1.IMinter=} [p] Properties to set - */ - function Minter(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Minter inflation. - * @member {string} inflation - * @memberof cosmos_sdk.x.mint.v1.Minter - * @instance - */ - Minter.prototype.inflation = ""; - - /** - * Minter annualProvisions. - * @member {string} annualProvisions - * @memberof cosmos_sdk.x.mint.v1.Minter - * @instance - */ - Minter.prototype.annualProvisions = ""; - - /** - * Creates a new Minter instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.mint.v1.Minter - * @static - * @param {cosmos_sdk.x.mint.v1.IMinter=} [properties] Properties to set - * @returns {cosmos_sdk.x.mint.v1.Minter} Minter instance - */ - Minter.create = function create(properties) { - return new Minter(properties); - }; - - /** - * Encodes the specified Minter message. Does not implicitly {@link cosmos_sdk.x.mint.v1.Minter.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.mint.v1.Minter - * @static - * @param {cosmos_sdk.x.mint.v1.IMinter} m Minter message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Minter.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.inflation != null && Object.hasOwnProperty.call(m, "inflation")) - w.uint32(10).string(m.inflation); - if (m.annualProvisions != null && Object.hasOwnProperty.call(m, "annualProvisions")) - w.uint32(18).string(m.annualProvisions); - return w; - }; - - /** - * Decodes a Minter message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.mint.v1.Minter - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.mint.v1.Minter} Minter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Minter.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.mint.v1.Minter(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.inflation = r.string(); - break; - case 2: - m.annualProvisions = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Minter; - })(); - - v1.Params = (function() { - - /** - * Properties of a Params. - * @memberof cosmos_sdk.x.mint.v1 - * @interface IParams - * @property {string|null} [mintDenom] Params mintDenom - * @property {string|null} [inflationRateChange] Params inflationRateChange - * @property {string|null} [inflationMax] Params inflationMax - * @property {string|null} [inflationMin] Params inflationMin - * @property {string|null} [goalBonded] Params goalBonded - * @property {number|Long|null} [blocksPerYear] Params blocksPerYear - */ - - /** - * Constructs a new Params. - * @memberof cosmos_sdk.x.mint.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {cosmos_sdk.x.mint.v1.IParams=} [p] Properties to set - */ - function Params(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Params mintDenom. - * @member {string} mintDenom - * @memberof cosmos_sdk.x.mint.v1.Params - * @instance - */ - Params.prototype.mintDenom = ""; - - /** - * Params inflationRateChange. - * @member {string} inflationRateChange - * @memberof cosmos_sdk.x.mint.v1.Params - * @instance - */ - Params.prototype.inflationRateChange = ""; - - /** - * Params inflationMax. - * @member {string} inflationMax - * @memberof cosmos_sdk.x.mint.v1.Params - * @instance - */ - Params.prototype.inflationMax = ""; - - /** - * Params inflationMin. - * @member {string} inflationMin - * @memberof cosmos_sdk.x.mint.v1.Params - * @instance - */ - Params.prototype.inflationMin = ""; - - /** - * Params goalBonded. - * @member {string} goalBonded - * @memberof cosmos_sdk.x.mint.v1.Params - * @instance - */ - Params.prototype.goalBonded = ""; - - /** - * Params blocksPerYear. - * @member {number|Long} blocksPerYear - * @memberof cosmos_sdk.x.mint.v1.Params - * @instance - */ - Params.prototype.blocksPerYear = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new Params instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.mint.v1.Params - * @static - * @param {cosmos_sdk.x.mint.v1.IParams=} [properties] Properties to set - * @returns {cosmos_sdk.x.mint.v1.Params} Params instance - */ - Params.create = function create(properties) { - return new Params(properties); - }; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.mint.v1.Params.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.mint.v1.Params - * @static - * @param {cosmos_sdk.x.mint.v1.IParams} m Params message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.mintDenom != null && Object.hasOwnProperty.call(m, "mintDenom")) - w.uint32(10).string(m.mintDenom); - if (m.inflationRateChange != null && Object.hasOwnProperty.call(m, "inflationRateChange")) - w.uint32(18).string(m.inflationRateChange); - if (m.inflationMax != null && Object.hasOwnProperty.call(m, "inflationMax")) - w.uint32(26).string(m.inflationMax); - if (m.inflationMin != null && Object.hasOwnProperty.call(m, "inflationMin")) - w.uint32(34).string(m.inflationMin); - if (m.goalBonded != null && Object.hasOwnProperty.call(m, "goalBonded")) - w.uint32(42).string(m.goalBonded); - if (m.blocksPerYear != null && Object.hasOwnProperty.call(m, "blocksPerYear")) - w.uint32(48).uint64(m.blocksPerYear); - return w; - }; - - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.mint.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.mint.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.mint.v1.Params(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.mintDenom = r.string(); - break; - case 2: - m.inflationRateChange = r.string(); - break; - case 3: - m.inflationMax = r.string(); - break; - case 4: - m.inflationMin = r.string(); - break; - case 5: - m.goalBonded = r.string(); - break; - case 6: - m.blocksPerYear = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Params; - })(); - - return v1; - })(); - - return mint; - })(); - - x.params = (function() { - - /** - * Namespace params. - * @memberof cosmos_sdk.x - * @namespace - */ - var params = {}; - - params.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.params - * @namespace - */ - var v1 = {}; - - v1.ParameterChangeProposal = (function() { - - /** - * Properties of a ParameterChangeProposal. - * @memberof cosmos_sdk.x.params.v1 - * @interface IParameterChangeProposal - * @property {string|null} [title] ParameterChangeProposal title - * @property {string|null} [description] ParameterChangeProposal description - * @property {Array.|null} [changes] ParameterChangeProposal changes - */ - - /** - * Constructs a new ParameterChangeProposal. - * @memberof cosmos_sdk.x.params.v1 - * @classdesc Represents a ParameterChangeProposal. - * @implements IParameterChangeProposal - * @constructor - * @param {cosmos_sdk.x.params.v1.IParameterChangeProposal=} [p] Properties to set - */ - function ParameterChangeProposal(p) { - this.changes = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ParameterChangeProposal title. - * @member {string} title - * @memberof cosmos_sdk.x.params.v1.ParameterChangeProposal - * @instance - */ - ParameterChangeProposal.prototype.title = ""; - - /** - * ParameterChangeProposal description. - * @member {string} description - * @memberof cosmos_sdk.x.params.v1.ParameterChangeProposal - * @instance - */ - ParameterChangeProposal.prototype.description = ""; - - /** - * ParameterChangeProposal changes. - * @member {Array.} changes - * @memberof cosmos_sdk.x.params.v1.ParameterChangeProposal - * @instance - */ - ParameterChangeProposal.prototype.changes = $util.emptyArray; - - /** - * Creates a new ParameterChangeProposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.params.v1.ParameterChangeProposal - * @static - * @param {cosmos_sdk.x.params.v1.IParameterChangeProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.params.v1.ParameterChangeProposal} ParameterChangeProposal instance - */ - ParameterChangeProposal.create = function create(properties) { - return new ParameterChangeProposal(properties); - }; - - /** - * Encodes the specified ParameterChangeProposal message. Does not implicitly {@link cosmos_sdk.x.params.v1.ParameterChangeProposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.params.v1.ParameterChangeProposal - * @static - * @param {cosmos_sdk.x.params.v1.IParameterChangeProposal} m ParameterChangeProposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterChangeProposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(10).string(m.title); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - w.uint32(18).string(m.description); - if (m.changes != null && m.changes.length) { - for (var i = 0; i < m.changes.length; ++i) - $root.cosmos_sdk.x.params.v1.ParamChange.encode(m.changes[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a ParameterChangeProposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.params.v1.ParameterChangeProposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.params.v1.ParameterChangeProposal} ParameterChangeProposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterChangeProposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.params.v1.ParameterChangeProposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.title = r.string(); - break; - case 2: - m.description = r.string(); - break; - case 3: - if (!(m.changes && m.changes.length)) - m.changes = []; - m.changes.push($root.cosmos_sdk.x.params.v1.ParamChange.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ParameterChangeProposal; - })(); - - v1.ParamChange = (function() { - - /** - * Properties of a ParamChange. - * @memberof cosmos_sdk.x.params.v1 - * @interface IParamChange - * @property {string|null} [subspace] ParamChange subspace - * @property {string|null} [key] ParamChange key - * @property {string|null} [value] ParamChange value - */ - - /** - * Constructs a new ParamChange. - * @memberof cosmos_sdk.x.params.v1 - * @classdesc Represents a ParamChange. - * @implements IParamChange - * @constructor - * @param {cosmos_sdk.x.params.v1.IParamChange=} [p] Properties to set - */ - function ParamChange(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ParamChange subspace. - * @member {string} subspace - * @memberof cosmos_sdk.x.params.v1.ParamChange - * @instance - */ - ParamChange.prototype.subspace = ""; - - /** - * ParamChange key. - * @member {string} key - * @memberof cosmos_sdk.x.params.v1.ParamChange - * @instance - */ - ParamChange.prototype.key = ""; - - /** - * ParamChange value. - * @member {string} value - * @memberof cosmos_sdk.x.params.v1.ParamChange - * @instance - */ - ParamChange.prototype.value = ""; - - /** - * Creates a new ParamChange instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.params.v1.ParamChange - * @static - * @param {cosmos_sdk.x.params.v1.IParamChange=} [properties] Properties to set - * @returns {cosmos_sdk.x.params.v1.ParamChange} ParamChange instance - */ - ParamChange.create = function create(properties) { - return new ParamChange(properties); - }; - - /** - * Encodes the specified ParamChange message. Does not implicitly {@link cosmos_sdk.x.params.v1.ParamChange.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.params.v1.ParamChange - * @static - * @param {cosmos_sdk.x.params.v1.IParamChange} m ParamChange message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParamChange.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.subspace != null && Object.hasOwnProperty.call(m, "subspace")) - w.uint32(10).string(m.subspace); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) - w.uint32(18).string(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) - w.uint32(26).string(m.value); - return w; - }; - - /** - * Decodes a ParamChange message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.params.v1.ParamChange - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.params.v1.ParamChange} ParamChange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParamChange.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.params.v1.ParamChange(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.subspace = r.string(); - break; - case 2: - m.key = r.string(); - break; - case 3: - m.value = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ParamChange; - })(); - - return v1; - })(); - - return params; - })(); - - x.slashing = (function() { - - /** - * Namespace slashing. - * @memberof cosmos_sdk.x - * @namespace - */ - var slashing = {}; - - slashing.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.slashing - * @namespace - */ - var v1 = {}; - - v1.MsgUnjail = (function() { - - /** - * Properties of a MsgUnjail. - * @memberof cosmos_sdk.x.slashing.v1 - * @interface IMsgUnjail - * @property {Uint8Array|null} [validatorAddr] MsgUnjail validatorAddr - */ - - /** - * Constructs a new MsgUnjail. - * @memberof cosmos_sdk.x.slashing.v1 - * @classdesc Represents a MsgUnjail. - * @implements IMsgUnjail - * @constructor - * @param {cosmos_sdk.x.slashing.v1.IMsgUnjail=} [p] Properties to set - */ - function MsgUnjail(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgUnjail validatorAddr. - * @member {Uint8Array} validatorAddr - * @memberof cosmos_sdk.x.slashing.v1.MsgUnjail - * @instance - */ - MsgUnjail.prototype.validatorAddr = $util.newBuffer([]); - - /** - * Creates a new MsgUnjail instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.slashing.v1.MsgUnjail - * @static - * @param {cosmos_sdk.x.slashing.v1.IMsgUnjail=} [properties] Properties to set - * @returns {cosmos_sdk.x.slashing.v1.MsgUnjail} MsgUnjail instance - */ - MsgUnjail.create = function create(properties) { - return new MsgUnjail(properties); - }; - - /** - * Encodes the specified MsgUnjail message. Does not implicitly {@link cosmos_sdk.x.slashing.v1.MsgUnjail.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.slashing.v1.MsgUnjail - * @static - * @param {cosmos_sdk.x.slashing.v1.IMsgUnjail} m MsgUnjail message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgUnjail.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.validatorAddr != null && Object.hasOwnProperty.call(m, "validatorAddr")) - w.uint32(10).bytes(m.validatorAddr); - return w; - }; - - /** - * Decodes a MsgUnjail message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.slashing.v1.MsgUnjail - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.slashing.v1.MsgUnjail} MsgUnjail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgUnjail.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.slashing.v1.MsgUnjail(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.validatorAddr = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgUnjail; - })(); - - v1.ValidatorSigningInfo = (function() { - - /** - * Properties of a ValidatorSigningInfo. - * @memberof cosmos_sdk.x.slashing.v1 - * @interface IValidatorSigningInfo - * @property {Uint8Array|null} [address] ValidatorSigningInfo address - * @property {number|Long|null} [startHeight] ValidatorSigningInfo startHeight - * @property {number|Long|null} [indexOffset] ValidatorSigningInfo indexOffset - * @property {google.protobuf.ITimestamp|null} [jailedUntil] ValidatorSigningInfo jailedUntil - * @property {boolean|null} [tombstoned] ValidatorSigningInfo tombstoned - * @property {number|Long|null} [missedBlocksCounter] ValidatorSigningInfo missedBlocksCounter - */ - - /** - * Constructs a new ValidatorSigningInfo. - * @memberof cosmos_sdk.x.slashing.v1 - * @classdesc Represents a ValidatorSigningInfo. - * @implements IValidatorSigningInfo - * @constructor - * @param {cosmos_sdk.x.slashing.v1.IValidatorSigningInfo=} [p] Properties to set - */ - function ValidatorSigningInfo(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * ValidatorSigningInfo address. - * @member {Uint8Array} address - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @instance - */ - ValidatorSigningInfo.prototype.address = $util.newBuffer([]); - - /** - * ValidatorSigningInfo startHeight. - * @member {number|Long} startHeight - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @instance - */ - ValidatorSigningInfo.prototype.startHeight = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ValidatorSigningInfo indexOffset. - * @member {number|Long} indexOffset - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @instance - */ - ValidatorSigningInfo.prototype.indexOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ValidatorSigningInfo jailedUntil. - * @member {google.protobuf.ITimestamp|null|undefined} jailedUntil - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @instance - */ - ValidatorSigningInfo.prototype.jailedUntil = null; - - /** - * ValidatorSigningInfo tombstoned. - * @member {boolean} tombstoned - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @instance - */ - ValidatorSigningInfo.prototype.tombstoned = false; - - /** - * ValidatorSigningInfo missedBlocksCounter. - * @member {number|Long} missedBlocksCounter - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @instance - */ - ValidatorSigningInfo.prototype.missedBlocksCounter = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new ValidatorSigningInfo instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @static - * @param {cosmos_sdk.x.slashing.v1.IValidatorSigningInfo=} [properties] Properties to set - * @returns {cosmos_sdk.x.slashing.v1.ValidatorSigningInfo} ValidatorSigningInfo instance - */ - ValidatorSigningInfo.create = function create(properties) { - return new ValidatorSigningInfo(properties); - }; - - /** - * Encodes the specified ValidatorSigningInfo message. Does not implicitly {@link cosmos_sdk.x.slashing.v1.ValidatorSigningInfo.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @static - * @param {cosmos_sdk.x.slashing.v1.IValidatorSigningInfo} m ValidatorSigningInfo message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ValidatorSigningInfo.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.address != null && Object.hasOwnProperty.call(m, "address")) - w.uint32(10).bytes(m.address); - if (m.startHeight != null && Object.hasOwnProperty.call(m, "startHeight")) - w.uint32(16).int64(m.startHeight); - if (m.indexOffset != null && Object.hasOwnProperty.call(m, "indexOffset")) - w.uint32(24).int64(m.indexOffset); - if (m.jailedUntil != null && Object.hasOwnProperty.call(m, "jailedUntil")) - $root.google.protobuf.Timestamp.encode(m.jailedUntil, w.uint32(34).fork()).ldelim(); - if (m.tombstoned != null && Object.hasOwnProperty.call(m, "tombstoned")) - w.uint32(40).bool(m.tombstoned); - if (m.missedBlocksCounter != null && Object.hasOwnProperty.call(m, "missedBlocksCounter")) - w.uint32(48).int64(m.missedBlocksCounter); - return w; - }; - - /** - * Decodes a ValidatorSigningInfo message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.slashing.v1.ValidatorSigningInfo - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.slashing.v1.ValidatorSigningInfo} ValidatorSigningInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ValidatorSigningInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.slashing.v1.ValidatorSigningInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 2: - m.startHeight = r.int64(); - break; - case 3: - m.indexOffset = r.int64(); - break; - case 4: - m.jailedUntil = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 5: - m.tombstoned = r.bool(); - break; - case 6: - m.missedBlocksCounter = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return ValidatorSigningInfo; - })(); - - return v1; - })(); - - return slashing; - })(); - - x.staking = (function() { - - /** - * Namespace staking. - * @memberof cosmos_sdk.x - * @namespace - */ - var staking = {}; - - staking.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.staking - * @namespace - */ - var v1 = {}; - - v1.MsgCreateValidator = (function() { - - /** - * Properties of a MsgCreateValidator. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IMsgCreateValidator - * @property {cosmos_sdk.x.staking.v1.IDescription|null} [description] MsgCreateValidator description - * @property {cosmos_sdk.x.staking.v1.ICommissionRates|null} [commission] MsgCreateValidator commission - * @property {string|null} [minSelfDelegation] MsgCreateValidator minSelfDelegation - * @property {Uint8Array|null} [delegatorAddress] MsgCreateValidator delegatorAddress - * @property {Uint8Array|null} [validatorAddress] MsgCreateValidator validatorAddress - * @property {string|null} [pubkey] MsgCreateValidator pubkey - * @property {cosmos_sdk.v1.ICoin|null} [value] MsgCreateValidator value - */ - - /** - * Constructs a new MsgCreateValidator. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a MsgCreateValidator. - * @implements IMsgCreateValidator - * @constructor - * @param {cosmos_sdk.x.staking.v1.IMsgCreateValidator=} [p] Properties to set - */ - function MsgCreateValidator(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgCreateValidator description. - * @member {cosmos_sdk.x.staking.v1.IDescription|null|undefined} description - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.description = null; - - /** - * MsgCreateValidator commission. - * @member {cosmos_sdk.x.staking.v1.ICommissionRates|null|undefined} commission - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.commission = null; - - /** - * MsgCreateValidator minSelfDelegation. - * @member {string} minSelfDelegation - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.minSelfDelegation = ""; - - /** - * MsgCreateValidator delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * MsgCreateValidator validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.validatorAddress = $util.newBuffer([]); - - /** - * MsgCreateValidator pubkey. - * @member {string} pubkey - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.pubkey = ""; - - /** - * MsgCreateValidator value. - * @member {cosmos_sdk.v1.ICoin|null|undefined} value - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @instance - */ - MsgCreateValidator.prototype.value = null; - - /** - * Creates a new MsgCreateValidator instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgCreateValidator=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.MsgCreateValidator} MsgCreateValidator instance - */ - MsgCreateValidator.create = function create(properties) { - return new MsgCreateValidator(properties); - }; - - /** - * Encodes the specified MsgCreateValidator message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgCreateValidator.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgCreateValidator} m MsgCreateValidator message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgCreateValidator.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - $root.cosmos_sdk.x.staking.v1.Description.encode(m.description, w.uint32(10).fork()).ldelim(); - if (m.commission != null && Object.hasOwnProperty.call(m, "commission")) - $root.cosmos_sdk.x.staking.v1.CommissionRates.encode(m.commission, w.uint32(18).fork()).ldelim(); - if (m.minSelfDelegation != null && Object.hasOwnProperty.call(m, "minSelfDelegation")) - w.uint32(26).string(m.minSelfDelegation); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(34).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(42).bytes(m.validatorAddress); - if (m.pubkey != null && Object.hasOwnProperty.call(m, "pubkey")) - w.uint32(50).string(m.pubkey); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) - $root.cosmos_sdk.v1.Coin.encode(m.value, w.uint32(58).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MsgCreateValidator message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.MsgCreateValidator - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.MsgCreateValidator} MsgCreateValidator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgCreateValidator.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.MsgCreateValidator(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.description = $root.cosmos_sdk.x.staking.v1.Description.decode(r, r.uint32()); - break; - case 2: - m.commission = $root.cosmos_sdk.x.staking.v1.CommissionRates.decode(r, r.uint32()); - break; - case 3: - m.minSelfDelegation = r.string(); - break; - case 4: - m.delegatorAddress = r.bytes(); - break; - case 5: - m.validatorAddress = r.bytes(); - break; - case 6: - m.pubkey = r.string(); - break; - case 7: - m.value = $root.cosmos_sdk.v1.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgCreateValidator; - })(); - - v1.MsgEditValidator = (function() { - - /** - * Properties of a MsgEditValidator. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IMsgEditValidator - * @property {cosmos_sdk.x.staking.v1.IDescription|null} [description] MsgEditValidator description - * @property {Uint8Array|null} [validatorAddress] MsgEditValidator validatorAddress - * @property {string|null} [commissionRate] MsgEditValidator commissionRate - * @property {string|null} [minSelfDelegation] MsgEditValidator minSelfDelegation - */ - - /** - * Constructs a new MsgEditValidator. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a MsgEditValidator. - * @implements IMsgEditValidator - * @constructor - * @param {cosmos_sdk.x.staking.v1.IMsgEditValidator=} [p] Properties to set - */ - function MsgEditValidator(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgEditValidator description. - * @member {cosmos_sdk.x.staking.v1.IDescription|null|undefined} description - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @instance - */ - MsgEditValidator.prototype.description = null; - - /** - * MsgEditValidator validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @instance - */ - MsgEditValidator.prototype.validatorAddress = $util.newBuffer([]); - - /** - * MsgEditValidator commissionRate. - * @member {string} commissionRate - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @instance - */ - MsgEditValidator.prototype.commissionRate = ""; - - /** - * MsgEditValidator minSelfDelegation. - * @member {string} minSelfDelegation - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @instance - */ - MsgEditValidator.prototype.minSelfDelegation = ""; - - /** - * Creates a new MsgEditValidator instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgEditValidator=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.MsgEditValidator} MsgEditValidator instance - */ - MsgEditValidator.create = function create(properties) { - return new MsgEditValidator(properties); - }; - - /** - * Encodes the specified MsgEditValidator message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgEditValidator.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgEditValidator} m MsgEditValidator message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgEditValidator.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - $root.cosmos_sdk.x.staking.v1.Description.encode(m.description, w.uint32(10).fork()).ldelim(); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - if (m.commissionRate != null && Object.hasOwnProperty.call(m, "commissionRate")) - w.uint32(26).string(m.commissionRate); - if (m.minSelfDelegation != null && Object.hasOwnProperty.call(m, "minSelfDelegation")) - w.uint32(34).string(m.minSelfDelegation); - return w; - }; - - /** - * Decodes a MsgEditValidator message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.MsgEditValidator - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.MsgEditValidator} MsgEditValidator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgEditValidator.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.MsgEditValidator(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.description = $root.cosmos_sdk.x.staking.v1.Description.decode(r, r.uint32()); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - case 3: - m.commissionRate = r.string(); - break; - case 4: - m.minSelfDelegation = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgEditValidator; - })(); - - v1.MsgDelegate = (function() { - - /** - * Properties of a MsgDelegate. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IMsgDelegate - * @property {Uint8Array|null} [delegatorAddress] MsgDelegate delegatorAddress - * @property {Uint8Array|null} [validatorAddress] MsgDelegate validatorAddress - * @property {cosmos_sdk.v1.ICoin|null} [amount] MsgDelegate amount - */ - - /** - * Constructs a new MsgDelegate. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a MsgDelegate. - * @implements IMsgDelegate - * @constructor - * @param {cosmos_sdk.x.staking.v1.IMsgDelegate=} [p] Properties to set - */ - function MsgDelegate(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgDelegate delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgDelegate - * @instance - */ - MsgDelegate.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * MsgDelegate validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgDelegate - * @instance - */ - MsgDelegate.prototype.validatorAddress = $util.newBuffer([]); - - /** - * MsgDelegate amount. - * @member {cosmos_sdk.v1.ICoin|null|undefined} amount - * @memberof cosmos_sdk.x.staking.v1.MsgDelegate - * @instance - */ - MsgDelegate.prototype.amount = null; - - /** - * Creates a new MsgDelegate instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.MsgDelegate - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgDelegate=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.MsgDelegate} MsgDelegate instance - */ - MsgDelegate.create = function create(properties) { - return new MsgDelegate(properties); - }; - - /** - * Encodes the specified MsgDelegate message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgDelegate.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.MsgDelegate - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgDelegate} m MsgDelegate message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgDelegate.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - $root.cosmos_sdk.v1.Coin.encode(m.amount, w.uint32(26).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MsgDelegate message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.MsgDelegate - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.MsgDelegate} MsgDelegate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgDelegate.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.MsgDelegate(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - case 3: - m.amount = $root.cosmos_sdk.v1.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgDelegate; - })(); - - v1.MsgBeginRedelegate = (function() { - - /** - * Properties of a MsgBeginRedelegate. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IMsgBeginRedelegate - * @property {Uint8Array|null} [delegatorAddress] MsgBeginRedelegate delegatorAddress - * @property {Uint8Array|null} [validatorSrcAddress] MsgBeginRedelegate validatorSrcAddress - * @property {Uint8Array|null} [validatorDstAddress] MsgBeginRedelegate validatorDstAddress - * @property {cosmos_sdk.v1.ICoin|null} [amount] MsgBeginRedelegate amount - */ - - /** - * Constructs a new MsgBeginRedelegate. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a MsgBeginRedelegate. - * @implements IMsgBeginRedelegate - * @constructor - * @param {cosmos_sdk.x.staking.v1.IMsgBeginRedelegate=} [p] Properties to set - */ - function MsgBeginRedelegate(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgBeginRedelegate delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @instance - */ - MsgBeginRedelegate.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * MsgBeginRedelegate validatorSrcAddress. - * @member {Uint8Array} validatorSrcAddress - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @instance - */ - MsgBeginRedelegate.prototype.validatorSrcAddress = $util.newBuffer([]); - - /** - * MsgBeginRedelegate validatorDstAddress. - * @member {Uint8Array} validatorDstAddress - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @instance - */ - MsgBeginRedelegate.prototype.validatorDstAddress = $util.newBuffer([]); - - /** - * MsgBeginRedelegate amount. - * @member {cosmos_sdk.v1.ICoin|null|undefined} amount - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @instance - */ - MsgBeginRedelegate.prototype.amount = null; - - /** - * Creates a new MsgBeginRedelegate instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgBeginRedelegate=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.MsgBeginRedelegate} MsgBeginRedelegate instance - */ - MsgBeginRedelegate.create = function create(properties) { - return new MsgBeginRedelegate(properties); - }; - - /** - * Encodes the specified MsgBeginRedelegate message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgBeginRedelegate.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgBeginRedelegate} m MsgBeginRedelegate message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgBeginRedelegate.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorSrcAddress != null && Object.hasOwnProperty.call(m, "validatorSrcAddress")) - w.uint32(18).bytes(m.validatorSrcAddress); - if (m.validatorDstAddress != null && Object.hasOwnProperty.call(m, "validatorDstAddress")) - w.uint32(26).bytes(m.validatorDstAddress); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - $root.cosmos_sdk.v1.Coin.encode(m.amount, w.uint32(34).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MsgBeginRedelegate message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.MsgBeginRedelegate - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.MsgBeginRedelegate} MsgBeginRedelegate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgBeginRedelegate.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.MsgBeginRedelegate(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorSrcAddress = r.bytes(); - break; - case 3: - m.validatorDstAddress = r.bytes(); - break; - case 4: - m.amount = $root.cosmos_sdk.v1.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgBeginRedelegate; - })(); - - v1.MsgUndelegate = (function() { - - /** - * Properties of a MsgUndelegate. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IMsgUndelegate - * @property {Uint8Array|null} [delegatorAddress] MsgUndelegate delegatorAddress - * @property {Uint8Array|null} [validatorAddress] MsgUndelegate validatorAddress - * @property {cosmos_sdk.v1.ICoin|null} [amount] MsgUndelegate amount - */ - - /** - * Constructs a new MsgUndelegate. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a MsgUndelegate. - * @implements IMsgUndelegate - * @constructor - * @param {cosmos_sdk.x.staking.v1.IMsgUndelegate=} [p] Properties to set - */ - function MsgUndelegate(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgUndelegate delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgUndelegate - * @instance - */ - MsgUndelegate.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * MsgUndelegate validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.MsgUndelegate - * @instance - */ - MsgUndelegate.prototype.validatorAddress = $util.newBuffer([]); - - /** - * MsgUndelegate amount. - * @member {cosmos_sdk.v1.ICoin|null|undefined} amount - * @memberof cosmos_sdk.x.staking.v1.MsgUndelegate - * @instance - */ - MsgUndelegate.prototype.amount = null; - - /** - * Creates a new MsgUndelegate instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.MsgUndelegate - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgUndelegate=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.MsgUndelegate} MsgUndelegate instance - */ - MsgUndelegate.create = function create(properties) { - return new MsgUndelegate(properties); - }; - - /** - * Encodes the specified MsgUndelegate message. Does not implicitly {@link cosmos_sdk.x.staking.v1.MsgUndelegate.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.MsgUndelegate - * @static - * @param {cosmos_sdk.x.staking.v1.IMsgUndelegate} m MsgUndelegate message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgUndelegate.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - $root.cosmos_sdk.v1.Coin.encode(m.amount, w.uint32(26).fork()).ldelim(); - return w; - }; - - /** - * Decodes a MsgUndelegate message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.MsgUndelegate - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.MsgUndelegate} MsgUndelegate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgUndelegate.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.MsgUndelegate(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - case 3: - m.amount = $root.cosmos_sdk.v1.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgUndelegate; - })(); - - v1.HistoricalInfo = (function() { - - /** - * Properties of a HistoricalInfo. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IHistoricalInfo - * @property {tendermint.abci.types.IHeader|null} [header] HistoricalInfo header - * @property {Array.|null} [valset] HistoricalInfo valset - */ - - /** - * Constructs a new HistoricalInfo. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a HistoricalInfo. - * @implements IHistoricalInfo - * @constructor - * @param {cosmos_sdk.x.staking.v1.IHistoricalInfo=} [p] Properties to set - */ - function HistoricalInfo(p) { - this.valset = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * HistoricalInfo header. - * @member {tendermint.abci.types.IHeader|null|undefined} header - * @memberof cosmos_sdk.x.staking.v1.HistoricalInfo - * @instance - */ - HistoricalInfo.prototype.header = null; - - /** - * HistoricalInfo valset. - * @member {Array.} valset - * @memberof cosmos_sdk.x.staking.v1.HistoricalInfo - * @instance - */ - HistoricalInfo.prototype.valset = $util.emptyArray; - - /** - * Creates a new HistoricalInfo instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.HistoricalInfo - * @static - * @param {cosmos_sdk.x.staking.v1.IHistoricalInfo=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.HistoricalInfo} HistoricalInfo instance - */ - HistoricalInfo.create = function create(properties) { - return new HistoricalInfo(properties); - }; - - /** - * Encodes the specified HistoricalInfo message. Does not implicitly {@link cosmos_sdk.x.staking.v1.HistoricalInfo.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.HistoricalInfo - * @static - * @param {cosmos_sdk.x.staking.v1.IHistoricalInfo} m HistoricalInfo message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HistoricalInfo.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.header != null && Object.hasOwnProperty.call(m, "header")) - $root.tendermint.abci.types.Header.encode(m.header, w.uint32(10).fork()).ldelim(); - if (m.valset != null && m.valset.length) { - for (var i = 0; i < m.valset.length; ++i) - $root.cosmos_sdk.x.staking.v1.Validator.encode(m.valset[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a HistoricalInfo message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.HistoricalInfo - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.HistoricalInfo} HistoricalInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HistoricalInfo.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.HistoricalInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.header = $root.tendermint.abci.types.Header.decode(r, r.uint32()); - break; - case 2: - if (!(m.valset && m.valset.length)) - m.valset = []; - m.valset.push($root.cosmos_sdk.x.staking.v1.Validator.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return HistoricalInfo; - })(); - - v1.CommissionRates = (function() { - - /** - * Properties of a CommissionRates. - * @memberof cosmos_sdk.x.staking.v1 - * @interface ICommissionRates - * @property {string|null} [rate] CommissionRates rate - * @property {string|null} [maxRate] CommissionRates maxRate - * @property {string|null} [maxChangeRate] CommissionRates maxChangeRate - */ - - /** - * Constructs a new CommissionRates. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a CommissionRates. - * @implements ICommissionRates - * @constructor - * @param {cosmos_sdk.x.staking.v1.ICommissionRates=} [p] Properties to set - */ - function CommissionRates(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * CommissionRates rate. - * @member {string} rate - * @memberof cosmos_sdk.x.staking.v1.CommissionRates - * @instance - */ - CommissionRates.prototype.rate = ""; - - /** - * CommissionRates maxRate. - * @member {string} maxRate - * @memberof cosmos_sdk.x.staking.v1.CommissionRates - * @instance - */ - CommissionRates.prototype.maxRate = ""; - - /** - * CommissionRates maxChangeRate. - * @member {string} maxChangeRate - * @memberof cosmos_sdk.x.staking.v1.CommissionRates - * @instance - */ - CommissionRates.prototype.maxChangeRate = ""; - - /** - * Creates a new CommissionRates instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.CommissionRates - * @static - * @param {cosmos_sdk.x.staking.v1.ICommissionRates=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.CommissionRates} CommissionRates instance - */ - CommissionRates.create = function create(properties) { - return new CommissionRates(properties); - }; - - /** - * Encodes the specified CommissionRates message. Does not implicitly {@link cosmos_sdk.x.staking.v1.CommissionRates.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.CommissionRates - * @static - * @param {cosmos_sdk.x.staking.v1.ICommissionRates} m CommissionRates message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommissionRates.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.rate != null && Object.hasOwnProperty.call(m, "rate")) - w.uint32(10).string(m.rate); - if (m.maxRate != null && Object.hasOwnProperty.call(m, "maxRate")) - w.uint32(18).string(m.maxRate); - if (m.maxChangeRate != null && Object.hasOwnProperty.call(m, "maxChangeRate")) - w.uint32(26).string(m.maxChangeRate); - return w; - }; - - /** - * Decodes a CommissionRates message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.CommissionRates - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.CommissionRates} CommissionRates - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommissionRates.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.CommissionRates(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.rate = r.string(); - break; - case 2: - m.maxRate = r.string(); - break; - case 3: - m.maxChangeRate = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return CommissionRates; - })(); - - v1.Commission = (function() { - - /** - * Properties of a Commission. - * @memberof cosmos_sdk.x.staking.v1 - * @interface ICommission - * @property {cosmos_sdk.x.staking.v1.ICommissionRates|null} [commissionRates] Commission commissionRates - * @property {google.protobuf.ITimestamp|null} [updateTime] Commission updateTime - */ - - /** - * Constructs a new Commission. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a Commission. - * @implements ICommission - * @constructor - * @param {cosmos_sdk.x.staking.v1.ICommission=} [p] Properties to set - */ - function Commission(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Commission commissionRates. - * @member {cosmos_sdk.x.staking.v1.ICommissionRates|null|undefined} commissionRates - * @memberof cosmos_sdk.x.staking.v1.Commission - * @instance - */ - Commission.prototype.commissionRates = null; - - /** - * Commission updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof cosmos_sdk.x.staking.v1.Commission - * @instance - */ - Commission.prototype.updateTime = null; - - /** - * Creates a new Commission instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.Commission - * @static - * @param {cosmos_sdk.x.staking.v1.ICommission=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.Commission} Commission instance - */ - Commission.create = function create(properties) { - return new Commission(properties); - }; - - /** - * Encodes the specified Commission message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Commission.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.Commission - * @static - * @param {cosmos_sdk.x.staking.v1.ICommission} m Commission message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Commission.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.commissionRates != null && Object.hasOwnProperty.call(m, "commissionRates")) - $root.cosmos_sdk.x.staking.v1.CommissionRates.encode(m.commissionRates, w.uint32(10).fork()).ldelim(); - if (m.updateTime != null && Object.hasOwnProperty.call(m, "updateTime")) - $root.google.protobuf.Timestamp.encode(m.updateTime, w.uint32(18).fork()).ldelim(); - return w; - }; - - /** - * Decodes a Commission message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.Commission - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.Commission} Commission - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Commission.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.Commission(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.commissionRates = $root.cosmos_sdk.x.staking.v1.CommissionRates.decode(r, r.uint32()); - break; - case 2: - m.updateTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Commission; - })(); - - v1.Description = (function() { - - /** - * Properties of a Description. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IDescription - * @property {string|null} [moniker] Description moniker - * @property {string|null} [identity] Description identity - * @property {string|null} [website] Description website - * @property {string|null} [securityContact] Description securityContact - * @property {string|null} [details] Description details - */ - - /** - * Constructs a new Description. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a Description. - * @implements IDescription - * @constructor - * @param {cosmos_sdk.x.staking.v1.IDescription=} [p] Properties to set - */ - function Description(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Description moniker. - * @member {string} moniker - * @memberof cosmos_sdk.x.staking.v1.Description - * @instance - */ - Description.prototype.moniker = ""; - - /** - * Description identity. - * @member {string} identity - * @memberof cosmos_sdk.x.staking.v1.Description - * @instance - */ - Description.prototype.identity = ""; - - /** - * Description website. - * @member {string} website - * @memberof cosmos_sdk.x.staking.v1.Description - * @instance - */ - Description.prototype.website = ""; - - /** - * Description securityContact. - * @member {string} securityContact - * @memberof cosmos_sdk.x.staking.v1.Description - * @instance - */ - Description.prototype.securityContact = ""; - - /** - * Description details. - * @member {string} details - * @memberof cosmos_sdk.x.staking.v1.Description - * @instance - */ - Description.prototype.details = ""; - - /** - * Creates a new Description instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.Description - * @static - * @param {cosmos_sdk.x.staking.v1.IDescription=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.Description} Description instance - */ - Description.create = function create(properties) { - return new Description(properties); - }; - - /** - * Encodes the specified Description message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Description.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.Description - * @static - * @param {cosmos_sdk.x.staking.v1.IDescription} m Description message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Description.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.moniker != null && Object.hasOwnProperty.call(m, "moniker")) - w.uint32(10).string(m.moniker); - if (m.identity != null && Object.hasOwnProperty.call(m, "identity")) - w.uint32(18).string(m.identity); - if (m.website != null && Object.hasOwnProperty.call(m, "website")) - w.uint32(26).string(m.website); - if (m.securityContact != null && Object.hasOwnProperty.call(m, "securityContact")) - w.uint32(34).string(m.securityContact); - if (m.details != null && Object.hasOwnProperty.call(m, "details")) - w.uint32(42).string(m.details); - return w; - }; - - /** - * Decodes a Description message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.Description - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.Description} Description - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Description.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.Description(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.moniker = r.string(); - break; - case 2: - m.identity = r.string(); - break; - case 3: - m.website = r.string(); - break; - case 4: - m.securityContact = r.string(); - break; - case 5: - m.details = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Description; - })(); - - v1.Validator = (function() { - - /** - * Properties of a Validator. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IValidator - * @property {Uint8Array|null} [operatorAddress] Validator operatorAddress - * @property {string|null} [consensusPubkey] Validator consensusPubkey - * @property {boolean|null} [jailed] Validator jailed - * @property {number|null} [status] Validator status - * @property {string|null} [tokens] Validator tokens - * @property {string|null} [delegatorShares] Validator delegatorShares - * @property {cosmos_sdk.x.staking.v1.IDescription|null} [description] Validator description - * @property {number|Long|null} [unbondingHeight] Validator unbondingHeight - * @property {google.protobuf.ITimestamp|null} [unbondingTime] Validator unbondingTime - * @property {cosmos_sdk.x.staking.v1.ICommission|null} [commission] Validator commission - * @property {string|null} [minSelfDelegation] Validator minSelfDelegation - */ - - /** - * Constructs a new Validator. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a Validator. - * @implements IValidator - * @constructor - * @param {cosmos_sdk.x.staking.v1.IValidator=} [p] Properties to set - */ - function Validator(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Validator operatorAddress. - * @member {Uint8Array} operatorAddress - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.operatorAddress = $util.newBuffer([]); - - /** - * Validator consensusPubkey. - * @member {string} consensusPubkey - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.consensusPubkey = ""; - - /** - * Validator jailed. - * @member {boolean} jailed - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.jailed = false; - - /** - * Validator status. - * @member {number} status - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.status = 0; - - /** - * Validator tokens. - * @member {string} tokens - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.tokens = ""; - - /** - * Validator delegatorShares. - * @member {string} delegatorShares - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.delegatorShares = ""; - - /** - * Validator description. - * @member {cosmos_sdk.x.staking.v1.IDescription|null|undefined} description - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.description = null; - - /** - * Validator unbondingHeight. - * @member {number|Long} unbondingHeight - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.unbondingHeight = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Validator unbondingTime. - * @member {google.protobuf.ITimestamp|null|undefined} unbondingTime - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.unbondingTime = null; - - /** - * Validator commission. - * @member {cosmos_sdk.x.staking.v1.ICommission|null|undefined} commission - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.commission = null; - - /** - * Validator minSelfDelegation. - * @member {string} minSelfDelegation - * @memberof cosmos_sdk.x.staking.v1.Validator - * @instance - */ - Validator.prototype.minSelfDelegation = ""; - - /** - * Creates a new Validator instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.Validator - * @static - * @param {cosmos_sdk.x.staking.v1.IValidator=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.Validator} Validator instance - */ - Validator.create = function create(properties) { - return new Validator(properties); - }; - - /** - * Encodes the specified Validator message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Validator.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.Validator - * @static - * @param {cosmos_sdk.x.staking.v1.IValidator} m Validator message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Validator.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.operatorAddress != null && Object.hasOwnProperty.call(m, "operatorAddress")) - w.uint32(10).bytes(m.operatorAddress); - if (m.consensusPubkey != null && Object.hasOwnProperty.call(m, "consensusPubkey")) - w.uint32(18).string(m.consensusPubkey); - if (m.jailed != null && Object.hasOwnProperty.call(m, "jailed")) - w.uint32(24).bool(m.jailed); - if (m.status != null && Object.hasOwnProperty.call(m, "status")) - w.uint32(32).int32(m.status); - if (m.tokens != null && Object.hasOwnProperty.call(m, "tokens")) - w.uint32(42).string(m.tokens); - if (m.delegatorShares != null && Object.hasOwnProperty.call(m, "delegatorShares")) - w.uint32(50).string(m.delegatorShares); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - $root.cosmos_sdk.x.staking.v1.Description.encode(m.description, w.uint32(58).fork()).ldelim(); - if (m.unbondingHeight != null && Object.hasOwnProperty.call(m, "unbondingHeight")) - w.uint32(64).int64(m.unbondingHeight); - if (m.unbondingTime != null && Object.hasOwnProperty.call(m, "unbondingTime")) - $root.google.protobuf.Timestamp.encode(m.unbondingTime, w.uint32(74).fork()).ldelim(); - if (m.commission != null && Object.hasOwnProperty.call(m, "commission")) - $root.cosmos_sdk.x.staking.v1.Commission.encode(m.commission, w.uint32(82).fork()).ldelim(); - if (m.minSelfDelegation != null && Object.hasOwnProperty.call(m, "minSelfDelegation")) - w.uint32(90).string(m.minSelfDelegation); - return w; - }; - - /** - * Decodes a Validator message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.Validator - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.Validator} Validator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Validator.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.Validator(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.operatorAddress = r.bytes(); - break; - case 2: - m.consensusPubkey = r.string(); - break; - case 3: - m.jailed = r.bool(); - break; - case 4: - m.status = r.int32(); - break; - case 5: - m.tokens = r.string(); - break; - case 6: - m.delegatorShares = r.string(); - break; - case 7: - m.description = $root.cosmos_sdk.x.staking.v1.Description.decode(r, r.uint32()); - break; - case 8: - m.unbondingHeight = r.int64(); - break; - case 9: - m.unbondingTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 10: - m.commission = $root.cosmos_sdk.x.staking.v1.Commission.decode(r, r.uint32()); - break; - case 11: - m.minSelfDelegation = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Validator; - })(); - - v1.DVPair = (function() { - - /** - * Properties of a DVPair. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IDVPair - * @property {Uint8Array|null} [delegatorAddress] DVPair delegatorAddress - * @property {Uint8Array|null} [validatorAddress] DVPair validatorAddress - */ - - /** - * Constructs a new DVPair. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a DVPair. - * @implements IDVPair - * @constructor - * @param {cosmos_sdk.x.staking.v1.IDVPair=} [p] Properties to set - */ - function DVPair(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DVPair delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.DVPair - * @instance - */ - DVPair.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * DVPair validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.DVPair - * @instance - */ - DVPair.prototype.validatorAddress = $util.newBuffer([]); - - /** - * Creates a new DVPair instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.DVPair - * @static - * @param {cosmos_sdk.x.staking.v1.IDVPair=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.DVPair} DVPair instance - */ - DVPair.create = function create(properties) { - return new DVPair(properties); - }; - - /** - * Encodes the specified DVPair message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVPair.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.DVPair - * @static - * @param {cosmos_sdk.x.staking.v1.IDVPair} m DVPair message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DVPair.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - return w; - }; - - /** - * Decodes a DVPair message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.DVPair - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.DVPair} DVPair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DVPair.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.DVPair(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return DVPair; - })(); - - v1.DVPairs = (function() { - - /** - * Properties of a DVPairs. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IDVPairs - * @property {Array.|null} [pairs] DVPairs pairs - */ - - /** - * Constructs a new DVPairs. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a DVPairs. - * @implements IDVPairs - * @constructor - * @param {cosmos_sdk.x.staking.v1.IDVPairs=} [p] Properties to set - */ - function DVPairs(p) { - this.pairs = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DVPairs pairs. - * @member {Array.} pairs - * @memberof cosmos_sdk.x.staking.v1.DVPairs - * @instance - */ - DVPairs.prototype.pairs = $util.emptyArray; - - /** - * Creates a new DVPairs instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.DVPairs - * @static - * @param {cosmos_sdk.x.staking.v1.IDVPairs=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.DVPairs} DVPairs instance - */ - DVPairs.create = function create(properties) { - return new DVPairs(properties); - }; - - /** - * Encodes the specified DVPairs message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVPairs.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.DVPairs - * @static - * @param {cosmos_sdk.x.staking.v1.IDVPairs} m DVPairs message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DVPairs.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.pairs != null && m.pairs.length) { - for (var i = 0; i < m.pairs.length; ++i) - $root.cosmos_sdk.x.staking.v1.DVPair.encode(m.pairs[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a DVPairs message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.DVPairs - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.DVPairs} DVPairs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DVPairs.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.DVPairs(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.pairs && m.pairs.length)) - m.pairs = []; - m.pairs.push($root.cosmos_sdk.x.staking.v1.DVPair.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return DVPairs; - })(); - - v1.DVVTriplet = (function() { - - /** - * Properties of a DVVTriplet. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IDVVTriplet - * @property {Uint8Array|null} [delegatorAddress] DVVTriplet delegatorAddress - * @property {Uint8Array|null} [validatorSrcAddress] DVVTriplet validatorSrcAddress - * @property {Uint8Array|null} [validatorDstAddress] DVVTriplet validatorDstAddress - */ - - /** - * Constructs a new DVVTriplet. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a DVVTriplet. - * @implements IDVVTriplet - * @constructor - * @param {cosmos_sdk.x.staking.v1.IDVVTriplet=} [p] Properties to set - */ - function DVVTriplet(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DVVTriplet delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.DVVTriplet - * @instance - */ - DVVTriplet.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * DVVTriplet validatorSrcAddress. - * @member {Uint8Array} validatorSrcAddress - * @memberof cosmos_sdk.x.staking.v1.DVVTriplet - * @instance - */ - DVVTriplet.prototype.validatorSrcAddress = $util.newBuffer([]); - - /** - * DVVTriplet validatorDstAddress. - * @member {Uint8Array} validatorDstAddress - * @memberof cosmos_sdk.x.staking.v1.DVVTriplet - * @instance - */ - DVVTriplet.prototype.validatorDstAddress = $util.newBuffer([]); - - /** - * Creates a new DVVTriplet instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.DVVTriplet - * @static - * @param {cosmos_sdk.x.staking.v1.IDVVTriplet=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.DVVTriplet} DVVTriplet instance - */ - DVVTriplet.create = function create(properties) { - return new DVVTriplet(properties); - }; - - /** - * Encodes the specified DVVTriplet message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVVTriplet.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.DVVTriplet - * @static - * @param {cosmos_sdk.x.staking.v1.IDVVTriplet} m DVVTriplet message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DVVTriplet.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorSrcAddress != null && Object.hasOwnProperty.call(m, "validatorSrcAddress")) - w.uint32(18).bytes(m.validatorSrcAddress); - if (m.validatorDstAddress != null && Object.hasOwnProperty.call(m, "validatorDstAddress")) - w.uint32(26).bytes(m.validatorDstAddress); - return w; - }; - - /** - * Decodes a DVVTriplet message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.DVVTriplet - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.DVVTriplet} DVVTriplet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DVVTriplet.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.DVVTriplet(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorSrcAddress = r.bytes(); - break; - case 3: - m.validatorDstAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return DVVTriplet; - })(); - - v1.DVVTriplets = (function() { - - /** - * Properties of a DVVTriplets. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IDVVTriplets - * @property {Array.|null} [triplets] DVVTriplets triplets - */ - - /** - * Constructs a new DVVTriplets. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a DVVTriplets. - * @implements IDVVTriplets - * @constructor - * @param {cosmos_sdk.x.staking.v1.IDVVTriplets=} [p] Properties to set - */ - function DVVTriplets(p) { - this.triplets = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * DVVTriplets triplets. - * @member {Array.} triplets - * @memberof cosmos_sdk.x.staking.v1.DVVTriplets - * @instance - */ - DVVTriplets.prototype.triplets = $util.emptyArray; - - /** - * Creates a new DVVTriplets instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.DVVTriplets - * @static - * @param {cosmos_sdk.x.staking.v1.IDVVTriplets=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.DVVTriplets} DVVTriplets instance - */ - DVVTriplets.create = function create(properties) { - return new DVVTriplets(properties); - }; - - /** - * Encodes the specified DVVTriplets message. Does not implicitly {@link cosmos_sdk.x.staking.v1.DVVTriplets.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.DVVTriplets - * @static - * @param {cosmos_sdk.x.staking.v1.IDVVTriplets} m DVVTriplets message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DVVTriplets.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.triplets != null && m.triplets.length) { - for (var i = 0; i < m.triplets.length; ++i) - $root.cosmos_sdk.x.staking.v1.DVVTriplet.encode(m.triplets[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a DVVTriplets message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.DVVTriplets - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.DVVTriplets} DVVTriplets - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DVVTriplets.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.DVVTriplets(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.triplets && m.triplets.length)) - m.triplets = []; - m.triplets.push($root.cosmos_sdk.x.staking.v1.DVVTriplet.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return DVVTriplets; - })(); - - v1.Delegation = (function() { - - /** - * Properties of a Delegation. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IDelegation - * @property {Uint8Array|null} [delegatorAddress] Delegation delegatorAddress - * @property {Uint8Array|null} [validatorAddress] Delegation validatorAddress - * @property {string|null} [shares] Delegation shares - */ - - /** - * Constructs a new Delegation. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a Delegation. - * @implements IDelegation - * @constructor - * @param {cosmos_sdk.x.staking.v1.IDelegation=} [p] Properties to set - */ - function Delegation(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Delegation delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.Delegation - * @instance - */ - Delegation.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * Delegation validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.Delegation - * @instance - */ - Delegation.prototype.validatorAddress = $util.newBuffer([]); - - /** - * Delegation shares. - * @member {string} shares - * @memberof cosmos_sdk.x.staking.v1.Delegation - * @instance - */ - Delegation.prototype.shares = ""; - - /** - * Creates a new Delegation instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.Delegation - * @static - * @param {cosmos_sdk.x.staking.v1.IDelegation=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.Delegation} Delegation instance - */ - Delegation.create = function create(properties) { - return new Delegation(properties); - }; - - /** - * Encodes the specified Delegation message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Delegation.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.Delegation - * @static - * @param {cosmos_sdk.x.staking.v1.IDelegation} m Delegation message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Delegation.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - if (m.shares != null && Object.hasOwnProperty.call(m, "shares")) - w.uint32(26).string(m.shares); - return w; - }; - - /** - * Decodes a Delegation message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.Delegation - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.Delegation} Delegation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Delegation.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.Delegation(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - case 3: - m.shares = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Delegation; - })(); - - v1.UnbondingDelegation = (function() { - - /** - * Properties of an UnbondingDelegation. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IUnbondingDelegation - * @property {Uint8Array|null} [delegatorAddress] UnbondingDelegation delegatorAddress - * @property {Uint8Array|null} [validatorAddress] UnbondingDelegation validatorAddress - * @property {Array.|null} [entries] UnbondingDelegation entries - */ - - /** - * Constructs a new UnbondingDelegation. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents an UnbondingDelegation. - * @implements IUnbondingDelegation - * @constructor - * @param {cosmos_sdk.x.staking.v1.IUnbondingDelegation=} [p] Properties to set - */ - function UnbondingDelegation(p) { - this.entries = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * UnbondingDelegation delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegation - * @instance - */ - UnbondingDelegation.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * UnbondingDelegation validatorAddress. - * @member {Uint8Array} validatorAddress - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegation - * @instance - */ - UnbondingDelegation.prototype.validatorAddress = $util.newBuffer([]); - - /** - * UnbondingDelegation entries. - * @member {Array.} entries - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegation - * @instance - */ - UnbondingDelegation.prototype.entries = $util.emptyArray; - - /** - * Creates a new UnbondingDelegation instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegation - * @static - * @param {cosmos_sdk.x.staking.v1.IUnbondingDelegation=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.UnbondingDelegation} UnbondingDelegation instance - */ - UnbondingDelegation.create = function create(properties) { - return new UnbondingDelegation(properties); - }; - - /** - * Encodes the specified UnbondingDelegation message. Does not implicitly {@link cosmos_sdk.x.staking.v1.UnbondingDelegation.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegation - * @static - * @param {cosmos_sdk.x.staking.v1.IUnbondingDelegation} m UnbondingDelegation message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnbondingDelegation.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorAddress != null && Object.hasOwnProperty.call(m, "validatorAddress")) - w.uint32(18).bytes(m.validatorAddress); - if (m.entries != null && m.entries.length) { - for (var i = 0; i < m.entries.length; ++i) - $root.cosmos_sdk.x.staking.v1.UnbondingDelegationEntry.encode(m.entries[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes an UnbondingDelegation message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegation - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.UnbondingDelegation} UnbondingDelegation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnbondingDelegation.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.UnbondingDelegation(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorAddress = r.bytes(); - break; - case 3: - if (!(m.entries && m.entries.length)) - m.entries = []; - m.entries.push($root.cosmos_sdk.x.staking.v1.UnbondingDelegationEntry.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return UnbondingDelegation; - })(); - - v1.UnbondingDelegationEntry = (function() { - - /** - * Properties of an UnbondingDelegationEntry. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IUnbondingDelegationEntry - * @property {number|Long|null} [creationHeight] UnbondingDelegationEntry creationHeight - * @property {google.protobuf.ITimestamp|null} [completionTime] UnbondingDelegationEntry completionTime - * @property {string|null} [initialBalance] UnbondingDelegationEntry initialBalance - * @property {string|null} [balance] UnbondingDelegationEntry balance - */ - - /** - * Constructs a new UnbondingDelegationEntry. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents an UnbondingDelegationEntry. - * @implements IUnbondingDelegationEntry - * @constructor - * @param {cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry=} [p] Properties to set - */ - function UnbondingDelegationEntry(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * UnbondingDelegationEntry creationHeight. - * @member {number|Long} creationHeight - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @instance - */ - UnbondingDelegationEntry.prototype.creationHeight = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * UnbondingDelegationEntry completionTime. - * @member {google.protobuf.ITimestamp|null|undefined} completionTime - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @instance - */ - UnbondingDelegationEntry.prototype.completionTime = null; - - /** - * UnbondingDelegationEntry initialBalance. - * @member {string} initialBalance - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @instance - */ - UnbondingDelegationEntry.prototype.initialBalance = ""; - - /** - * UnbondingDelegationEntry balance. - * @member {string} balance - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @instance - */ - UnbondingDelegationEntry.prototype.balance = ""; - - /** - * Creates a new UnbondingDelegationEntry instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @static - * @param {cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.UnbondingDelegationEntry} UnbondingDelegationEntry instance - */ - UnbondingDelegationEntry.create = function create(properties) { - return new UnbondingDelegationEntry(properties); - }; - - /** - * Encodes the specified UnbondingDelegationEntry message. Does not implicitly {@link cosmos_sdk.x.staking.v1.UnbondingDelegationEntry.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @static - * @param {cosmos_sdk.x.staking.v1.IUnbondingDelegationEntry} m UnbondingDelegationEntry message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnbondingDelegationEntry.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.creationHeight != null && Object.hasOwnProperty.call(m, "creationHeight")) - w.uint32(8).int64(m.creationHeight); - if (m.completionTime != null && Object.hasOwnProperty.call(m, "completionTime")) - $root.google.protobuf.Timestamp.encode(m.completionTime, w.uint32(18).fork()).ldelim(); - if (m.initialBalance != null && Object.hasOwnProperty.call(m, "initialBalance")) - w.uint32(26).string(m.initialBalance); - if (m.balance != null && Object.hasOwnProperty.call(m, "balance")) - w.uint32(34).string(m.balance); - return w; - }; - - /** - * Decodes an UnbondingDelegationEntry message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.UnbondingDelegationEntry - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.UnbondingDelegationEntry} UnbondingDelegationEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnbondingDelegationEntry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.UnbondingDelegationEntry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.creationHeight = r.int64(); - break; - case 2: - m.completionTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 3: - m.initialBalance = r.string(); - break; - case 4: - m.balance = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return UnbondingDelegationEntry; - })(); - - v1.RedelegationEntry = (function() { - - /** - * Properties of a RedelegationEntry. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IRedelegationEntry - * @property {number|Long|null} [creationHeight] RedelegationEntry creationHeight - * @property {google.protobuf.ITimestamp|null} [completionTime] RedelegationEntry completionTime - * @property {string|null} [initialBalance] RedelegationEntry initialBalance - * @property {string|null} [sharesDst] RedelegationEntry sharesDst - */ - - /** - * Constructs a new RedelegationEntry. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a RedelegationEntry. - * @implements IRedelegationEntry - * @constructor - * @param {cosmos_sdk.x.staking.v1.IRedelegationEntry=} [p] Properties to set - */ - function RedelegationEntry(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * RedelegationEntry creationHeight. - * @member {number|Long} creationHeight - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @instance - */ - RedelegationEntry.prototype.creationHeight = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RedelegationEntry completionTime. - * @member {google.protobuf.ITimestamp|null|undefined} completionTime - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @instance - */ - RedelegationEntry.prototype.completionTime = null; - - /** - * RedelegationEntry initialBalance. - * @member {string} initialBalance - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @instance - */ - RedelegationEntry.prototype.initialBalance = ""; - - /** - * RedelegationEntry sharesDst. - * @member {string} sharesDst - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @instance - */ - RedelegationEntry.prototype.sharesDst = ""; - - /** - * Creates a new RedelegationEntry instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @static - * @param {cosmos_sdk.x.staking.v1.IRedelegationEntry=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.RedelegationEntry} RedelegationEntry instance - */ - RedelegationEntry.create = function create(properties) { - return new RedelegationEntry(properties); - }; - - /** - * Encodes the specified RedelegationEntry message. Does not implicitly {@link cosmos_sdk.x.staking.v1.RedelegationEntry.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @static - * @param {cosmos_sdk.x.staking.v1.IRedelegationEntry} m RedelegationEntry message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedelegationEntry.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.creationHeight != null && Object.hasOwnProperty.call(m, "creationHeight")) - w.uint32(8).int64(m.creationHeight); - if (m.completionTime != null && Object.hasOwnProperty.call(m, "completionTime")) - $root.google.protobuf.Timestamp.encode(m.completionTime, w.uint32(18).fork()).ldelim(); - if (m.initialBalance != null && Object.hasOwnProperty.call(m, "initialBalance")) - w.uint32(26).string(m.initialBalance); - if (m.sharesDst != null && Object.hasOwnProperty.call(m, "sharesDst")) - w.uint32(34).string(m.sharesDst); - return w; - }; - - /** - * Decodes a RedelegationEntry message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.RedelegationEntry - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.RedelegationEntry} RedelegationEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedelegationEntry.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.RedelegationEntry(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.creationHeight = r.int64(); - break; - case 2: - m.completionTime = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 3: - m.initialBalance = r.string(); - break; - case 4: - m.sharesDst = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return RedelegationEntry; - })(); - - v1.Redelegation = (function() { - - /** - * Properties of a Redelegation. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IRedelegation - * @property {Uint8Array|null} [delegatorAddress] Redelegation delegatorAddress - * @property {Uint8Array|null} [validatorSrcAddress] Redelegation validatorSrcAddress - * @property {Uint8Array|null} [validatorDstAddress] Redelegation validatorDstAddress - * @property {Array.|null} [entries] Redelegation entries - */ - - /** - * Constructs a new Redelegation. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a Redelegation. - * @implements IRedelegation - * @constructor - * @param {cosmos_sdk.x.staking.v1.IRedelegation=} [p] Properties to set - */ - function Redelegation(p) { - this.entries = []; - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Redelegation delegatorAddress. - * @member {Uint8Array} delegatorAddress - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @instance - */ - Redelegation.prototype.delegatorAddress = $util.newBuffer([]); - - /** - * Redelegation validatorSrcAddress. - * @member {Uint8Array} validatorSrcAddress - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @instance - */ - Redelegation.prototype.validatorSrcAddress = $util.newBuffer([]); - - /** - * Redelegation validatorDstAddress. - * @member {Uint8Array} validatorDstAddress - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @instance - */ - Redelegation.prototype.validatorDstAddress = $util.newBuffer([]); - - /** - * Redelegation entries. - * @member {Array.} entries - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @instance - */ - Redelegation.prototype.entries = $util.emptyArray; - - /** - * Creates a new Redelegation instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @static - * @param {cosmos_sdk.x.staking.v1.IRedelegation=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.Redelegation} Redelegation instance - */ - Redelegation.create = function create(properties) { - return new Redelegation(properties); - }; - - /** - * Encodes the specified Redelegation message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Redelegation.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @static - * @param {cosmos_sdk.x.staking.v1.IRedelegation} m Redelegation message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Redelegation.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.delegatorAddress != null && Object.hasOwnProperty.call(m, "delegatorAddress")) - w.uint32(10).bytes(m.delegatorAddress); - if (m.validatorSrcAddress != null && Object.hasOwnProperty.call(m, "validatorSrcAddress")) - w.uint32(18).bytes(m.validatorSrcAddress); - if (m.validatorDstAddress != null && Object.hasOwnProperty.call(m, "validatorDstAddress")) - w.uint32(26).bytes(m.validatorDstAddress); - if (m.entries != null && m.entries.length) { - for (var i = 0; i < m.entries.length; ++i) - $root.cosmos_sdk.x.staking.v1.RedelegationEntry.encode(m.entries[i], w.uint32(34).fork()).ldelim(); - } - return w; - }; - - /** - * Decodes a Redelegation message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.Redelegation - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.Redelegation} Redelegation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Redelegation.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.Redelegation(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.delegatorAddress = r.bytes(); - break; - case 2: - m.validatorSrcAddress = r.bytes(); - break; - case 3: - m.validatorDstAddress = r.bytes(); - break; - case 4: - if (!(m.entries && m.entries.length)) - m.entries = []; - m.entries.push($root.cosmos_sdk.x.staking.v1.RedelegationEntry.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Redelegation; - })(); - - v1.Params = (function() { - - /** - * Properties of a Params. - * @memberof cosmos_sdk.x.staking.v1 - * @interface IParams - * @property {google.protobuf.IDuration|null} [unbondingTime] Params unbondingTime - * @property {number|null} [maxValidators] Params maxValidators - * @property {number|null} [maxEntries] Params maxEntries - * @property {number|null} [historicalEntries] Params historicalEntries - * @property {string|null} [bondDenom] Params bondDenom - */ - - /** - * Constructs a new Params. - * @memberof cosmos_sdk.x.staking.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {cosmos_sdk.x.staking.v1.IParams=} [p] Properties to set - */ - function Params(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Params unbondingTime. - * @member {google.protobuf.IDuration|null|undefined} unbondingTime - * @memberof cosmos_sdk.x.staking.v1.Params - * @instance - */ - Params.prototype.unbondingTime = null; - - /** - * Params maxValidators. - * @member {number} maxValidators - * @memberof cosmos_sdk.x.staking.v1.Params - * @instance - */ - Params.prototype.maxValidators = 0; - - /** - * Params maxEntries. - * @member {number} maxEntries - * @memberof cosmos_sdk.x.staking.v1.Params - * @instance - */ - Params.prototype.maxEntries = 0; - - /** - * Params historicalEntries. - * @member {number} historicalEntries - * @memberof cosmos_sdk.x.staking.v1.Params - * @instance - */ - Params.prototype.historicalEntries = 0; - - /** - * Params bondDenom. - * @member {string} bondDenom - * @memberof cosmos_sdk.x.staking.v1.Params - * @instance - */ - Params.prototype.bondDenom = ""; - - /** - * Creates a new Params instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.staking.v1.Params - * @static - * @param {cosmos_sdk.x.staking.v1.IParams=} [properties] Properties to set - * @returns {cosmos_sdk.x.staking.v1.Params} Params instance - */ - Params.create = function create(properties) { - return new Params(properties); - }; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos_sdk.x.staking.v1.Params.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.staking.v1.Params - * @static - * @param {cosmos_sdk.x.staking.v1.IParams} m Params message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.unbondingTime != null && Object.hasOwnProperty.call(m, "unbondingTime")) - $root.google.protobuf.Duration.encode(m.unbondingTime, w.uint32(10).fork()).ldelim(); - if (m.maxValidators != null && Object.hasOwnProperty.call(m, "maxValidators")) - w.uint32(16).uint32(m.maxValidators); - if (m.maxEntries != null && Object.hasOwnProperty.call(m, "maxEntries")) - w.uint32(24).uint32(m.maxEntries); - if (m.historicalEntries != null && Object.hasOwnProperty.call(m, "historicalEntries")) - w.uint32(32).uint32(m.historicalEntries); - if (m.bondDenom != null && Object.hasOwnProperty.call(m, "bondDenom")) - w.uint32(42).string(m.bondDenom); - return w; - }; - - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.staking.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.staking.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.staking.v1.Params(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.unbondingTime = $root.google.protobuf.Duration.decode(r, r.uint32()); - break; - case 2: - m.maxValidators = r.uint32(); - break; - case 3: - m.maxEntries = r.uint32(); - break; - case 4: - m.historicalEntries = r.uint32(); - break; - case 5: - m.bondDenom = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Params; - })(); - - return v1; - })(); - - return staking; - })(); - - x.upgrade = (function() { - - /** - * Namespace upgrade. - * @memberof cosmos_sdk.x - * @namespace - */ - var upgrade = {}; - - upgrade.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.x.upgrade - * @namespace - */ - var v1 = {}; - - v1.Plan = (function() { - - /** - * Properties of a Plan. - * @memberof cosmos_sdk.x.upgrade.v1 - * @interface IPlan - * @property {string|null} [name] Plan name - * @property {google.protobuf.ITimestamp|null} [time] Plan time - * @property {number|Long|null} [height] Plan height - * @property {string|null} [info] Plan info - */ - - /** - * Constructs a new Plan. - * @memberof cosmos_sdk.x.upgrade.v1 - * @classdesc Represents a Plan. - * @implements IPlan - * @constructor - * @param {cosmos_sdk.x.upgrade.v1.IPlan=} [p] Properties to set - */ - function Plan(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Plan name. - * @member {string} name - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @instance - */ - Plan.prototype.name = ""; - - /** - * Plan time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @instance - */ - Plan.prototype.time = null; - - /** - * Plan height. - * @member {number|Long} height - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @instance - */ - Plan.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Plan info. - * @member {string} info - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @instance - */ - Plan.prototype.info = ""; - - /** - * Creates a new Plan instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @static - * @param {cosmos_sdk.x.upgrade.v1.IPlan=} [properties] Properties to set - * @returns {cosmos_sdk.x.upgrade.v1.Plan} Plan instance - */ - Plan.create = function create(properties) { - return new Plan(properties); - }; - - /** - * Encodes the specified Plan message. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.Plan.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @static - * @param {cosmos_sdk.x.upgrade.v1.IPlan} m Plan message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Plan.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.name != null && Object.hasOwnProperty.call(m, "name")) - w.uint32(10).string(m.name); - if (m.time != null && Object.hasOwnProperty.call(m, "time")) - $root.google.protobuf.Timestamp.encode(m.time, w.uint32(18).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) - w.uint32(24).int64(m.height); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) - w.uint32(34).string(m.info); - return w; - }; - - /** - * Decodes a Plan message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.upgrade.v1.Plan - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.upgrade.v1.Plan} Plan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Plan.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.upgrade.v1.Plan(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.name = r.string(); - break; - case 2: - m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 3: - m.height = r.int64(); - break; - case 4: - m.info = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return Plan; - })(); - - v1.SoftwareUpgradeProposal = (function() { - - /** - * Properties of a SoftwareUpgradeProposal. - * @memberof cosmos_sdk.x.upgrade.v1 - * @interface ISoftwareUpgradeProposal - * @property {string|null} [title] SoftwareUpgradeProposal title - * @property {string|null} [description] SoftwareUpgradeProposal description - * @property {cosmos_sdk.x.upgrade.v1.IPlan|null} [plan] SoftwareUpgradeProposal plan - */ - - /** - * Constructs a new SoftwareUpgradeProposal. - * @memberof cosmos_sdk.x.upgrade.v1 - * @classdesc Represents a SoftwareUpgradeProposal. - * @implements ISoftwareUpgradeProposal - * @constructor - * @param {cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal=} [p] Properties to set - */ - function SoftwareUpgradeProposal(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * SoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.title = ""; - - /** - * SoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.description = ""; - - /** - * SoftwareUpgradeProposal plan. - * @member {cosmos_sdk.x.upgrade.v1.IPlan|null|undefined} plan - * @memberof cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.plan = null; - - /** - * Creates a new SoftwareUpgradeProposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal - * @static - * @param {cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal} SoftwareUpgradeProposal instance - */ - SoftwareUpgradeProposal.create = function create(properties) { - return new SoftwareUpgradeProposal(properties); - }; - - /** - * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal - * @static - * @param {cosmos_sdk.x.upgrade.v1.ISoftwareUpgradeProposal} m SoftwareUpgradeProposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SoftwareUpgradeProposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(10).string(m.title); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - w.uint32(18).string(m.description); - if (m.plan != null && Object.hasOwnProperty.call(m, "plan")) - $root.cosmos_sdk.x.upgrade.v1.Plan.encode(m.plan, w.uint32(26).fork()).ldelim(); - return w; - }; - - /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal} SoftwareUpgradeProposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SoftwareUpgradeProposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.upgrade.v1.SoftwareUpgradeProposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.title = r.string(); - break; - case 2: - m.description = r.string(); - break; - case 3: - m.plan = $root.cosmos_sdk.x.upgrade.v1.Plan.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return SoftwareUpgradeProposal; - })(); - - v1.CancelSoftwareUpgradeProposal = (function() { - - /** - * Properties of a CancelSoftwareUpgradeProposal. - * @memberof cosmos_sdk.x.upgrade.v1 - * @interface ICancelSoftwareUpgradeProposal - * @property {string|null} [title] CancelSoftwareUpgradeProposal title - * @property {string|null} [description] CancelSoftwareUpgradeProposal description - */ - - /** - * Constructs a new CancelSoftwareUpgradeProposal. - * @memberof cosmos_sdk.x.upgrade.v1 - * @classdesc Represents a CancelSoftwareUpgradeProposal. - * @implements ICancelSoftwareUpgradeProposal - * @constructor - * @param {cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal=} [p] Properties to set - */ - function CancelSoftwareUpgradeProposal(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * CancelSoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal - * @instance - */ - CancelSoftwareUpgradeProposal.prototype.title = ""; - - /** - * CancelSoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal - * @instance - */ - CancelSoftwareUpgradeProposal.prototype.description = ""; - - /** - * Creates a new CancelSoftwareUpgradeProposal instance using the specified properties. - * @function create - * @memberof cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal - * @static - * @param {cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal=} [properties] Properties to set - * @returns {cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal instance - */ - CancelSoftwareUpgradeProposal.create = function create(properties) { - return new CancelSoftwareUpgradeProposal(properties); - }; - - /** - * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal - * @static - * @param {cosmos_sdk.x.upgrade.v1.ICancelSoftwareUpgradeProposal} m CancelSoftwareUpgradeProposal message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CancelSoftwareUpgradeProposal.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.title != null && Object.hasOwnProperty.call(m, "title")) - w.uint32(10).string(m.title); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - w.uint32(18).string(m.description); - return w; - }; - - /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CancelSoftwareUpgradeProposal.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.x.upgrade.v1.CancelSoftwareUpgradeProposal(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.title = r.string(); - break; - case 2: - m.description = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return CancelSoftwareUpgradeProposal; - })(); - - return v1; - })(); - - return upgrade; - })(); - - return x; - })(); - - cosmos_sdk.ibc = (function() { - - /** - * Namespace ibc. - * @memberof cosmos_sdk - * @namespace - */ - var ibc = {}; - - ibc.localhost = (function() { - - /** - * Namespace localhost. - * @memberof cosmos_sdk.ibc - * @namespace - */ - var localhost = {}; - - localhost.v1 = (function() { - - /** - * Namespace v1. - * @memberof cosmos_sdk.ibc.localhost - * @namespace - */ - var v1 = {}; - - v1.MsgCreateClient = (function() { - - /** - * Properties of a MsgCreateClient. - * @memberof cosmos_sdk.ibc.localhost.v1 - * @interface IMsgCreateClient - * @property {Uint8Array|null} [signer] MsgCreateClient signer - */ - - /** - * Constructs a new MsgCreateClient. - * @memberof cosmos_sdk.ibc.localhost.v1 - * @classdesc Represents a MsgCreateClient. - * @implements IMsgCreateClient - * @constructor - * @param {cosmos_sdk.ibc.localhost.v1.IMsgCreateClient=} [p] Properties to set - */ - function MsgCreateClient(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * MsgCreateClient signer. - * @member {Uint8Array} signer - * @memberof cosmos_sdk.ibc.localhost.v1.MsgCreateClient - * @instance - */ - MsgCreateClient.prototype.signer = $util.newBuffer([]); - - /** - * Creates a new MsgCreateClient instance using the specified properties. - * @function create - * @memberof cosmos_sdk.ibc.localhost.v1.MsgCreateClient - * @static - * @param {cosmos_sdk.ibc.localhost.v1.IMsgCreateClient=} [properties] Properties to set - * @returns {cosmos_sdk.ibc.localhost.v1.MsgCreateClient} MsgCreateClient instance - */ - MsgCreateClient.create = function create(properties) { - return new MsgCreateClient(properties); - }; - - /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link cosmos_sdk.ibc.localhost.v1.MsgCreateClient.verify|verify} messages. - * @function encode - * @memberof cosmos_sdk.ibc.localhost.v1.MsgCreateClient - * @static - * @param {cosmos_sdk.ibc.localhost.v1.IMsgCreateClient} m MsgCreateClient message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgCreateClient.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) - w.uint32(10).bytes(m.signer); - return w; - }; - - /** - * Decodes a MsgCreateClient message from the specified reader or buffer. - * @function decode - * @memberof cosmos_sdk.ibc.localhost.v1.MsgCreateClient - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {cosmos_sdk.ibc.localhost.v1.MsgCreateClient} MsgCreateClient - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgCreateClient.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.cosmos_sdk.ibc.localhost.v1.MsgCreateClient(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MsgCreateClient; - })(); - - return v1; - })(); - - return localhost; - })(); - - return ibc; + return crypto; })(); return cosmos_sdk; })(); -$root.cosmos_proto = (function() { - - /** - * Namespace cosmos_proto. - * @exports cosmos_proto - * @namespace - */ - var cosmos_proto = {}; - - return cosmos_proto; -})(); - -$root.gogoproto = (function() { - - /** - * Namespace gogoproto. - * @exports gogoproto - * @namespace - */ - var gogoproto = {}; - - return gogoproto; -})(); - $root.tendermint = (function() { /** @@ -23961,401 +9516,6 @@ $root.google = (function() { return Any; })(); - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [p] Properties to set - */ - function FileOptions(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Creates a new FileOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance - */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); - }; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} m FileOptions message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - return w; - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.google.protobuf.FileOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return FileOptions; - })(); - - protobuf.MessageOptions = (function() { - - /** - * Properties of a MessageOptions. - * @memberof google.protobuf - * @interface IMessageOptions - */ - - /** - * Constructs a new MessageOptions. - * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions - * @constructor - * @param {google.protobuf.IMessageOptions=} [p] Properties to set - */ - function MessageOptions(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Creates a new MessageOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance - */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); - }; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} m MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - return w; - }; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.google.protobuf.MessageOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return MessageOptions; - })(); - - protobuf.FieldOptions = (function() { - - /** - * Properties of a FieldOptions. - * @memberof google.protobuf - * @interface IFieldOptions - */ - - /** - * Constructs a new FieldOptions. - * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions - * @constructor - * @param {google.protobuf.IFieldOptions=} [p] Properties to set - */ - function FieldOptions(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Creates a new FieldOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance - */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); - }; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} m FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - return w; - }; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.google.protobuf.FieldOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return FieldOptions; - })(); - - protobuf.EnumOptions = (function() { - - /** - * Properties of an EnumOptions. - * @memberof google.protobuf - * @interface IEnumOptions - */ - - /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [p] Properties to set - */ - function EnumOptions(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Creates a new EnumOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance - */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); - }; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} m EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - return w; - }; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.google.protobuf.EnumOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { - - /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - */ - - /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [p] Properties to set - */ - function EnumValueOptions(p) { - if (p) - for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) - if (p[ks[i]] != null) - this[ks[i]] = p[ks[i]]; - } - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} m EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [w] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encode = function encode(m, w) { - if (!w) - w = $Writer.create(); - return w; - }; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} r Reader or buffer to decode from - * @param {number} [l] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decode = function decode(r, l) { - if (!(r instanceof $Reader)) - r = $Reader.create(r); - var c = l === undefined ? r.len : r.pos + l, m = new $root.google.protobuf.EnumValueOptions(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - - return EnumValueOptions; - })(); - protobuf.Timestamp = (function() { /** diff --git a/packages/demo-protobuf/types/generated/codecimpl.d.ts b/packages/demo-protobuf/types/generated/codecimpl.d.ts index 15ba3fec..8ae30088 100644 --- a/packages/demo-protobuf/types/generated/codecimpl.d.ts +++ b/packages/demo-protobuf/types/generated/codecimpl.d.ts @@ -1,1013 +1,1245 @@ import * as $protobuf from "protobufjs"; /** Namespace cosmos_sdk. */ export namespace cosmos_sdk { - /** Namespace codec. */ - namespace codec { + /** Namespace x. */ + namespace x { + /** Namespace bank. */ + namespace bank { + /** Namespace v1. */ + namespace v1 { + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MsgSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IMsgSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.x.bank.v1.MsgSend; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Input message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IInput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Input message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.x.bank.v1.Input; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Output message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IOutput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Output message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.x.bank.v1.Output; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MsgMultiSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.IMsgMultiSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgMultiSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos_sdk.x.bank.v1.MsgMultiSend; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Supply message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.x.bank.v1.ISupply, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.x.bank.v1.Supply; + } + } + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Coin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.ICoin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Coin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.Coin; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m DecCoin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.DecCoin; + } + + /** Properties of an IntProto. */ + interface IIntProto { + /** IntProto int */ + int?: string | null; + } + + /** Represents an IntProto. */ + class IntProto implements IIntProto { + /** + * Constructs a new IntProto. + * @param [p] Properties to set + */ + constructor(p?: 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 m IntProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.IntProto; + } + + /** Properties of a DecProto. */ + interface IDecProto { + /** DecProto dec */ + dec?: string | null; + } + + /** Represents a DecProto. */ + class DecProto implements IDecProto { + /** + * Constructs a new DecProto. + * @param [p] Properties to set + */ + constructor(p?: 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 m DecProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.DecProto; + } + + /** Properties of a ValAddresses. */ + interface IValAddresses { + /** ValAddresses addresses */ + addresses?: Uint8Array[] | null; + } + + /** Represents a ValAddresses. */ + class ValAddresses implements IValAddresses { + /** + * Constructs a new ValAddresses. + * @param [p] Properties to set + */ + constructor(p?: 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 m ValAddresses message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IValAddresses, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValAddresses message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.ValAddresses; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m GasInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IGasInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GasInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.GasInfo; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Result message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IResult, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.Result; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m SimulationResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.ISimulationResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.SimulationResponse; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MsgData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.IMsgData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.MsgData; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m TxData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.v1.ITxData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.v1.TxData; + } + } + + /** Namespace tx. */ + namespace tx { /** Namespace v1. */ namespace v1 { - /** Properties of a Dog. */ - interface IDog { - /** Dog size */ - size?: string | null; + /** Properties of a Tx. */ + interface ITx { + /** Tx body */ + body?: cosmos_sdk.tx.v1.ITxBody | null; - /** Dog name */ - name?: string | null; + /** Tx authInfo */ + authInfo?: cosmos_sdk.tx.v1.IAuthInfo | null; + + /** Tx signatures */ + signatures?: Uint8Array[] | null; } - /** Represents a Dog. */ - class Dog implements IDog { + /** Represents a Tx. */ + class Tx implements ITx { /** - * Constructs a new Dog. - * @param [properties] Properties to set + * Constructs a new Tx. + * @param [p] Properties to set */ - constructor(properties?: cosmos_sdk.codec.v1.IDog); + constructor(p?: cosmos_sdk.tx.v1.ITx); - /** Dog size. */ - public size: string; + /** Tx body. */ + public body?: cosmos_sdk.tx.v1.ITxBody | null; - /** Dog name. */ - public name: string; + /** Tx authInfo. */ + public authInfo?: cosmos_sdk.tx.v1.IAuthInfo | null; + + /** Tx signatures. */ + public signatures: Uint8Array[]; /** - * Creates a new Dog instance using the specified properties. + * Creates a new Tx instance using the specified properties. * @param [properties] Properties to set - * @returns Dog instance + * @returns Tx instance */ - public static create(properties?: cosmos_sdk.codec.v1.IDog): cosmos_sdk.codec.v1.Dog; + public static create(properties?: cosmos_sdk.tx.v1.ITx): cosmos_sdk.tx.v1.Tx; /** - * 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 + * Encodes the specified Tx message. Does not implicitly {@link cosmos_sdk.tx.v1.Tx.verify|verify} messages. + * @param m Tx message or plain object to encode + * @param [w] Writer to encode to * @returns Writer */ - public static encode(message: cosmos_sdk.codec.v1.IDog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos_sdk.tx.v1.ITx, w?: $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 + * Decodes a Tx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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.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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.Tx; } - /** Properties of a Cat. */ - interface ICat { - /** Cat moniker */ - moniker?: string | null; + /** Properties of a SignDoc. */ + interface ISignDoc { + /** SignDoc body */ + body?: cosmos_sdk.tx.v1.ITxBody | null; - /** Cat lives */ - lives?: number | 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 Cat. */ - class Cat implements ICat { + /** Represents a SignDoc. */ + class SignDoc implements ISignDoc { /** - * Constructs a new Cat. - * @param [properties] Properties to set + * Constructs a new SignDoc. + * @param [p] Properties to set */ - constructor(properties?: cosmos_sdk.codec.v1.ICat); + constructor(p?: cosmos_sdk.tx.v1.ISignDoc); - /** Cat moniker. */ - public moniker: string; + /** SignDoc body. */ + public body?: cosmos_sdk.tx.v1.ITxBody | null; - /** Cat lives. */ - public lives: number; + /** 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 Cat instance using the specified properties. + * Creates a new SignDoc instance using the specified properties. * @param [properties] Properties to set - * @returns Cat instance + * @returns SignDoc instance */ - public static create(properties?: cosmos_sdk.codec.v1.ICat): cosmos_sdk.codec.v1.Cat; + public static create(properties?: cosmos_sdk.tx.v1.ISignDoc): cosmos_sdk.tx.v1.SignDoc; /** - * 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 + * Encodes the specified SignDoc message. Does not implicitly {@link cosmos_sdk.tx.v1.SignDoc.verify|verify} messages. + * @param m SignDoc message or plain object to encode + * @param [w] Writer to encode to * @returns Writer */ - public static encode(message: cosmos_sdk.codec.v1.ICat, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos_sdk.tx.v1.ISignDoc, w?: $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 + * Decodes a SignDoc message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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.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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.SignDoc; } - /** Properties of a HasAnimal. */ - interface IHasAnimal { - /** HasAnimal animal */ - animal?: google.protobuf.IAny | null; + /** Properties of a TxBody. */ + interface ITxBody { + /** TxBody messages */ + messages?: google.protobuf.IAny[] | null; - /** HasAnimal x */ - x?: number | Long | 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 HasAnimal. */ - class HasAnimal implements IHasAnimal { + /** Represents a TxBody. */ + class TxBody implements ITxBody { /** - * Constructs a new HasAnimal. + * Constructs a new TxBody. + * @param [p] Properties to set + */ + constructor(p?: 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 */ - constructor(properties?: cosmos_sdk.codec.v1.IHasAnimal); - - /** HasAnimal animal. */ - public animal?: google.protobuf.IAny | null; - - /** HasAnimal x. */ - public x: number | Long; + public static create(properties?: cosmos_sdk.tx.v1.ITxBody): cosmos_sdk.tx.v1.TxBody; /** - * Creates a new HasAnimal instance using the specified properties. + * Encodes the specified TxBody message. Does not implicitly {@link cosmos_sdk.tx.v1.TxBody.verify|verify} messages. + * @param m TxBody message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.tx.v1.ITxBody, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxBody message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.TxBody; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 HasAnimal instance + * @returns AuthInfo instance */ - public static create(properties?: cosmos_sdk.codec.v1.IHasAnimal): cosmos_sdk.codec.v1.HasAnimal; + public static create(properties?: cosmos_sdk.tx.v1.IAuthInfo): cosmos_sdk.tx.v1.AuthInfo; /** - * 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 + * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos_sdk.tx.v1.AuthInfo.verify|verify} messages. + * @param m AuthInfo message or plain object to encode + * @param [w] Writer to encode to * @returns Writer */ - public static encode( - message: cosmos_sdk.codec.v1.IHasAnimal, - writer?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos_sdk.tx.v1.IAuthInfo, w?: $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 + * Decodes an AuthInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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.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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.AuthInfo; } - /** Properties of a HasHasAnimal. */ - interface IHasHasAnimal { - /** HasHasAnimal hasAnimal */ - hasAnimal?: google.protobuf.IAny | null; + /** Properties of a SignerInfo. */ + interface ISignerInfo { + /** SignerInfo publicKey */ + publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo */ + modeInfo?: cosmos_sdk.tx.v1.IModeInfo | null; } - /** Represents a HasHasAnimal. */ - class HasHasAnimal implements IHasHasAnimal { + /** Represents a SignerInfo. */ + class SignerInfo implements ISignerInfo { /** - * Constructs a new HasHasAnimal. + * Constructs a new SignerInfo. + * @param [p] Properties to set + */ + constructor(p?: 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 */ - constructor(properties?: cosmos_sdk.codec.v1.IHasHasAnimal); - - /** HasHasAnimal hasAnimal. */ - public hasAnimal?: google.protobuf.IAny | null; + public static create(properties?: cosmos_sdk.tx.v1.ISignerInfo): cosmos_sdk.tx.v1.SignerInfo; /** - * Creates a new HasHasAnimal instance using the specified properties. + * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos_sdk.tx.v1.SignerInfo.verify|verify} messages. + * @param m SignerInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.tx.v1.ISignerInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignerInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.SignerInfo; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 HasHasAnimal instance + * @returns ModeInfo instance */ - public static create( - properties?: cosmos_sdk.codec.v1.IHasHasAnimal, - ): cosmos_sdk.codec.v1.HasHasAnimal; + public static create(properties?: cosmos_sdk.tx.v1.IModeInfo): cosmos_sdk.tx.v1.ModeInfo; /** - * 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 + * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos_sdk.tx.v1.ModeInfo.verify|verify} messages. + * @param m ModeInfo message or plain object to encode + * @param [w] Writer to encode to * @returns Writer */ - public static encode( - message: cosmos_sdk.codec.v1.IHasHasAnimal, - writer?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos_sdk.tx.v1.IModeInfo, w?: $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 + * Decodes a ModeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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.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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.ModeInfo; } - /** Properties of a HasHasHasAnimal. */ - interface IHasHasHasAnimal { - /** HasHasHasAnimal hasHasAnimal */ - hasHasAnimal?: google.protobuf.IAny | null; + namespace ModeInfo { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos_sdk.tx.signing.v1.SignMode | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos_sdk.tx.v1.ModeInfo.ISingle); + + /** Single mode. */ + public mode: cosmos_sdk.tx.signing.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 m Single message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.tx.v1.ModeInfo.ISingle, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Single message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos_sdk.tx.v1.ModeInfo.Single; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m Multi message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos_sdk.tx.v1.ModeInfo.IMulti, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Multi message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.ModeInfo.Multi; + } } - /** Represents a HasHasHasAnimal. */ - class HasHasHasAnimal implements IHasHasHasAnimal { + /** 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 HasHasHasAnimal. + * Constructs a new Fee. + * @param [p] Properties to set + */ + constructor(p?: 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 */ - constructor(properties?: cosmos_sdk.codec.v1.IHasHasHasAnimal); - - /** HasHasHasAnimal hasHasAnimal. */ - public hasHasAnimal?: google.protobuf.IAny | null; + public static create(properties?: cosmos_sdk.tx.v1.IFee): cosmos_sdk.tx.v1.Fee; /** - * 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 + * Encodes the specified Fee message. Does not implicitly {@link cosmos_sdk.tx.v1.Fee.verify|verify} messages. + * @param m Fee message or plain object to encode + * @param [w] Writer to encode to * @returns Writer */ - public static encode( - message: cosmos_sdk.codec.v1.IHasHasHasAnimal, - writer?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos_sdk.tx.v1.IFee, w?: $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 + * Decodes a Fee message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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.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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.tx.v1.Fee; } + } - /** 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 signing. */ + namespace signing { + /** Namespace v1. */ + namespace v1 { + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127, + } } } } @@ -1041,9 +1273,9 @@ export namespace cosmos_sdk { class PublicKey implements IPublicKey { /** * Constructs a new PublicKey. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: cosmos_sdk.crypto.v1.IPublicKey); + constructor(p?: cosmos_sdk.crypto.v1.IPublicKey); /** PublicKey secp256k1. */ public secp256k1: Uint8Array; @@ -1075,78 +1307,21 @@ export namespace cosmos_sdk { /** * 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 + * @param m PublicKey message or plain object to encode + * @param [w] 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; + public static encode(m: cosmos_sdk.crypto.v1.IPublicKey, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos_sdk.crypto.v1.PublicKey; } /** Properties of a PubKeyMultisigThreshold. */ @@ -1154,23 +1329,23 @@ export namespace cosmos_sdk { /** PubKeyMultisigThreshold threshold */ threshold?: number | null; - /** PubKeyMultisigThreshold pubkeys */ - pubkeys?: cosmos_sdk.crypto.v1.IPublicKey[] | null; + /** PubKeyMultisigThreshold publicKeys */ + publicKeys?: cosmos_sdk.crypto.v1.IPublicKey[] | null; } /** Represents a PubKeyMultisigThreshold. */ class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { /** * Constructs a new PubKeyMultisigThreshold. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold); + constructor(p?: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold); /** PubKeyMultisigThreshold threshold. */ public threshold: number; - /** PubKeyMultisigThreshold pubkeys. */ - public pubkeys: cosmos_sdk.crypto.v1.IPublicKey[]; + /** PubKeyMultisigThreshold publicKeys. */ + public publicKeys: cosmos_sdk.crypto.v1.IPublicKey[]; /** * Creates a new PubKeyMultisigThreshold instance using the specified properties. @@ -1183,98 +1358,45 @@ export namespace cosmos_sdk { /** * 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 + * @param m PubKeyMultisigThreshold message or plain object to encode + * @param [w] 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, + m: cosmos_sdk.crypto.v1.IPubKeyMultisigThreshold, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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; + /** MultiSignature signatures */ + signatures?: Uint8Array[] | null; } /** Represents a MultiSignature. */ class MultiSignature implements IMultiSignature { /** * Constructs a new MultiSignature. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: cosmos_sdk.crypto.v1.IMultiSignature); + constructor(p?: cosmos_sdk.crypto.v1.IMultiSignature); - /** MultiSignature sigs. */ - public sigs: Uint8Array[]; + /** MultiSignature signatures. */ + public signatures: Uint8Array[]; /** * Creates a new MultiSignature instance using the specified properties. @@ -1287,80 +1409,24 @@ export namespace cosmos_sdk { /** * 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 + * @param m MultiSignature message or plain object to encode + * @param [w] 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; + public static encode(m: cosmos_sdk.crypto.v1.IMultiSignature, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -1376,9 +1442,9 @@ export namespace cosmos_sdk { class CompactBitArray implements ICompactBitArray { /** * Constructs a new CompactBitArray. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: cosmos_sdk.crypto.v1.ICompactBitArray); + constructor(p?: cosmos_sdk.crypto.v1.ICompactBitArray); /** CompactBitArray extraBitsStored. */ public extraBitsStored: number; @@ -1397,14876 +1463,27 @@ export namespace cosmos_sdk { /** * 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 + * @param m CompactBitArray message or plain object to encode + * @param [w] 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, + m: cosmos_sdk.crypto.v1.ICompactBitArray, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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 }; - } } } } @@ -16318,9 +1535,9 @@ export namespace tendermint { class Request implements IRequest { /** * Constructs a new Request. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequest); + constructor(p?: tendermint.abci.types.IRequest); /** Request echo. */ public echo?: tendermint.abci.types.IRequestEcho | null; @@ -16378,78 +1595,21 @@ export namespace tendermint { /** * 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 + * @param m Request message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IRequest, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Request; } /** Properties of a RequestEcho. */ @@ -16462,9 +1622,9 @@ export namespace tendermint { class RequestEcho implements IRequestEcho { /** * Constructs a new RequestEcho. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestEcho); + constructor(p?: tendermint.abci.types.IRequestEcho); /** RequestEcho message. */ public message: string; @@ -16480,80 +1640,21 @@ export namespace tendermint { /** * 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 + * @param m RequestEcho message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IRequestEcho, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestEcho; } /** Properties of a RequestFlush. */ @@ -16563,9 +1664,9 @@ export namespace tendermint { class RequestFlush implements IRequestFlush { /** * Constructs a new RequestFlush. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestFlush); + constructor(p?: tendermint.abci.types.IRequestFlush); /** * Creates a new RequestFlush instance using the specified properties. @@ -16578,80 +1679,24 @@ export namespace tendermint { /** * 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 + * @param m RequestFlush message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IRequestFlush, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -16670,9 +1715,9 @@ export namespace tendermint { class RequestInfo implements IRequestInfo { /** * Constructs a new RequestInfo. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestInfo); + constructor(p?: tendermint.abci.types.IRequestInfo); /** RequestInfo version. */ public version: string; @@ -16694,80 +1739,21 @@ export namespace tendermint { /** * 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 + * @param m RequestInfo message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IRequestInfo, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestInfo; } /** Properties of a RequestSetOption. */ @@ -16783,9 +1769,9 @@ export namespace tendermint { class RequestSetOption implements IRequestSetOption { /** * Constructs a new RequestSetOption. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestSetOption); + constructor(p?: tendermint.abci.types.IRequestSetOption); /** RequestSetOption key. */ public key: string; @@ -16804,80 +1790,27 @@ export namespace tendermint { /** * 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 + * @param m RequestSetOption message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IRequestSetOption, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -16902,9 +1835,9 @@ export namespace tendermint { class RequestInitChain implements IRequestInitChain { /** * Constructs a new RequestInitChain. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestInitChain); + constructor(p?: tendermint.abci.types.IRequestInitChain); /** RequestInitChain time. */ public time?: google.protobuf.ITimestamp | null; @@ -16932,80 +1865,27 @@ export namespace tendermint { /** * 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 + * @param m RequestInitChain message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IRequestInitChain, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17027,9 +1907,9 @@ export namespace tendermint { class RequestQuery implements IRequestQuery { /** * Constructs a new RequestQuery. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestQuery); + constructor(p?: tendermint.abci.types.IRequestQuery); /** RequestQuery data. */ public data: Uint8Array; @@ -17054,80 +1934,24 @@ export namespace tendermint { /** * 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 + * @param m RequestQuery message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IRequestQuery, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17149,9 +1973,9 @@ export namespace tendermint { class RequestBeginBlock implements IRequestBeginBlock { /** * Constructs a new RequestBeginBlock. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestBeginBlock); + constructor(p?: tendermint.abci.types.IRequestBeginBlock); /** RequestBeginBlock hash. */ public hash: Uint8Array; @@ -17176,80 +2000,27 @@ export namespace tendermint { /** * 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 + * @param m RequestBeginBlock message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IRequestBeginBlock, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17271,9 +2042,9 @@ export namespace tendermint { class RequestCheckTx implements IRequestCheckTx { /** * Constructs a new RequestCheckTx. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestCheckTx); + constructor(p?: tendermint.abci.types.IRequestCheckTx); /** RequestCheckTx tx. */ public tx: Uint8Array; @@ -17292,80 +2063,27 @@ export namespace tendermint { /** * 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 + * @param m RequestCheckTx message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IRequestCheckTx, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17378,9 +2096,9 @@ export namespace tendermint { class RequestDeliverTx implements IRequestDeliverTx { /** * Constructs a new RequestDeliverTx. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestDeliverTx); + constructor(p?: tendermint.abci.types.IRequestDeliverTx); /** RequestDeliverTx tx. */ public tx: Uint8Array; @@ -17396,80 +2114,27 @@ export namespace tendermint { /** * 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 + * @param m RequestDeliverTx message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IRequestDeliverTx, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17482,9 +2147,9 @@ export namespace tendermint { class RequestEndBlock implements IRequestEndBlock { /** * Constructs a new RequestEndBlock. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestEndBlock); + constructor(p?: tendermint.abci.types.IRequestEndBlock); /** RequestEndBlock height. */ public height: number | Long; @@ -17500,80 +2165,27 @@ export namespace tendermint { /** * 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 + * @param m RequestEndBlock message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IRequestEndBlock, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17583,9 +2195,9 @@ export namespace tendermint { class RequestCommit implements IRequestCommit { /** * Constructs a new RequestCommit. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IRequestCommit); + constructor(p?: tendermint.abci.types.IRequestCommit); /** * Creates a new RequestCommit instance using the specified properties. @@ -17598,80 +2210,24 @@ export namespace tendermint { /** * 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 + * @param m RequestCommit message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IRequestCommit, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17717,9 +2273,9 @@ export namespace tendermint { class Response implements IResponse { /** * Constructs a new Response. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponse); + constructor(p?: tendermint.abci.types.IResponse); /** Response exception. */ public exception?: tendermint.abci.types.IResponseException | null; @@ -17781,78 +2337,21 @@ export namespace tendermint { /** * 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 + * @param m Response message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IResponse, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Response; } /** Properties of a ResponseException. */ @@ -17865,9 +2364,9 @@ export namespace tendermint { class ResponseException implements IResponseException { /** * Constructs a new ResponseException. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseException); + constructor(p?: tendermint.abci.types.IResponseException); /** ResponseException error. */ public error: string; @@ -17883,80 +2382,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseException message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseException, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -17969,9 +2415,9 @@ export namespace tendermint { class ResponseEcho implements IResponseEcho { /** * Constructs a new ResponseEcho. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseEcho); + constructor(p?: tendermint.abci.types.IResponseEcho); /** ResponseEcho message. */ public message: string; @@ -17987,80 +2433,24 @@ export namespace tendermint { /** * 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 + * @param m ResponseEcho message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IResponseEcho, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18070,9 +2460,9 @@ export namespace tendermint { class ResponseFlush implements IResponseFlush { /** * Constructs a new ResponseFlush. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseFlush); + constructor(p?: tendermint.abci.types.IResponseFlush); /** * Creates a new ResponseFlush instance using the specified properties. @@ -18085,80 +2475,24 @@ export namespace tendermint { /** * 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 + * @param m ResponseFlush message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IResponseFlush, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18183,9 +2517,9 @@ export namespace tendermint { class ResponseInfo implements IResponseInfo { /** * Constructs a new ResponseInfo. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseInfo); + constructor(p?: tendermint.abci.types.IResponseInfo); /** ResponseInfo data. */ public data: string; @@ -18213,80 +2547,24 @@ export namespace tendermint { /** * 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 + * @param m ResponseInfo message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IResponseInfo, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18305,9 +2583,9 @@ export namespace tendermint { class ResponseSetOption implements IResponseSetOption { /** * Constructs a new ResponseSetOption. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseSetOption); + constructor(p?: tendermint.abci.types.IResponseSetOption); /** ResponseSetOption code. */ public code: number; @@ -18329,80 +2607,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseSetOption message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseSetOption, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18418,9 +2643,9 @@ export namespace tendermint { class ResponseInitChain implements IResponseInitChain { /** * Constructs a new ResponseInitChain. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseInitChain); + constructor(p?: tendermint.abci.types.IResponseInitChain); /** ResponseInitChain consensusParams. */ public consensusParams?: tendermint.abci.types.IConsensusParams | null; @@ -18439,80 +2664,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseInitChain message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseInitChain, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18549,9 +2721,9 @@ export namespace tendermint { class ResponseQuery implements IResponseQuery { /** * Constructs a new ResponseQuery. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseQuery); + constructor(p?: tendermint.abci.types.IResponseQuery); /** ResponseQuery code. */ public code: number; @@ -18591,80 +2763,24 @@ export namespace tendermint { /** * 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 + * @param m ResponseQuery message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IResponseQuery, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18677,9 +2793,9 @@ export namespace tendermint { class ResponseBeginBlock implements IResponseBeginBlock { /** * Constructs a new ResponseBeginBlock. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseBeginBlock); + constructor(p?: tendermint.abci.types.IResponseBeginBlock); /** ResponseBeginBlock events. */ public events: tendermint.abci.types.IEvent[]; @@ -18695,80 +2811,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseBeginBlock message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseBeginBlock, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18802,9 +2865,9 @@ export namespace tendermint { class ResponseCheckTx implements IResponseCheckTx { /** * Constructs a new ResponseCheckTx. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseCheckTx); + constructor(p?: tendermint.abci.types.IResponseCheckTx); /** ResponseCheckTx code. */ public code: number; @@ -18841,80 +2904,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseCheckTx message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseCheckTx, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -18948,9 +2958,9 @@ export namespace tendermint { class ResponseDeliverTx implements IResponseDeliverTx { /** * Constructs a new ResponseDeliverTx. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseDeliverTx); + constructor(p?: tendermint.abci.types.IResponseDeliverTx); /** ResponseDeliverTx code. */ public code: number; @@ -18987,80 +2997,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseDeliverTx message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseDeliverTx, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19079,9 +3036,9 @@ export namespace tendermint { class ResponseEndBlock implements IResponseEndBlock { /** * Constructs a new ResponseEndBlock. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseEndBlock); + constructor(p?: tendermint.abci.types.IResponseEndBlock); /** ResponseEndBlock validatorUpdates. */ public validatorUpdates: tendermint.abci.types.IValidatorUpdate[]; @@ -19103,80 +3060,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseEndBlock message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseEndBlock, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19189,9 +3093,9 @@ export namespace tendermint { class ResponseCommit implements IResponseCommit { /** * Constructs a new ResponseCommit. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IResponseCommit); + constructor(p?: tendermint.abci.types.IResponseCommit); /** ResponseCommit data. */ public data: Uint8Array; @@ -19207,80 +3111,27 @@ export namespace tendermint { /** * 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 + * @param m ResponseCommit message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IResponseCommit, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19299,9 +3150,9 @@ export namespace tendermint { class ConsensusParams implements IConsensusParams { /** * Constructs a new ConsensusParams. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IConsensusParams); + constructor(p?: tendermint.abci.types.IConsensusParams); /** ConsensusParams block. */ public block?: tendermint.abci.types.IBlockParams | null; @@ -19323,80 +3174,27 @@ export namespace tendermint { /** * 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 + * @param m ConsensusParams message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IConsensusParams, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19412,9 +3210,9 @@ export namespace tendermint { class BlockParams implements IBlockParams { /** * Constructs a new BlockParams. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IBlockParams); + constructor(p?: tendermint.abci.types.IBlockParams); /** BlockParams maxBytes. */ public maxBytes: number | Long; @@ -19433,80 +3231,21 @@ export namespace tendermint { /** * 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 + * @param m BlockParams message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IBlockParams, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockParams; } /** Properties of an EvidenceParams. */ @@ -19522,9 +3261,9 @@ export namespace tendermint { class EvidenceParams implements IEvidenceParams { /** * Constructs a new EvidenceParams. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IEvidenceParams); + constructor(p?: tendermint.abci.types.IEvidenceParams); /** EvidenceParams maxAgeNumBlocks. */ public maxAgeNumBlocks: number | Long; @@ -19543,80 +3282,27 @@ export namespace tendermint { /** * 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 + * @param m EvidenceParams message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IEvidenceParams, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19629,9 +3315,9 @@ export namespace tendermint { class ValidatorParams implements IValidatorParams { /** * Constructs a new ValidatorParams. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IValidatorParams); + constructor(p?: tendermint.abci.types.IValidatorParams); /** ValidatorParams pubKeyTypes. */ public pubKeyTypes: string[]; @@ -19647,80 +3333,27 @@ export namespace tendermint { /** * 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 + * @param m ValidatorParams message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IValidatorParams, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19736,9 +3369,9 @@ export namespace tendermint { class LastCommitInfo implements ILastCommitInfo { /** * Constructs a new LastCommitInfo. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.ILastCommitInfo); + constructor(p?: tendermint.abci.types.ILastCommitInfo); /** LastCommitInfo round. */ public round: number; @@ -19757,80 +3390,27 @@ export namespace tendermint { /** * 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 + * @param m LastCommitInfo message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.ILastCommitInfo, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -19846,9 +3426,9 @@ export namespace tendermint { class Event implements IEvent { /** * Constructs a new Event. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IEvent); + constructor(p?: tendermint.abci.types.IEvent); /** Event type. */ public type: string; @@ -19865,78 +3445,21 @@ export namespace tendermint { /** * 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 + * @param m Event message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IEvent, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Event; } /** Properties of a Header. */ @@ -19988,9 +3511,9 @@ export namespace tendermint { class Header implements IHeader { /** * Constructs a new Header. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IHeader); + constructor(p?: tendermint.abci.types.IHeader); /** Header version. */ public version?: tendermint.abci.types.IVersion | null; @@ -20043,78 +3566,21 @@ export namespace tendermint { /** * 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 + * @param m Header message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IHeader, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Header; } /** Properties of a Version. */ @@ -20130,9 +3596,9 @@ export namespace tendermint { class Version implements IVersion { /** * Constructs a new Version. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IVersion); + constructor(p?: tendermint.abci.types.IVersion); /** Version Block. */ public Block: number | Long; @@ -20149,78 +3615,21 @@ export namespace tendermint { /** * 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 + * @param m Version message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IVersion, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Version; } /** Properties of a BlockID. */ @@ -20236,9 +3645,9 @@ export namespace tendermint { class BlockID implements IBlockID { /** * Constructs a new BlockID. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IBlockID); + constructor(p?: tendermint.abci.types.IBlockID); /** BlockID hash. */ public hash: Uint8Array; @@ -20255,78 +3664,21 @@ export namespace tendermint { /** * 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 + * @param m BlockID message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IBlockID, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockID; } /** Properties of a PartSetHeader. */ @@ -20342,9 +3694,9 @@ export namespace tendermint { class PartSetHeader implements IPartSetHeader { /** * Constructs a new PartSetHeader. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IPartSetHeader); + constructor(p?: tendermint.abci.types.IPartSetHeader); /** PartSetHeader total. */ public total: number; @@ -20363,80 +3715,24 @@ export namespace tendermint { /** * 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 + * @param m PartSetHeader message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IPartSetHeader, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -20452,9 +3748,9 @@ export namespace tendermint { class Validator implements IValidator { /** * Constructs a new Validator. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IValidator); + constructor(p?: tendermint.abci.types.IValidator); /** Validator address. */ public address: Uint8Array; @@ -20471,78 +3767,21 @@ export namespace tendermint { /** * 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 + * @param m Validator message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IValidator, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Validator; } /** Properties of a ValidatorUpdate. */ @@ -20558,9 +3797,9 @@ export namespace tendermint { class ValidatorUpdate implements IValidatorUpdate { /** * Constructs a new ValidatorUpdate. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IValidatorUpdate); + constructor(p?: tendermint.abci.types.IValidatorUpdate); /** ValidatorUpdate pubKey. */ public pubKey?: tendermint.abci.types.IPubKey | null; @@ -20579,80 +3818,27 @@ export namespace tendermint { /** * 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 + * @param m ValidatorUpdate message or plain object to encode + * @param [w] 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, + m: tendermint.abci.types.IValidatorUpdate, + w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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, + r: $protobuf.Reader | Uint8Array, + l?: 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. */ @@ -20668,9 +3854,9 @@ export namespace tendermint { class VoteInfo implements IVoteInfo { /** * Constructs a new VoteInfo. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IVoteInfo); + constructor(p?: tendermint.abci.types.IVoteInfo); /** VoteInfo validator. */ public validator?: tendermint.abci.types.IValidator | null; @@ -20687,78 +3873,21 @@ export namespace tendermint { /** * 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 + * @param m VoteInfo message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IVoteInfo, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.VoteInfo; } /** Properties of a PubKey. */ @@ -20774,9 +3903,9 @@ export namespace tendermint { class PubKey implements IPubKey { /** * Constructs a new PubKey. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IPubKey); + constructor(p?: tendermint.abci.types.IPubKey); /** PubKey type. */ public type: string; @@ -20793,78 +3922,21 @@ export namespace tendermint { /** * 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 + * @param m PubKey message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IPubKey, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.PubKey; } /** Properties of an Evidence. */ @@ -20889,9 +3961,9 @@ export namespace tendermint { class Evidence implements IEvidence { /** * Constructs a new Evidence. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.abci.types.IEvidence); + constructor(p?: tendermint.abci.types.IEvidence); /** Evidence type. */ public type: string; @@ -20917,78 +3989,21 @@ export namespace tendermint { /** * 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 + * @param m Evidence message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.abci.types.IEvidence, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Evidence; } /** Represents a ABCIApplication */ @@ -21339,9 +4354,9 @@ export namespace tendermint { class ProofOp implements IProofOp { /** * Constructs a new ProofOp. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.crypto.merkle.IProofOp); + constructor(p?: tendermint.crypto.merkle.IProofOp); /** ProofOp type. */ public type: string; @@ -21363,80 +4378,21 @@ export namespace tendermint { /** * 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 + * @param m ProofOp message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.crypto.merkle.IProofOp, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.ProofOp; } /** Properties of a Proof. */ @@ -21449,9 +4405,9 @@ export namespace tendermint { class Proof implements IProof { /** * Constructs a new Proof. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.crypto.merkle.IProof); + constructor(p?: tendermint.crypto.merkle.IProof); /** Proof ops. */ public ops: tendermint.crypto.merkle.IProofOp[]; @@ -21465,78 +4421,21 @@ export namespace tendermint { /** * 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 + * @param m Proof message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.crypto.merkle.IProof, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.Proof; } } } @@ -21558,9 +4457,9 @@ export namespace tendermint { class Pair implements IPair { /** * Constructs a new Pair. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.libs.kv.IPair); + constructor(p?: tendermint.libs.kv.IPair); /** Pair key. */ public key: Uint8Array; @@ -21577,72 +4476,21 @@ export namespace tendermint { /** * 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 + * @param m Pair message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.libs.kv.IPair, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.Pair; } /** Properties of a KI64Pair. */ @@ -21658,9 +4506,9 @@ export namespace tendermint { class KI64Pair implements IKI64Pair { /** * Constructs a new KI64Pair. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: tendermint.libs.kv.IKI64Pair); + constructor(p?: tendermint.libs.kv.IKI64Pair); /** KI64Pair key. */ public key: Uint8Array; @@ -21677,78 +4525,21 @@ export namespace tendermint { /** * 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 + * @param m KI64Pair message or plain object to encode + * @param [w] 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; + public static encode(m: tendermint.libs.kv.IKI64Pair, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.KI64Pair; } } } @@ -21771,9 +4562,9 @@ export namespace google { class Any implements IAny { /** * Constructs a new Any. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: google.protobuf.IAny); + constructor(p?: google.protobuf.IAny); /** Any type_url. */ public type_url: string; @@ -21790,3450 +4581,21 @@ export namespace google { /** * 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 + * @param m Any message or plain object to encode + * @param [w] 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; + public static encode(m: google.protobuf.IAny, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; - } + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Any; } /** Properties of a Timestamp. */ @@ -25249,9 +4611,9 @@ export namespace google { class Timestamp implements ITimestamp { /** * Constructs a new Timestamp. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); + constructor(p?: google.protobuf.ITimestamp); /** Timestamp seconds. */ public seconds: number | Long; @@ -25268,72 +4630,21 @@ export namespace google { /** * 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 + * @param m Timestamp message or plain object to encode + * @param [w] 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; + public static encode(m: google.protobuf.ITimestamp, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; } /** Properties of a Duration. */ @@ -25349,9 +4660,9 @@ export namespace google { class Duration implements IDuration { /** * Constructs a new Duration. - * @param [properties] Properties to set + * @param [p] Properties to set */ - constructor(properties?: google.protobuf.IDuration); + constructor(p?: google.protobuf.IDuration); /** Duration seconds. */ public seconds: number | Long; @@ -25368,72 +4679,21 @@ export namespace google { /** * 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 + * @param m Duration message or plain object to encode + * @param [w] 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; + public static encode(m: google.protobuf.IDuration, w?: $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 + * @param r Reader or buffer to decode from + * @param [l] 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 }; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; } } }