From b653483afc4a25cb9c8dff0a8d9c06c13b9cc430 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 14 Oct 2020 17:17:01 +0200 Subject: [PATCH] stargate: Update codec --- .../src/codec/generated/codecimpl.d.ts | 19594 ++++++++-------- .../stargate/src/codec/generated/codecimpl.js | 15658 ++++++------ .../types/codec/generated/codecimpl.d.ts | 19594 ++++++++-------- 3 files changed, 27357 insertions(+), 27489 deletions(-) diff --git a/packages/stargate/src/codec/generated/codecimpl.d.ts b/packages/stargate/src/codec/generated/codecimpl.d.ts index e205516f..e348516f 100644 --- a/packages/stargate/src/codec/generated/codecimpl.d.ts +++ b/packages/stargate/src/codec/generated/codecimpl.d.ts @@ -1,9510 +1,199 @@ import * as $protobuf from "protobufjs"; /** Namespace cosmos. */ export namespace cosmos { - /** 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.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.ICoin): cosmos.Coin; - - /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.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.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.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.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.IDecCoin): cosmos.DecCoin; - - /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.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.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.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.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.IIntProto): cosmos.IntProto; - - /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.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.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.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.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.IDecProto): cosmos.DecProto; - - /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.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.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.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.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.IValAddresses): cosmos.ValAddresses; - - /** - * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos.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.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.ValAddresses; - } - - /** Properties of a GasInfo. */ - interface IGasInfo { - /** GasInfo gasWanted */ - gasWanted?: Long | null; - - /** GasInfo gasUsed */ - gasUsed?: Long | null; - } - - /** Represents a GasInfo. */ - class GasInfo implements IGasInfo { - /** - * Constructs a new GasInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IGasInfo); - - /** GasInfo gasWanted. */ - public gasWanted: Long; - - /** GasInfo gasUsed. */ - public gasUsed: Long; - - /** - * Creates a new GasInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GasInfo instance - */ - public static create(properties?: cosmos.IGasInfo): cosmos.GasInfo; - - /** - * Encodes the specified GasInfo message. Does not implicitly {@link cosmos.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.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.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.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.IResult): cosmos.Result; - - /** - * Encodes the specified Result message. Does not implicitly {@link cosmos.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.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.Result; - } - - /** Properties of a SimulationResponse. */ - interface ISimulationResponse { - /** SimulationResponse gasInfo */ - gasInfo?: cosmos.IGasInfo | null; - - /** SimulationResponse result */ - result?: cosmos.IResult | null; - } - - /** Represents a SimulationResponse. */ - class SimulationResponse implements ISimulationResponse { - /** - * Constructs a new SimulationResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.ISimulationResponse); - - /** SimulationResponse gasInfo. */ - public gasInfo?: cosmos.IGasInfo | null; - - /** SimulationResponse result. */ - public result?: cosmos.IResult | null; - - /** - * Creates a new SimulationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SimulationResponse instance - */ - public static create(properties?: cosmos.ISimulationResponse): cosmos.SimulationResponse; - - /** - * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos.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.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.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.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.IMsgData): cosmos.MsgData; - - /** - * Encodes the specified MsgData message. Does not implicitly {@link cosmos.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.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.MsgData; - } - - /** Properties of a TxData. */ - interface ITxData { - /** TxData data */ - data?: cosmos.IMsgData[] | null; - } - - /** Represents a TxData. */ - class TxData implements ITxData { - /** - * Constructs a new TxData. - * @param [p] Properties to set - */ - constructor(p?: cosmos.ITxData); - - /** TxData data. */ - public data: cosmos.IMsgData[]; - - /** - * Creates a new TxData instance using the specified properties. - * @param [properties] Properties to set - * @returns TxData instance - */ - public static create(properties?: cosmos.ITxData): cosmos.TxData; - - /** - * Encodes the specified TxData message. Does not implicitly {@link cosmos.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.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.TxData; - } - - /** Properties of a TxResponse. */ - interface ITxResponse { - /** TxResponse height */ - height?: Long | null; - - /** TxResponse txhash */ - txhash?: string | null; - - /** TxResponse codespace */ - codespace?: string | null; - - /** TxResponse code */ - code?: number | null; - - /** TxResponse data */ - data?: string | null; - - /** TxResponse rawLog */ - rawLog?: string | null; - - /** TxResponse logs */ - logs?: cosmos.IABCIMessageLog[] | null; - - /** TxResponse info */ - info?: string | null; - - /** TxResponse gasWanted */ - gasWanted?: Long | null; - - /** TxResponse gasUsed */ - gasUsed?: Long | null; - - /** TxResponse tx */ - tx?: google.protobuf.IAny | null; - - /** TxResponse timestamp */ - timestamp?: string | null; - } - - /** Represents a TxResponse. */ - class TxResponse implements ITxResponse { - /** - * Constructs a new TxResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.ITxResponse); - - /** TxResponse height. */ - public height: Long; - - /** TxResponse txhash. */ - public txhash: string; - - /** TxResponse codespace. */ - public codespace: string; - - /** TxResponse code. */ - public code: number; - - /** TxResponse data. */ - public data: string; - - /** TxResponse rawLog. */ - public rawLog: string; - - /** TxResponse logs. */ - public logs: cosmos.IABCIMessageLog[]; - - /** TxResponse info. */ - public info: string; - - /** TxResponse gasWanted. */ - public gasWanted: Long; - - /** TxResponse gasUsed. */ - public gasUsed: Long; - - /** TxResponse tx. */ - public tx?: google.protobuf.IAny | null; - - /** TxResponse timestamp. */ - public timestamp: string; - - /** - * Creates a new TxResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TxResponse instance - */ - public static create(properties?: cosmos.ITxResponse): cosmos.TxResponse; - - /** - * Encodes the specified TxResponse message. Does not implicitly {@link cosmos.TxResponse.verify|verify} messages. - * @param m TxResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.ITxResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TxResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns TxResponse - * @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.TxResponse; - } - - /** Properties of a ABCIMessageLog. */ - interface IABCIMessageLog { - /** ABCIMessageLog msgIndex */ - msgIndex?: number | null; - - /** ABCIMessageLog log */ - log?: string | null; - - /** ABCIMessageLog events */ - events?: cosmos.IStringEvent[] | null; - } - - /** Represents a ABCIMessageLog. */ - class ABCIMessageLog implements IABCIMessageLog { - /** - * Constructs a new ABCIMessageLog. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IABCIMessageLog); - - /** ABCIMessageLog msgIndex. */ - public msgIndex: number; - - /** ABCIMessageLog log. */ - public log: string; - - /** ABCIMessageLog events. */ - public events: cosmos.IStringEvent[]; - - /** - * Creates a new ABCIMessageLog instance using the specified properties. - * @param [properties] Properties to set - * @returns ABCIMessageLog instance - */ - public static create(properties?: cosmos.IABCIMessageLog): cosmos.ABCIMessageLog; - - /** - * Encodes the specified ABCIMessageLog message. Does not implicitly {@link cosmos.ABCIMessageLog.verify|verify} messages. - * @param m ABCIMessageLog message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.IABCIMessageLog, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ABCIMessageLog message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ABCIMessageLog - * @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.ABCIMessageLog; - } - - /** Properties of a StringEvent. */ - interface IStringEvent { - /** StringEvent type */ - type?: string | null; - - /** StringEvent attributes */ - attributes?: cosmos.IAttribute[] | null; - } - - /** Represents a StringEvent. */ - class StringEvent implements IStringEvent { - /** - * Constructs a new StringEvent. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IStringEvent); - - /** StringEvent type. */ - public type: string; - - /** StringEvent attributes. */ - public attributes: cosmos.IAttribute[]; - - /** - * Creates a new StringEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns StringEvent instance - */ - public static create(properties?: cosmos.IStringEvent): cosmos.StringEvent; - - /** - * Encodes the specified StringEvent message. Does not implicitly {@link cosmos.StringEvent.verify|verify} messages. - * @param m StringEvent message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.IStringEvent, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StringEvent message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns StringEvent - * @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.StringEvent; - } - - /** Properties of an Attribute. */ - interface IAttribute { - /** Attribute key */ - key?: string | null; - - /** Attribute value */ - value?: string | null; - } - - /** Represents an Attribute. */ - class Attribute implements IAttribute { - /** - * Constructs a new Attribute. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IAttribute); - - /** Attribute key. */ - public key: string; - - /** Attribute value. */ - public value: string; - - /** - * Creates a new Attribute instance using the specified properties. - * @param [properties] Properties to set - * @returns Attribute instance - */ - public static create(properties?: cosmos.IAttribute): cosmos.Attribute; - - /** - * Encodes the specified Attribute message. Does not implicitly {@link cosmos.Attribute.verify|verify} messages. - * @param m Attribute message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.IAttribute, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Attribute message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Attribute - * @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.Attribute; - } - /** Namespace auth. */ namespace auth { - /** Properties of a BaseAccount. */ - interface IBaseAccount { - /** BaseAccount address */ - address?: Uint8Array | null; + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a BaseAccount. */ + interface IBaseAccount { + /** BaseAccount address */ + address?: string | null; - /** BaseAccount pubKey */ - pubKey?: Uint8Array | null; + /** BaseAccount pubKey */ + pubKey?: google.protobuf.IAny | null; - /** BaseAccount accountNumber */ - accountNumber?: Long | null; + /** BaseAccount accountNumber */ + accountNumber?: Long | null; - /** BaseAccount sequence */ - sequence?: Long | null; - } - - /** Represents a BaseAccount. */ - class BaseAccount implements IBaseAccount { - /** - * Constructs a new BaseAccount. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IBaseAccount); - - /** BaseAccount address. */ - public address: Uint8Array; - - /** BaseAccount pubKey. */ - public pubKey: Uint8Array; - - /** BaseAccount accountNumber. */ - public accountNumber: Long; - - /** BaseAccount sequence. */ - public sequence: Long; - - /** - * Creates a new BaseAccount instance using the specified properties. - * @param [properties] Properties to set - * @returns BaseAccount instance - */ - public static create(properties?: cosmos.auth.IBaseAccount): cosmos.auth.BaseAccount; - - /** - * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.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.auth.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.auth.BaseAccount; - } - - /** Properties of a ModuleAccount. */ - interface IModuleAccount { - /** ModuleAccount baseAccount */ - baseAccount?: cosmos.auth.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.auth.IModuleAccount); - - /** ModuleAccount baseAccount. */ - public baseAccount?: cosmos.auth.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.auth.IModuleAccount): cosmos.auth.ModuleAccount; - - /** - * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.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.auth.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.auth.ModuleAccount; - } - - /** Properties of a Params. */ - interface IParams { - /** Params maxMemoCharacters */ - maxMemoCharacters?: Long | null; - - /** Params txSigLimit */ - txSigLimit?: Long | null; - - /** Params txSizeCostPerByte */ - txSizeCostPerByte?: Long | null; - - /** Params sigVerifyCostEd25519 */ - sigVerifyCostEd25519?: Long | null; - - /** Params sigVerifyCostSecp256k1 */ - sigVerifyCostSecp256k1?: Long | null; - } - - /** Represents a Params. */ - class Params implements IParams { - /** - * Constructs a new Params. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IParams); - - /** Params maxMemoCharacters. */ - public maxMemoCharacters: Long; - - /** Params txSigLimit. */ - public txSigLimit: Long; - - /** Params txSizeCostPerByte. */ - public txSizeCostPerByte: Long; - - /** Params sigVerifyCostEd25519. */ - public sigVerifyCostEd25519: Long; - - /** Params sigVerifyCostSecp256k1. */ - public sigVerifyCostSecp256k1: Long; - - /** - * Creates a new Params instance using the specified properties. - * @param [properties] Properties to set - * @returns Params instance - */ - public static create(properties?: cosmos.auth.IParams): cosmos.auth.Params; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.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.auth.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.auth.Params; - } - - /** 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 Account. - * @param request QueryAccountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryAccountResponse - */ - public account( - request: cosmos.auth.IQueryAccountRequest, - callback: cosmos.auth.Query.AccountCallback, - ): void; - - /** - * Calls Account. - * @param request QueryAccountRequest message or plain object - * @returns Promise - */ - public account(request: cosmos.auth.IQueryAccountRequest): Promise; - - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse - */ - public params( - request: cosmos.auth.IQueryParamsRequest, - callback: cosmos.auth.Query.ParamsCallback, - ): void; - - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: cosmos.auth.IQueryParamsRequest): Promise; - } - - namespace Query { - /** - * Callback as used by {@link cosmos.auth.Query#account}. - * @param error Error, if any - * @param [response] QueryAccountResponse - */ - type AccountCallback = (error: Error | null, response?: cosmos.auth.QueryAccountResponse) => void; - - /** - * Callback as used by {@link cosmos.auth.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse - */ - type ParamsCallback = (error: Error | null, response?: cosmos.auth.QueryParamsResponse) => void; - } - - /** Properties of a QueryAccountRequest. */ - interface IQueryAccountRequest { - /** QueryAccountRequest address */ - address?: Uint8Array | null; - } - - /** Represents a QueryAccountRequest. */ - class QueryAccountRequest implements IQueryAccountRequest { - /** - * Constructs a new QueryAccountRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryAccountRequest); - - /** QueryAccountRequest address. */ - public address: Uint8Array; - - /** - * Creates a new QueryAccountRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAccountRequest instance - */ - public static create(properties?: cosmos.auth.IQueryAccountRequest): cosmos.auth.QueryAccountRequest; - - /** - * Encodes the specified QueryAccountRequest message. Does not implicitly {@link cosmos.auth.QueryAccountRequest.verify|verify} messages. - * @param m QueryAccountRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryAccountRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryAccountRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAccountRequest - * @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.auth.QueryAccountRequest; - } - - /** Properties of a QueryAccountResponse. */ - interface IQueryAccountResponse { - /** QueryAccountResponse account */ - account?: google.protobuf.IAny | null; - } - - /** Represents a QueryAccountResponse. */ - class QueryAccountResponse implements IQueryAccountResponse { - /** - * Constructs a new QueryAccountResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryAccountResponse); - - /** QueryAccountResponse account. */ - public account?: google.protobuf.IAny | null; - - /** - * Creates a new QueryAccountResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAccountResponse instance - */ - public static create(properties?: cosmos.auth.IQueryAccountResponse): cosmos.auth.QueryAccountResponse; - - /** - * Encodes the specified QueryAccountResponse message. Does not implicitly {@link cosmos.auth.QueryAccountResponse.verify|verify} messages. - * @param m QueryAccountResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryAccountResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryAccountResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAccountResponse - * @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.auth.QueryAccountResponse; - } - - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest {} - - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { - /** - * Constructs a new QueryParamsRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryParamsRequest); - - /** - * Creates a new QueryParamsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryParamsRequest instance - */ - public static create(properties?: cosmos.auth.IQueryParamsRequest): cosmos.auth.QueryParamsRequest; - - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.auth.QueryParamsRequest.verify|verify} messages. - * @param m QueryParamsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryParamsRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryParamsRequest - * @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.auth.QueryParamsRequest; - } - - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { - /** QueryParamsResponse params */ - params?: cosmos.auth.IParams | null; - } - - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { - /** - * Constructs a new QueryParamsResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryParamsResponse); - - /** QueryParamsResponse params. */ - public params?: cosmos.auth.IParams | null; - - /** - * Creates a new QueryParamsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryParamsResponse instance - */ - public static create(properties?: cosmos.auth.IQueryParamsResponse): cosmos.auth.QueryParamsResponse; - - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.auth.QueryParamsResponse.verify|verify} messages. - * @param m QueryParamsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryParamsResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryParamsResponse - * @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.auth.QueryParamsResponse; - } - } - - /** Namespace bank. */ - namespace bank { - /** Properties of a Params. */ - interface IParams { - /** Params sendEnabled */ - sendEnabled?: cosmos.bank.ISendEnabled[] | null; - - /** Params defaultSendEnabled */ - defaultSendEnabled?: boolean | null; - } - - /** Represents a Params. */ - class Params implements IParams { - /** - * Constructs a new Params. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IParams); - - /** Params sendEnabled. */ - public sendEnabled: cosmos.bank.ISendEnabled[]; - - /** Params defaultSendEnabled. */ - public defaultSendEnabled: boolean; - - /** - * Creates a new Params instance using the specified properties. - * @param [properties] Properties to set - * @returns Params instance - */ - public static create(properties?: cosmos.bank.IParams): cosmos.bank.Params; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Params; - } - - /** Properties of a SendEnabled. */ - interface ISendEnabled { - /** SendEnabled denom */ - denom?: string | null; - - /** SendEnabled enabled */ - enabled?: boolean | null; - } - - /** Represents a SendEnabled. */ - class SendEnabled implements ISendEnabled { - /** - * Constructs a new SendEnabled. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.ISendEnabled); - - /** SendEnabled denom. */ - public denom: string; - - /** SendEnabled enabled. */ - public enabled: boolean; - - /** - * Creates a new SendEnabled instance using the specified properties. - * @param [properties] Properties to set - * @returns SendEnabled instance - */ - public static create(properties?: cosmos.bank.ISendEnabled): cosmos.bank.SendEnabled; - - /** - * Encodes the specified SendEnabled message. Does not implicitly {@link cosmos.bank.SendEnabled.verify|verify} messages. - * @param m SendEnabled message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.bank.ISendEnabled, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SendEnabled message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns SendEnabled - * @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.bank.SendEnabled; - } - - /** Properties of a MsgSend. */ - interface IMsgSend { - /** MsgSend fromAddress */ - fromAddress?: Uint8Array | null; - - /** MsgSend toAddress */ - toAddress?: Uint8Array | null; - - /** MsgSend amount */ - amount?: cosmos.ICoin[] | null; - } - - /** Represents a MsgSend. */ - class MsgSend implements IMsgSend { - /** - * Constructs a new MsgSend. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IMsgSend); - - /** MsgSend fromAddress. */ - public fromAddress: Uint8Array; - - /** MsgSend toAddress. */ - public toAddress: Uint8Array; - - /** MsgSend amount. */ - public amount: cosmos.ICoin[]; - - /** - * Creates a new MsgSend instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgSend instance - */ - public static create(properties?: cosmos.bank.IMsgSend): cosmos.bank.MsgSend; - - /** - * Encodes the specified MsgSend message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.MsgSend; - } - - /** Properties of an Input. */ - interface IInput { - /** Input address */ - address?: Uint8Array | null; - - /** Input coins */ - coins?: cosmos.ICoin[] | null; - } - - /** Represents an Input. */ - class Input implements IInput { - /** - * Constructs a new Input. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IInput); - - /** Input address. */ - public address: Uint8Array; - - /** Input coins. */ - public coins: cosmos.ICoin[]; - - /** - * Creates a new Input instance using the specified properties. - * @param [properties] Properties to set - * @returns Input instance - */ - public static create(properties?: cosmos.bank.IInput): cosmos.bank.Input; - - /** - * Encodes the specified Input message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Input; - } - - /** Properties of an Output. */ - interface IOutput { - /** Output address */ - address?: Uint8Array | null; - - /** Output coins */ - coins?: cosmos.ICoin[] | null; - } - - /** Represents an Output. */ - class Output implements IOutput { - /** - * Constructs a new Output. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IOutput); - - /** Output address. */ - public address: Uint8Array; - - /** Output coins. */ - public coins: cosmos.ICoin[]; - - /** - * Creates a new Output instance using the specified properties. - * @param [properties] Properties to set - * @returns Output instance - */ - public static create(properties?: cosmos.bank.IOutput): cosmos.bank.Output; - - /** - * Encodes the specified Output message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Output; - } - - /** Properties of a MsgMultiSend. */ - interface IMsgMultiSend { - /** MsgMultiSend inputs */ - inputs?: cosmos.bank.IInput[] | null; - - /** MsgMultiSend outputs */ - outputs?: cosmos.bank.IOutput[] | null; - } - - /** Represents a MsgMultiSend. */ - class MsgMultiSend implements IMsgMultiSend { - /** - * Constructs a new MsgMultiSend. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IMsgMultiSend); - - /** MsgMultiSend inputs. */ - public inputs: cosmos.bank.IInput[]; - - /** MsgMultiSend outputs. */ - public outputs: cosmos.bank.IOutput[]; - - /** - * Creates a new MsgMultiSend instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMultiSend instance - */ - public static create(properties?: cosmos.bank.IMsgMultiSend): cosmos.bank.MsgMultiSend; - - /** - * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.MsgMultiSend; - } - - /** Properties of a Supply. */ - interface ISupply { - /** Supply total */ - total?: cosmos.ICoin[] | null; - } - - /** Represents a Supply. */ - class Supply implements ISupply { - /** - * Constructs a new Supply. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.ISupply); - - /** Supply total. */ - public total: cosmos.ICoin[]; - - /** - * Creates a new Supply instance using the specified properties. - * @param [properties] Properties to set - * @returns Supply instance - */ - public static create(properties?: cosmos.bank.ISupply): cosmos.bank.Supply; - - /** - * Encodes the specified Supply message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Supply; - } - - /** Properties of a DenomUnits. */ - interface IDenomUnits { - /** DenomUnits denom */ - denom?: string | null; - - /** DenomUnits exponent */ - exponent?: number | null; - - /** DenomUnits aliases */ - aliases?: string[] | null; - } - - /** Represents a DenomUnits. */ - class DenomUnits implements IDenomUnits { - /** - * Constructs a new DenomUnits. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IDenomUnits); - - /** DenomUnits denom. */ - public denom: string; - - /** DenomUnits exponent. */ - public exponent: number; - - /** DenomUnits aliases. */ - public aliases: string[]; - - /** - * Creates a new DenomUnits instance using the specified properties. - * @param [properties] Properties to set - * @returns DenomUnits instance - */ - public static create(properties?: cosmos.bank.IDenomUnits): cosmos.bank.DenomUnits; - - /** - * Encodes the specified DenomUnits message. Does not implicitly {@link cosmos.bank.DenomUnits.verify|verify} messages. - * @param m DenomUnits message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.bank.IDenomUnits, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DenomUnits message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DenomUnits - * @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.bank.DenomUnits; - } - - /** Properties of a Metadata. */ - interface IMetadata { - /** Metadata description */ - description?: string | null; - - /** Metadata denomUnits */ - denomUnits?: cosmos.bank.IDenomUnits[] | null; - - /** Metadata base */ - base?: string | null; - - /** Metadata display */ - display?: string | null; - } - - /** Represents a Metadata. */ - class Metadata implements IMetadata { - /** - * Constructs a new Metadata. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IMetadata); - - /** Metadata description. */ - public description: string; - - /** Metadata denomUnits. */ - public denomUnits: cosmos.bank.IDenomUnits[]; - - /** Metadata base. */ - public base: string; - - /** Metadata display. */ - public display: string; - - /** - * Creates a new Metadata instance using the specified properties. - * @param [properties] Properties to set - * @returns Metadata instance - */ - public static create(properties?: cosmos.bank.IMetadata): cosmos.bank.Metadata; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link cosmos.bank.Metadata.verify|verify} messages. - * @param m Metadata message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.bank.IMetadata, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Metadata - * @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.bank.Metadata; - } - - /** 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.bank.IQueryBalanceRequest, - callback: cosmos.bank.Query.BalanceCallback, - ): void; - - /** - * Calls Balance. - * @param request QueryBalanceRequest message or plain object - * @returns Promise - */ - public balance(request: cosmos.bank.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.bank.IQueryAllBalancesRequest, - callback: cosmos.bank.Query.AllBalancesCallback, - ): void; - - /** - * Calls AllBalances. - * @param request QueryAllBalancesRequest message or plain object - * @returns Promise - */ - public allBalances( - request: cosmos.bank.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.bank.IQueryTotalSupplyRequest, - callback: cosmos.bank.Query.TotalSupplyCallback, - ): void; - - /** - * Calls TotalSupply. - * @param request QueryTotalSupplyRequest message or plain object - * @returns Promise - */ - public totalSupply( - request: cosmos.bank.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.bank.IQuerySupplyOfRequest, - callback: cosmos.bank.Query.SupplyOfCallback, - ): void; - - /** - * Calls SupplyOf. - * @param request QuerySupplyOfRequest message or plain object - * @returns Promise - */ - public supplyOf(request: cosmos.bank.IQuerySupplyOfRequest): Promise; - } - - namespace Query { - /** - * Callback as used by {@link cosmos.bank.Query#balance}. - * @param error Error, if any - * @param [response] QueryBalanceResponse - */ - type BalanceCallback = (error: Error | null, response?: cosmos.bank.QueryBalanceResponse) => void; - - /** - * Callback as used by {@link cosmos.bank.Query#allBalances}. - * @param error Error, if any - * @param [response] QueryAllBalancesResponse - */ - type AllBalancesCallback = ( - error: Error | null, - response?: cosmos.bank.QueryAllBalancesResponse, - ) => void; - - /** - * Callback as used by {@link cosmos.bank.Query#totalSupply}. - * @param error Error, if any - * @param [response] QueryTotalSupplyResponse - */ - type TotalSupplyCallback = ( - error: Error | null, - response?: cosmos.bank.QueryTotalSupplyResponse, - ) => void; - - /** - * Callback as used by {@link cosmos.bank.Query#supplyOf}. - * @param error Error, if any - * @param [response] QuerySupplyOfResponse - */ - type SupplyOfCallback = (error: Error | null, response?: cosmos.bank.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.bank.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.bank.IQueryBalanceRequest): cosmos.bank.QueryBalanceRequest; - - /** - * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryBalanceRequest; - } - - /** Properties of a QueryBalanceResponse. */ - interface IQueryBalanceResponse { - /** QueryBalanceResponse balance */ - balance?: cosmos.ICoin | null; - } - - /** Represents a QueryBalanceResponse. */ - class QueryBalanceResponse implements IQueryBalanceResponse { - /** - * Constructs a new QueryBalanceResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryBalanceResponse); - - /** QueryBalanceResponse balance. */ - public balance?: cosmos.ICoin | null; - - /** - * Creates a new QueryBalanceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryBalanceResponse instance - */ - public static create(properties?: cosmos.bank.IQueryBalanceResponse): cosmos.bank.QueryBalanceResponse; - - /** - * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryBalanceResponse; - } - - /** Properties of a QueryAllBalancesRequest. */ - interface IQueryAllBalancesRequest { - /** QueryAllBalancesRequest address */ - address?: Uint8Array | null; - - /** QueryAllBalancesRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryAllBalancesRequest. */ - class QueryAllBalancesRequest implements IQueryAllBalancesRequest { - /** - * Constructs a new QueryAllBalancesRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryAllBalancesRequest); - - /** QueryAllBalancesRequest address. */ - public address: Uint8Array; - - /** QueryAllBalancesRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryAllBalancesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllBalancesRequest instance - */ - public static create( - properties?: cosmos.bank.IQueryAllBalancesRequest, - ): cosmos.bank.QueryAllBalancesRequest; - - /** - * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryAllBalancesRequest; - } - - /** Properties of a QueryAllBalancesResponse. */ - interface IQueryAllBalancesResponse { - /** QueryAllBalancesResponse balances */ - balances?: cosmos.ICoin[] | null; - - /** QueryAllBalancesResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - } - - /** Represents a QueryAllBalancesResponse. */ - class QueryAllBalancesResponse implements IQueryAllBalancesResponse { - /** - * Constructs a new QueryAllBalancesResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryAllBalancesResponse); - - /** QueryAllBalancesResponse balances. */ - public balances: cosmos.ICoin[]; - - /** QueryAllBalancesResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** - * Creates a new QueryAllBalancesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllBalancesResponse instance - */ - public static create( - properties?: cosmos.bank.IQueryAllBalancesResponse, - ): cosmos.bank.QueryAllBalancesResponse; - - /** - * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.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.bank.IQueryTotalSupplyRequest); - - /** - * Creates a new QueryTotalSupplyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryTotalSupplyRequest instance - */ - public static create( - properties?: cosmos.bank.IQueryTotalSupplyRequest, - ): cosmos.bank.QueryTotalSupplyRequest; - - /** - * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryTotalSupplyRequest; - } - - /** Properties of a QueryTotalSupplyResponse. */ - interface IQueryTotalSupplyResponse { - /** QueryTotalSupplyResponse supply */ - supply?: cosmos.ICoin[] | null; - } - - /** Represents a QueryTotalSupplyResponse. */ - class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { - /** - * Constructs a new QueryTotalSupplyResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryTotalSupplyResponse); - - /** QueryTotalSupplyResponse supply. */ - public supply: cosmos.ICoin[]; - - /** - * Creates a new QueryTotalSupplyResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryTotalSupplyResponse instance - */ - public static create( - properties?: cosmos.bank.IQueryTotalSupplyResponse, - ): cosmos.bank.QueryTotalSupplyResponse; - - /** - * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.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.bank.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.bank.IQuerySupplyOfRequest): cosmos.bank.QuerySupplyOfRequest; - - /** - * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QuerySupplyOfRequest; - } - - /** Properties of a QuerySupplyOfResponse. */ - interface IQuerySupplyOfResponse { - /** QuerySupplyOfResponse amount */ - amount?: cosmos.ICoin | null; - } - - /** Represents a QuerySupplyOfResponse. */ - class QuerySupplyOfResponse implements IQuerySupplyOfResponse { - /** - * Constructs a new QuerySupplyOfResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQuerySupplyOfResponse); - - /** QuerySupplyOfResponse amount. */ - public amount?: cosmos.ICoin | null; - - /** - * Creates a new QuerySupplyOfResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QuerySupplyOfResponse instance - */ - public static create( - properties?: cosmos.bank.IQuerySupplyOfResponse, - ): cosmos.bank.QuerySupplyOfResponse; - - /** - * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QuerySupplyOfResponse; - } - } - - /** Namespace crypto. */ - namespace crypto { - /** Properties of a PublicKey. */ - interface IPublicKey { - /** PublicKey secp256k1 */ - secp256k1?: Uint8Array | null; - - /** PublicKey ed25519 */ - ed25519?: Uint8Array | null; - - /** PublicKey sr25519 */ - sr25519?: Uint8Array | null; - - /** PublicKey multisig */ - multisig?: cosmos.crypto.IPubKeyMultisigThreshold | null; - - /** PublicKey secp256r1 */ - secp256r1?: Uint8Array | null; - - /** PublicKey anyPubkey */ - anyPubkey?: google.protobuf.IAny | null; - } - - /** Represents a PublicKey. */ - class PublicKey implements IPublicKey { - /** - * Constructs a new PublicKey. - * @param [p] Properties to set - */ - constructor(p?: cosmos.crypto.IPublicKey); - - /** PublicKey secp256k1. */ - public secp256k1: Uint8Array; - - /** PublicKey ed25519. */ - public ed25519: Uint8Array; - - /** PublicKey sr25519. */ - public sr25519: Uint8Array; - - /** PublicKey multisig. */ - public multisig?: cosmos.crypto.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.crypto.IPublicKey): cosmos.crypto.PublicKey; - - /** - * Encodes the specified PublicKey message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.PublicKey; - } - - /** Properties of a PubKeyMultisigThreshold. */ - interface IPubKeyMultisigThreshold { - /** PubKeyMultisigThreshold threshold */ - threshold?: number | null; - - /** PubKeyMultisigThreshold publicKeys */ - publicKeys?: cosmos.crypto.IPublicKey[] | null; - } - - /** Represents a PubKeyMultisigThreshold. */ - class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { - /** - * Constructs a new PubKeyMultisigThreshold. - * @param [p] Properties to set - */ - constructor(p?: cosmos.crypto.IPubKeyMultisigThreshold); - - /** PubKeyMultisigThreshold threshold. */ - public threshold: number; - - /** PubKeyMultisigThreshold publicKeys. */ - public publicKeys: cosmos.crypto.IPublicKey[]; - - /** - * Creates a new PubKeyMultisigThreshold instance using the specified properties. - * @param [properties] Properties to set - * @returns PubKeyMultisigThreshold instance - */ - public static create( - properties?: cosmos.crypto.IPubKeyMultisigThreshold, - ): cosmos.crypto.PubKeyMultisigThreshold; - - /** - * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.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.crypto.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.crypto.IMultiSignature): cosmos.crypto.MultiSignature; - - /** - * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.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.crypto.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.crypto.ICompactBitArray): cosmos.crypto.CompactBitArray; - - /** - * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.CompactBitArray; - } - } - - /** Namespace query. */ - namespace query { - /** Properties of a PageRequest. */ - interface IPageRequest { - /** PageRequest key */ - key?: Uint8Array | null; - - /** PageRequest offset */ - offset?: Long | null; - - /** PageRequest limit */ - limit?: Long | null; - - /** PageRequest countTotal */ - countTotal?: boolean | null; - } - - /** Represents a PageRequest. */ - class PageRequest implements IPageRequest { - /** - * Constructs a new PageRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.query.IPageRequest); - - /** PageRequest key. */ - public key: Uint8Array; - - /** PageRequest offset. */ - public offset: Long; - - /** PageRequest limit. */ - public limit: Long; - - /** PageRequest countTotal. */ - public countTotal: boolean; - - /** - * Creates a new PageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PageRequest instance - */ - public static create(properties?: cosmos.query.IPageRequest): cosmos.query.PageRequest; - - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.query.PageRequest.verify|verify} messages. - * @param m PageRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.query.IPageRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageRequest - * @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.query.PageRequest; - } - - /** Properties of a PageResponse. */ - interface IPageResponse { - /** PageResponse nextKey */ - nextKey?: Uint8Array | null; - - /** PageResponse total */ - total?: Long | null; - } - - /** Represents a PageResponse. */ - class PageResponse implements IPageResponse { - /** - * Constructs a new PageResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.query.IPageResponse); - - /** PageResponse nextKey. */ - public nextKey: Uint8Array; - - /** PageResponse total. */ - public total: Long; - - /** - * Creates a new PageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PageResponse instance - */ - public static create(properties?: cosmos.query.IPageResponse): cosmos.query.PageResponse; - - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.query.PageResponse.verify|verify} messages. - * @param m PageResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.query.IPageResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageResponse - * @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.query.PageResponse; - } - } - - /** Namespace tx. */ - namespace tx { - /** Properties of a Tx. */ - interface ITx { - /** Tx body */ - body?: cosmos.tx.ITxBody | null; - - /** Tx authInfo */ - authInfo?: cosmos.tx.IAuthInfo | null; - - /** Tx signatures */ - signatures?: Uint8Array[] | null; - } - - /** Represents a Tx. */ - class Tx implements ITx { - /** - * Constructs a new Tx. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ITx); - - /** Tx body. */ - public body?: cosmos.tx.ITxBody | null; - - /** Tx authInfo. */ - public authInfo?: cosmos.tx.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.tx.ITx): cosmos.tx.Tx; - - /** - * Encodes the specified Tx message. Does not implicitly {@link cosmos.tx.Tx.verify|verify} messages. - * @param m Tx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.ITx, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Tx; - } - - /** Properties of a TxRaw. */ - interface ITxRaw { - /** TxRaw bodyBytes */ - bodyBytes?: Uint8Array | null; - - /** TxRaw authInfoBytes */ - authInfoBytes?: Uint8Array | null; - - /** TxRaw signatures */ - signatures?: Uint8Array[] | null; - } - - /** Represents a TxRaw. */ - class TxRaw implements ITxRaw { - /** - * Constructs a new TxRaw. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ITxRaw); - - /** TxRaw bodyBytes. */ - public bodyBytes: Uint8Array; - - /** TxRaw authInfoBytes. */ - public authInfoBytes: Uint8Array; - - /** TxRaw signatures. */ - public signatures: Uint8Array[]; - - /** - * Creates a new TxRaw instance using the specified properties. - * @param [properties] Properties to set - * @returns TxRaw instance - */ - public static create(properties?: cosmos.tx.ITxRaw): cosmos.tx.TxRaw; - - /** - * Encodes the specified TxRaw message. Does not implicitly {@link cosmos.tx.TxRaw.verify|verify} messages. - * @param m TxRaw message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.ITxRaw, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TxRaw message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns TxRaw - * @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.tx.TxRaw; - } - - /** Properties of a SignDoc. */ - interface ISignDoc { - /** SignDoc bodyBytes */ - bodyBytes?: Uint8Array | null; - - /** SignDoc authInfoBytes */ - authInfoBytes?: Uint8Array | null; - - /** SignDoc chainId */ - chainId?: string | null; - - /** SignDoc accountNumber */ - accountNumber?: Long | null; - - /** SignDoc accountSequence */ - accountSequence?: Long | null; - } - - /** Represents a SignDoc. */ - class SignDoc implements ISignDoc { - /** - * Constructs a new SignDoc. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ISignDoc); - - /** SignDoc bodyBytes. */ - public bodyBytes: Uint8Array; - - /** SignDoc authInfoBytes. */ - public authInfoBytes: Uint8Array; - - /** SignDoc chainId. */ - public chainId: string; - - /** SignDoc accountNumber. */ - public accountNumber: Long; - - /** SignDoc accountSequence. */ - public accountSequence: Long; - - /** - * Creates a new SignDoc instance using the specified properties. - * @param [properties] Properties to set - * @returns SignDoc instance - */ - public static create(properties?: cosmos.tx.ISignDoc): cosmos.tx.SignDoc; - - /** - * Encodes the specified SignDoc message. Does not implicitly {@link cosmos.tx.SignDoc.verify|verify} messages. - * @param m SignDoc message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.ISignDoc, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.SignDoc; - } - - /** Properties of a TxBody. */ - interface ITxBody { - /** TxBody messages */ - messages?: google.protobuf.IAny[] | null; - - /** TxBody memo */ - memo?: string | null; - - /** TxBody timeoutHeight */ - timeoutHeight?: 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 [p] Properties to set - */ - constructor(p?: cosmos.tx.ITxBody); - - /** TxBody messages. */ - public messages: google.protobuf.IAny[]; - - /** TxBody memo. */ - public memo: string; - - /** TxBody timeoutHeight. */ - public timeoutHeight: 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.tx.ITxBody): cosmos.tx.TxBody; - - /** - * Encodes the specified TxBody message. Does not implicitly {@link cosmos.tx.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.tx.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.tx.TxBody; - } - - /** Properties of an AuthInfo. */ - interface IAuthInfo { - /** AuthInfo signerInfos */ - signerInfos?: cosmos.tx.ISignerInfo[] | null; - - /** AuthInfo fee */ - fee?: cosmos.tx.IFee | null; - } - - /** Represents an AuthInfo. */ - class AuthInfo implements IAuthInfo { - /** - * Constructs a new AuthInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.IAuthInfo); - - /** AuthInfo signerInfos. */ - public signerInfos: cosmos.tx.ISignerInfo[]; - - /** AuthInfo fee. */ - public fee?: cosmos.tx.IFee | null; - - /** - * Creates a new AuthInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthInfo instance - */ - public static create(properties?: cosmos.tx.IAuthInfo): cosmos.tx.AuthInfo; - - /** - * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos.tx.AuthInfo.verify|verify} messages. - * @param m AuthInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.IAuthInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.AuthInfo; - } - - /** Properties of a SignerInfo. */ - interface ISignerInfo { - /** SignerInfo publicKey */ - publicKey?: cosmos.crypto.IPublicKey | null; - - /** SignerInfo modeInfo */ - modeInfo?: cosmos.tx.IModeInfo | null; - } - - /** Represents a SignerInfo. */ - class SignerInfo implements ISignerInfo { - /** - * Constructs a new SignerInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ISignerInfo); - - /** SignerInfo publicKey. */ - public publicKey?: cosmos.crypto.IPublicKey | null; - - /** SignerInfo modeInfo. */ - public modeInfo?: cosmos.tx.IModeInfo | null; - - /** - * Creates a new SignerInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SignerInfo instance - */ - public static create(properties?: cosmos.tx.ISignerInfo): cosmos.tx.SignerInfo; - - /** - * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos.tx.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.tx.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.tx.SignerInfo; - } - - /** Properties of a ModeInfo. */ - interface IModeInfo { - /** ModeInfo single */ - single?: cosmos.tx.ModeInfo.ISingle | null; - - /** ModeInfo multi */ - multi?: cosmos.tx.ModeInfo.IMulti | null; - } - - /** Represents a ModeInfo. */ - class ModeInfo implements IModeInfo { - /** - * Constructs a new ModeInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.IModeInfo); - - /** ModeInfo single. */ - public single?: cosmos.tx.ModeInfo.ISingle | null; - - /** ModeInfo multi. */ - public multi?: cosmos.tx.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.tx.IModeInfo): cosmos.tx.ModeInfo; - - /** - * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos.tx.ModeInfo.verify|verify} messages. - * @param m ModeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.IModeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo; - } - - namespace ModeInfo { - /** Properties of a Single. */ - interface ISingle { - /** Single mode */ - mode?: cosmos.tx.signing.SignMode | null; + /** BaseAccount sequence */ + sequence?: Long | null; } - /** Represents a Single. */ - class Single implements ISingle { + /** Represents a BaseAccount. */ + class BaseAccount implements IBaseAccount { /** - * Constructs a new Single. + * Constructs a new BaseAccount. * @param [p] Properties to set */ - constructor(p?: cosmos.tx.ModeInfo.ISingle); + constructor(p?: cosmos.auth.v1beta1.IBaseAccount); - /** Single mode. */ - public mode: cosmos.tx.signing.SignMode; + /** BaseAccount address. */ + public address: string; + + /** BaseAccount pubKey. */ + public pubKey?: google.protobuf.IAny | null; + + /** BaseAccount accountNumber. */ + public accountNumber: Long; + + /** BaseAccount sequence. */ + public sequence: Long; /** - * Creates a new Single instance using the specified properties. + * Creates a new BaseAccount instance using the specified properties. * @param [properties] Properties to set - * @returns Single instance + * @returns BaseAccount instance */ - public static create(properties?: cosmos.tx.ModeInfo.ISingle): cosmos.tx.ModeInfo.Single; + public static create(properties?: cosmos.auth.v1beta1.IBaseAccount): cosmos.auth.v1beta1.BaseAccount; /** - * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.ModeInfo.Single.verify|verify} messages. - * @param m Single message or plain object to encode + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.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.tx.ModeInfo.ISingle, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.auth.v1beta1.IBaseAccount, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Single message from the specified reader or buffer. + * 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 Single + * @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.tx.ModeInfo.Single; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.v1beta1.BaseAccount; } - /** Properties of a Multi. */ - interface IMulti { - /** Multi bitarray */ - bitarray?: cosmos.crypto.ICompactBitArray | null; + /** Properties of a ModuleAccount. */ + interface IModuleAccount { + /** ModuleAccount baseAccount */ + baseAccount?: cosmos.auth.v1beta1.IBaseAccount | null; - /** Multi modeInfos */ - modeInfos?: cosmos.tx.IModeInfo[] | null; + /** ModuleAccount name */ + name?: string | null; + + /** ModuleAccount permissions */ + permissions?: string[] | null; } - /** Represents a Multi. */ - class Multi implements IMulti { + /** Represents a ModuleAccount. */ + class ModuleAccount implements IModuleAccount { /** - * Constructs a new Multi. + * Constructs a new ModuleAccount. * @param [p] Properties to set */ - constructor(p?: cosmos.tx.ModeInfo.IMulti); + constructor(p?: cosmos.auth.v1beta1.IModuleAccount); - /** Multi bitarray. */ - public bitarray?: cosmos.crypto.ICompactBitArray | null; + /** ModuleAccount baseAccount. */ + public baseAccount?: cosmos.auth.v1beta1.IBaseAccount | null; - /** Multi modeInfos. */ - public modeInfos: cosmos.tx.IModeInfo[]; + /** ModuleAccount name. */ + public name: string; + + /** ModuleAccount permissions. */ + public permissions: string[]; /** - * Creates a new Multi instance using the specified properties. + * Creates a new ModuleAccount instance using the specified properties. * @param [properties] Properties to set - * @returns Multi instance - */ - public static create(properties?: cosmos.tx.ModeInfo.IMulti): cosmos.tx.ModeInfo.Multi; - - /** - * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.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.tx.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.tx.ModeInfo.Multi; - } - } - - /** Properties of a Fee. */ - interface IFee { - /** Fee amount */ - amount?: cosmos.ICoin[] | null; - - /** Fee gasLimit */ - gasLimit?: Long | null; - } - - /** Represents a Fee. */ - class Fee implements IFee { - /** - * Constructs a new Fee. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.IFee); - - /** Fee amount. */ - public amount: cosmos.ICoin[]; - - /** Fee gasLimit. */ - public gasLimit: Long; - - /** - * Creates a new Fee instance using the specified properties. - * @param [properties] Properties to set - * @returns Fee instance - */ - public static create(properties?: cosmos.tx.IFee): cosmos.tx.Fee; - - /** - * Encodes the specified Fee message. Does not implicitly {@link cosmos.tx.Fee.verify|verify} messages. - * @param m Fee message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.IFee, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Fee; - } - - /** Namespace signing. */ - namespace signing { - /** 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 SignatureDescriptors. */ - interface ISignatureDescriptors { - /** SignatureDescriptors signatures */ - signatures?: cosmos.tx.signing.ISignatureDescriptor[] | null; - } - - /** Represents a SignatureDescriptors. */ - class SignatureDescriptors implements ISignatureDescriptors { - /** - * Constructs a new SignatureDescriptors. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.ISignatureDescriptors); - - /** SignatureDescriptors signatures. */ - public signatures: cosmos.tx.signing.ISignatureDescriptor[]; - - /** - * Creates a new SignatureDescriptors instance using the specified properties. - * @param [properties] Properties to set - * @returns SignatureDescriptors instance + * @returns ModuleAccount instance */ public static create( - properties?: cosmos.tx.signing.ISignatureDescriptors, - ): cosmos.tx.signing.SignatureDescriptors; + properties?: cosmos.auth.v1beta1.IModuleAccount, + ): cosmos.auth.v1beta1.ModuleAccount; /** - * Encodes the specified SignatureDescriptors message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptors.verify|verify} messages. - * @param m SignatureDescriptors message or plain object to encode + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.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.tx.signing.ISignatureDescriptors, - w?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos.auth.v1beta1.IModuleAccount, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignatureDescriptors message from the specified reader or buffer. + * 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 SignatureDescriptors + * @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.tx.signing.SignatureDescriptors; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.v1beta1.ModuleAccount; } - /** Properties of a SignatureDescriptor. */ - interface ISignatureDescriptor { - /** SignatureDescriptor publicKey */ - publicKey?: cosmos.crypto.IPublicKey | null; + /** Properties of a Params. */ + interface IParams { + /** Params maxMemoCharacters */ + maxMemoCharacters?: Long | null; - /** SignatureDescriptor data */ - data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + /** Params txSigLimit */ + txSigLimit?: Long | null; + + /** Params txSizeCostPerByte */ + txSizeCostPerByte?: Long | null; + + /** Params sigVerifyCostEd25519 */ + sigVerifyCostEd25519?: Long | null; + + /** Params sigVerifyCostSecp256k1 */ + sigVerifyCostSecp256k1?: Long | null; } - /** Represents a SignatureDescriptor. */ - class SignatureDescriptor implements ISignatureDescriptor { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new SignatureDescriptor. + * Constructs a new Params. * @param [p] Properties to set */ - constructor(p?: cosmos.tx.signing.ISignatureDescriptor); + constructor(p?: cosmos.auth.v1beta1.IParams); - /** SignatureDescriptor publicKey. */ - public publicKey?: cosmos.crypto.IPublicKey | null; + /** Params maxMemoCharacters. */ + public maxMemoCharacters: Long; - /** SignatureDescriptor data. */ - public data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + /** Params txSigLimit. */ + public txSigLimit: Long; + + /** Params txSizeCostPerByte. */ + public txSizeCostPerByte: Long; + + /** Params sigVerifyCostEd25519. */ + public sigVerifyCostEd25519: Long; + + /** Params sigVerifyCostSecp256k1. */ + public sigVerifyCostSecp256k1: Long; /** - * Creates a new SignatureDescriptor instance using the specified properties. + * Creates a new Params instance using the specified properties. * @param [properties] Properties to set - * @returns SignatureDescriptor instance + * @returns Params instance */ - public static create( - properties?: cosmos.tx.signing.ISignatureDescriptor, - ): cosmos.tx.signing.SignatureDescriptor; + public static create(properties?: cosmos.auth.v1beta1.IParams): cosmos.auth.v1beta1.Params; /** - * Encodes the specified SignatureDescriptor message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.verify|verify} messages. - * @param m SignatureDescriptor message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.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.tx.signing.ISignatureDescriptor, - w?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos.auth.v1beta1.IParams, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignatureDescriptor message from the specified reader or buffer. + * 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 SignatureDescriptor + * @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.tx.signing.SignatureDescriptor; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.v1beta1.Params; } - namespace SignatureDescriptor { - /** Properties of a Data. */ - interface IData { - /** Data single */ - single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; - - /** Data multi */ - multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; - } - - /** Represents a Data. */ - class Data implements IData { - /** - * Constructs a new Data. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.SignatureDescriptor.IData); - - /** Data single. */ - public single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; - - /** Data multi. */ - public multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; - - /** Data sum. */ - public sum?: "single" | "multi"; - - /** - * Creates a new Data instance using the specified properties. - * @param [properties] Properties to set - * @returns Data instance - */ - public static create( - properties?: cosmos.tx.signing.SignatureDescriptor.IData, - ): cosmos.tx.signing.SignatureDescriptor.Data; - - /** - * Encodes the specified Data message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.verify|verify} messages. - * @param m Data message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmos.tx.signing.SignatureDescriptor.IData, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a Data message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Data - * @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.tx.signing.SignatureDescriptor.Data; - } - - namespace Data { - /** Properties of a Single. */ - interface ISingle { - /** Single mode */ - mode?: cosmos.tx.signing.SignMode | null; - - /** Single signature */ - signature?: Uint8Array | null; - } - - /** Represents a Single. */ - class Single implements ISingle { - /** - * Constructs a new Single. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle); - - /** Single mode. */ - public mode: cosmos.tx.signing.SignMode; - - /** Single signature. */ - public signature: Uint8Array; - - /** - * Creates a new Single instance using the specified properties. - * @param [properties] Properties to set - * @returns Single instance - */ - public static create( - properties?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle, - ): cosmos.tx.signing.SignatureDescriptor.Data.Single; - - /** - * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.Single; - } - - /** Properties of a Multi. */ - interface IMulti { - /** Multi bitarray */ - bitarray?: cosmos.crypto.ICompactBitArray | null; - - /** Multi signatures */ - signatures?: cosmos.tx.signing.SignatureDescriptor.IData[] | null; - } - - /** Represents a Multi. */ - class Multi implements IMulti { - /** - * Constructs a new Multi. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti); - - /** Multi bitarray. */ - public bitarray?: cosmos.crypto.ICompactBitArray | null; - - /** Multi signatures. */ - public signatures: cosmos.tx.signing.SignatureDescriptor.IData[]; - - /** - * Creates a new Multi instance using the specified properties. - * @param [properties] Properties to set - * @returns Multi instance - */ - public static create( - properties?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti, - ): cosmos.tx.signing.SignatureDescriptor.Data.Multi; - - /** - * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.Multi; - } - } - } - } - } -} - -/** Namespace ibc. */ -export namespace ibc { - /** Namespace channel. */ - namespace channel { - /** Properties of a MsgChannelOpenInit. */ - interface IMsgChannelOpenInit { - /** MsgChannelOpenInit portId */ - portId?: string | null; - - /** MsgChannelOpenInit channelId */ - channelId?: string | null; - - /** MsgChannelOpenInit channel */ - channel?: ibc.channel.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?: ibc.channel.IMsgChannelOpenInit); - - /** MsgChannelOpenInit portId. */ - public portId: string; - - /** MsgChannelOpenInit channelId. */ - public channelId: string; - - /** MsgChannelOpenInit channel. */ - public channel?: ibc.channel.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?: ibc.channel.IMsgChannelOpenInit): ibc.channel.MsgChannelOpenInit; - - /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgChannelOpenInit; - } - - /** Properties of a MsgChannelOpenTry. */ - interface IMsgChannelOpenTry { - /** MsgChannelOpenTry portId */ - portId?: string | null; - - /** MsgChannelOpenTry channelId */ - channelId?: string | null; - - /** MsgChannelOpenTry channel */ - channel?: ibc.channel.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion */ - counterpartyVersion?: string | null; - - /** MsgChannelOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgChannelOpenTry proofHeight */ - proofHeight?: 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?: ibc.channel.IMsgChannelOpenTry); - - /** MsgChannelOpenTry portId. */ - public portId: string; - - /** MsgChannelOpenTry channelId. */ - public channelId: string; - - /** MsgChannelOpenTry channel. */ - public channel?: ibc.channel.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion. */ - public counterpartyVersion: string; - - /** MsgChannelOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelOpenTry proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgChannelOpenTry): ibc.channel.MsgChannelOpenTry; - - /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: 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?: ibc.channel.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: 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?: ibc.channel.IMsgChannelOpenAck): ibc.channel.MsgChannelOpenAck; - - /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: 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?: ibc.channel.IMsgChannelOpenConfirm); - - /** MsgChannelOpenConfirm portId. */ - public portId: string; - - /** MsgChannelOpenConfirm channelId. */ - public channelId: string; - - /** MsgChannelOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgChannelOpenConfirm proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgChannelOpenConfirm, - ): ibc.channel.MsgChannelOpenConfirm; - - /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: ibc.channel.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?: ibc.channel.IMsgChannelCloseInit): ibc.channel.MsgChannelCloseInit; - - /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: 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?: ibc.channel.IMsgChannelCloseConfirm); - - /** MsgChannelCloseConfirm portId. */ - public portId: string; - - /** MsgChannelCloseConfirm channelId. */ - public channelId: string; - - /** MsgChannelCloseConfirm proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelCloseConfirm proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgChannelCloseConfirm, - ): ibc.channel.MsgChannelCloseConfirm; - - /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgChannelCloseConfirm; - } - - /** Properties of a MsgRecvPacket. */ - interface IMsgRecvPacket { - /** MsgRecvPacket packet */ - packet?: ibc.channel.IPacket | null; - - /** MsgRecvPacket proof */ - proof?: Uint8Array | null; - - /** MsgRecvPacket proofHeight */ - proofHeight?: Long | null; - - /** MsgRecvPacket signer */ - signer?: Uint8Array | null; - } - - /** Represents a MsgRecvPacket. */ - class MsgRecvPacket implements IMsgRecvPacket { - /** - * Constructs a new MsgRecvPacket. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IMsgRecvPacket); - - /** MsgRecvPacket packet. */ - public packet?: ibc.channel.IPacket | null; - - /** MsgRecvPacket proof. */ - public proof: Uint8Array; - - /** MsgRecvPacket proofHeight. */ - public proofHeight: Long; - - /** MsgRecvPacket signer. */ - public signer: Uint8Array; - - /** - * Creates a new MsgRecvPacket instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgRecvPacket instance - */ - public static create(properties?: ibc.channel.IMsgRecvPacket): ibc.channel.MsgRecvPacket; - - /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.channel.MsgRecvPacket.verify|verify} messages. - * @param m MsgRecvPacket message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IMsgRecvPacket, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgRecvPacket - * @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): ibc.channel.MsgRecvPacket; - } - - /** Properties of a MsgTimeout. */ - interface IMsgTimeout { - /** MsgTimeout packet */ - packet?: ibc.channel.IPacket | null; - - /** MsgTimeout proof */ - proof?: Uint8Array | null; - - /** MsgTimeout proofHeight */ - proofHeight?: Long | null; - - /** MsgTimeout nextSequenceRecv */ - nextSequenceRecv?: 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?: ibc.channel.IMsgTimeout); - - /** MsgTimeout packet. */ - public packet?: ibc.channel.IPacket | null; - - /** MsgTimeout proof. */ - public proof: Uint8Array; - - /** MsgTimeout proofHeight. */ - public proofHeight: Long; - - /** MsgTimeout nextSequenceRecv. */ - public nextSequenceRecv: 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?: ibc.channel.IMsgTimeout): ibc.channel.MsgTimeout; - - /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgTimeout; - } - - /** Properties of a MsgAcknowledgement. */ - interface IMsgAcknowledgement { - /** MsgAcknowledgement packet */ - packet?: ibc.channel.IPacket | null; - - /** MsgAcknowledgement acknowledgement */ - acknowledgement?: Uint8Array | null; - - /** MsgAcknowledgement proof */ - proof?: Uint8Array | null; - - /** MsgAcknowledgement proofHeight */ - proofHeight?: 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?: ibc.channel.IMsgAcknowledgement); - - /** MsgAcknowledgement packet. */ - public packet?: ibc.channel.IPacket | null; - - /** MsgAcknowledgement acknowledgement. */ - public acknowledgement: Uint8Array; - - /** MsgAcknowledgement proof. */ - public proof: Uint8Array; - - /** MsgAcknowledgement proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgAcknowledgement): ibc.channel.MsgAcknowledgement; - - /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgAcknowledgement; - } - - /** Properties of a Channel. */ - interface IChannel { - /** Channel state */ - state?: ibc.channel.State | null; - - /** Channel ordering */ - ordering?: ibc.channel.Order | null; - - /** Channel counterparty */ - counterparty?: ibc.channel.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?: ibc.channel.IChannel); - - /** Channel state. */ - public state: ibc.channel.State; - - /** Channel ordering. */ - public ordering: ibc.channel.Order; - - /** Channel counterparty. */ - public counterparty?: ibc.channel.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?: ibc.channel.IChannel): ibc.channel.Channel; - - /** - * Encodes the specified Channel message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.Channel; - } - - /** Properties of an IdentifiedChannel. */ - interface IIdentifiedChannel { - /** IdentifiedChannel state */ - state?: ibc.channel.State | null; - - /** IdentifiedChannel ordering */ - ordering?: ibc.channel.Order | null; - - /** IdentifiedChannel counterparty */ - counterparty?: ibc.channel.ICounterparty | null; - - /** IdentifiedChannel connectionHops */ - connectionHops?: string[] | null; - - /** IdentifiedChannel version */ - version?: string | null; - - /** IdentifiedChannel portId */ - portId?: string | null; - - /** IdentifiedChannel channelId */ - channelId?: string | null; - } - - /** Represents an IdentifiedChannel. */ - class IdentifiedChannel implements IIdentifiedChannel { - /** - * Constructs a new IdentifiedChannel. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IIdentifiedChannel); - - /** IdentifiedChannel state. */ - public state: ibc.channel.State; - - /** IdentifiedChannel ordering. */ - public ordering: ibc.channel.Order; - - /** IdentifiedChannel counterparty. */ - public counterparty?: ibc.channel.ICounterparty | null; - - /** IdentifiedChannel connectionHops. */ - public connectionHops: string[]; - - /** IdentifiedChannel version. */ - public version: string; - - /** IdentifiedChannel portId. */ - public portId: string; - - /** IdentifiedChannel channelId. */ - public channelId: string; - - /** - * Creates a new IdentifiedChannel instance using the specified properties. - * @param [properties] Properties to set - * @returns IdentifiedChannel instance - */ - public static create(properties?: ibc.channel.IIdentifiedChannel): ibc.channel.IdentifiedChannel; - - /** - * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.channel.IdentifiedChannel.verify|verify} messages. - * @param m IdentifiedChannel message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IIdentifiedChannel, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IdentifiedChannel message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns IdentifiedChannel - * @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): ibc.channel.IdentifiedChannel; - } - - /** 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?: ibc.channel.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?: ibc.channel.ICounterparty): ibc.channel.Counterparty; - - /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.Counterparty; - } - - /** Properties of a Packet. */ - interface IPacket { - /** Packet sequence */ - sequence?: 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?: Long | null; - - /** Packet timeoutTimestamp */ - timeoutTimestamp?: Long | null; - } - - /** Represents a Packet. */ - class Packet implements IPacket { - /** - * Constructs a new Packet. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IPacket); - - /** Packet sequence. */ - public sequence: 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: Long; - - /** Packet timeoutTimestamp. */ - public timeoutTimestamp: Long; - - /** - * Creates a new Packet instance using the specified properties. - * @param [properties] Properties to set - * @returns Packet instance - */ - public static create(properties?: ibc.channel.IPacket): ibc.channel.Packet; - - /** - * Encodes the specified Packet message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.Packet; - } - - /** Properties of a PacketAckCommitment. */ - interface IPacketAckCommitment { - /** PacketAckCommitment portId */ - portId?: string | null; - - /** PacketAckCommitment channelId */ - channelId?: string | null; - - /** PacketAckCommitment sequence */ - sequence?: Long | null; - - /** PacketAckCommitment hash */ - hash?: Uint8Array | null; - } - - /** Represents a PacketAckCommitment. */ - class PacketAckCommitment implements IPacketAckCommitment { - /** - * Constructs a new PacketAckCommitment. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IPacketAckCommitment); - - /** PacketAckCommitment portId. */ - public portId: string; - - /** PacketAckCommitment channelId. */ - public channelId: string; - - /** PacketAckCommitment sequence. */ - public sequence: Long; - - /** PacketAckCommitment hash. */ - public hash: Uint8Array; - - /** - * Creates a new PacketAckCommitment instance using the specified properties. - * @param [properties] Properties to set - * @returns PacketAckCommitment instance - */ - public static create(properties?: ibc.channel.IPacketAckCommitment): ibc.channel.PacketAckCommitment; - - /** - * Encodes the specified PacketAckCommitment message. Does not implicitly {@link ibc.channel.PacketAckCommitment.verify|verify} messages. - * @param m PacketAckCommitment message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IPacketAckCommitment, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PacketAckCommitment message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PacketAckCommitment - * @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): ibc.channel.PacketAckCommitment; - } - - /** 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 Channel. - * @param request QueryChannelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelResponse - */ - public channel( - request: ibc.channel.IQueryChannelRequest, - callback: ibc.channel.Query.ChannelCallback, - ): void; - - /** - * Calls Channel. - * @param request QueryChannelRequest message or plain object - * @returns Promise - */ - public channel(request: ibc.channel.IQueryChannelRequest): Promise; - - /** - * Calls Channels. - * @param request QueryChannelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelsResponse - */ - public channels( - request: ibc.channel.IQueryChannelsRequest, - callback: ibc.channel.Query.ChannelsCallback, - ): void; - - /** - * Calls Channels. - * @param request QueryChannelsRequest message or plain object - * @returns Promise - */ - public channels(request: ibc.channel.IQueryChannelsRequest): Promise; - - /** - * Calls ConnectionChannels. - * @param request QueryConnectionChannelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse - */ - public connectionChannels( - request: ibc.channel.IQueryConnectionChannelsRequest, - callback: ibc.channel.Query.ConnectionChannelsCallback, - ): void; - - /** - * Calls ConnectionChannels. - * @param request QueryConnectionChannelsRequest message or plain object - * @returns Promise - */ - public connectionChannels( - request: ibc.channel.IQueryConnectionChannelsRequest, - ): Promise; - - /** - * Calls PacketCommitment. - * @param request QueryPacketCommitmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse - */ - public packetCommitment( - request: ibc.channel.IQueryPacketCommitmentRequest, - callback: ibc.channel.Query.PacketCommitmentCallback, - ): void; - - /** - * Calls PacketCommitment. - * @param request QueryPacketCommitmentRequest message or plain object - * @returns Promise - */ - public packetCommitment( - request: ibc.channel.IQueryPacketCommitmentRequest, - ): Promise; - - /** - * Calls PacketCommitments. - * @param request QueryPacketCommitmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse - */ - public packetCommitments( - request: ibc.channel.IQueryPacketCommitmentsRequest, - callback: ibc.channel.Query.PacketCommitmentsCallback, - ): void; - - /** - * Calls PacketCommitments. - * @param request QueryPacketCommitmentsRequest message or plain object - * @returns Promise - */ - public packetCommitments( - request: ibc.channel.IQueryPacketCommitmentsRequest, - ): Promise; - - /** - * Calls PacketAcknowledgement. - * @param request QueryPacketAcknowledgementRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse - */ - public packetAcknowledgement( - request: ibc.channel.IQueryPacketAcknowledgementRequest, - callback: ibc.channel.Query.PacketAcknowledgementCallback, - ): void; - - /** - * Calls PacketAcknowledgement. - * @param request QueryPacketAcknowledgementRequest message or plain object - * @returns Promise - */ - public packetAcknowledgement( - request: ibc.channel.IQueryPacketAcknowledgementRequest, - ): Promise; - - /** - * Calls UnrelayedPackets. - * @param request QueryUnrelayedPacketsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUnrelayedPacketsResponse - */ - public unrelayedPackets( - request: ibc.channel.IQueryUnrelayedPacketsRequest, - callback: ibc.channel.Query.UnrelayedPacketsCallback, - ): void; - - /** - * Calls UnrelayedPackets. - * @param request QueryUnrelayedPacketsRequest message or plain object - * @returns Promise - */ - public unrelayedPackets( - request: ibc.channel.IQueryUnrelayedPacketsRequest, - ): Promise; - - /** - * Calls NextSequenceReceive. - * @param request QueryNextSequenceReceiveRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse - */ - public nextSequenceReceive( - request: ibc.channel.IQueryNextSequenceReceiveRequest, - callback: ibc.channel.Query.NextSequenceReceiveCallback, - ): void; - - /** - * Calls NextSequenceReceive. - * @param request QueryNextSequenceReceiveRequest message or plain object - * @returns Promise - */ - public nextSequenceReceive( - request: ibc.channel.IQueryNextSequenceReceiveRequest, - ): Promise; - } - - namespace Query { - /** - * Callback as used by {@link ibc.channel.Query#channel}. - * @param error Error, if any - * @param [response] QueryChannelResponse - */ - type ChannelCallback = (error: Error | null, response?: ibc.channel.QueryChannelResponse) => void; - - /** - * Callback as used by {@link ibc.channel.Query#channels}. - * @param error Error, if any - * @param [response] QueryChannelsResponse - */ - type ChannelsCallback = (error: Error | null, response?: ibc.channel.QueryChannelsResponse) => void; - - /** - * Callback as used by {@link ibc.channel.Query#connectionChannels}. - * @param error Error, if any - * @param [response] QueryConnectionChannelsResponse - */ - type ConnectionChannelsCallback = ( - error: Error | null, - response?: ibc.channel.QueryConnectionChannelsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#packetCommitment}. - * @param error Error, if any - * @param [response] QueryPacketCommitmentResponse - */ - type PacketCommitmentCallback = ( - error: Error | null, - response?: ibc.channel.QueryPacketCommitmentResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#packetCommitments}. - * @param error Error, if any - * @param [response] QueryPacketCommitmentsResponse - */ - type PacketCommitmentsCallback = ( - error: Error | null, - response?: ibc.channel.QueryPacketCommitmentsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#packetAcknowledgement}. - * @param error Error, if any - * @param [response] QueryPacketAcknowledgementResponse - */ - type PacketAcknowledgementCallback = ( - error: Error | null, - response?: ibc.channel.QueryPacketAcknowledgementResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#unrelayedPackets}. - * @param error Error, if any - * @param [response] QueryUnrelayedPacketsResponse - */ - type UnrelayedPacketsCallback = ( - error: Error | null, - response?: ibc.channel.QueryUnrelayedPacketsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#nextSequenceReceive}. - * @param error Error, if any - * @param [response] QueryNextSequenceReceiveResponse - */ - type NextSequenceReceiveCallback = ( - error: Error | null, - response?: ibc.channel.QueryNextSequenceReceiveResponse, - ) => void; - } - - /** Properties of a QueryChannelRequest. */ - interface IQueryChannelRequest { - /** QueryChannelRequest portId */ - portId?: string | null; - - /** QueryChannelRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryChannelRequest. */ - class QueryChannelRequest implements IQueryChannelRequest { - /** - * Constructs a new QueryChannelRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelRequest); - - /** QueryChannelRequest portId. */ - public portId: string; - - /** QueryChannelRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryChannelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelRequest instance - */ - public static create(properties?: ibc.channel.IQueryChannelRequest): ibc.channel.QueryChannelRequest; - - /** - * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.channel.QueryChannelRequest.verify|verify} messages. - * @param m QueryChannelRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelRequest - * @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): ibc.channel.QueryChannelRequest; - } - - /** Properties of a QueryChannelResponse. */ - interface IQueryChannelResponse { - /** QueryChannelResponse channel */ - channel?: ibc.channel.IChannel | null; - - /** QueryChannelResponse proof */ - proof?: Uint8Array | null; - - /** QueryChannelResponse proofPath */ - proofPath?: string | null; - - /** QueryChannelResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryChannelResponse. */ - class QueryChannelResponse implements IQueryChannelResponse { - /** - * Constructs a new QueryChannelResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelResponse); - - /** QueryChannelResponse channel. */ - public channel?: ibc.channel.IChannel | null; - - /** QueryChannelResponse proof. */ - public proof: Uint8Array; - - /** QueryChannelResponse proofPath. */ - public proofPath: string; - - /** QueryChannelResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryChannelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelResponse instance - */ - public static create(properties?: ibc.channel.IQueryChannelResponse): ibc.channel.QueryChannelResponse; - - /** - * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.channel.QueryChannelResponse.verify|verify} messages. - * @param m QueryChannelResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelResponse - * @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): ibc.channel.QueryChannelResponse; - } - - /** Properties of a QueryChannelsRequest. */ - interface IQueryChannelsRequest { - /** QueryChannelsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryChannelsRequest. */ - class QueryChannelsRequest implements IQueryChannelsRequest { - /** - * Constructs a new QueryChannelsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelsRequest); - - /** QueryChannelsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryChannelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelsRequest instance - */ - public static create(properties?: ibc.channel.IQueryChannelsRequest): ibc.channel.QueryChannelsRequest; - - /** - * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.channel.QueryChannelsRequest.verify|verify} messages. - * @param m QueryChannelsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelsRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelsRequest - * @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): ibc.channel.QueryChannelsRequest; - } - - /** Properties of a QueryChannelsResponse. */ - interface IQueryChannelsResponse { - /** QueryChannelsResponse channels */ - channels?: ibc.channel.IIdentifiedChannel[] | null; - - /** QueryChannelsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryChannelsResponse height */ - height?: Long | null; - } - - /** Represents a QueryChannelsResponse. */ - class QueryChannelsResponse implements IQueryChannelsResponse { - /** - * Constructs a new QueryChannelsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelsResponse); - - /** QueryChannelsResponse channels. */ - public channels: ibc.channel.IIdentifiedChannel[]; - - /** QueryChannelsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryChannelsResponse height. */ - public height: Long; - - /** - * Creates a new QueryChannelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryChannelsResponse, - ): ibc.channel.QueryChannelsResponse; - - /** - * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.channel.QueryChannelsResponse.verify|verify} messages. - * @param m QueryChannelsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelsResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelsResponse - * @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): ibc.channel.QueryChannelsResponse; - } - - /** Properties of a QueryConnectionChannelsRequest. */ - interface IQueryConnectionChannelsRequest { - /** QueryConnectionChannelsRequest connection */ - connection?: string | null; - - /** QueryConnectionChannelsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryConnectionChannelsRequest. */ - class QueryConnectionChannelsRequest implements IQueryConnectionChannelsRequest { - /** - * Constructs a new QueryConnectionChannelsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryConnectionChannelsRequest); - - /** QueryConnectionChannelsRequest connection. */ - public connection: string; - - /** QueryConnectionChannelsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryConnectionChannelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionChannelsRequest instance - */ - public static create( - properties?: ibc.channel.IQueryConnectionChannelsRequest, - ): ibc.channel.QueryConnectionChannelsRequest; - - /** - * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.channel.QueryConnectionChannelsRequest.verify|verify} messages. - * @param m QueryConnectionChannelsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryConnectionChannelsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionChannelsRequest - * @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, - ): ibc.channel.QueryConnectionChannelsRequest; - } - - /** Properties of a QueryConnectionChannelsResponse. */ - interface IQueryConnectionChannelsResponse { - /** QueryConnectionChannelsResponse channels */ - channels?: ibc.channel.IIdentifiedChannel[] | null; - - /** QueryConnectionChannelsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionChannelsResponse height */ - height?: Long | null; - } - - /** Represents a QueryConnectionChannelsResponse. */ - class QueryConnectionChannelsResponse implements IQueryConnectionChannelsResponse { - /** - * Constructs a new QueryConnectionChannelsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryConnectionChannelsResponse); - - /** QueryConnectionChannelsResponse channels. */ - public channels: ibc.channel.IIdentifiedChannel[]; - - /** QueryConnectionChannelsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionChannelsResponse height. */ - public height: Long; - - /** - * Creates a new QueryConnectionChannelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionChannelsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryConnectionChannelsResponse, - ): ibc.channel.QueryConnectionChannelsResponse; - - /** - * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.channel.QueryConnectionChannelsResponse.verify|verify} messages. - * @param m QueryConnectionChannelsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryConnectionChannelsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionChannelsResponse - * @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, - ): ibc.channel.QueryConnectionChannelsResponse; - } - - /** Properties of a QueryPacketCommitmentRequest. */ - interface IQueryPacketCommitmentRequest { - /** QueryPacketCommitmentRequest portId */ - portId?: string | null; - - /** QueryPacketCommitmentRequest channelId */ - channelId?: string | null; - - /** QueryPacketCommitmentRequest sequence */ - sequence?: Long | null; - } - - /** Represents a QueryPacketCommitmentRequest. */ - class QueryPacketCommitmentRequest implements IQueryPacketCommitmentRequest { - /** - * Constructs a new QueryPacketCommitmentRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentRequest); - - /** QueryPacketCommitmentRequest portId. */ - public portId: string; - - /** QueryPacketCommitmentRequest channelId. */ - public channelId: string; - - /** QueryPacketCommitmentRequest sequence. */ - public sequence: Long; - - /** - * Creates a new QueryPacketCommitmentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentRequest instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentRequest, - ): ibc.channel.QueryPacketCommitmentRequest; - - /** - * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentRequest.verify|verify} messages. - * @param m QueryPacketCommitmentRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentRequest - * @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, - ): ibc.channel.QueryPacketCommitmentRequest; - } - - /** Properties of a QueryPacketCommitmentResponse. */ - interface IQueryPacketCommitmentResponse { - /** QueryPacketCommitmentResponse commitment */ - commitment?: Uint8Array | null; - - /** QueryPacketCommitmentResponse proof */ - proof?: Uint8Array | null; - - /** QueryPacketCommitmentResponse proofPath */ - proofPath?: string | null; - - /** QueryPacketCommitmentResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryPacketCommitmentResponse. */ - class QueryPacketCommitmentResponse implements IQueryPacketCommitmentResponse { - /** - * Constructs a new QueryPacketCommitmentResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentResponse); - - /** QueryPacketCommitmentResponse commitment. */ - public commitment: Uint8Array; - - /** QueryPacketCommitmentResponse proof. */ - public proof: Uint8Array; - - /** QueryPacketCommitmentResponse proofPath. */ - public proofPath: string; - - /** QueryPacketCommitmentResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryPacketCommitmentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentResponse instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentResponse, - ): ibc.channel.QueryPacketCommitmentResponse; - - /** - * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentResponse.verify|verify} messages. - * @param m QueryPacketCommitmentResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentResponse - * @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, - ): ibc.channel.QueryPacketCommitmentResponse; - } - - /** Properties of a QueryPacketCommitmentsRequest. */ - interface IQueryPacketCommitmentsRequest { - /** QueryPacketCommitmentsRequest portId */ - portId?: string | null; - - /** QueryPacketCommitmentsRequest channelId */ - channelId?: string | null; - - /** QueryPacketCommitmentsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryPacketCommitmentsRequest. */ - class QueryPacketCommitmentsRequest implements IQueryPacketCommitmentsRequest { - /** - * Constructs a new QueryPacketCommitmentsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentsRequest); - - /** QueryPacketCommitmentsRequest portId. */ - public portId: string; - - /** QueryPacketCommitmentsRequest channelId. */ - public channelId: string; - - /** QueryPacketCommitmentsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryPacketCommitmentsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentsRequest instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentsRequest, - ): ibc.channel.QueryPacketCommitmentsRequest; - - /** - * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentsRequest.verify|verify} messages. - * @param m QueryPacketCommitmentsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentsRequest - * @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, - ): ibc.channel.QueryPacketCommitmentsRequest; - } - - /** Properties of a QueryPacketCommitmentsResponse. */ - interface IQueryPacketCommitmentsResponse { - /** QueryPacketCommitmentsResponse commitments */ - commitments?: ibc.channel.IPacketAckCommitment[] | null; - - /** QueryPacketCommitmentsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryPacketCommitmentsResponse height */ - height?: Long | null; - } - - /** Represents a QueryPacketCommitmentsResponse. */ - class QueryPacketCommitmentsResponse implements IQueryPacketCommitmentsResponse { - /** - * Constructs a new QueryPacketCommitmentsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentsResponse); - - /** QueryPacketCommitmentsResponse commitments. */ - public commitments: ibc.channel.IPacketAckCommitment[]; - - /** QueryPacketCommitmentsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryPacketCommitmentsResponse height. */ - public height: Long; - - /** - * Creates a new QueryPacketCommitmentsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentsResponse, - ): ibc.channel.QueryPacketCommitmentsResponse; - - /** - * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentsResponse.verify|verify} messages. - * @param m QueryPacketCommitmentsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentsResponse - * @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, - ): ibc.channel.QueryPacketCommitmentsResponse; - } - - /** Properties of a QueryPacketAcknowledgementRequest. */ - interface IQueryPacketAcknowledgementRequest { - /** QueryPacketAcknowledgementRequest portId */ - portId?: string | null; - - /** QueryPacketAcknowledgementRequest channelId */ - channelId?: string | null; - - /** QueryPacketAcknowledgementRequest sequence */ - sequence?: Long | null; - } - - /** Represents a QueryPacketAcknowledgementRequest. */ - class QueryPacketAcknowledgementRequest implements IQueryPacketAcknowledgementRequest { - /** - * Constructs a new QueryPacketAcknowledgementRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketAcknowledgementRequest); - - /** QueryPacketAcknowledgementRequest portId. */ - public portId: string; - - /** QueryPacketAcknowledgementRequest channelId. */ - public channelId: string; - - /** QueryPacketAcknowledgementRequest sequence. */ - public sequence: Long; - - /** - * Creates a new QueryPacketAcknowledgementRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketAcknowledgementRequest instance - */ - public static create( - properties?: ibc.channel.IQueryPacketAcknowledgementRequest, - ): ibc.channel.QueryPacketAcknowledgementRequest; - - /** - * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.channel.QueryPacketAcknowledgementRequest.verify|verify} messages. - * @param m QueryPacketAcknowledgementRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketAcknowledgementRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketAcknowledgementRequest - * @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, - ): ibc.channel.QueryPacketAcknowledgementRequest; - } - - /** Properties of a QueryPacketAcknowledgementResponse. */ - interface IQueryPacketAcknowledgementResponse { - /** QueryPacketAcknowledgementResponse acknowledgement */ - acknowledgement?: Uint8Array | null; - - /** QueryPacketAcknowledgementResponse proof */ - proof?: Uint8Array | null; - - /** QueryPacketAcknowledgementResponse proofPath */ - proofPath?: string | null; - - /** QueryPacketAcknowledgementResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryPacketAcknowledgementResponse. */ - class QueryPacketAcknowledgementResponse implements IQueryPacketAcknowledgementResponse { - /** - * Constructs a new QueryPacketAcknowledgementResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketAcknowledgementResponse); - - /** QueryPacketAcknowledgementResponse acknowledgement. */ - public acknowledgement: Uint8Array; - - /** QueryPacketAcknowledgementResponse proof. */ - public proof: Uint8Array; - - /** QueryPacketAcknowledgementResponse proofPath. */ - public proofPath: string; - - /** QueryPacketAcknowledgementResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryPacketAcknowledgementResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketAcknowledgementResponse instance - */ - public static create( - properties?: ibc.channel.IQueryPacketAcknowledgementResponse, - ): ibc.channel.QueryPacketAcknowledgementResponse; - - /** - * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.channel.QueryPacketAcknowledgementResponse.verify|verify} messages. - * @param m QueryPacketAcknowledgementResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketAcknowledgementResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketAcknowledgementResponse - * @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, - ): ibc.channel.QueryPacketAcknowledgementResponse; - } - - /** Properties of a QueryUnrelayedPacketsRequest. */ - interface IQueryUnrelayedPacketsRequest { - /** QueryUnrelayedPacketsRequest portId */ - portId?: string | null; - - /** QueryUnrelayedPacketsRequest channelId */ - channelId?: string | null; - - /** QueryUnrelayedPacketsRequest packetCommitmentSequences */ - packetCommitmentSequences?: Long[] | null; - - /** QueryUnrelayedPacketsRequest acknowledgements */ - acknowledgements?: boolean | null; - } - - /** Represents a QueryUnrelayedPacketsRequest. */ - class QueryUnrelayedPacketsRequest implements IQueryUnrelayedPacketsRequest { - /** - * Constructs a new QueryUnrelayedPacketsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryUnrelayedPacketsRequest); - - /** QueryUnrelayedPacketsRequest portId. */ - public portId: string; - - /** QueryUnrelayedPacketsRequest channelId. */ - public channelId: string; - - /** QueryUnrelayedPacketsRequest packetCommitmentSequences. */ - public packetCommitmentSequences: Long[]; - - /** QueryUnrelayedPacketsRequest acknowledgements. */ - public acknowledgements: boolean; - - /** - * Creates a new QueryUnrelayedPacketsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryUnrelayedPacketsRequest instance - */ - public static create( - properties?: ibc.channel.IQueryUnrelayedPacketsRequest, - ): ibc.channel.QueryUnrelayedPacketsRequest; - - /** - * Encodes the specified QueryUnrelayedPacketsRequest message. Does not implicitly {@link ibc.channel.QueryUnrelayedPacketsRequest.verify|verify} messages. - * @param m QueryUnrelayedPacketsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryUnrelayedPacketsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryUnrelayedPacketsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryUnrelayedPacketsRequest - * @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, - ): ibc.channel.QueryUnrelayedPacketsRequest; - } - - /** Properties of a QueryUnrelayedPacketsResponse. */ - interface IQueryUnrelayedPacketsResponse { - /** QueryUnrelayedPacketsResponse sequences */ - sequences?: Long[] | null; - - /** QueryUnrelayedPacketsResponse height */ - height?: Long | null; - } - - /** Represents a QueryUnrelayedPacketsResponse. */ - class QueryUnrelayedPacketsResponse implements IQueryUnrelayedPacketsResponse { - /** - * Constructs a new QueryUnrelayedPacketsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryUnrelayedPacketsResponse); - - /** QueryUnrelayedPacketsResponse sequences. */ - public sequences: Long[]; - - /** QueryUnrelayedPacketsResponse height. */ - public height: Long; - - /** - * Creates a new QueryUnrelayedPacketsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryUnrelayedPacketsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryUnrelayedPacketsResponse, - ): ibc.channel.QueryUnrelayedPacketsResponse; - - /** - * Encodes the specified QueryUnrelayedPacketsResponse message. Does not implicitly {@link ibc.channel.QueryUnrelayedPacketsResponse.verify|verify} messages. - * @param m QueryUnrelayedPacketsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryUnrelayedPacketsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryUnrelayedPacketsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryUnrelayedPacketsResponse - * @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, - ): ibc.channel.QueryUnrelayedPacketsResponse; - } - - /** Properties of a QueryNextSequenceReceiveRequest. */ - interface IQueryNextSequenceReceiveRequest { - /** QueryNextSequenceReceiveRequest portId */ - portId?: string | null; - - /** QueryNextSequenceReceiveRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryNextSequenceReceiveRequest. */ - class QueryNextSequenceReceiveRequest implements IQueryNextSequenceReceiveRequest { - /** - * Constructs a new QueryNextSequenceReceiveRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryNextSequenceReceiveRequest); - - /** QueryNextSequenceReceiveRequest portId. */ - public portId: string; - - /** QueryNextSequenceReceiveRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryNextSequenceReceiveRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryNextSequenceReceiveRequest instance - */ - public static create( - properties?: ibc.channel.IQueryNextSequenceReceiveRequest, - ): ibc.channel.QueryNextSequenceReceiveRequest; - - /** - * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.channel.QueryNextSequenceReceiveRequest.verify|verify} messages. - * @param m QueryNextSequenceReceiveRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryNextSequenceReceiveRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryNextSequenceReceiveRequest - * @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, - ): ibc.channel.QueryNextSequenceReceiveRequest; - } - - /** Properties of a QueryNextSequenceReceiveResponse. */ - interface IQueryNextSequenceReceiveResponse { - /** QueryNextSequenceReceiveResponse nextSequenceReceive */ - nextSequenceReceive?: Long | null; - - /** QueryNextSequenceReceiveResponse proof */ - proof?: Uint8Array | null; - - /** QueryNextSequenceReceiveResponse proofPath */ - proofPath?: string | null; - - /** QueryNextSequenceReceiveResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryNextSequenceReceiveResponse. */ - class QueryNextSequenceReceiveResponse implements IQueryNextSequenceReceiveResponse { - /** - * Constructs a new QueryNextSequenceReceiveResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryNextSequenceReceiveResponse); - - /** QueryNextSequenceReceiveResponse nextSequenceReceive. */ - public nextSequenceReceive: Long; - - /** QueryNextSequenceReceiveResponse proof. */ - public proof: Uint8Array; - - /** QueryNextSequenceReceiveResponse proofPath. */ - public proofPath: string; - - /** QueryNextSequenceReceiveResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryNextSequenceReceiveResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryNextSequenceReceiveResponse instance - */ - public static create( - properties?: ibc.channel.IQueryNextSequenceReceiveResponse, - ): ibc.channel.QueryNextSequenceReceiveResponse; - - /** - * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.channel.QueryNextSequenceReceiveResponse.verify|verify} messages. - * @param m QueryNextSequenceReceiveResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryNextSequenceReceiveResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryNextSequenceReceiveResponse - * @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, - ): ibc.channel.QueryNextSequenceReceiveResponse; - } - - /** Properties of a QueryChannelClientStateRequest. */ - interface IQueryChannelClientStateRequest { - /** QueryChannelClientStateRequest portId */ - portId?: string | null; - - /** QueryChannelClientStateRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryChannelClientStateRequest. */ - class QueryChannelClientStateRequest implements IQueryChannelClientStateRequest { - /** - * Constructs a new QueryChannelClientStateRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelClientStateRequest); - - /** QueryChannelClientStateRequest portId. */ - public portId: string; - - /** QueryChannelClientStateRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryChannelClientStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelClientStateRequest instance - */ - public static create( - properties?: ibc.channel.IQueryChannelClientStateRequest, - ): ibc.channel.QueryChannelClientStateRequest; - - /** - * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.channel.QueryChannelClientStateRequest.verify|verify} messages. - * @param m QueryChannelClientStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryChannelClientStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelClientStateRequest - * @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, - ): ibc.channel.QueryChannelClientStateRequest; - } - - /** Properties of a QueryChannelConsensusStateRequest. */ - interface IQueryChannelConsensusStateRequest { - /** QueryChannelConsensusStateRequest portId */ - portId?: string | null; - - /** QueryChannelConsensusStateRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryChannelConsensusStateRequest. */ - class QueryChannelConsensusStateRequest implements IQueryChannelConsensusStateRequest { - /** - * Constructs a new QueryChannelConsensusStateRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelConsensusStateRequest); - - /** QueryChannelConsensusStateRequest portId. */ - public portId: string; - - /** QueryChannelConsensusStateRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryChannelConsensusStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelConsensusStateRequest instance - */ - public static create( - properties?: ibc.channel.IQueryChannelConsensusStateRequest, - ): ibc.channel.QueryChannelConsensusStateRequest; - - /** - * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.channel.QueryChannelConsensusStateRequest.verify|verify} messages. - * @param m QueryChannelConsensusStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryChannelConsensusStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelConsensusStateRequest - * @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, - ): ibc.channel.QueryChannelConsensusStateRequest; - } - } - - /** Namespace commitment. */ - namespace commitment { - /** 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?: ibc.commitment.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?: ibc.commitment.IMerkleRoot): ibc.commitment.MerkleRoot; - - /** - * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.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?: ibc.commitment.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?: ibc.commitment.IMerklePrefix): ibc.commitment.MerklePrefix; - - /** - * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.MerklePrefix; - } - - /** Properties of a MerklePath. */ - interface IMerklePath { - /** MerklePath keyPath */ - keyPath?: ibc.commitment.IKeyPath | null; - } - - /** Represents a MerklePath. */ - class MerklePath implements IMerklePath { - /** - * Constructs a new MerklePath. - * @param [p] Properties to set - */ - constructor(p?: ibc.commitment.IMerklePath); - - /** MerklePath keyPath. */ - public keyPath?: ibc.commitment.IKeyPath | null; - - /** - * Creates a new MerklePath instance using the specified properties. - * @param [properties] Properties to set - * @returns MerklePath instance - */ - public static create(properties?: ibc.commitment.IMerklePath): ibc.commitment.MerklePath; - - /** - * Encodes the specified MerklePath message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.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?: ibc.commitment.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?: ibc.commitment.IMerkleProof): ibc.commitment.MerkleProof; - - /** - * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.MerkleProof; - } - - /** Properties of a KeyPath. */ - interface IKeyPath { - /** KeyPath keys */ - keys?: ibc.commitment.IKey[] | null; - } - - /** Represents a KeyPath. */ - class KeyPath implements IKeyPath { - /** - * Constructs a new KeyPath. - * @param [p] Properties to set - */ - constructor(p?: ibc.commitment.IKeyPath); - - /** KeyPath keys. */ - public keys: ibc.commitment.IKey[]; - - /** - * Creates a new KeyPath instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyPath instance - */ - public static create(properties?: ibc.commitment.IKeyPath): ibc.commitment.KeyPath; - - /** - * Encodes the specified KeyPath message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.KeyPath; - } - - /** Properties of a Key. */ - interface IKey { - /** Key name */ - name?: Uint8Array | null; - - /** Key enc */ - enc?: ibc.commitment.KeyEncoding | null; - } - - /** Represents a Key. */ - class Key implements IKey { - /** - * Constructs a new Key. - * @param [p] Properties to set - */ - constructor(p?: ibc.commitment.IKey); - - /** Key name. */ - public name: Uint8Array; - - /** Key enc. */ - public enc: ibc.commitment.KeyEncoding; - - /** - * Creates a new Key instance using the specified properties. - * @param [properties] Properties to set - * @returns Key instance - */ - public static create(properties?: ibc.commitment.IKey): ibc.commitment.Key; - - /** - * Encodes the specified Key message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.Key; - } - - /** KeyEncoding enum. */ - enum KeyEncoding { - KEY_ENCODING_URL_UNSPECIFIED = 0, - KEY_ENCODING_HEX = 1, - } - } - - /** Namespace connection. */ - namespace connection { - /** Properties of a MsgConnectionOpenInit. */ - interface IMsgConnectionOpenInit { - /** MsgConnectionOpenInit clientId */ - clientId?: string | null; - - /** MsgConnectionOpenInit connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenInit counterparty */ - counterparty?: ibc.connection.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?: ibc.connection.IMsgConnectionOpenInit); - - /** MsgConnectionOpenInit clientId. */ - public clientId: string; - - /** MsgConnectionOpenInit connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenInit counterparty. */ - public counterparty?: ibc.connection.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?: ibc.connection.IMsgConnectionOpenInit, - ): ibc.connection.MsgConnectionOpenInit; - - /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.connection.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: ibc.connection.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, - ): ibc.connection.MsgConnectionOpenInit; - } - - /** Properties of a MsgConnectionOpenTry. */ - interface IMsgConnectionOpenTry { - /** MsgConnectionOpenTry clientId */ - clientId?: string | null; - - /** MsgConnectionOpenTry connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenTry counterparty */ - counterparty?: ibc.connection.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions */ - counterpartyVersions?: string[] | null; - - /** MsgConnectionOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgConnectionOpenTry proofHeight */ - proofHeight?: Long | null; - - /** MsgConnectionOpenTry proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenTry consensusHeight */ - consensusHeight?: 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?: ibc.connection.IMsgConnectionOpenTry); - - /** MsgConnectionOpenTry clientId. */ - public clientId: string; - - /** MsgConnectionOpenTry connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenTry counterparty. */ - public counterparty?: ibc.connection.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions. */ - public counterpartyVersions: string[]; - - /** MsgConnectionOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgConnectionOpenTry proofHeight. */ - public proofHeight: Long; - - /** MsgConnectionOpenTry proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenTry consensusHeight. */ - public consensusHeight: 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?: ibc.connection.IMsgConnectionOpenTry, - ): ibc.connection.MsgConnectionOpenTry; - - /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.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?: Long | null; - - /** MsgConnectionOpenAck proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenAck consensusHeight */ - consensusHeight?: 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?: ibc.connection.IMsgConnectionOpenAck); - - /** MsgConnectionOpenAck connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenAck version. */ - public version: string; - - /** MsgConnectionOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgConnectionOpenAck proofHeight. */ - public proofHeight: Long; - - /** MsgConnectionOpenAck proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenAck consensusHeight. */ - public consensusHeight: 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?: ibc.connection.IMsgConnectionOpenAck, - ): ibc.connection.MsgConnectionOpenAck; - - /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.MsgConnectionOpenAck; - } - - /** Properties of a MsgConnectionOpenConfirm. */ - interface IMsgConnectionOpenConfirm { - /** MsgConnectionOpenConfirm connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenConfirm proofAck */ - proofAck?: Uint8Array | null; - - /** MsgConnectionOpenConfirm proofHeight */ - proofHeight?: 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?: ibc.connection.IMsgConnectionOpenConfirm); - - /** MsgConnectionOpenConfirm connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgConnectionOpenConfirm proofHeight. */ - public proofHeight: 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?: ibc.connection.IMsgConnectionOpenConfirm, - ): ibc.connection.MsgConnectionOpenConfirm; - - /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.connection.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: ibc.connection.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, - ): ibc.connection.MsgConnectionOpenConfirm; - } - - /** Properties of a ConnectionEnd. */ - interface IConnectionEnd { - /** ConnectionEnd clientId */ - clientId?: string | null; - - /** ConnectionEnd versions */ - versions?: string[] | null; - - /** ConnectionEnd state */ - state?: ibc.connection.State | null; - - /** ConnectionEnd counterparty */ - counterparty?: ibc.connection.ICounterparty | null; - } - - /** Represents a ConnectionEnd. */ - class ConnectionEnd implements IConnectionEnd { - /** - * Constructs a new ConnectionEnd. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IConnectionEnd); - - /** ConnectionEnd clientId. */ - public clientId: string; - - /** ConnectionEnd versions. */ - public versions: string[]; - - /** ConnectionEnd state. */ - public state: ibc.connection.State; - - /** ConnectionEnd counterparty. */ - public counterparty?: ibc.connection.ICounterparty | null; - - /** - * Creates a new ConnectionEnd instance using the specified properties. - * @param [properties] Properties to set - * @returns ConnectionEnd instance - */ - public static create(properties?: ibc.connection.IConnectionEnd): ibc.connection.ConnectionEnd; - - /** - * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.ConnectionEnd; - } - - /** Properties of an IdentifiedConnection. */ - interface IIdentifiedConnection { - /** IdentifiedConnection id */ - id?: string | null; - - /** IdentifiedConnection clientId */ - clientId?: string | null; - - /** IdentifiedConnection versions */ - versions?: string[] | null; - - /** IdentifiedConnection state */ - state?: ibc.connection.State | null; - - /** IdentifiedConnection counterparty */ - counterparty?: ibc.connection.ICounterparty | null; - } - - /** Represents an IdentifiedConnection. */ - class IdentifiedConnection implements IIdentifiedConnection { - /** - * Constructs a new IdentifiedConnection. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IIdentifiedConnection); - - /** IdentifiedConnection id. */ - public id: string; - - /** IdentifiedConnection clientId. */ - public clientId: string; - - /** IdentifiedConnection versions. */ - public versions: string[]; - - /** IdentifiedConnection state. */ - public state: ibc.connection.State; - - /** IdentifiedConnection counterparty. */ - public counterparty?: ibc.connection.ICounterparty | null; - - /** - * Creates a new IdentifiedConnection instance using the specified properties. - * @param [properties] Properties to set - * @returns IdentifiedConnection instance - */ - public static create( - properties?: ibc.connection.IIdentifiedConnection, - ): ibc.connection.IdentifiedConnection; - - /** - * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.connection.IdentifiedConnection.verify|verify} messages. - * @param m IdentifiedConnection message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IIdentifiedConnection, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IdentifiedConnection message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns IdentifiedConnection - * @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): ibc.connection.IdentifiedConnection; - } - - /** 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?: ibc.commitment.IMerklePrefix | null; - } - - /** Represents a Counterparty. */ - class Counterparty implements ICounterparty { - /** - * Constructs a new Counterparty. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.ICounterparty); - - /** Counterparty clientId. */ - public clientId: string; - - /** Counterparty connectionId. */ - public connectionId: string; - - /** Counterparty prefix. */ - public prefix?: ibc.commitment.IMerklePrefix | null; - - /** - * Creates a new Counterparty instance using the specified properties. - * @param [properties] Properties to set - * @returns Counterparty instance - */ - public static create(properties?: ibc.connection.ICounterparty): ibc.connection.Counterparty; - - /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.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?: ibc.connection.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?: ibc.connection.IClientPaths): ibc.connection.ClientPaths; - - /** - * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.ClientPaths; - } - - /** Properties of a ConnectionPaths. */ - interface IConnectionPaths { - /** ConnectionPaths clientId */ - clientId?: string | null; - - /** ConnectionPaths paths */ - paths?: string[] | null; - } - - /** Represents a ConnectionPaths. */ - class ConnectionPaths implements IConnectionPaths { - /** - * Constructs a new ConnectionPaths. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IConnectionPaths); - - /** ConnectionPaths clientId. */ - public clientId: string; - - /** ConnectionPaths paths. */ - public paths: string[]; - - /** - * Creates a new ConnectionPaths instance using the specified properties. - * @param [properties] Properties to set - * @returns ConnectionPaths instance - */ - public static create(properties?: ibc.connection.IConnectionPaths): ibc.connection.ConnectionPaths; - - /** - * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.connection.ConnectionPaths.verify|verify} messages. - * @param m ConnectionPaths message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IConnectionPaths, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConnectionPaths message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ConnectionPaths - * @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): ibc.connection.ConnectionPaths; - } - - /** Properties of a Version. */ - interface IVersion { - /** Version identifier */ - identifier?: string | null; - - /** Version features */ - features?: string[] | null; - } - - /** Represents a Version. */ - class Version implements IVersion { - /** - * Constructs a new Version. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IVersion); - - /** Version identifier. */ - public identifier: string; - - /** Version features. */ - public features: string[]; - - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: ibc.connection.IVersion): ibc.connection.Version; - - /** - * Encodes the specified Version message. Does not implicitly {@link ibc.connection.Version.verify|verify} messages. - * @param m Version message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IVersion, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Version message from the specified reader or buffer. - * @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(r: $protobuf.Reader | Uint8Array, l?: number): ibc.connection.Version; - } - - /** 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 Connection. - * @param request QueryConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionResponse - */ - public connection( - request: ibc.connection.IQueryConnectionRequest, - callback: ibc.connection.Query.ConnectionCallback, - ): void; - - /** - * Calls Connection. - * @param request QueryConnectionRequest message or plain object - * @returns Promise - */ - public connection( - request: ibc.connection.IQueryConnectionRequest, - ): Promise; - - /** - * Calls Connections. - * @param request QueryConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionsResponse - */ - public connections( - request: ibc.connection.IQueryConnectionsRequest, - callback: ibc.connection.Query.ConnectionsCallback, - ): void; - - /** - * Calls Connections. - * @param request QueryConnectionsRequest message or plain object - * @returns Promise - */ - public connections( - request: ibc.connection.IQueryConnectionsRequest, - ): Promise; - - /** - * Calls ClientConnections. - * @param request QueryClientConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse - */ - public clientConnections( - request: ibc.connection.IQueryClientConnectionsRequest, - callback: ibc.connection.Query.ClientConnectionsCallback, - ): void; - - /** - * Calls ClientConnections. - * @param request QueryClientConnectionsRequest message or plain object - * @returns Promise - */ - public clientConnections( - request: ibc.connection.IQueryClientConnectionsRequest, - ): Promise; - } - - namespace Query { - /** - * Callback as used by {@link ibc.connection.Query#connection}. - * @param error Error, if any - * @param [response] QueryConnectionResponse - */ - type ConnectionCallback = ( - error: Error | null, - response?: ibc.connection.QueryConnectionResponse, - ) => void; - - /** - * Callback as used by {@link ibc.connection.Query#connections}. - * @param error Error, if any - * @param [response] QueryConnectionsResponse - */ - type ConnectionsCallback = ( - error: Error | null, - response?: ibc.connection.QueryConnectionsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.connection.Query#clientConnections}. - * @param error Error, if any - * @param [response] QueryClientConnectionsResponse - */ - type ClientConnectionsCallback = ( - error: Error | null, - response?: ibc.connection.QueryClientConnectionsResponse, - ) => void; - } - - /** Properties of a QueryConnectionRequest. */ - interface IQueryConnectionRequest { - /** QueryConnectionRequest connectionId */ - connectionId?: string | null; - } - - /** Represents a QueryConnectionRequest. */ - class QueryConnectionRequest implements IQueryConnectionRequest { - /** - * Constructs a new QueryConnectionRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionRequest); - - /** QueryConnectionRequest connectionId. */ - public connectionId: string; - - /** - * Creates a new QueryConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionRequest instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionRequest, - ): ibc.connection.QueryConnectionRequest; - - /** - * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.connection.QueryConnectionRequest.verify|verify} messages. - * @param m QueryConnectionRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IQueryConnectionRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionRequest - * @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, - ): ibc.connection.QueryConnectionRequest; - } - - /** Properties of a QueryConnectionResponse. */ - interface IQueryConnectionResponse { - /** QueryConnectionResponse connection */ - connection?: ibc.connection.IConnectionEnd | null; - - /** QueryConnectionResponse proof */ - proof?: Uint8Array | null; - - /** QueryConnectionResponse proofPath */ - proofPath?: string | null; - - /** QueryConnectionResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryConnectionResponse. */ - class QueryConnectionResponse implements IQueryConnectionResponse { - /** - * Constructs a new QueryConnectionResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionResponse); - - /** QueryConnectionResponse connection. */ - public connection?: ibc.connection.IConnectionEnd | null; - - /** QueryConnectionResponse proof. */ - public proof: Uint8Array; - - /** QueryConnectionResponse proofPath. */ - public proofPath: string; - - /** QueryConnectionResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionResponse instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionResponse, - ): ibc.connection.QueryConnectionResponse; - - /** - * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.connection.QueryConnectionResponse.verify|verify} messages. - * @param m QueryConnectionResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryConnectionResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionResponse - * @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, - ): ibc.connection.QueryConnectionResponse; - } - - /** Properties of a QueryConnectionsRequest. */ - interface IQueryConnectionsRequest { - /** QueryConnectionsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryConnectionsRequest. */ - class QueryConnectionsRequest implements IQueryConnectionsRequest { - /** - * Constructs a new QueryConnectionsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionsRequest); - - /** QueryConnectionsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryConnectionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionsRequest instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionsRequest, - ): ibc.connection.QueryConnectionsRequest; - - /** - * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.connection.QueryConnectionsRequest.verify|verify} messages. - * @param m QueryConnectionsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryConnectionsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionsRequest - * @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, - ): ibc.connection.QueryConnectionsRequest; - } - - /** Properties of a QueryConnectionsResponse. */ - interface IQueryConnectionsResponse { - /** QueryConnectionsResponse connections */ - connections?: ibc.connection.IIdentifiedConnection[] | null; - - /** QueryConnectionsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionsResponse height */ - height?: Long | null; - } - - /** Represents a QueryConnectionsResponse. */ - class QueryConnectionsResponse implements IQueryConnectionsResponse { - /** - * Constructs a new QueryConnectionsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionsResponse); - - /** QueryConnectionsResponse connections. */ - public connections: ibc.connection.IIdentifiedConnection[]; - - /** QueryConnectionsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionsResponse height. */ - public height: Long; - - /** - * Creates a new QueryConnectionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionsResponse instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionsResponse, - ): ibc.connection.QueryConnectionsResponse; - - /** - * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.connection.QueryConnectionsResponse.verify|verify} messages. - * @param m QueryConnectionsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryConnectionsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionsResponse - * @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, - ): ibc.connection.QueryConnectionsResponse; - } - - /** Properties of a QueryClientConnectionsRequest. */ - interface IQueryClientConnectionsRequest { - /** QueryClientConnectionsRequest clientId */ - clientId?: string | null; - } - - /** Represents a QueryClientConnectionsRequest. */ - class QueryClientConnectionsRequest implements IQueryClientConnectionsRequest { - /** - * Constructs a new QueryClientConnectionsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryClientConnectionsRequest); - - /** QueryClientConnectionsRequest clientId. */ - public clientId: string; - - /** - * Creates a new QueryClientConnectionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryClientConnectionsRequest instance - */ - public static create( - properties?: ibc.connection.IQueryClientConnectionsRequest, - ): ibc.connection.QueryClientConnectionsRequest; - - /** - * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.connection.QueryClientConnectionsRequest.verify|verify} messages. - * @param m QueryClientConnectionsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryClientConnectionsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryClientConnectionsRequest - * @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, - ): ibc.connection.QueryClientConnectionsRequest; - } - - /** Properties of a QueryClientConnectionsResponse. */ - interface IQueryClientConnectionsResponse { - /** QueryClientConnectionsResponse connectionPaths */ - connectionPaths?: string[] | null; - - /** QueryClientConnectionsResponse proof */ - proof?: Uint8Array | null; - - /** QueryClientConnectionsResponse proofPath */ - proofPath?: string | null; - - /** QueryClientConnectionsResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryClientConnectionsResponse. */ - class QueryClientConnectionsResponse implements IQueryClientConnectionsResponse { - /** - * Constructs a new QueryClientConnectionsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryClientConnectionsResponse); - - /** QueryClientConnectionsResponse connectionPaths. */ - public connectionPaths: string[]; - - /** QueryClientConnectionsResponse proof. */ - public proof: Uint8Array; - - /** QueryClientConnectionsResponse proofPath. */ - public proofPath: string; - - /** QueryClientConnectionsResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryClientConnectionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryClientConnectionsResponse instance - */ - public static create( - properties?: ibc.connection.IQueryClientConnectionsResponse, - ): ibc.connection.QueryClientConnectionsResponse; - - /** - * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.connection.QueryClientConnectionsResponse.verify|verify} messages. - * @param m QueryClientConnectionsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryClientConnectionsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryClientConnectionsResponse - * @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, - ): ibc.connection.QueryClientConnectionsResponse; - } - } -} - -/** Namespace tendermint. */ -export namespace tendermint { - /** Namespace abci. */ - namespace abci { - /** Namespace types. */ - namespace types { - /** Properties of a Request. */ - interface IRequest { - /** Request echo */ - echo?: tendermint.abci.types.IRequestEcho | null; - - /** Request flush */ - flush?: tendermint.abci.types.IRequestFlush | null; - - /** Request info */ - info?: tendermint.abci.types.IRequestInfo | null; - - /** Request setOption */ - setOption?: tendermint.abci.types.IRequestSetOption | null; - - /** Request initChain */ - initChain?: tendermint.abci.types.IRequestInitChain | null; - - /** Request query */ - query?: tendermint.abci.types.IRequestQuery | null; - - /** Request beginBlock */ - beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; - - /** Request checkTx */ - checkTx?: tendermint.abci.types.IRequestCheckTx | null; - - /** Request deliverTx */ - deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; - - /** Request endBlock */ - endBlock?: tendermint.abci.types.IRequestEndBlock | null; - - /** Request commit */ - commit?: tendermint.abci.types.IRequestCommit | null; - } - - /** Represents a Request. */ - class Request implements IRequest { - /** - * Constructs a new Request. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequest); - - /** Request echo. */ - public echo?: tendermint.abci.types.IRequestEcho | null; - - /** Request flush. */ - public flush?: tendermint.abci.types.IRequestFlush | null; - - /** Request info. */ - public info?: tendermint.abci.types.IRequestInfo | null; - - /** Request setOption. */ - public setOption?: tendermint.abci.types.IRequestSetOption | null; - - /** Request initChain. */ - public initChain?: tendermint.abci.types.IRequestInitChain | null; - - /** Request query. */ - public query?: tendermint.abci.types.IRequestQuery | null; - - /** Request beginBlock. */ - public beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; - - /** Request checkTx. */ - public checkTx?: tendermint.abci.types.IRequestCheckTx | null; - - /** Request deliverTx. */ - public deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; - - /** Request endBlock. */ - public endBlock?: tendermint.abci.types.IRequestEndBlock | null; - - /** Request commit. */ - public commit?: tendermint.abci.types.IRequestCommit | null; - - /** Request value. */ - public value?: - | "echo" - | "flush" - | "info" - | "setOption" - | "initChain" - | "query" - | "beginBlock" - | "checkTx" - | "deliverTx" - | "endBlock" - | "commit"; - - /** - * Creates a new Request instance using the specified properties. - * @param [properties] Properties to set - * @returns Request instance - */ - public static create(properties?: tendermint.abci.types.IRequest): tendermint.abci.types.Request; - - /** - * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.types.Request.verify|verify} messages. - * @param m Request message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Request; - } - - /** Properties of a RequestEcho. */ - interface IRequestEcho { - /** RequestEcho message */ - message?: string | null; - } - - /** Represents a RequestEcho. */ - class RequestEcho implements IRequestEcho { - /** - * Constructs a new RequestEcho. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestEcho); - - /** RequestEcho message. */ - public message: string; - - /** - * Creates a new RequestEcho instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestEcho instance - */ - public static create( - properties?: tendermint.abci.types.IRequestEcho, - ): tendermint.abci.types.RequestEcho; - - /** - * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.types.RequestEcho.verify|verify} messages. - * @param m RequestEcho message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestEcho; - } - - /** Properties of a RequestFlush. */ - interface IRequestFlush {} - - /** Represents a RequestFlush. */ - class RequestFlush implements IRequestFlush { - /** - * Constructs a new RequestFlush. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestFlush); - - /** - * Creates a new RequestFlush instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestFlush instance - */ - public static create( - properties?: tendermint.abci.types.IRequestFlush, - ): tendermint.abci.types.RequestFlush; - - /** - * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.types.RequestFlush.verify|verify} messages. - * @param m RequestFlush message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestFlush; - } - - /** Properties of a RequestInfo. */ - interface IRequestInfo { - /** RequestInfo version */ - version?: string | null; - - /** RequestInfo blockVersion */ - blockVersion?: Long | null; - - /** RequestInfo p2pVersion */ - p2pVersion?: Long | null; - } - - /** Represents a RequestInfo. */ - class RequestInfo implements IRequestInfo { - /** - * Constructs a new RequestInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestInfo); - - /** RequestInfo version. */ - public version: string; - - /** RequestInfo blockVersion. */ - public blockVersion: Long; - - /** RequestInfo p2pVersion. */ - public p2pVersion: Long; - - /** - * Creates a new RequestInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestInfo instance - */ - public static create( - properties?: tendermint.abci.types.IRequestInfo, - ): tendermint.abci.types.RequestInfo; - - /** - * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.types.RequestInfo.verify|verify} messages. - * @param m RequestInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestInfo; - } - - /** Properties of a RequestSetOption. */ - interface IRequestSetOption { - /** RequestSetOption key */ - key?: string | null; - - /** RequestSetOption value */ - value?: string | null; - } - - /** Represents a RequestSetOption. */ - class RequestSetOption implements IRequestSetOption { - /** - * Constructs a new RequestSetOption. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestSetOption); - - /** RequestSetOption key. */ - public key: string; - - /** RequestSetOption value. */ - public value: string; - - /** - * Creates a new RequestSetOption instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestSetOption instance - */ - public static create( - properties?: tendermint.abci.types.IRequestSetOption, - ): tendermint.abci.types.RequestSetOption; - - /** - * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.types.RequestSetOption.verify|verify} messages. - * @param m RequestSetOption message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestSetOption, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestSetOption message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestSetOption; - } - - /** Properties of a RequestInitChain. */ - interface IRequestInitChain { - /** RequestInitChain time */ - time?: google.protobuf.ITimestamp | null; - - /** RequestInitChain chainId */ - chainId?: string | null; - - /** RequestInitChain consensusParams */ - consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** RequestInitChain validators */ - validators?: tendermint.abci.types.IValidatorUpdate[] | null; - - /** RequestInitChain appStateBytes */ - appStateBytes?: Uint8Array | null; - } - - /** Represents a RequestInitChain. */ - class RequestInitChain implements IRequestInitChain { - /** - * Constructs a new RequestInitChain. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestInitChain); - - /** RequestInitChain time. */ - public time?: google.protobuf.ITimestamp | null; - - /** RequestInitChain chainId. */ - public chainId: string; - - /** RequestInitChain consensusParams. */ - public consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** RequestInitChain validators. */ - public validators: tendermint.abci.types.IValidatorUpdate[]; - - /** RequestInitChain appStateBytes. */ - public appStateBytes: Uint8Array; - - /** - * Creates a new RequestInitChain instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestInitChain instance - */ - public static create( - properties?: tendermint.abci.types.IRequestInitChain, - ): tendermint.abci.types.RequestInitChain; - - /** - * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.types.RequestInitChain.verify|verify} messages. - * @param m RequestInitChain message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestInitChain, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestInitChain message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestInitChain; - } - - /** Properties of a RequestQuery. */ - interface IRequestQuery { - /** RequestQuery data */ - data?: Uint8Array | null; - - /** RequestQuery path */ - path?: string | null; - - /** RequestQuery height */ - height?: Long | null; - - /** RequestQuery prove */ - prove?: boolean | null; - } - - /** Represents a RequestQuery. */ - class RequestQuery implements IRequestQuery { - /** - * Constructs a new RequestQuery. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestQuery); - - /** RequestQuery data. */ - public data: Uint8Array; - - /** RequestQuery path. */ - public path: string; - - /** RequestQuery height. */ - public height: Long; - - /** RequestQuery prove. */ - public prove: boolean; - - /** - * Creates a new RequestQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestQuery instance - */ - public static create( - properties?: tendermint.abci.types.IRequestQuery, - ): tendermint.abci.types.RequestQuery; - - /** - * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.types.RequestQuery.verify|verify} messages. - * @param m RequestQuery message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestQuery; - } - - /** Properties of a RequestBeginBlock. */ - interface IRequestBeginBlock { - /** RequestBeginBlock hash */ - hash?: Uint8Array | null; - - /** RequestBeginBlock header */ - header?: tendermint.abci.types.IHeader | null; - - /** RequestBeginBlock lastCommitInfo */ - lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; - - /** RequestBeginBlock byzantineValidators */ - byzantineValidators?: tendermint.abci.types.IEvidence[] | null; - } - - /** Represents a RequestBeginBlock. */ - class RequestBeginBlock implements IRequestBeginBlock { - /** - * Constructs a new RequestBeginBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestBeginBlock); - - /** RequestBeginBlock hash. */ - public hash: Uint8Array; - - /** RequestBeginBlock header. */ - public header?: tendermint.abci.types.IHeader | null; - - /** RequestBeginBlock lastCommitInfo. */ - public lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; - - /** RequestBeginBlock byzantineValidators. */ - public byzantineValidators: tendermint.abci.types.IEvidence[]; - - /** - * Creates a new RequestBeginBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestBeginBlock instance - */ - public static create( - properties?: tendermint.abci.types.IRequestBeginBlock, - ): tendermint.abci.types.RequestBeginBlock; - - /** - * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.types.RequestBeginBlock.verify|verify} messages. - * @param m RequestBeginBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestBeginBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestBeginBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestBeginBlock; - } - - /** CheckTxType enum. */ - enum CheckTxType { - New = 0, - Recheck = 1, - } - - /** Properties of a RequestCheckTx. */ - interface IRequestCheckTx { - /** RequestCheckTx tx */ - tx?: Uint8Array | null; - - /** RequestCheckTx type */ - type?: tendermint.abci.types.CheckTxType | null; - } - - /** Represents a RequestCheckTx. */ - class RequestCheckTx implements IRequestCheckTx { - /** - * Constructs a new RequestCheckTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestCheckTx); - - /** RequestCheckTx tx. */ - public tx: Uint8Array; - - /** RequestCheckTx type. */ - public type: tendermint.abci.types.CheckTxType; - - /** - * Creates a new RequestCheckTx instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestCheckTx instance - */ - public static create( - properties?: tendermint.abci.types.IRequestCheckTx, - ): tendermint.abci.types.RequestCheckTx; - - /** - * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.types.RequestCheckTx.verify|verify} messages. - * @param m RequestCheckTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestCheckTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestCheckTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestCheckTx; - } - - /** Properties of a RequestDeliverTx. */ - interface IRequestDeliverTx { - /** RequestDeliverTx tx */ - tx?: Uint8Array | null; - } - - /** Represents a RequestDeliverTx. */ - class RequestDeliverTx implements IRequestDeliverTx { - /** - * Constructs a new RequestDeliverTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestDeliverTx); - - /** RequestDeliverTx tx. */ - public tx: Uint8Array; - - /** - * Creates a new RequestDeliverTx instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestDeliverTx instance - */ - public static create( - properties?: tendermint.abci.types.IRequestDeliverTx, - ): tendermint.abci.types.RequestDeliverTx; - - /** - * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.types.RequestDeliverTx.verify|verify} messages. - * @param m RequestDeliverTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestDeliverTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestDeliverTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestDeliverTx; - } - - /** Properties of a RequestEndBlock. */ - interface IRequestEndBlock { - /** RequestEndBlock height */ - height?: Long | null; - } - - /** Represents a RequestEndBlock. */ - class RequestEndBlock implements IRequestEndBlock { - /** - * Constructs a new RequestEndBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestEndBlock); - - /** RequestEndBlock height. */ - public height: Long; - - /** - * Creates a new RequestEndBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestEndBlock instance - */ - public static create( - properties?: tendermint.abci.types.IRequestEndBlock, - ): tendermint.abci.types.RequestEndBlock; - - /** - * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.types.RequestEndBlock.verify|verify} messages. - * @param m RequestEndBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestEndBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestEndBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestEndBlock; - } - - /** Properties of a RequestCommit. */ - interface IRequestCommit {} - - /** Represents a RequestCommit. */ - class RequestCommit implements IRequestCommit { - /** - * Constructs a new RequestCommit. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestCommit); - - /** - * Creates a new RequestCommit instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestCommit instance - */ - public static create( - properties?: tendermint.abci.types.IRequestCommit, - ): tendermint.abci.types.RequestCommit; - - /** - * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.types.RequestCommit.verify|verify} messages. - * @param m RequestCommit message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestCommit; - } - - /** Properties of a Response. */ - interface IResponse { - /** Response exception */ - exception?: tendermint.abci.types.IResponseException | null; - - /** Response echo */ - echo?: tendermint.abci.types.IResponseEcho | null; - - /** Response flush */ - flush?: tendermint.abci.types.IResponseFlush | null; - - /** Response info */ - info?: tendermint.abci.types.IResponseInfo | null; - - /** Response setOption */ - setOption?: tendermint.abci.types.IResponseSetOption | null; - - /** Response initChain */ - initChain?: tendermint.abci.types.IResponseInitChain | null; - - /** Response query */ - query?: tendermint.abci.types.IResponseQuery | null; - - /** Response beginBlock */ - beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; - - /** Response checkTx */ - checkTx?: tendermint.abci.types.IResponseCheckTx | null; - - /** Response deliverTx */ - deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; - - /** Response endBlock */ - endBlock?: tendermint.abci.types.IResponseEndBlock | null; - - /** Response commit */ - commit?: tendermint.abci.types.IResponseCommit | null; - } - - /** Represents a Response. */ - class Response implements IResponse { - /** - * Constructs a new Response. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponse); - - /** Response exception. */ - public exception?: tendermint.abci.types.IResponseException | null; - - /** Response echo. */ - public echo?: tendermint.abci.types.IResponseEcho | null; - - /** Response flush. */ - public flush?: tendermint.abci.types.IResponseFlush | null; - - /** Response info. */ - public info?: tendermint.abci.types.IResponseInfo | null; - - /** Response setOption. */ - public setOption?: tendermint.abci.types.IResponseSetOption | null; - - /** Response initChain. */ - public initChain?: tendermint.abci.types.IResponseInitChain | null; - - /** Response query. */ - public query?: tendermint.abci.types.IResponseQuery | null; - - /** Response beginBlock. */ - public beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; - - /** Response checkTx. */ - public checkTx?: tendermint.abci.types.IResponseCheckTx | null; - - /** Response deliverTx. */ - public deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; - - /** Response endBlock. */ - public endBlock?: tendermint.abci.types.IResponseEndBlock | null; - - /** Response commit. */ - public commit?: tendermint.abci.types.IResponseCommit | null; - - /** Response value. */ - public value?: - | "exception" - | "echo" - | "flush" - | "info" - | "setOption" - | "initChain" - | "query" - | "beginBlock" - | "checkTx" - | "deliverTx" - | "endBlock" - | "commit"; - - /** - * Creates a new Response instance using the specified properties. - * @param [properties] Properties to set - * @returns Response instance - */ - public static create(properties?: tendermint.abci.types.IResponse): tendermint.abci.types.Response; - - /** - * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.types.Response.verify|verify} messages. - * @param m Response message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Response; - } - - /** Properties of a ResponseException. */ - interface IResponseException { - /** ResponseException error */ - error?: string | null; - } - - /** Represents a ResponseException. */ - class ResponseException implements IResponseException { - /** - * Constructs a new ResponseException. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseException); - - /** ResponseException error. */ - public error: string; - - /** - * Creates a new ResponseException instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseException instance - */ - public static create( - properties?: tendermint.abci.types.IResponseException, - ): tendermint.abci.types.ResponseException; - - /** - * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.types.ResponseException.verify|verify} messages. - * @param m ResponseException message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseException, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseException message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseException; - } - - /** Properties of a ResponseEcho. */ - interface IResponseEcho { - /** ResponseEcho message */ - message?: string | null; - } - - /** Represents a ResponseEcho. */ - class ResponseEcho implements IResponseEcho { - /** - * Constructs a new ResponseEcho. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseEcho); - - /** ResponseEcho message. */ - public message: string; - - /** - * Creates a new ResponseEcho instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseEcho instance - */ - public static create( - properties?: tendermint.abci.types.IResponseEcho, - ): tendermint.abci.types.ResponseEcho; - - /** - * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.types.ResponseEcho.verify|verify} messages. - * @param m ResponseEcho message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseEcho; - } - - /** Properties of a ResponseFlush. */ - interface IResponseFlush {} - - /** Represents a ResponseFlush. */ - class ResponseFlush implements IResponseFlush { - /** - * Constructs a new ResponseFlush. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseFlush); - - /** - * Creates a new ResponseFlush instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseFlush instance - */ - public static create( - properties?: tendermint.abci.types.IResponseFlush, - ): tendermint.abci.types.ResponseFlush; - - /** - * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.types.ResponseFlush.verify|verify} messages. - * @param m ResponseFlush message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseFlush; - } - - /** Properties of a ResponseInfo. */ - interface IResponseInfo { - /** ResponseInfo data */ - data?: string | null; - - /** ResponseInfo version */ - version?: string | null; - - /** ResponseInfo appVersion */ - appVersion?: Long | null; - - /** ResponseInfo lastBlockHeight */ - lastBlockHeight?: Long | null; - - /** ResponseInfo lastBlockAppHash */ - lastBlockAppHash?: Uint8Array | null; - } - - /** Represents a ResponseInfo. */ - class ResponseInfo implements IResponseInfo { - /** - * Constructs a new ResponseInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseInfo); - - /** ResponseInfo data. */ - public data: string; - - /** ResponseInfo version. */ - public version: string; - - /** ResponseInfo appVersion. */ - public appVersion: Long; - - /** ResponseInfo lastBlockHeight. */ - public lastBlockHeight: Long; - - /** ResponseInfo lastBlockAppHash. */ - public lastBlockAppHash: Uint8Array; - - /** - * Creates a new ResponseInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseInfo instance - */ - public static create( - properties?: tendermint.abci.types.IResponseInfo, - ): tendermint.abci.types.ResponseInfo; - - /** - * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.types.ResponseInfo.verify|verify} messages. - * @param m ResponseInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseInfo; - } - - /** Properties of a ResponseSetOption. */ - interface IResponseSetOption { - /** ResponseSetOption code */ - code?: number | null; - - /** ResponseSetOption log */ - log?: string | null; - - /** ResponseSetOption info */ - info?: string | null; - } - - /** Represents a ResponseSetOption. */ - class ResponseSetOption implements IResponseSetOption { - /** - * Constructs a new ResponseSetOption. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseSetOption); - - /** ResponseSetOption code. */ - public code: number; - - /** ResponseSetOption log. */ - public log: string; - - /** ResponseSetOption info. */ - public info: string; - - /** - * Creates a new ResponseSetOption instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseSetOption instance - */ - public static create( - properties?: tendermint.abci.types.IResponseSetOption, - ): tendermint.abci.types.ResponseSetOption; - - /** - * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.types.ResponseSetOption.verify|verify} messages. - * @param m ResponseSetOption message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseSetOption, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseSetOption message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseSetOption; - } - - /** Properties of a ResponseInitChain. */ - interface IResponseInitChain { - /** ResponseInitChain consensusParams */ - consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseInitChain validators */ - validators?: tendermint.abci.types.IValidatorUpdate[] | null; - } - - /** Represents a ResponseInitChain. */ - class ResponseInitChain implements IResponseInitChain { - /** - * Constructs a new ResponseInitChain. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseInitChain); - - /** ResponseInitChain consensusParams. */ - public consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseInitChain validators. */ - public validators: tendermint.abci.types.IValidatorUpdate[]; - - /** - * Creates a new ResponseInitChain instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseInitChain instance - */ - public static create( - properties?: tendermint.abci.types.IResponseInitChain, - ): tendermint.abci.types.ResponseInitChain; - - /** - * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.types.ResponseInitChain.verify|verify} messages. - * @param m ResponseInitChain message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseInitChain, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseInitChain message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseInitChain; - } - - /** Properties of a ResponseQuery. */ - interface IResponseQuery { - /** ResponseQuery code */ - code?: number | null; - - /** ResponseQuery log */ - log?: string | null; - - /** ResponseQuery info */ - info?: string | null; - - /** ResponseQuery index */ - index?: Long | null; - - /** ResponseQuery key */ - key?: Uint8Array | null; - - /** ResponseQuery value */ - value?: Uint8Array | null; - - /** ResponseQuery proof */ - proof?: tendermint.crypto.merkle.IProof | null; - - /** ResponseQuery height */ - height?: Long | null; - - /** ResponseQuery codespace */ - codespace?: string | null; - } - - /** Represents a ResponseQuery. */ - class ResponseQuery implements IResponseQuery { - /** - * Constructs a new ResponseQuery. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseQuery); - - /** ResponseQuery code. */ - public code: number; - - /** ResponseQuery log. */ - public log: string; - - /** ResponseQuery info. */ - public info: string; - - /** ResponseQuery index. */ - public index: Long; - - /** ResponseQuery key. */ - public key: Uint8Array; - - /** ResponseQuery value. */ - public value: Uint8Array; - - /** ResponseQuery proof. */ - public proof?: tendermint.crypto.merkle.IProof | null; - - /** ResponseQuery height. */ - public height: Long; - - /** ResponseQuery codespace. */ - public codespace: string; - - /** - * Creates a new ResponseQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseQuery instance - */ - public static create( - properties?: tendermint.abci.types.IResponseQuery, - ): tendermint.abci.types.ResponseQuery; - - /** - * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.types.ResponseQuery.verify|verify} messages. - * @param m ResponseQuery message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseQuery; - } - - /** Properties of a ResponseBeginBlock. */ - interface IResponseBeginBlock { - /** ResponseBeginBlock events */ - events?: tendermint.abci.types.IEvent[] | null; - } - - /** Represents a ResponseBeginBlock. */ - class ResponseBeginBlock implements IResponseBeginBlock { - /** - * Constructs a new ResponseBeginBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseBeginBlock); - - /** ResponseBeginBlock events. */ - public events: tendermint.abci.types.IEvent[]; - - /** - * Creates a new ResponseBeginBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseBeginBlock instance - */ - public static create( - properties?: tendermint.abci.types.IResponseBeginBlock, - ): tendermint.abci.types.ResponseBeginBlock; - - /** - * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.types.ResponseBeginBlock.verify|verify} messages. - * @param m ResponseBeginBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseBeginBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseBeginBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseBeginBlock; - } - - /** Properties of a ResponseCheckTx. */ - interface IResponseCheckTx { - /** ResponseCheckTx code */ - code?: number | null; - - /** ResponseCheckTx data */ - data?: Uint8Array | null; - - /** ResponseCheckTx log */ - log?: string | null; - - /** ResponseCheckTx info */ - info?: string | null; - - /** ResponseCheckTx gasWanted */ - gasWanted?: Long | null; - - /** ResponseCheckTx gasUsed */ - gasUsed?: Long | null; - - /** ResponseCheckTx events */ - events?: tendermint.abci.types.IEvent[] | null; - - /** ResponseCheckTx codespace */ - codespace?: string | null; - } - - /** Represents a ResponseCheckTx. */ - class ResponseCheckTx implements IResponseCheckTx { - /** - * Constructs a new ResponseCheckTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseCheckTx); - - /** ResponseCheckTx code. */ - public code: number; - - /** ResponseCheckTx data. */ - public data: Uint8Array; - - /** ResponseCheckTx log. */ - public log: string; - - /** ResponseCheckTx info. */ - public info: string; - - /** ResponseCheckTx gasWanted. */ - public gasWanted: Long; - - /** ResponseCheckTx gasUsed. */ - public gasUsed: Long; - - /** ResponseCheckTx events. */ - public events: tendermint.abci.types.IEvent[]; - - /** ResponseCheckTx codespace. */ - public codespace: string; - - /** - * Creates a new ResponseCheckTx instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseCheckTx instance - */ - public static create( - properties?: tendermint.abci.types.IResponseCheckTx, - ): tendermint.abci.types.ResponseCheckTx; - - /** - * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.types.ResponseCheckTx.verify|verify} messages. - * @param m ResponseCheckTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseCheckTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseCheckTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseCheckTx; - } - - /** Properties of a ResponseDeliverTx. */ - interface IResponseDeliverTx { - /** ResponseDeliverTx code */ - code?: number | null; - - /** ResponseDeliverTx data */ - data?: Uint8Array | null; - - /** ResponseDeliverTx log */ - log?: string | null; - - /** ResponseDeliverTx info */ - info?: string | null; - - /** ResponseDeliverTx gasWanted */ - gasWanted?: Long | null; - - /** ResponseDeliverTx gasUsed */ - gasUsed?: Long | null; - - /** ResponseDeliverTx events */ - events?: tendermint.abci.types.IEvent[] | null; - - /** ResponseDeliverTx codespace */ - codespace?: string | null; - } - - /** Represents a ResponseDeliverTx. */ - class ResponseDeliverTx implements IResponseDeliverTx { - /** - * Constructs a new ResponseDeliverTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseDeliverTx); - - /** ResponseDeliverTx code. */ - public code: number; - - /** ResponseDeliverTx data. */ - public data: Uint8Array; - - /** ResponseDeliverTx log. */ - public log: string; - - /** ResponseDeliverTx info. */ - public info: string; - - /** ResponseDeliverTx gasWanted. */ - public gasWanted: Long; - - /** ResponseDeliverTx gasUsed. */ - public gasUsed: Long; - - /** ResponseDeliverTx events. */ - public events: tendermint.abci.types.IEvent[]; - - /** ResponseDeliverTx codespace. */ - public codespace: string; - - /** - * Creates a new ResponseDeliverTx instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseDeliverTx instance - */ - public static create( - properties?: tendermint.abci.types.IResponseDeliverTx, - ): tendermint.abci.types.ResponseDeliverTx; - - /** - * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.types.ResponseDeliverTx.verify|verify} messages. - * @param m ResponseDeliverTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseDeliverTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseDeliverTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseDeliverTx; - } - - /** Properties of a ResponseEndBlock. */ - interface IResponseEndBlock { - /** ResponseEndBlock validatorUpdates */ - validatorUpdates?: tendermint.abci.types.IValidatorUpdate[] | null; - - /** ResponseEndBlock consensusParamUpdates */ - consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseEndBlock events */ - events?: tendermint.abci.types.IEvent[] | null; - } - - /** Represents a ResponseEndBlock. */ - class ResponseEndBlock implements IResponseEndBlock { - /** - * Constructs a new ResponseEndBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseEndBlock); - - /** ResponseEndBlock validatorUpdates. */ - public validatorUpdates: tendermint.abci.types.IValidatorUpdate[]; - - /** ResponseEndBlock consensusParamUpdates. */ - public consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseEndBlock events. */ - public events: tendermint.abci.types.IEvent[]; - - /** - * Creates a new ResponseEndBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseEndBlock instance - */ - public static create( - properties?: tendermint.abci.types.IResponseEndBlock, - ): tendermint.abci.types.ResponseEndBlock; - - /** - * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.types.ResponseEndBlock.verify|verify} messages. - * @param m ResponseEndBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseEndBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseEndBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseEndBlock; - } - - /** Properties of a ResponseCommit. */ - interface IResponseCommit { - /** ResponseCommit data */ - data?: Uint8Array | null; - } - - /** Represents a ResponseCommit. */ - class ResponseCommit implements IResponseCommit { - /** - * Constructs a new ResponseCommit. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseCommit); - - /** ResponseCommit data. */ - public data: Uint8Array; - - /** - * Creates a new ResponseCommit instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseCommit instance - */ - public static create( - properties?: tendermint.abci.types.IResponseCommit, - ): tendermint.abci.types.ResponseCommit; - - /** - * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.types.ResponseCommit.verify|verify} messages. - * @param m ResponseCommit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseCommit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseCommit message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseCommit; - } - - /** Properties of a ConsensusParams. */ - interface IConsensusParams { - /** ConsensusParams block */ - block?: tendermint.abci.types.IBlockParams | null; - - /** ConsensusParams evidence */ - evidence?: tendermint.abci.types.IEvidenceParams | null; - - /** ConsensusParams validator */ - validator?: tendermint.abci.types.IValidatorParams | null; - } - - /** Represents a ConsensusParams. */ - class ConsensusParams implements IConsensusParams { - /** - * Constructs a new ConsensusParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IConsensusParams); - - /** ConsensusParams block. */ - public block?: tendermint.abci.types.IBlockParams | null; - - /** ConsensusParams evidence. */ - public evidence?: tendermint.abci.types.IEvidenceParams | null; - - /** ConsensusParams validator. */ - public validator?: tendermint.abci.types.IValidatorParams | null; - - /** - * Creates a new ConsensusParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ConsensusParams instance - */ - public static create( - properties?: tendermint.abci.types.IConsensusParams, - ): tendermint.abci.types.ConsensusParams; - - /** - * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.types.ConsensusParams.verify|verify} messages. - * @param m ConsensusParams message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IConsensusParams, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ConsensusParams message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ConsensusParams; - } - - /** Properties of a BlockParams. */ - interface IBlockParams { - /** BlockParams maxBytes */ - maxBytes?: Long | null; - - /** BlockParams maxGas */ - maxGas?: Long | null; - } - - /** Represents a BlockParams. */ - class BlockParams implements IBlockParams { - /** - * Constructs a new BlockParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IBlockParams); - - /** BlockParams maxBytes. */ - public maxBytes: Long; - - /** BlockParams maxGas. */ - public maxGas: Long; - - /** - * Creates a new BlockParams instance using the specified properties. - * @param [properties] Properties to set - * @returns BlockParams instance - */ - public static create( - properties?: tendermint.abci.types.IBlockParams, - ): tendermint.abci.types.BlockParams; - - /** - * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.types.BlockParams.verify|verify} messages. - * @param m BlockParams message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockParams; - } - - /** Properties of an EvidenceParams. */ - interface IEvidenceParams { - /** EvidenceParams maxAgeNumBlocks */ - maxAgeNumBlocks?: Long | null; - - /** EvidenceParams maxAgeDuration */ - maxAgeDuration?: google.protobuf.IDuration | null; - } - - /** Represents an EvidenceParams. */ - class EvidenceParams implements IEvidenceParams { - /** - * Constructs a new EvidenceParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IEvidenceParams); - - /** EvidenceParams maxAgeNumBlocks. */ - public maxAgeNumBlocks: Long; - - /** EvidenceParams maxAgeDuration. */ - public maxAgeDuration?: google.protobuf.IDuration | null; - - /** - * Creates a new EvidenceParams instance using the specified properties. - * @param [properties] Properties to set - * @returns EvidenceParams instance - */ - public static create( - properties?: tendermint.abci.types.IEvidenceParams, - ): tendermint.abci.types.EvidenceParams; - - /** - * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.abci.types.EvidenceParams.verify|verify} messages. - * @param m EvidenceParams message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IEvidenceParams, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an EvidenceParams message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.EvidenceParams; - } - - /** Properties of a ValidatorParams. */ - interface IValidatorParams { - /** ValidatorParams pubKeyTypes */ - pubKeyTypes?: string[] | null; - } - - /** Represents a ValidatorParams. */ - class ValidatorParams implements IValidatorParams { - /** - * Constructs a new ValidatorParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IValidatorParams); - - /** ValidatorParams pubKeyTypes. */ - public pubKeyTypes: string[]; - - /** - * Creates a new ValidatorParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidatorParams instance - */ - public static create( - properties?: tendermint.abci.types.IValidatorParams, - ): tendermint.abci.types.ValidatorParams; - - /** - * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.abci.types.ValidatorParams.verify|verify} messages. - * @param m ValidatorParams message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IValidatorParams, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ValidatorParams message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ValidatorParams; - } - - /** Properties of a LastCommitInfo. */ - interface ILastCommitInfo { - /** LastCommitInfo round */ - round?: number | null; - - /** LastCommitInfo votes */ - votes?: tendermint.abci.types.IVoteInfo[] | null; - } - - /** Represents a LastCommitInfo. */ - class LastCommitInfo implements ILastCommitInfo { - /** - * Constructs a new LastCommitInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.ILastCommitInfo); - - /** LastCommitInfo round. */ - public round: number; - - /** LastCommitInfo votes. */ - public votes: tendermint.abci.types.IVoteInfo[]; - - /** - * Creates a new LastCommitInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns LastCommitInfo instance - */ - public static create( - properties?: tendermint.abci.types.ILastCommitInfo, - ): tendermint.abci.types.LastCommitInfo; - - /** - * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.types.LastCommitInfo.verify|verify} messages. - * @param m LastCommitInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.ILastCommitInfo, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a LastCommitInfo message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.LastCommitInfo; - } - - /** Properties of an Event. */ - interface IEvent { - /** Event type */ - type?: string | null; - - /** Event attributes */ - attributes?: tendermint.libs.kv.IPair[] | null; - } - - /** Represents an Event. */ - class Event implements IEvent { - /** - * Constructs a new Event. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IEvent); - - /** Event type. */ - public type: string; - - /** Event attributes. */ - public attributes: tendermint.libs.kv.IPair[]; - - /** - * Creates a new Event instance using the specified properties. - * @param [properties] Properties to set - * @returns Event instance - */ - public static create(properties?: tendermint.abci.types.IEvent): tendermint.abci.types.Event; - - /** - * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.types.Event.verify|verify} messages. - * @param m Event message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Event; - } - - /** Properties of a Header. */ - interface IHeader { - /** Header version */ - version?: tendermint.abci.types.IVersion | null; - - /** Header chainId */ - chainId?: string | null; - - /** Header height */ - height?: Long | null; - - /** Header time */ - time?: google.protobuf.ITimestamp | null; - - /** Header lastBlockId */ - lastBlockId?: tendermint.abci.types.IBlockID | null; - - /** Header lastCommitHash */ - lastCommitHash?: Uint8Array | null; - - /** Header dataHash */ - dataHash?: Uint8Array | null; - - /** Header validatorsHash */ - validatorsHash?: Uint8Array | null; - - /** Header nextValidatorsHash */ - nextValidatorsHash?: Uint8Array | null; - - /** Header consensusHash */ - consensusHash?: Uint8Array | null; - - /** Header appHash */ - appHash?: Uint8Array | null; - - /** Header lastResultsHash */ - lastResultsHash?: Uint8Array | null; - - /** Header evidenceHash */ - evidenceHash?: Uint8Array | null; - - /** Header proposerAddress */ - proposerAddress?: Uint8Array | null; - } - - /** Represents a Header. */ - class Header implements IHeader { - /** - * Constructs a new Header. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IHeader); - - /** Header version. */ - public version?: tendermint.abci.types.IVersion | null; - - /** Header chainId. */ - public chainId: string; - - /** Header height. */ - public height: Long; - - /** Header time. */ - public time?: google.protobuf.ITimestamp | null; - - /** Header lastBlockId. */ - public lastBlockId?: tendermint.abci.types.IBlockID | null; - - /** Header lastCommitHash. */ - public lastCommitHash: Uint8Array; - - /** Header dataHash. */ - public dataHash: Uint8Array; - - /** Header validatorsHash. */ - public validatorsHash: Uint8Array; - - /** Header nextValidatorsHash. */ - public nextValidatorsHash: Uint8Array; - - /** Header consensusHash. */ - public consensusHash: Uint8Array; - - /** Header appHash. */ - public appHash: Uint8Array; - - /** Header lastResultsHash. */ - public lastResultsHash: Uint8Array; - - /** Header evidenceHash. */ - public evidenceHash: Uint8Array; - - /** Header proposerAddress. */ - public proposerAddress: Uint8Array; - - /** - * Creates a new Header instance using the specified properties. - * @param [properties] Properties to set - * @returns Header instance - */ - public static create(properties?: tendermint.abci.types.IHeader): tendermint.abci.types.Header; - - /** - * Encodes the specified Header message. Does not implicitly {@link tendermint.abci.types.Header.verify|verify} messages. - * @param m Header message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Header; - } - - /** Properties of a Version. */ - interface IVersion { - /** Version Block */ - Block?: Long | null; - - /** Version App */ - App?: Long | null; - } - - /** Represents a Version. */ - class Version implements IVersion { - /** - * Constructs a new Version. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IVersion); - - /** Version Block. */ - public Block: Long; - - /** Version App. */ - public App: Long; - - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: tendermint.abci.types.IVersion): tendermint.abci.types.Version; - - /** - * Encodes the specified Version message. Does not implicitly {@link tendermint.abci.types.Version.verify|verify} messages. - * @param m Version message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Version; - } - - /** Properties of a BlockID. */ - interface IBlockID { - /** BlockID hash */ - hash?: Uint8Array | null; - - /** BlockID partsHeader */ - partsHeader?: tendermint.abci.types.IPartSetHeader | null; - } - - /** Represents a BlockID. */ - class BlockID implements IBlockID { - /** - * Constructs a new BlockID. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IBlockID); - - /** BlockID hash. */ - public hash: Uint8Array; - - /** BlockID partsHeader. */ - public partsHeader?: tendermint.abci.types.IPartSetHeader | null; - - /** - * Creates a new BlockID instance using the specified properties. - * @param [properties] Properties to set - * @returns BlockID instance - */ - public static create(properties?: tendermint.abci.types.IBlockID): tendermint.abci.types.BlockID; - - /** - * Encodes the specified BlockID message. Does not implicitly {@link tendermint.abci.types.BlockID.verify|verify} messages. - * @param m BlockID message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockID; - } - - /** Properties of a PartSetHeader. */ - interface IPartSetHeader { - /** PartSetHeader total */ - total?: number | null; - - /** PartSetHeader hash */ - hash?: Uint8Array | null; - } - - /** Represents a PartSetHeader. */ - class PartSetHeader implements IPartSetHeader { - /** - * Constructs a new PartSetHeader. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IPartSetHeader); - - /** PartSetHeader total. */ - public total: number; - - /** PartSetHeader hash. */ - public hash: Uint8Array; - - /** - * Creates a new PartSetHeader instance using the specified properties. - * @param [properties] Properties to set - * @returns PartSetHeader instance - */ - public static create( - properties?: tendermint.abci.types.IPartSetHeader, - ): tendermint.abci.types.PartSetHeader; - - /** - * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.abci.types.PartSetHeader.verify|verify} messages. - * @param m PartSetHeader message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.PartSetHeader; - } - - /** Properties of a Validator. */ - interface IValidator { - /** Validator address */ - address?: Uint8Array | null; - - /** Validator power */ - power?: Long | null; - } - - /** Represents a Validator. */ - class Validator implements IValidator { - /** - * Constructs a new Validator. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IValidator); - - /** Validator address. */ - public address: Uint8Array; - - /** Validator power. */ - public power: Long; - - /** - * Creates a new Validator instance using the specified properties. - * @param [properties] Properties to set - * @returns Validator instance - */ - public static create(properties?: tendermint.abci.types.IValidator): tendermint.abci.types.Validator; - - /** - * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.types.Validator.verify|verify} messages. - * @param m Validator message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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): tendermint.abci.types.Validator; - } - - /** Properties of a ValidatorUpdate. */ - interface IValidatorUpdate { - /** ValidatorUpdate pubKey */ - pubKey?: tendermint.abci.types.IPubKey | null; - - /** ValidatorUpdate power */ - power?: Long | null; - } - - /** Represents a ValidatorUpdate. */ - class ValidatorUpdate implements IValidatorUpdate { - /** - * Constructs a new ValidatorUpdate. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IValidatorUpdate); - - /** ValidatorUpdate pubKey. */ - public pubKey?: tendermint.abci.types.IPubKey | null; - - /** ValidatorUpdate power. */ - public power: Long; - - /** - * Creates a new ValidatorUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidatorUpdate instance - */ - public static create( - properties?: tendermint.abci.types.IValidatorUpdate, - ): tendermint.abci.types.ValidatorUpdate; - - /** - * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.types.ValidatorUpdate.verify|verify} messages. - * @param m ValidatorUpdate message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IValidatorUpdate, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ValidatorUpdate message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ValidatorUpdate; - } - - /** Properties of a VoteInfo. */ - interface IVoteInfo { - /** VoteInfo validator */ - validator?: tendermint.abci.types.IValidator | null; - - /** VoteInfo signedLastBlock */ - signedLastBlock?: boolean | null; - } - - /** Represents a VoteInfo. */ - class VoteInfo implements IVoteInfo { - /** - * Constructs a new VoteInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IVoteInfo); - - /** VoteInfo validator. */ - public validator?: tendermint.abci.types.IValidator | null; - - /** VoteInfo signedLastBlock. */ - public signedLastBlock: boolean; - - /** - * Creates a new VoteInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns VoteInfo instance - */ - public static create(properties?: tendermint.abci.types.IVoteInfo): tendermint.abci.types.VoteInfo; - - /** - * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.types.VoteInfo.verify|verify} messages. - * @param m VoteInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.VoteInfo; - } - - /** Properties of a PubKey. */ - interface IPubKey { - /** PubKey type */ - type?: string | null; - - /** PubKey data */ - data?: Uint8Array | null; - } - - /** Represents a PubKey. */ - class PubKey implements IPubKey { - /** - * Constructs a new PubKey. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IPubKey); - - /** PubKey type. */ - public type: string; - - /** PubKey data. */ - public data: Uint8Array; - - /** - * Creates a new PubKey instance using the specified properties. - * @param [properties] Properties to set - * @returns PubKey instance - */ - public static create(properties?: tendermint.abci.types.IPubKey): tendermint.abci.types.PubKey; - - /** - * Encodes the specified PubKey message. Does not implicitly {@link tendermint.abci.types.PubKey.verify|verify} messages. - * @param m PubKey message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.PubKey; - } - - /** Properties of an Evidence. */ - interface IEvidence { - /** Evidence type */ - type?: string | null; - - /** Evidence validator */ - validator?: tendermint.abci.types.IValidator | null; - - /** Evidence height */ - height?: Long | null; - - /** Evidence time */ - time?: google.protobuf.ITimestamp | null; - - /** Evidence totalVotingPower */ - totalVotingPower?: Long | null; - } - - /** Represents an Evidence. */ - class Evidence implements IEvidence { - /** - * Constructs a new Evidence. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IEvidence); - - /** Evidence type. */ - public type: string; - - /** Evidence validator. */ - public validator?: tendermint.abci.types.IValidator | null; - - /** Evidence height. */ - public height: Long; - - /** Evidence time. */ - public time?: google.protobuf.ITimestamp | null; - - /** Evidence totalVotingPower. */ - public totalVotingPower: Long; - - /** - * Creates a new Evidence instance using the specified properties. - * @param [properties] Properties to set - * @returns Evidence instance - */ - public static create(properties?: tendermint.abci.types.IEvidence): tendermint.abci.types.Evidence; - - /** - * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.types.Evidence.verify|verify} messages. - * @param m Evidence message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Evidence; - } - - /** Represents a ABCIApplication */ - class ABCIApplication extends $protobuf.rpc.Service { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { /** - * Constructs a new ABCIApplication 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 @@ -9512,7 +201,7 @@ export namespace tendermint { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new ABCIApplication service using the specified rpc implementation. + * 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 @@ -9522,519 +211,2357 @@ export namespace tendermint { rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean, - ): ABCIApplication; + ): Query; /** - * Calls Echo. - * @param request RequestEcho message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseEcho + * Calls Account. + * @param request QueryAccountRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAccountResponse */ - public echo( - request: tendermint.abci.types.IRequestEcho, - callback: tendermint.abci.types.ABCIApplication.EchoCallback, + public account( + request: cosmos.auth.v1beta1.IQueryAccountRequest, + callback: cosmos.auth.v1beta1.Query.AccountCallback, ): void; /** - * Calls Echo. - * @param request RequestEcho message or plain object + * Calls Account. + * @param request QueryAccountRequest message or plain object * @returns Promise */ - public echo(request: tendermint.abci.types.IRequestEcho): Promise; + public account( + request: cosmos.auth.v1beta1.IQueryAccountRequest, + ): Promise; /** - * Calls Flush. - * @param request RequestFlush message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseFlush + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse */ - public flush( - request: tendermint.abci.types.IRequestFlush, - callback: tendermint.abci.types.ABCIApplication.FlushCallback, + public params( + request: cosmos.auth.v1beta1.IQueryParamsRequest, + callback: cosmos.auth.v1beta1.Query.ParamsCallback, ): void; /** - * Calls Flush. - * @param request RequestFlush message or plain object + * Calls Params. + * @param request QueryParamsRequest message or plain object * @returns Promise */ - public flush( - request: tendermint.abci.types.IRequestFlush, - ): Promise; - - /** - * Calls Info. - * @param request RequestInfo message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseInfo - */ - public info( - request: tendermint.abci.types.IRequestInfo, - callback: tendermint.abci.types.ABCIApplication.InfoCallback, - ): void; - - /** - * Calls Info. - * @param request RequestInfo message or plain object - * @returns Promise - */ - public info(request: tendermint.abci.types.IRequestInfo): Promise; - - /** - * Calls SetOption. - * @param request RequestSetOption message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseSetOption - */ - public setOption( - request: tendermint.abci.types.IRequestSetOption, - callback: tendermint.abci.types.ABCIApplication.SetOptionCallback, - ): void; - - /** - * Calls SetOption. - * @param request RequestSetOption message or plain object - * @returns Promise - */ - public setOption( - request: tendermint.abci.types.IRequestSetOption, - ): Promise; - - /** - * Calls DeliverTx. - * @param request RequestDeliverTx message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx - */ - public deliverTx( - request: tendermint.abci.types.IRequestDeliverTx, - callback: tendermint.abci.types.ABCIApplication.DeliverTxCallback, - ): void; - - /** - * Calls DeliverTx. - * @param request RequestDeliverTx message or plain object - * @returns Promise - */ - public deliverTx( - request: tendermint.abci.types.IRequestDeliverTx, - ): Promise; - - /** - * Calls CheckTx. - * @param request RequestCheckTx message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseCheckTx - */ - public checkTx( - request: tendermint.abci.types.IRequestCheckTx, - callback: tendermint.abci.types.ABCIApplication.CheckTxCallback, - ): void; - - /** - * Calls CheckTx. - * @param request RequestCheckTx message or plain object - * @returns Promise - */ - public checkTx( - request: tendermint.abci.types.IRequestCheckTx, - ): Promise; - - /** - * Calls Query. - * @param request RequestQuery message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseQuery - */ - public query( - request: tendermint.abci.types.IRequestQuery, - callback: tendermint.abci.types.ABCIApplication.QueryCallback, - ): void; - - /** - * Calls Query. - * @param request RequestQuery message or plain object - * @returns Promise - */ - public query( - request: tendermint.abci.types.IRequestQuery, - ): Promise; - - /** - * Calls Commit. - * @param request RequestCommit message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseCommit - */ - public commit( - request: tendermint.abci.types.IRequestCommit, - callback: tendermint.abci.types.ABCIApplication.CommitCallback, - ): void; - - /** - * Calls Commit. - * @param request RequestCommit message or plain object - * @returns Promise - */ - public commit( - request: tendermint.abci.types.IRequestCommit, - ): Promise; - - /** - * Calls InitChain. - * @param request RequestInitChain message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseInitChain - */ - public initChain( - request: tendermint.abci.types.IRequestInitChain, - callback: tendermint.abci.types.ABCIApplication.InitChainCallback, - ): void; - - /** - * Calls InitChain. - * @param request RequestInitChain message or plain object - * @returns Promise - */ - public initChain( - request: tendermint.abci.types.IRequestInitChain, - ): Promise; - - /** - * Calls BeginBlock. - * @param request RequestBeginBlock message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock - */ - public beginBlock( - request: tendermint.abci.types.IRequestBeginBlock, - callback: tendermint.abci.types.ABCIApplication.BeginBlockCallback, - ): void; - - /** - * Calls BeginBlock. - * @param request RequestBeginBlock message or plain object - * @returns Promise - */ - public beginBlock( - request: tendermint.abci.types.IRequestBeginBlock, - ): Promise; - - /** - * Calls EndBlock. - * @param request RequestEndBlock message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseEndBlock - */ - public endBlock( - request: tendermint.abci.types.IRequestEndBlock, - callback: tendermint.abci.types.ABCIApplication.EndBlockCallback, - ): void; - - /** - * Calls EndBlock. - * @param request RequestEndBlock message or plain object - * @returns Promise - */ - public endBlock( - request: tendermint.abci.types.IRequestEndBlock, - ): Promise; + public params( + request: cosmos.auth.v1beta1.IQueryParamsRequest, + ): Promise; } - namespace ABCIApplication { + namespace Query { /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#echo}. + * Callback as used by {@link cosmos.auth.v1beta1.Query#account}. * @param error Error, if any - * @param [response] ResponseEcho + * @param [response] QueryAccountResponse */ - type EchoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseEcho) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#flush}. - * @param error Error, if any - * @param [response] ResponseFlush - */ - type FlushCallback = (error: Error | null, response?: tendermint.abci.types.ResponseFlush) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#info}. - * @param error Error, if any - * @param [response] ResponseInfo - */ - type InfoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseInfo) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#setOption}. - * @param error Error, if any - * @param [response] ResponseSetOption - */ - type SetOptionCallback = ( + type AccountCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseSetOption, + response?: cosmos.auth.v1beta1.QueryAccountResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#deliverTx}. + * Callback as used by {@link cosmos.auth.v1beta1.Query#params}. * @param error Error, if any - * @param [response] ResponseDeliverTx + * @param [response] QueryParamsResponse */ - type DeliverTxCallback = ( + type ParamsCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseDeliverTx, + response?: cosmos.auth.v1beta1.QueryParamsResponse, + ) => void; + } + + /** Properties of a QueryAccountRequest. */ + interface IQueryAccountRequest { + /** QueryAccountRequest address */ + address?: string | null; + } + + /** Represents a QueryAccountRequest. */ + class QueryAccountRequest implements IQueryAccountRequest { + /** + * Constructs a new QueryAccountRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryAccountRequest); + + /** QueryAccountRequest address. */ + public address: string; + + /** + * Creates a new QueryAccountRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountRequest instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryAccountRequest, + ): cosmos.auth.v1beta1.QueryAccountRequest; + + /** + * Encodes the specified QueryAccountRequest message. Does not implicitly {@link cosmos.auth.v1beta1.QueryAccountRequest.verify|verify} messages. + * @param m QueryAccountRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryAccountRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryAccountRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountRequest + * @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.auth.v1beta1.QueryAccountRequest; + } + + /** Properties of a QueryAccountResponse. */ + interface IQueryAccountResponse { + /** QueryAccountResponse account */ + account?: google.protobuf.IAny | null; + } + + /** Represents a QueryAccountResponse. */ + class QueryAccountResponse implements IQueryAccountResponse { + /** + * Constructs a new QueryAccountResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryAccountResponse); + + /** QueryAccountResponse account. */ + public account?: google.protobuf.IAny | null; + + /** + * Creates a new QueryAccountResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountResponse instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryAccountResponse, + ): cosmos.auth.v1beta1.QueryAccountResponse; + + /** + * Encodes the specified QueryAccountResponse message. Does not implicitly {@link cosmos.auth.v1beta1.QueryAccountResponse.verify|verify} messages. + * @param m QueryAccountResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryAccountResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryAccountResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountResponse + * @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.auth.v1beta1.QueryAccountResponse; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest {} + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + /** + * Constructs a new QueryParamsRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryParamsRequest); + + /** + * Creates a new QueryParamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsRequest instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryParamsRequest, + ): cosmos.auth.v1beta1.QueryParamsRequest; + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.auth.v1beta1.QueryParamsRequest.verify|verify} messages. + * @param m QueryParamsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryParamsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsRequest + * @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.auth.v1beta1.QueryParamsRequest; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + /** QueryParamsResponse params */ + params?: cosmos.auth.v1beta1.IParams | null; + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new QueryParamsResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: cosmos.auth.v1beta1.IParams | null; + + /** + * Creates a new QueryParamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsResponse instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryParamsResponse, + ): cosmos.auth.v1beta1.QueryParamsResponse; + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.auth.v1beta1.QueryParamsResponse.verify|verify} messages. + * @param m QueryParamsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryParamsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsResponse + * @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.auth.v1beta1.QueryParamsResponse; + } + } + } + + /** Namespace bank. */ + namespace bank { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** 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.bank.v1beta1.IQueryBalanceRequest, + callback: cosmos.bank.v1beta1.Query.BalanceCallback, + ): void; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @returns Promise + */ + public balance( + request: cosmos.bank.v1beta1.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.bank.v1beta1.IQueryAllBalancesRequest, + callback: cosmos.bank.v1beta1.Query.AllBalancesCallback, + ): void; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @returns Promise + */ + public allBalances( + request: cosmos.bank.v1beta1.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.bank.v1beta1.IQueryTotalSupplyRequest, + callback: cosmos.bank.v1beta1.Query.TotalSupplyCallback, + ): void; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @returns Promise + */ + public totalSupply( + request: cosmos.bank.v1beta1.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.bank.v1beta1.IQuerySupplyOfRequest, + callback: cosmos.bank.v1beta1.Query.SupplyOfCallback, + ): void; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @returns Promise + */ + public supplyOf( + request: cosmos.bank.v1beta1.IQuerySupplyOfRequest, + ): Promise; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params( + request: cosmos.bank.v1beta1.IQueryParamsRequest, + callback: cosmos.bank.v1beta1.Query.ParamsCallback, + ): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params( + request: cosmos.bank.v1beta1.IQueryParamsRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos.bank.v1beta1.Query#balance}. + * @param error Error, if any + * @param [response] QueryBalanceResponse + */ + type BalanceCallback = ( + error: Error | null, + response?: cosmos.bank.v1beta1.QueryBalanceResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#checkTx}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#allBalances}. * @param error Error, if any - * @param [response] ResponseCheckTx + * @param [response] QueryAllBalancesResponse */ - type CheckTxCallback = ( + type AllBalancesCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseCheckTx, + response?: cosmos.bank.v1beta1.QueryAllBalancesResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#query}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#totalSupply}. * @param error Error, if any - * @param [response] ResponseQuery + * @param [response] QueryTotalSupplyResponse */ - type QueryCallback = (error: Error | null, response?: tendermint.abci.types.ResponseQuery) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#commit}. - * @param error Error, if any - * @param [response] ResponseCommit - */ - type CommitCallback = (error: Error | null, response?: tendermint.abci.types.ResponseCommit) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#initChain}. - * @param error Error, if any - * @param [response] ResponseInitChain - */ - type InitChainCallback = ( + type TotalSupplyCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseInitChain, + response?: cosmos.bank.v1beta1.QueryTotalSupplyResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#beginBlock}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#supplyOf}. * @param error Error, if any - * @param [response] ResponseBeginBlock + * @param [response] QuerySupplyOfResponse */ - type BeginBlockCallback = ( + type SupplyOfCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseBeginBlock, + response?: cosmos.bank.v1beta1.QuerySupplyOfResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#endBlock}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#params}. * @param error Error, if any - * @param [response] ResponseEndBlock + * @param [response] QueryParamsResponse */ - type EndBlockCallback = ( + type ParamsCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseEndBlock, + response?: cosmos.bank.v1beta1.QueryParamsResponse, ) => void; } + + /** Properties of a QueryBalanceRequest. */ + interface IQueryBalanceRequest { + /** QueryBalanceRequest address */ + address?: string | 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.bank.v1beta1.IQueryBalanceRequest); + + /** QueryBalanceRequest address. */ + public address: string; + + /** 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.bank.v1beta1.IQueryBalanceRequest, + ): cosmos.bank.v1beta1.QueryBalanceRequest; + + /** + * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryBalanceRequest; + } + + /** Properties of a QueryBalanceResponse. */ + interface IQueryBalanceResponse { + /** QueryBalanceResponse balance */ + balance?: cosmos.base.v1beta1.ICoin | null; + } + + /** Represents a QueryBalanceResponse. */ + class QueryBalanceResponse implements IQueryBalanceResponse { + /** + * Constructs a new QueryBalanceResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryBalanceResponse); + + /** QueryBalanceResponse balance. */ + public balance?: cosmos.base.v1beta1.ICoin | null; + + /** + * Creates a new QueryBalanceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryBalanceResponse, + ): cosmos.bank.v1beta1.QueryBalanceResponse; + + /** + * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryBalanceResponse; + } + + /** Properties of a QueryAllBalancesRequest. */ + interface IQueryAllBalancesRequest { + /** QueryAllBalancesRequest address */ + address?: string | null; + + /** QueryAllBalancesRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryAllBalancesRequest. */ + class QueryAllBalancesRequest implements IQueryAllBalancesRequest { + /** + * Constructs a new QueryAllBalancesRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryAllBalancesRequest); + + /** QueryAllBalancesRequest address. */ + public address: string; + + /** QueryAllBalancesRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryAllBalancesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesRequest instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryAllBalancesRequest, + ): cosmos.bank.v1beta1.QueryAllBalancesRequest; + + /** + * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryAllBalancesRequest; + } + + /** Properties of a QueryAllBalancesResponse. */ + interface IQueryAllBalancesResponse { + /** QueryAllBalancesResponse balances */ + balances?: cosmos.base.v1beta1.ICoin[] | null; + + /** QueryAllBalancesResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + } + + /** Represents a QueryAllBalancesResponse. */ + class QueryAllBalancesResponse implements IQueryAllBalancesResponse { + /** + * Constructs a new QueryAllBalancesResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryAllBalancesResponse); + + /** QueryAllBalancesResponse balances. */ + public balances: cosmos.base.v1beta1.ICoin[]; + + /** QueryAllBalancesResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** + * Creates a new QueryAllBalancesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryAllBalancesResponse, + ): cosmos.bank.v1beta1.QueryAllBalancesResponse; + + /** + * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.IQueryTotalSupplyRequest); + + /** + * Creates a new QueryTotalSupplyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyRequest instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryTotalSupplyRequest, + ): cosmos.bank.v1beta1.QueryTotalSupplyRequest; + + /** + * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryTotalSupplyRequest; + } + + /** Properties of a QueryTotalSupplyResponse. */ + interface IQueryTotalSupplyResponse { + /** QueryTotalSupplyResponse supply */ + supply?: cosmos.base.v1beta1.ICoin[] | null; + } + + /** Represents a QueryTotalSupplyResponse. */ + class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { + /** + * Constructs a new QueryTotalSupplyResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryTotalSupplyResponse); + + /** QueryTotalSupplyResponse supply. */ + public supply: cosmos.base.v1beta1.ICoin[]; + + /** + * Creates a new QueryTotalSupplyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryTotalSupplyResponse, + ): cosmos.bank.v1beta1.QueryTotalSupplyResponse; + + /** + * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.IQuerySupplyOfRequest, + ): cosmos.bank.v1beta1.QuerySupplyOfRequest; + + /** + * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QuerySupplyOfRequest; + } + + /** Properties of a QuerySupplyOfResponse. */ + interface IQuerySupplyOfResponse { + /** QuerySupplyOfResponse amount */ + amount?: cosmos.base.v1beta1.ICoin | null; + } + + /** Represents a QuerySupplyOfResponse. */ + class QuerySupplyOfResponse implements IQuerySupplyOfResponse { + /** + * Constructs a new QuerySupplyOfResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQuerySupplyOfResponse); + + /** QuerySupplyOfResponse amount. */ + public amount?: cosmos.base.v1beta1.ICoin | null; + + /** + * Creates a new QuerySupplyOfResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQuerySupplyOfResponse, + ): cosmos.bank.v1beta1.QuerySupplyOfResponse; + + /** + * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QuerySupplyOfResponse; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest {} + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + /** + * Constructs a new QueryParamsRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryParamsRequest); + + /** + * Creates a new QueryParamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsRequest instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryParamsRequest, + ): cosmos.bank.v1beta1.QueryParamsRequest; + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.bank.v1beta1.QueryParamsRequest.verify|verify} messages. + * @param m QueryParamsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IQueryParamsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsRequest + * @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.bank.v1beta1.QueryParamsRequest; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + /** QueryParamsResponse params */ + params?: cosmos.auth.v1beta1.IParams | null; + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new QueryParamsResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: cosmos.auth.v1beta1.IParams | null; + + /** + * Creates a new QueryParamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryParamsResponse, + ): cosmos.bank.v1beta1.QueryParamsResponse; + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.bank.v1beta1.QueryParamsResponse.verify|verify} messages. + * @param m QueryParamsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IQueryParamsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsResponse + * @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.bank.v1beta1.QueryParamsResponse; + } + } + } + + /** Namespace base. */ + namespace base { + /** Namespace query. */ + namespace query { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a PageRequest. */ + interface IPageRequest { + /** PageRequest key */ + key?: Uint8Array | null; + + /** PageRequest offset */ + offset?: Long | null; + + /** PageRequest limit */ + limit?: Long | null; + + /** PageRequest countTotal */ + countTotal?: boolean | null; + } + + /** Represents a PageRequest. */ + class PageRequest implements IPageRequest { + /** + * Constructs a new PageRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.query.v1beta1.IPageRequest); + + /** PageRequest key. */ + public key: Uint8Array; + + /** PageRequest offset. */ + public offset: Long; + + /** PageRequest limit. */ + public limit: Long; + + /** PageRequest countTotal. */ + public countTotal: boolean; + + /** + * Creates a new PageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PageRequest instance + */ + public static create( + properties?: cosmos.base.query.v1beta1.IPageRequest, + ): cosmos.base.query.v1beta1.PageRequest; + + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @param m PageRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.query.v1beta1.IPageRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageRequest + * @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.base.query.v1beta1.PageRequest; + } + + /** Properties of a PageResponse. */ + interface IPageResponse { + /** PageResponse nextKey */ + nextKey?: Uint8Array | null; + + /** PageResponse total */ + total?: Long | null; + } + + /** Represents a PageResponse. */ + class PageResponse implements IPageResponse { + /** + * Constructs a new PageResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.query.v1beta1.IPageResponse); + + /** PageResponse nextKey. */ + public nextKey: Uint8Array; + + /** PageResponse total. */ + public total: Long; + + /** + * Creates a new PageResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PageResponse instance + */ + public static create( + properties?: cosmos.base.query.v1beta1.IPageResponse, + ): cosmos.base.query.v1beta1.PageResponse; + + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @param m PageResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.query.v1beta1.IPageResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageResponse + * @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.base.query.v1beta1.PageResponse; + } + } + } + + /** Namespace v1beta1. */ + namespace v1beta1 { + /** 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.base.v1beta1.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.base.v1beta1.ICoin): cosmos.base.v1beta1.Coin; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.IDecCoin): cosmos.base.v1beta1.DecCoin; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.IIntProto): cosmos.base.v1beta1.IntProto; + + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.IDecProto): cosmos.base.v1beta1.DecProto; + + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.DecProto; + } } } /** Namespace crypto. */ namespace crypto { - /** Namespace merkle. */ - namespace merkle { - /** Properties of a ProofOp. */ - interface IProofOp { - /** ProofOp type */ - type?: string | null; + /** Namespace multisig. */ + namespace multisig { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a MultiSignature. */ + interface IMultiSignature { + /** MultiSignature signatures */ + signatures?: Uint8Array[] | null; + } - /** ProofOp key */ + /** Represents a MultiSignature. */ + class MultiSignature implements IMultiSignature { + /** + * Constructs a new MultiSignature. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.IMultiSignature, + ): cosmos.crypto.multisig.v1beta1.MultiSignature; + + /** + * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.ICompactBitArray, + ): cosmos.crypto.multisig.v1beta1.CompactBitArray; + + /** + * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.CompactBitArray; + } + } + } + + /** Namespace secp256k1. */ + namespace secp256k1 { + /** Properties of a PubKey. */ + interface IPubKey { + /** PubKey key */ key?: Uint8Array | null; - - /** ProofOp data */ - data?: Uint8Array | null; } - /** Represents a ProofOp. */ - class ProofOp implements IProofOp { + /** Represents a PubKey. */ + class PubKey implements IPubKey { /** - * Constructs a new ProofOp. + * Constructs a new PubKey. * @param [p] Properties to set */ - constructor(p?: tendermint.crypto.merkle.IProofOp); + constructor(p?: cosmos.crypto.secp256k1.IPubKey); - /** ProofOp type. */ - public type: string; - - /** ProofOp key. */ + /** PubKey key. */ public key: Uint8Array; - /** ProofOp data. */ - public data: Uint8Array; - /** - * Creates a new ProofOp instance using the specified properties. + * Creates a new PubKey instance using the specified properties. * @param [properties] Properties to set - * @returns ProofOp instance + * @returns PubKey instance */ - public static create( - properties?: tendermint.crypto.merkle.IProofOp, - ): tendermint.crypto.merkle.ProofOp; + public static create(properties?: cosmos.crypto.secp256k1.IPubKey): cosmos.crypto.secp256k1.PubKey; /** - * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.merkle.ProofOp.verify|verify} messages. - * @param m ProofOp message or plain object to encode + * Encodes the specified PubKey message. Does not implicitly {@link cosmos.crypto.secp256k1.PubKey.verify|verify} messages. + * @param m PubKey message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.crypto.merkle.IProofOp, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.crypto.secp256k1.IPubKey, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProofOp message from the specified reader or buffer. + * Decodes a PubKey message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns ProofOp + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.ProofOp; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.secp256k1.PubKey; } - /** Properties of a Proof. */ - interface IProof { - /** Proof ops */ - ops?: tendermint.crypto.merkle.IProofOp[] | null; + /** Properties of a PrivKey. */ + interface IPrivKey { + /** PrivKey key */ + key?: Uint8Array | null; } - /** Represents a Proof. */ - class Proof implements IProof { + /** Represents a PrivKey. */ + class PrivKey implements IPrivKey { /** - * Constructs a new Proof. + * Constructs a new PrivKey. * @param [p] Properties to set */ - constructor(p?: tendermint.crypto.merkle.IProof); + constructor(p?: cosmos.crypto.secp256k1.IPrivKey); - /** Proof ops. */ - public ops: tendermint.crypto.merkle.IProofOp[]; + /** PrivKey key. */ + public key: Uint8Array; /** - * Creates a new Proof instance using the specified properties. + * Creates a new PrivKey instance using the specified properties. * @param [properties] Properties to set - * @returns Proof instance + * @returns PrivKey instance */ - public static create(properties?: tendermint.crypto.merkle.IProof): tendermint.crypto.merkle.Proof; + public static create(properties?: cosmos.crypto.secp256k1.IPrivKey): cosmos.crypto.secp256k1.PrivKey; /** - * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.merkle.Proof.verify|verify} messages. - * @param m Proof message or plain object to encode + * Encodes the specified PrivKey message. Does not implicitly {@link cosmos.crypto.secp256k1.PrivKey.verify|verify} messages. + * @param m PrivKey message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.crypto.merkle.IProof, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.crypto.secp256k1.IPrivKey, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Proof message from the specified reader or buffer. + * Decodes a PrivKey message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns Proof + * @returns PrivKey * @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): tendermint.crypto.merkle.Proof; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.secp256k1.PrivKey; } } } - /** Namespace libs. */ - namespace libs { - /** Namespace kv. */ - namespace kv { - /** Properties of a Pair. */ - interface IPair { - /** Pair key */ - key?: Uint8Array | null; + /** Namespace tx. */ + namespace tx { + /** Namespace signing. */ + namespace signing { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127, + } - /** Pair value */ - value?: Uint8Array | null; + /** Properties of a SignatureDescriptors. */ + interface ISignatureDescriptors { + /** SignatureDescriptors signatures */ + signatures?: cosmos.tx.signing.v1beta1.ISignatureDescriptor[] | null; + } + + /** Represents a SignatureDescriptors. */ + class SignatureDescriptors implements ISignatureDescriptors { + /** + * Constructs a new SignatureDescriptors. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.ISignatureDescriptors); + + /** SignatureDescriptors signatures. */ + public signatures: cosmos.tx.signing.v1beta1.ISignatureDescriptor[]; + + /** + * Creates a new SignatureDescriptors instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptors instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.ISignatureDescriptors, + ): cosmos.tx.signing.v1beta1.SignatureDescriptors; + + /** + * Encodes the specified SignatureDescriptors message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptors.verify|verify} messages. + * @param m SignatureDescriptors message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.v1beta1.ISignatureDescriptors, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptors message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptors + * @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.tx.signing.v1beta1.SignatureDescriptors; + } + + /** Properties of a SignatureDescriptor. */ + interface ISignatureDescriptor { + /** SignatureDescriptor publicKey */ + publicKey?: google.protobuf.IAny | null; + + /** SignatureDescriptor data */ + data?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData | null; + + /** SignatureDescriptor sequence */ + sequence?: Long | null; + } + + /** Represents a SignatureDescriptor. */ + class SignatureDescriptor implements ISignatureDescriptor { + /** + * Constructs a new SignatureDescriptor. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.ISignatureDescriptor); + + /** SignatureDescriptor publicKey. */ + public publicKey?: google.protobuf.IAny | null; + + /** SignatureDescriptor data. */ + public data?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData | null; + + /** SignatureDescriptor sequence. */ + public sequence: Long; + + /** + * Creates a new SignatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptor instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.ISignatureDescriptor, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor; + + /** + * Encodes the specified SignatureDescriptor message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.verify|verify} messages. + * @param m SignatureDescriptor message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.v1beta1.ISignatureDescriptor, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptor message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptor + * @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.tx.signing.v1beta1.SignatureDescriptor; + } + + namespace SignatureDescriptor { + /** Properties of a Data. */ + interface IData { + /** Data single */ + single?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle | null; + + /** Data multi */ + multi?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti | null; + } + + /** Represents a Data. */ + class Data implements IData { + /** + * Constructs a new Data. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData); + + /** Data single. */ + public single?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle | null; + + /** Data multi. */ + public multi?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti | null; + + /** Data sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.verify|verify} messages. + * @param m Data message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Data + * @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.tx.signing.v1beta1.SignatureDescriptor.Data; + } + + namespace Data { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.v1beta1.SignMode | null; + + /** Single signature */ + signature?: Uint8Array | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.v1beta1.SignMode; + + /** Single signature. */ + public signature: Uint8Array; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi signatures */ + signatures?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi signatures. */ + public signatures: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.Multi; + } + } + } + } + } + + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a Tx. */ + interface ITx { + /** Tx body */ + body?: cosmos.tx.v1beta1.ITxBody | null; + + /** Tx authInfo */ + authInfo?: cosmos.tx.v1beta1.IAuthInfo | null; + + /** Tx signatures */ + signatures?: Uint8Array[] | null; } - /** Represents a Pair. */ - class Pair implements IPair { + /** Represents a Tx. */ + class Tx implements ITx { /** - * Constructs a new Pair. + * Constructs a new Tx. * @param [p] Properties to set */ - constructor(p?: tendermint.libs.kv.IPair); + constructor(p?: cosmos.tx.v1beta1.ITx); - /** Pair key. */ - public key: Uint8Array; + /** Tx body. */ + public body?: cosmos.tx.v1beta1.ITxBody | null; - /** Pair value. */ - public value: Uint8Array; + /** Tx authInfo. */ + public authInfo?: cosmos.tx.v1beta1.IAuthInfo | null; + + /** Tx signatures. */ + public signatures: Uint8Array[]; /** - * Creates a new Pair instance using the specified properties. + * Creates a new Tx instance using the specified properties. * @param [properties] Properties to set - * @returns Pair instance + * @returns Tx instance */ - public static create(properties?: tendermint.libs.kv.IPair): tendermint.libs.kv.Pair; + public static create(properties?: cosmos.tx.v1beta1.ITx): cosmos.tx.v1beta1.Tx; /** - * Encodes the specified Pair message. Does not implicitly {@link tendermint.libs.kv.Pair.verify|verify} messages. - * @param m Pair message or plain object to encode + * Encodes the specified Tx message. Does not implicitly {@link cosmos.tx.v1beta1.Tx.verify|verify} messages. + * @param m Tx message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.libs.kv.IPair, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.tx.v1beta1.ITx, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Pair message from the specified reader or buffer. + * 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 Pair + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.Pair; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.Tx; } - /** Properties of a KI64Pair. */ - interface IKI64Pair { - /** KI64Pair key */ - key?: Uint8Array | null; + /** Properties of a TxRaw. */ + interface ITxRaw { + /** TxRaw bodyBytes */ + bodyBytes?: Uint8Array | null; - /** KI64Pair value */ - value?: Long | null; + /** TxRaw authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** TxRaw signatures */ + signatures?: Uint8Array[] | null; } - /** Represents a KI64Pair. */ - class KI64Pair implements IKI64Pair { + /** Represents a TxRaw. */ + class TxRaw implements ITxRaw { /** - * Constructs a new KI64Pair. + * Constructs a new TxRaw. * @param [p] Properties to set */ - constructor(p?: tendermint.libs.kv.IKI64Pair); + constructor(p?: cosmos.tx.v1beta1.ITxRaw); - /** KI64Pair key. */ - public key: Uint8Array; + /** TxRaw bodyBytes. */ + public bodyBytes: Uint8Array; - /** KI64Pair value. */ - public value: Long; + /** TxRaw authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** TxRaw signatures. */ + public signatures: Uint8Array[]; /** - * Creates a new KI64Pair instance using the specified properties. + * Creates a new TxRaw instance using the specified properties. * @param [properties] Properties to set - * @returns KI64Pair instance + * @returns TxRaw instance */ - public static create(properties?: tendermint.libs.kv.IKI64Pair): tendermint.libs.kv.KI64Pair; + public static create(properties?: cosmos.tx.v1beta1.ITxRaw): cosmos.tx.v1beta1.TxRaw; /** - * Encodes the specified KI64Pair message. Does not implicitly {@link tendermint.libs.kv.KI64Pair.verify|verify} messages. - * @param m KI64Pair message or plain object to encode + * Encodes the specified TxRaw message. Does not implicitly {@link cosmos.tx.v1beta1.TxRaw.verify|verify} messages. + * @param m TxRaw message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.libs.kv.IKI64Pair, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.tx.v1beta1.ITxRaw, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KI64Pair message from the specified reader or buffer. + * Decodes a TxRaw message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns KI64Pair + * @returns TxRaw * @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): tendermint.libs.kv.KI64Pair; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.TxRaw; + } + + /** Properties of a SignDoc. */ + interface ISignDoc { + /** SignDoc bodyBytes */ + bodyBytes?: Uint8Array | null; + + /** SignDoc authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** SignDoc chainId */ + chainId?: string | null; + + /** SignDoc accountNumber */ + accountNumber?: Long | null; + } + + /** Represents a SignDoc. */ + class SignDoc implements ISignDoc { + /** + * Constructs a new SignDoc. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ISignDoc); + + /** SignDoc bodyBytes. */ + public bodyBytes: Uint8Array; + + /** SignDoc authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** SignDoc chainId. */ + public chainId: string; + + /** SignDoc accountNumber. */ + public accountNumber: Long; + + /** + * Creates a new SignDoc instance using the specified properties. + * @param [properties] Properties to set + * @returns SignDoc instance + */ + public static create(properties?: cosmos.tx.v1beta1.ISignDoc): cosmos.tx.v1beta1.SignDoc; + + /** + * Encodes the specified SignDoc message. Does not implicitly {@link cosmos.tx.v1beta1.SignDoc.verify|verify} messages. + * @param m SignDoc message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.ISignDoc, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.SignDoc; + } + + /** Properties of a TxBody. */ + interface ITxBody { + /** TxBody messages */ + messages?: google.protobuf.IAny[] | null; + + /** TxBody memo */ + memo?: string | null; + + /** TxBody timeoutHeight */ + timeoutHeight?: 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 [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ITxBody); + + /** TxBody messages. */ + public messages: google.protobuf.IAny[]; + + /** TxBody memo. */ + public memo: string; + + /** TxBody timeoutHeight. */ + public timeoutHeight: 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.tx.v1beta1.ITxBody): cosmos.tx.v1beta1.TxBody; + + /** + * Encodes the specified TxBody message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.TxBody; + } + + /** Properties of an AuthInfo. */ + interface IAuthInfo { + /** AuthInfo signerInfos */ + signerInfos?: cosmos.tx.v1beta1.ISignerInfo[] | null; + + /** AuthInfo fee */ + fee?: cosmos.tx.v1beta1.IFee | null; + } + + /** Represents an AuthInfo. */ + class AuthInfo implements IAuthInfo { + /** + * Constructs a new AuthInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.IAuthInfo); + + /** AuthInfo signerInfos. */ + public signerInfos: cosmos.tx.v1beta1.ISignerInfo[]; + + /** AuthInfo fee. */ + public fee?: cosmos.tx.v1beta1.IFee | null; + + /** + * Creates a new AuthInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthInfo instance + */ + public static create(properties?: cosmos.tx.v1beta1.IAuthInfo): cosmos.tx.v1beta1.AuthInfo; + + /** + * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos.tx.v1beta1.AuthInfo.verify|verify} messages. + * @param m AuthInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.IAuthInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.AuthInfo; + } + + /** Properties of a SignerInfo. */ + interface ISignerInfo { + /** SignerInfo publicKey */ + publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo */ + modeInfo?: cosmos.tx.v1beta1.IModeInfo | null; + + /** SignerInfo sequence */ + sequence?: Long | null; + } + + /** Represents a SignerInfo. */ + class SignerInfo implements ISignerInfo { + /** + * Constructs a new SignerInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ISignerInfo); + + /** SignerInfo publicKey. */ + public publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo. */ + public modeInfo?: cosmos.tx.v1beta1.IModeInfo | null; + + /** SignerInfo sequence. */ + public sequence: Long; + + /** + * Creates a new SignerInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SignerInfo instance + */ + public static create(properties?: cosmos.tx.v1beta1.ISignerInfo): cosmos.tx.v1beta1.SignerInfo; + + /** + * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.SignerInfo; + } + + /** Properties of a ModeInfo. */ + interface IModeInfo { + /** ModeInfo single */ + single?: cosmos.tx.v1beta1.ModeInfo.ISingle | null; + + /** ModeInfo multi */ + multi?: cosmos.tx.v1beta1.ModeInfo.IMulti | null; + } + + /** Represents a ModeInfo. */ + class ModeInfo implements IModeInfo { + /** + * Constructs a new ModeInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.IModeInfo); + + /** ModeInfo single. */ + public single?: cosmos.tx.v1beta1.ModeInfo.ISingle | null; + + /** ModeInfo multi. */ + public multi?: cosmos.tx.v1beta1.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.tx.v1beta1.IModeInfo): cosmos.tx.v1beta1.ModeInfo; + + /** + * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos.tx.v1beta1.ModeInfo.verify|verify} messages. + * @param m ModeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.IModeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.ModeInfo; + } + + namespace ModeInfo { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.v1beta1.SignMode | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ModeInfo.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.v1beta1.SignMode; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos.tx.v1beta1.ModeInfo.ISingle, + ): cosmos.tx.v1beta1.ModeInfo.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.ModeInfo.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi modeInfos */ + modeInfos?: cosmos.tx.v1beta1.IModeInfo[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ModeInfo.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi modeInfos. */ + public modeInfos: cosmos.tx.v1beta1.IModeInfo[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos.tx.v1beta1.ModeInfo.IMulti, + ): cosmos.tx.v1beta1.ModeInfo.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.ModeInfo.Multi; + } + } + + /** Properties of a Fee. */ + interface IFee { + /** Fee amount */ + amount?: cosmos.base.v1beta1.ICoin[] | null; + + /** Fee gasLimit */ + gasLimit?: Long | null; + + /** Fee payer */ + payer?: string | null; + + /** Fee granter */ + granter?: string | null; + } + + /** Represents a Fee. */ + class Fee implements IFee { + /** + * Constructs a new Fee. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.IFee); + + /** Fee amount. */ + public amount: cosmos.base.v1beta1.ICoin[]; + + /** Fee gasLimit. */ + public gasLimit: Long; + + /** Fee payer. */ + public payer: string; + + /** Fee granter. */ + public granter: string; + + /** + * Creates a new Fee instance using the specified properties. + * @param [properties] Properties to set + * @returns Fee instance + */ + public static create(properties?: cosmos.tx.v1beta1.IFee): cosmos.tx.v1beta1.Fee; + + /** + * Encodes the specified Fee message. Does not implicitly {@link cosmos.tx.v1beta1.Fee.verify|verify} messages. + * @param m Fee message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.IFee, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.Fee; } } } @@ -10093,102 +2620,7527 @@ export namespace google { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Any; } - /** Properties of a Timestamp. */ - interface ITimestamp { - /** Timestamp seconds */ - seconds?: Long | null; - - /** Timestamp nanos */ - nanos?: number | null; + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + /** FileDescriptorSet file */ + file?: google.protobuf.IFileDescriptorProto[] | null; } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { /** - * Constructs a new Timestamp. + * Constructs a new FileDescriptorSet. * @param [p] Properties to set */ - constructor(p?: google.protobuf.ITimestamp); + constructor(p?: google.protobuf.IFileDescriptorSet); - /** Timestamp seconds. */ - public seconds: Long; - - /** Timestamp nanos. */ - public nanos: number; + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; /** - * Creates a new Timestamp instance using the specified properties. + * Creates a new FileDescriptorSet instance using the specified properties. * @param [properties] Properties to set - * @returns Timestamp instance + * @returns FileDescriptorSet instance */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + public static create( + properties?: google.protobuf.IFileDescriptorSet, + ): google.protobuf.FileDescriptorSet; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param m Timestamp message or plain object to encode + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param m FileDescriptorSet message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: google.protobuf.IFileDescriptorSet, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns Timestamp + * @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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorSet; } - /** Properties of a Duration. */ - interface IDuration { - /** Duration seconds */ - seconds?: Long | null; + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + /** FileDescriptorProto name */ + name?: string | null; - /** Duration nanos */ - nanos?: number | 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 Duration. */ - class Duration implements IDuration { + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { /** - * Constructs a new Duration. + * Constructs a new FileDescriptorProto. * @param [p] Properties to set */ - constructor(p?: google.protobuf.IDuration); + constructor(p?: google.protobuf.IFileDescriptorProto); - /** Duration seconds. */ - public seconds: Long; + /** FileDescriptorProto name. */ + public name: string; - /** Duration nanos. */ - public nanos: number; + /** 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 Duration instance using the specified properties. + * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns Duration instance + * @returns FileDescriptorProto instance */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + public static create( + properties?: google.protobuf.IFileDescriptorProto, + ): google.protobuf.FileDescriptorProto; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param m Duration message or plain object to encode + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param m FileDescriptorProto message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: google.protobuf.IDuration, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: google.protobuf.IFileDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns Duration + * @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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m DescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.DescriptorProto; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m ExtensionRange message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.DescriptorProto.IExtensionRange, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.DescriptorProto.ExtensionRange; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m ReservedRange message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.DescriptorProto.IReservedRange, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.DescriptorProto.ReservedRange; + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m FieldDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IFieldDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.FieldDescriptorProto; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m OneofDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IOneofDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.OneofDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m EnumDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IEnumDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m EnumValueDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.IEnumValueDescriptorProto, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.EnumValueDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m ServiceDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.IServiceDescriptorProto, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.ServiceDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MethodDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IMethodDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.MethodDescriptorProto; + } + + /** 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; + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + /** + * Constructs a new FileOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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; + } + + 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; + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + /** + * Constructs a new MessageOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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 { + /** 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; + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + /** + * Constructs a new FieldOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m OneofOptions message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IOneofOptions, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.OneofOptions; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + /** EnumOptions allowAlias */ + allowAlias?: boolean | null; + + /** EnumOptions deprecated */ + deprecated?: boolean | null; + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + /** + * Constructs a new EnumOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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 { + /** EnumValueOptions deprecated */ + deprecated?: boolean | null; + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + /** + * Constructs a new EnumValueOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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 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 [p] Properties to set + */ + constructor(p?: 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 m ServiceOptions message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IServiceOptions, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.ServiceOptions; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + /** MethodOptions deprecated */ + deprecated?: boolean | null; + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** MethodOptions .google.api.http */ + ".google.api.http"?: google.api.IHttpRule | null; + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + /** + * Constructs a new MethodOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 m MethodOptions message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IMethodOptions, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.MethodOptions; + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + /** UninterpretedOption name */ + name?: google.protobuf.UninterpretedOption.INamePart[] | null; + + /** UninterpretedOption identifierValue */ + identifierValue?: string | null; + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: Long | null; + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: 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 [p] Properties to set + */ + constructor(p?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: Long; + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: 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 m UninterpretedOption message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IUninterpretedOption, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.UninterpretedOption; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m NamePart message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.UninterpretedOption.INamePart, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.UninterpretedOption.NamePart; + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m SourceCodeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.ISourceCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.SourceCodeInfo; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m Location message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.SourceCodeInfo.ILocation, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.SourceCodeInfo.Location; + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m GeneratedCodeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IGeneratedCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.GeneratedCodeInfo; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m Annotation message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.GeneratedCodeInfo.IAnnotation, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.GeneratedCodeInfo.Annotation; + } + } + } + + /** Namespace api. */ + namespace api { + /** Properties of a Http. */ + interface IHttp { + /** Http rules */ + rules?: google.api.IHttpRule[] | null; + } + + /** Represents a Http. */ + class Http implements IHttp { + /** + * Constructs a new Http. + * @param [p] Properties to set + */ + constructor(p?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param m Http message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.api.IHttp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Http + * @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.api.Http; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + /** HttpRule get */ + get?: string | null; + + /** HttpRule put */ + put?: string | null; + + /** HttpRule post */ + post?: string | null; + + /** HttpRule delete */ + delete?: string | null; + + /** HttpRule patch */ + patch?: string | null; + + /** HttpRule custom */ + custom?: google.api.ICustomHttpPattern | null; + + /** HttpRule selector */ + selector?: string | null; + + /** HttpRule body */ + body?: string | null; + + /** HttpRule additionalBindings */ + additionalBindings?: google.api.IHttpRule[] | null; + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + /** + * Constructs a new HttpRule. + * @param [p] Properties to set + */ + constructor(p?: google.api.IHttpRule); + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: google.api.ICustomHttpPattern | null; + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: "get" | "put" | "post" | "delete" | "patch" | "custom"; + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param m HttpRule message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.api.IHttpRule, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + /** CustomHttpPattern kind */ + kind?: string | null; + + /** CustomHttpPattern path */ + path?: string | null; + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + /** + * Constructs a new CustomHttpPattern. + * @param [p] Properties to set + */ + constructor(p?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param m CustomHttpPattern message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.api.ICustomHttpPattern, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + } + } +} + +/** Namespace ibc. */ +export namespace ibc { + /** Namespace core. */ + namespace core { + /** 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?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenInit signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenInit. */ + class MsgChannelOpenInit implements IMsgChannelOpenInit { + /** + * Constructs a new MsgChannelOpenInit. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenInit); + + /** MsgChannelOpenInit portId. */ + public portId: string; + + /** MsgChannelOpenInit channelId. */ + public channelId: string; + + /** MsgChannelOpenInit channel. */ + public channel?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenInit signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenInit instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenInit, + ): ibc.core.channel.v1.MsgChannelOpenInit; + + /** + * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelOpenInit; + } + + /** Properties of a MsgChannelOpenTry. */ + interface IMsgChannelOpenTry { + /** MsgChannelOpenTry portId */ + portId?: string | null; + + /** MsgChannelOpenTry desiredChannelId */ + desiredChannelId?: string | null; + + /** MsgChannelOpenTry counterpartyChosenChannelId */ + counterpartyChosenChannelId?: string | null; + + /** MsgChannelOpenTry channel */ + channel?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenTry counterpartyVersion */ + counterpartyVersion?: string | null; + + /** MsgChannelOpenTry proofInit */ + proofInit?: Uint8Array | null; + + /** MsgChannelOpenTry proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenTry signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenTry. */ + class MsgChannelOpenTry implements IMsgChannelOpenTry { + /** + * Constructs a new MsgChannelOpenTry. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenTry); + + /** MsgChannelOpenTry portId. */ + public portId: string; + + /** MsgChannelOpenTry desiredChannelId. */ + public desiredChannelId: string; + + /** MsgChannelOpenTry counterpartyChosenChannelId. */ + public counterpartyChosenChannelId: string; + + /** MsgChannelOpenTry channel. */ + public channel?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenTry counterpartyVersion. */ + public counterpartyVersion: string; + + /** MsgChannelOpenTry proofInit. */ + public proofInit: Uint8Array; + + /** MsgChannelOpenTry proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenTry signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenTry instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenTry instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenTry, + ): ibc.core.channel.v1.MsgChannelOpenTry; + + /** + * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelOpenTry; + } + + /** Properties of a MsgChannelOpenAck. */ + interface IMsgChannelOpenAck { + /** MsgChannelOpenAck portId */ + portId?: string | null; + + /** MsgChannelOpenAck channelId */ + channelId?: string | null; + + /** MsgChannelOpenAck counterpartyChannelId */ + counterpartyChannelId?: string | null; + + /** MsgChannelOpenAck counterpartyVersion */ + counterpartyVersion?: string | null; + + /** MsgChannelOpenAck proofTry */ + proofTry?: Uint8Array | null; + + /** MsgChannelOpenAck proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenAck signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenAck. */ + class MsgChannelOpenAck implements IMsgChannelOpenAck { + /** + * Constructs a new MsgChannelOpenAck. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenAck); + + /** MsgChannelOpenAck portId. */ + public portId: string; + + /** MsgChannelOpenAck channelId. */ + public channelId: string; + + /** MsgChannelOpenAck counterpartyChannelId. */ + public counterpartyChannelId: string; + + /** MsgChannelOpenAck counterpartyVersion. */ + public counterpartyVersion: string; + + /** MsgChannelOpenAck proofTry. */ + public proofTry: Uint8Array; + + /** MsgChannelOpenAck proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenAck signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenAck instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenAck instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenAck, + ): ibc.core.channel.v1.MsgChannelOpenAck; + + /** + * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenConfirm signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenConfirm. */ + class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { + /** + * Constructs a new MsgChannelOpenConfirm. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenConfirm); + + /** MsgChannelOpenConfirm portId. */ + public portId: string; + + /** MsgChannelOpenConfirm channelId. */ + public channelId: string; + + /** MsgChannelOpenConfirm proofAck. */ + public proofAck: Uint8Array; + + /** MsgChannelOpenConfirm proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenConfirm signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenConfirm instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenConfirm, + ): ibc.core.channel.v1.MsgChannelOpenConfirm; + + /** + * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelOpenConfirm; + } + + /** Properties of a MsgChannelCloseInit. */ + interface IMsgChannelCloseInit { + /** MsgChannelCloseInit portId */ + portId?: string | null; + + /** MsgChannelCloseInit channelId */ + channelId?: string | null; + + /** MsgChannelCloseInit signer */ + signer?: string | null; + } + + /** Represents a MsgChannelCloseInit. */ + class MsgChannelCloseInit implements IMsgChannelCloseInit { + /** + * Constructs a new MsgChannelCloseInit. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelCloseInit); + + /** MsgChannelCloseInit portId. */ + public portId: string; + + /** MsgChannelCloseInit channelId. */ + public channelId: string; + + /** MsgChannelCloseInit signer. */ + public signer: string; + + /** + * Creates a new MsgChannelCloseInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelCloseInit instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelCloseInit, + ): ibc.core.channel.v1.MsgChannelCloseInit; + + /** + * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelCloseConfirm signer */ + signer?: string | null; + } + + /** Represents a MsgChannelCloseConfirm. */ + class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { + /** + * Constructs a new MsgChannelCloseConfirm. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelCloseConfirm); + + /** MsgChannelCloseConfirm portId. */ + public portId: string; + + /** MsgChannelCloseConfirm channelId. */ + public channelId: string; + + /** MsgChannelCloseConfirm proofInit. */ + public proofInit: Uint8Array; + + /** MsgChannelCloseConfirm proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelCloseConfirm signer. */ + public signer: string; + + /** + * Creates a new MsgChannelCloseConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelCloseConfirm instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelCloseConfirm, + ): ibc.core.channel.v1.MsgChannelCloseConfirm; + + /** + * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelCloseConfirm; + } + + /** Properties of a MsgRecvPacket. */ + interface IMsgRecvPacket { + /** MsgRecvPacket packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgRecvPacket proof */ + proof?: Uint8Array | null; + + /** MsgRecvPacket proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgRecvPacket signer */ + signer?: string | null; + } + + /** Represents a MsgRecvPacket. */ + class MsgRecvPacket implements IMsgRecvPacket { + /** + * Constructs a new MsgRecvPacket. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgRecvPacket); + + /** MsgRecvPacket packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgRecvPacket proof. */ + public proof: Uint8Array; + + /** MsgRecvPacket proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgRecvPacket signer. */ + public signer: string; + + /** + * Creates a new MsgRecvPacket instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgRecvPacket instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgRecvPacket, + ): ibc.core.channel.v1.MsgRecvPacket; + + /** + * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * @param m MsgRecvPacket message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: ibc.core.channel.v1.IMsgRecvPacket, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgRecvPacket message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgRecvPacket + * @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, + ): ibc.core.channel.v1.MsgRecvPacket; + } + + /** Properties of a MsgTimeout. */ + interface IMsgTimeout { + /** MsgTimeout packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeout proof */ + proof?: Uint8Array | null; + + /** MsgTimeout proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeout nextSequenceRecv */ + nextSequenceRecv?: Long | null; + + /** MsgTimeout signer */ + signer?: string | null; + } + + /** Represents a MsgTimeout. */ + class MsgTimeout implements IMsgTimeout { + /** + * Constructs a new MsgTimeout. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgTimeout); + + /** MsgTimeout packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeout proof. */ + public proof: Uint8Array; + + /** MsgTimeout proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeout nextSequenceRecv. */ + public nextSequenceRecv: Long; + + /** MsgTimeout signer. */ + public signer: string; + + /** + * Creates a new MsgTimeout instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgTimeout instance + */ + public static create(properties?: ibc.core.channel.v1.IMsgTimeout): ibc.core.channel.v1.MsgTimeout; + + /** + * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.channel.v1.MsgTimeout; + } + + /** Properties of a MsgTimeoutOnClose. */ + interface IMsgTimeoutOnClose { + /** MsgTimeoutOnClose packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeoutOnClose proof */ + proof?: Uint8Array | null; + + /** MsgTimeoutOnClose proofClose */ + proofClose?: Uint8Array | null; + + /** MsgTimeoutOnClose proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeoutOnClose nextSequenceRecv */ + nextSequenceRecv?: Long | null; + + /** MsgTimeoutOnClose signer */ + signer?: string | null; + } + + /** Represents a MsgTimeoutOnClose. */ + class MsgTimeoutOnClose implements IMsgTimeoutOnClose { + /** + * Constructs a new MsgTimeoutOnClose. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgTimeoutOnClose); + + /** MsgTimeoutOnClose packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeoutOnClose proof. */ + public proof: Uint8Array; + + /** MsgTimeoutOnClose proofClose. */ + public proofClose: Uint8Array; + + /** MsgTimeoutOnClose proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeoutOnClose nextSequenceRecv. */ + public nextSequenceRecv: Long; + + /** MsgTimeoutOnClose signer. */ + public signer: string; + + /** + * Creates a new MsgTimeoutOnClose instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgTimeoutOnClose instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgTimeoutOnClose, + ): ibc.core.channel.v1.MsgTimeoutOnClose; + + /** + * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * @param m MsgTimeoutOnClose message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IMsgTimeoutOnClose, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgTimeoutOnClose + * @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, + ): ibc.core.channel.v1.MsgTimeoutOnClose; + } + + /** Properties of a MsgAcknowledgement. */ + interface IMsgAcknowledgement { + /** MsgAcknowledgement packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgAcknowledgement acknowledgement */ + acknowledgement?: Uint8Array | null; + + /** MsgAcknowledgement proof */ + proof?: Uint8Array | null; + + /** MsgAcknowledgement proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgAcknowledgement signer */ + signer?: string | null; + } + + /** Represents a MsgAcknowledgement. */ + class MsgAcknowledgement implements IMsgAcknowledgement { + /** + * Constructs a new MsgAcknowledgement. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgAcknowledgement); + + /** MsgAcknowledgement packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgAcknowledgement acknowledgement. */ + public acknowledgement: Uint8Array; + + /** MsgAcknowledgement proof. */ + public proof: Uint8Array; + + /** MsgAcknowledgement proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgAcknowledgement signer. */ + public signer: string; + + /** + * Creates a new MsgAcknowledgement instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgAcknowledgement instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgAcknowledgement, + ): ibc.core.channel.v1.MsgAcknowledgement; + + /** + * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgAcknowledgement; + } + + /** Properties of a Channel. */ + interface IChannel { + /** Channel state */ + state?: ibc.core.channel.v1.State | null; + + /** Channel ordering */ + ordering?: ibc.core.channel.v1.Order | null; + + /** Channel counterparty */ + counterparty?: ibc.core.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?: ibc.core.channel.v1.IChannel); + + /** Channel state. */ + public state: ibc.core.channel.v1.State; + + /** Channel ordering. */ + public ordering: ibc.core.channel.v1.Order; + + /** Channel counterparty. */ + public counterparty?: ibc.core.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?: ibc.core.channel.v1.IChannel): ibc.core.channel.v1.Channel; + + /** + * Encodes the specified Channel message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.channel.v1.Channel; + } + + /** Properties of an IdentifiedChannel. */ + interface IIdentifiedChannel { + /** IdentifiedChannel state */ + state?: ibc.core.channel.v1.State | null; + + /** IdentifiedChannel ordering */ + ordering?: ibc.core.channel.v1.Order | null; + + /** IdentifiedChannel counterparty */ + counterparty?: ibc.core.channel.v1.ICounterparty | null; + + /** IdentifiedChannel connectionHops */ + connectionHops?: string[] | null; + + /** IdentifiedChannel version */ + version?: string | null; + + /** IdentifiedChannel portId */ + portId?: string | null; + + /** IdentifiedChannel channelId */ + channelId?: string | null; + } + + /** Represents an IdentifiedChannel. */ + class IdentifiedChannel implements IIdentifiedChannel { + /** + * Constructs a new IdentifiedChannel. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IIdentifiedChannel); + + /** IdentifiedChannel state. */ + public state: ibc.core.channel.v1.State; + + /** IdentifiedChannel ordering. */ + public ordering: ibc.core.channel.v1.Order; + + /** IdentifiedChannel counterparty. */ + public counterparty?: ibc.core.channel.v1.ICounterparty | null; + + /** IdentifiedChannel connectionHops. */ + public connectionHops: string[]; + + /** IdentifiedChannel version. */ + public version: string; + + /** IdentifiedChannel portId. */ + public portId: string; + + /** IdentifiedChannel channelId. */ + public channelId: string; + + /** + * Creates a new IdentifiedChannel instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentifiedChannel instance + */ + public static create( + properties?: ibc.core.channel.v1.IIdentifiedChannel, + ): ibc.core.channel.v1.IdentifiedChannel; + + /** + * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * @param m IdentifiedChannel message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IIdentifiedChannel, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IdentifiedChannel message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IdentifiedChannel + * @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, + ): ibc.core.channel.v1.IdentifiedChannel; + } + + /** 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?: ibc.core.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?: ibc.core.channel.v1.ICounterparty, + ): ibc.core.channel.v1.Counterparty; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.Counterparty; + } + + /** Properties of a Packet. */ + interface IPacket { + /** Packet sequence */ + sequence?: 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?: ibc.core.client.v1.IHeight | null; + + /** Packet timeoutTimestamp */ + timeoutTimestamp?: Long | null; + } + + /** Represents a Packet. */ + class Packet implements IPacket { + /** + * Constructs a new Packet. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IPacket); + + /** Packet sequence. */ + public sequence: 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?: ibc.core.client.v1.IHeight | null; + + /** Packet timeoutTimestamp. */ + public timeoutTimestamp: Long; + + /** + * Creates a new Packet instance using the specified properties. + * @param [properties] Properties to set + * @returns Packet instance + */ + public static create(properties?: ibc.core.channel.v1.IPacket): ibc.core.channel.v1.Packet; + + /** + * Encodes the specified Packet message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.channel.v1.Packet; + } + + /** Properties of a PacketAckCommitment. */ + interface IPacketAckCommitment { + /** PacketAckCommitment portId */ + portId?: string | null; + + /** PacketAckCommitment channelId */ + channelId?: string | null; + + /** PacketAckCommitment sequence */ + sequence?: Long | null; + + /** PacketAckCommitment hash */ + hash?: Uint8Array | null; + } + + /** Represents a PacketAckCommitment. */ + class PacketAckCommitment implements IPacketAckCommitment { + /** + * Constructs a new PacketAckCommitment. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IPacketAckCommitment); + + /** PacketAckCommitment portId. */ + public portId: string; + + /** PacketAckCommitment channelId. */ + public channelId: string; + + /** PacketAckCommitment sequence. */ + public sequence: Long; + + /** PacketAckCommitment hash. */ + public hash: Uint8Array; + + /** + * Creates a new PacketAckCommitment instance using the specified properties. + * @param [properties] Properties to set + * @returns PacketAckCommitment instance + */ + public static create( + properties?: ibc.core.channel.v1.IPacketAckCommitment, + ): ibc.core.channel.v1.PacketAckCommitment; + + /** + * Encodes the specified PacketAckCommitment message. Does not implicitly {@link ibc.core.channel.v1.PacketAckCommitment.verify|verify} messages. + * @param m PacketAckCommitment message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IPacketAckCommitment, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PacketAckCommitment message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PacketAckCommitment + * @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, + ): ibc.core.channel.v1.PacketAckCommitment; + } + + /** Properties of an Acknowledgement. */ + interface IAcknowledgement { + /** Acknowledgement result */ + result?: Uint8Array | null; + + /** Acknowledgement error */ + error?: string | null; + } + + /** Represents an Acknowledgement. */ + class Acknowledgement implements IAcknowledgement { + /** + * Constructs a new Acknowledgement. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IAcknowledgement); + + /** Acknowledgement result. */ + public result: Uint8Array; + + /** Acknowledgement error. */ + public error: string; + + /** Acknowledgement response. */ + public response?: "result" | "error"; + + /** + * Creates a new Acknowledgement instance using the specified properties. + * @param [properties] Properties to set + * @returns Acknowledgement instance + */ + public static create( + properties?: ibc.core.channel.v1.IAcknowledgement, + ): ibc.core.channel.v1.Acknowledgement; + + /** + * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * @param m Acknowledgement message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IAcknowledgement, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Acknowledgement message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Acknowledgement + * @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, + ): ibc.core.channel.v1.Acknowledgement; + } + + /** 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 Channel. + * @param request QueryChannelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelResponse + */ + public channel( + request: ibc.core.channel.v1.IQueryChannelRequest, + callback: ibc.core.channel.v1.Query.ChannelCallback, + ): void; + + /** + * Calls Channel. + * @param request QueryChannelRequest message or plain object + * @returns Promise + */ + public channel( + request: ibc.core.channel.v1.IQueryChannelRequest, + ): Promise; + + /** + * Calls Channels. + * @param request QueryChannelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelsResponse + */ + public channels( + request: ibc.core.channel.v1.IQueryChannelsRequest, + callback: ibc.core.channel.v1.Query.ChannelsCallback, + ): void; + + /** + * Calls Channels. + * @param request QueryChannelsRequest message or plain object + * @returns Promise + */ + public channels( + request: ibc.core.channel.v1.IQueryChannelsRequest, + ): Promise; + + /** + * Calls ConnectionChannels. + * @param request QueryConnectionChannelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse + */ + public connectionChannels( + request: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + callback: ibc.core.channel.v1.Query.ConnectionChannelsCallback, + ): void; + + /** + * Calls ConnectionChannels. + * @param request QueryConnectionChannelsRequest message or plain object + * @returns Promise + */ + public connectionChannels( + request: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + ): Promise; + + /** + * Calls ChannelClientState. + * @param request QueryChannelClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse + */ + public channelClientState( + request: ibc.core.channel.v1.IQueryChannelClientStateRequest, + callback: ibc.core.channel.v1.Query.ChannelClientStateCallback, + ): void; + + /** + * Calls ChannelClientState. + * @param request QueryChannelClientStateRequest message or plain object + * @returns Promise + */ + public channelClientState( + request: ibc.core.channel.v1.IQueryChannelClientStateRequest, + ): Promise; + + /** + * Calls ChannelConsensusState. + * @param request QueryChannelConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse + */ + public channelConsensusState( + request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + callback: ibc.core.channel.v1.Query.ChannelConsensusStateCallback, + ): void; + + /** + * Calls ChannelConsensusState. + * @param request QueryChannelConsensusStateRequest message or plain object + * @returns Promise + */ + public channelConsensusState( + request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + ): Promise; + + /** + * Calls PacketCommitment. + * @param request QueryPacketCommitmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse + */ + public packetCommitment( + request: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + callback: ibc.core.channel.v1.Query.PacketCommitmentCallback, + ): void; + + /** + * Calls PacketCommitment. + * @param request QueryPacketCommitmentRequest message or plain object + * @returns Promise + */ + public packetCommitment( + request: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + ): Promise; + + /** + * Calls PacketCommitments. + * @param request QueryPacketCommitmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse + */ + public packetCommitments( + request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + callback: ibc.core.channel.v1.Query.PacketCommitmentsCallback, + ): void; + + /** + * Calls PacketCommitments. + * @param request QueryPacketCommitmentsRequest message or plain object + * @returns Promise + */ + public packetCommitments( + request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + ): Promise; + + /** + * Calls PacketAcknowledgement. + * @param request QueryPacketAcknowledgementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse + */ + public packetAcknowledgement( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + callback: ibc.core.channel.v1.Query.PacketAcknowledgementCallback, + ): void; + + /** + * Calls PacketAcknowledgement. + * @param request QueryPacketAcknowledgementRequest message or plain object + * @returns Promise + */ + public packetAcknowledgement( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + ): Promise; + + /** + * Calls UnreceivedPackets. + * @param request QueryUnreceivedPacketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse + */ + public unreceivedPackets( + request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + callback: ibc.core.channel.v1.Query.UnreceivedPacketsCallback, + ): void; + + /** + * Calls UnreceivedPackets. + * @param request QueryUnreceivedPacketsRequest message or plain object + * @returns Promise + */ + public unreceivedPackets( + request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + ): Promise; + + /** + * Calls UnrelayedAcks. + * @param request QueryUnrelayedAcksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnrelayedAcksResponse + */ + public unrelayedAcks( + request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + callback: ibc.core.channel.v1.Query.UnrelayedAcksCallback, + ): void; + + /** + * Calls UnrelayedAcks. + * @param request QueryUnrelayedAcksRequest message or plain object + * @returns Promise + */ + public unrelayedAcks( + request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + ): Promise; + + /** + * Calls NextSequenceReceive. + * @param request QueryNextSequenceReceiveRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse + */ + public nextSequenceReceive( + request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + callback: ibc.core.channel.v1.Query.NextSequenceReceiveCallback, + ): void; + + /** + * Calls NextSequenceReceive. + * @param request QueryNextSequenceReceiveRequest message or plain object + * @returns Promise + */ + public nextSequenceReceive( + request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channel}. + * @param error Error, if any + * @param [response] QueryChannelResponse + */ + type ChannelCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channels}. + * @param error Error, if any + * @param [response] QueryChannelsResponse + */ + type ChannelsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. + * @param error Error, if any + * @param [response] QueryConnectionChannelsResponse + */ + type ConnectionChannelsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryConnectionChannelsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. + * @param error Error, if any + * @param [response] QueryChannelClientStateResponse + */ + type ChannelClientStateCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelClientStateResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. + * @param error Error, if any + * @param [response] QueryChannelConsensusStateResponse + */ + type ChannelConsensusStateCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelConsensusStateResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. + * @param error Error, if any + * @param [response] QueryPacketCommitmentResponse + */ + type PacketCommitmentCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketCommitmentResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. + * @param error Error, if any + * @param [response] QueryPacketCommitmentsResponse + */ + type PacketCommitmentsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketCommitmentsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. + * @param error Error, if any + * @param [response] QueryPacketAcknowledgementResponse + */ + type PacketAcknowledgementCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketAcknowledgementResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. + * @param error Error, if any + * @param [response] QueryUnreceivedPacketsResponse + */ + type UnreceivedPacketsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryUnreceivedPacketsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#unrelayedAcks}. + * @param error Error, if any + * @param [response] QueryUnrelayedAcksResponse + */ + type UnrelayedAcksCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryUnrelayedAcksResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. + * @param error Error, if any + * @param [response] QueryNextSequenceReceiveResponse + */ + type NextSequenceReceiveCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryNextSequenceReceiveResponse, + ) => void; + } + + /** Properties of a QueryChannelRequest. */ + interface IQueryChannelRequest { + /** QueryChannelRequest portId */ + portId?: string | null; + + /** QueryChannelRequest channelId */ + channelId?: string | null; + } + + /** Represents a QueryChannelRequest. */ + class QueryChannelRequest implements IQueryChannelRequest { + /** + * Constructs a new QueryChannelRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelRequest); + + /** QueryChannelRequest portId. */ + public portId: string; + + /** QueryChannelRequest channelId. */ + public channelId: string; + + /** + * Creates a new QueryChannelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelRequest, + ): ibc.core.channel.v1.QueryChannelRequest; + + /** + * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * @param m QueryChannelRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelRequest + * @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, + ): ibc.core.channel.v1.QueryChannelRequest; + } + + /** Properties of a QueryChannelResponse. */ + interface IQueryChannelResponse { + /** QueryChannelResponse channel */ + channel?: ibc.core.channel.v1.IChannel | null; + + /** QueryChannelResponse proof */ + proof?: Uint8Array | null; + + /** QueryChannelResponse proofPath */ + proofPath?: string | null; + + /** QueryChannelResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelResponse. */ + class QueryChannelResponse implements IQueryChannelResponse { + /** + * Constructs a new QueryChannelResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelResponse); + + /** QueryChannelResponse channel. */ + public channel?: ibc.core.channel.v1.IChannel | null; + + /** QueryChannelResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelResponse proofPath. */ + public proofPath: string; + + /** QueryChannelResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelResponse, + ): ibc.core.channel.v1.QueryChannelResponse; + + /** + * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * @param m QueryChannelResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelResponse + * @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, + ): ibc.core.channel.v1.QueryChannelResponse; + } + + /** Properties of a QueryChannelsRequest. */ + interface IQueryChannelsRequest { + /** QueryChannelsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryChannelsRequest. */ + class QueryChannelsRequest implements IQueryChannelsRequest { + /** + * Constructs a new QueryChannelsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelsRequest); + + /** QueryChannelsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryChannelsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelsRequest, + ): ibc.core.channel.v1.QueryChannelsRequest; + + /** + * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * @param m QueryChannelsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelsRequest + * @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, + ): ibc.core.channel.v1.QueryChannelsRequest; + } + + /** Properties of a QueryChannelsResponse. */ + interface IQueryChannelsResponse { + /** QueryChannelsResponse channels */ + channels?: ibc.core.channel.v1.IIdentifiedChannel[] | null; + + /** QueryChannelsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryChannelsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelsResponse. */ + class QueryChannelsResponse implements IQueryChannelsResponse { + /** + * Constructs a new QueryChannelsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelsResponse); + + /** QueryChannelsResponse channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + + /** QueryChannelsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryChannelsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelsResponse, + ): ibc.core.channel.v1.QueryChannelsResponse; + + /** + * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * @param m QueryChannelsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelsResponse + * @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, + ): ibc.core.channel.v1.QueryChannelsResponse; + } + + /** Properties of a QueryConnectionChannelsRequest. */ + interface IQueryConnectionChannelsRequest { + /** QueryConnectionChannelsRequest connection */ + connection?: string | null; + + /** QueryConnectionChannelsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryConnectionChannelsRequest. */ + class QueryConnectionChannelsRequest implements IQueryConnectionChannelsRequest { + /** + * Constructs a new QueryConnectionChannelsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryConnectionChannelsRequest); + + /** QueryConnectionChannelsRequest connection. */ + public connection: string; + + /** QueryConnectionChannelsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryConnectionChannelsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionChannelsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + ): ibc.core.channel.v1.QueryConnectionChannelsRequest; + + /** + * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * @param m QueryConnectionChannelsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionChannelsRequest + * @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, + ): ibc.core.channel.v1.QueryConnectionChannelsRequest; + } + + /** Properties of a QueryConnectionChannelsResponse. */ + interface IQueryConnectionChannelsResponse { + /** QueryConnectionChannelsResponse channels */ + channels?: ibc.core.channel.v1.IIdentifiedChannel[] | null; + + /** QueryConnectionChannelsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionChannelsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionChannelsResponse. */ + class QueryConnectionChannelsResponse implements IQueryConnectionChannelsResponse { + /** + * Constructs a new QueryConnectionChannelsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryConnectionChannelsResponse); + + /** QueryConnectionChannelsResponse channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + + /** QueryConnectionChannelsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionChannelsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionChannelsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionChannelsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryConnectionChannelsResponse, + ): ibc.core.channel.v1.QueryConnectionChannelsResponse; + + /** + * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * @param m QueryConnectionChannelsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryConnectionChannelsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionChannelsResponse + * @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, + ): ibc.core.channel.v1.QueryConnectionChannelsResponse; + } + + /** Properties of a QueryChannelClientStateRequest. */ + interface IQueryChannelClientStateRequest { + /** QueryChannelClientStateRequest portId */ + portId?: string | null; + + /** QueryChannelClientStateRequest channelId */ + channelId?: string | null; + } + + /** Represents a QueryChannelClientStateRequest. */ + class QueryChannelClientStateRequest implements IQueryChannelClientStateRequest { + /** + * Constructs a new QueryChannelClientStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelClientStateRequest); + + /** QueryChannelClientStateRequest portId. */ + public portId: string; + + /** QueryChannelClientStateRequest channelId. */ + public channelId: string; + + /** + * Creates a new QueryChannelClientStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelClientStateRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelClientStateRequest, + ): ibc.core.channel.v1.QueryChannelClientStateRequest; + + /** + * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * @param m QueryChannelClientStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelClientStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelClientStateRequest + * @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, + ): ibc.core.channel.v1.QueryChannelClientStateRequest; + } + + /** Properties of a QueryChannelClientStateResponse. */ + interface IQueryChannelClientStateResponse { + /** QueryChannelClientStateResponse identifiedClientState */ + identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryChannelClientStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryChannelClientStateResponse proofPath */ + proofPath?: string | null; + + /** QueryChannelClientStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelClientStateResponse. */ + class QueryChannelClientStateResponse implements IQueryChannelClientStateResponse { + /** + * Constructs a new QueryChannelClientStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelClientStateResponse); + + /** QueryChannelClientStateResponse identifiedClientState. */ + public identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryChannelClientStateResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelClientStateResponse proofPath. */ + public proofPath: string; + + /** QueryChannelClientStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelClientStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelClientStateResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelClientStateResponse, + ): ibc.core.channel.v1.QueryChannelClientStateResponse; + + /** + * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * @param m QueryChannelClientStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelClientStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelClientStateResponse + * @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, + ): ibc.core.channel.v1.QueryChannelClientStateResponse; + } + + /** Properties of a QueryChannelConsensusStateRequest. */ + interface IQueryChannelConsensusStateRequest { + /** QueryChannelConsensusStateRequest portId */ + portId?: string | null; + + /** QueryChannelConsensusStateRequest channelId */ + channelId?: string | null; + + /** QueryChannelConsensusStateRequest versionNumber */ + versionNumber?: Long | null; + + /** QueryChannelConsensusStateRequest versionHeight */ + versionHeight?: Long | null; + } + + /** Represents a QueryChannelConsensusStateRequest. */ + class QueryChannelConsensusStateRequest implements IQueryChannelConsensusStateRequest { + /** + * Constructs a new QueryChannelConsensusStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelConsensusStateRequest); + + /** QueryChannelConsensusStateRequest portId. */ + public portId: string; + + /** QueryChannelConsensusStateRequest channelId. */ + public channelId: string; + + /** QueryChannelConsensusStateRequest versionNumber. */ + public versionNumber: Long; + + /** QueryChannelConsensusStateRequest versionHeight. */ + public versionHeight: Long; + + /** + * Creates a new QueryChannelConsensusStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelConsensusStateRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + ): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + + /** + * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * @param m QueryChannelConsensusStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelConsensusStateRequest + * @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, + ): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + } + + /** Properties of a QueryChannelConsensusStateResponse. */ + interface IQueryChannelConsensusStateResponse { + /** QueryChannelConsensusStateResponse consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** QueryChannelConsensusStateResponse clientId */ + clientId?: string | null; + + /** QueryChannelConsensusStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryChannelConsensusStateResponse proofPath */ + proofPath?: string | null; + + /** QueryChannelConsensusStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelConsensusStateResponse. */ + class QueryChannelConsensusStateResponse implements IQueryChannelConsensusStateResponse { + /** + * Constructs a new QueryChannelConsensusStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelConsensusStateResponse); + + /** QueryChannelConsensusStateResponse consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** QueryChannelConsensusStateResponse clientId. */ + public clientId: string; + + /** QueryChannelConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelConsensusStateResponse proofPath. */ + public proofPath: string; + + /** QueryChannelConsensusStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelConsensusStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelConsensusStateResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, + ): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + + /** + * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * @param m QueryChannelConsensusStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelConsensusStateResponse + * @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, + ): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + } + + /** Properties of a QueryPacketCommitmentRequest. */ + interface IQueryPacketCommitmentRequest { + /** QueryPacketCommitmentRequest portId */ + portId?: string | null; + + /** QueryPacketCommitmentRequest channelId */ + channelId?: string | null; + + /** QueryPacketCommitmentRequest sequence */ + sequence?: Long | null; + } + + /** Represents a QueryPacketCommitmentRequest. */ + class QueryPacketCommitmentRequest implements IQueryPacketCommitmentRequest { + /** + * Constructs a new QueryPacketCommitmentRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentRequest); + + /** QueryPacketCommitmentRequest portId. */ + public portId: string; + + /** QueryPacketCommitmentRequest channelId. */ + public channelId: string; + + /** QueryPacketCommitmentRequest sequence. */ + public sequence: Long; + + /** + * Creates a new QueryPacketCommitmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + ): ibc.core.channel.v1.QueryPacketCommitmentRequest; + + /** + * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * @param m QueryPacketCommitmentRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentRequest + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentRequest; + } + + /** Properties of a QueryPacketCommitmentResponse. */ + interface IQueryPacketCommitmentResponse { + /** QueryPacketCommitmentResponse commitment */ + commitment?: Uint8Array | null; + + /** QueryPacketCommitmentResponse proof */ + proof?: Uint8Array | null; + + /** QueryPacketCommitmentResponse proofPath */ + proofPath?: string | null; + + /** QueryPacketCommitmentResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketCommitmentResponse. */ + class QueryPacketCommitmentResponse implements IQueryPacketCommitmentResponse { + /** + * Constructs a new QueryPacketCommitmentResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentResponse); + + /** QueryPacketCommitmentResponse commitment. */ + public commitment: Uint8Array; + + /** QueryPacketCommitmentResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketCommitmentResponse proofPath. */ + public proofPath: string; + + /** QueryPacketCommitmentResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketCommitmentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentResponse, + ): ibc.core.channel.v1.QueryPacketCommitmentResponse; + + /** + * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * @param m QueryPacketCommitmentResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentResponse + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentResponse; + } + + /** Properties of a QueryPacketCommitmentsRequest. */ + interface IQueryPacketCommitmentsRequest { + /** QueryPacketCommitmentsRequest portId */ + portId?: string | null; + + /** QueryPacketCommitmentsRequest channelId */ + channelId?: string | null; + + /** QueryPacketCommitmentsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryPacketCommitmentsRequest. */ + class QueryPacketCommitmentsRequest implements IQueryPacketCommitmentsRequest { + /** + * Constructs a new QueryPacketCommitmentsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentsRequest); + + /** QueryPacketCommitmentsRequest portId. */ + public portId: string; + + /** QueryPacketCommitmentsRequest channelId. */ + public channelId: string; + + /** QueryPacketCommitmentsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryPacketCommitmentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + ): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + + /** + * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * @param m QueryPacketCommitmentsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentsRequest + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + } + + /** Properties of a QueryPacketCommitmentsResponse. */ + interface IQueryPacketCommitmentsResponse { + /** QueryPacketCommitmentsResponse commitments */ + commitments?: ibc.core.channel.v1.IPacketAckCommitment[] | null; + + /** QueryPacketCommitmentsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketCommitmentsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketCommitmentsResponse. */ + class QueryPacketCommitmentsResponse implements IQueryPacketCommitmentsResponse { + /** + * Constructs a new QueryPacketCommitmentsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse); + + /** QueryPacketCommitmentsResponse commitments. */ + public commitments: ibc.core.channel.v1.IPacketAckCommitment[]; + + /** QueryPacketCommitmentsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketCommitmentsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketCommitmentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, + ): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + + /** + * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * @param m QueryPacketCommitmentsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentsResponse + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + } + + /** Properties of a QueryPacketAcknowledgementRequest. */ + interface IQueryPacketAcknowledgementRequest { + /** QueryPacketAcknowledgementRequest portId */ + portId?: string | null; + + /** QueryPacketAcknowledgementRequest channelId */ + channelId?: string | null; + + /** QueryPacketAcknowledgementRequest sequence */ + sequence?: Long | null; + } + + /** Represents a QueryPacketAcknowledgementRequest. */ + class QueryPacketAcknowledgementRequest implements IQueryPacketAcknowledgementRequest { + /** + * Constructs a new QueryPacketAcknowledgementRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest); + + /** QueryPacketAcknowledgementRequest portId. */ + public portId: string; + + /** QueryPacketAcknowledgementRequest channelId. */ + public channelId: string; + + /** QueryPacketAcknowledgementRequest sequence. */ + public sequence: Long; + + /** + * Creates a new QueryPacketAcknowledgementRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + ): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + + /** + * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * @param m QueryPacketAcknowledgementRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementRequest + * @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, + ): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + } + + /** Properties of a QueryPacketAcknowledgementResponse. */ + interface IQueryPacketAcknowledgementResponse { + /** QueryPacketAcknowledgementResponse acknowledgement */ + acknowledgement?: Uint8Array | null; + + /** QueryPacketAcknowledgementResponse proof */ + proof?: Uint8Array | null; + + /** QueryPacketAcknowledgementResponse proofPath */ + proofPath?: string | null; + + /** QueryPacketAcknowledgementResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketAcknowledgementResponse. */ + class QueryPacketAcknowledgementResponse implements IQueryPacketAcknowledgementResponse { + /** + * Constructs a new QueryPacketAcknowledgementResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse); + + /** QueryPacketAcknowledgementResponse acknowledgement. */ + public acknowledgement: Uint8Array; + + /** QueryPacketAcknowledgementResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketAcknowledgementResponse proofPath. */ + public proofPath: string; + + /** QueryPacketAcknowledgementResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketAcknowledgementResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, + ): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + + /** + * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * @param m QueryPacketAcknowledgementResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementResponse + * @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, + ): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + } + + /** Properties of a QueryUnreceivedPacketsRequest. */ + interface IQueryUnreceivedPacketsRequest { + /** QueryUnreceivedPacketsRequest portId */ + portId?: string | null; + + /** QueryUnreceivedPacketsRequest channelId */ + channelId?: string | null; + + /** QueryUnreceivedPacketsRequest packetCommitmentSequences */ + packetCommitmentSequences?: Long[] | null; + } + + /** Represents a QueryUnreceivedPacketsRequest. */ + class QueryUnreceivedPacketsRequest implements IQueryUnreceivedPacketsRequest { + /** + * Constructs a new QueryUnreceivedPacketsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest); + + /** QueryUnreceivedPacketsRequest portId. */ + public portId: string; + + /** QueryUnreceivedPacketsRequest channelId. */ + public channelId: string; + + /** QueryUnreceivedPacketsRequest packetCommitmentSequences. */ + public packetCommitmentSequences: Long[]; + + /** + * Creates a new QueryUnreceivedPacketsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnreceivedPacketsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + ): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + + /** + * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * @param m QueryUnreceivedPacketsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnreceivedPacketsRequest + * @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, + ): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + } + + /** Properties of a QueryUnreceivedPacketsResponse. */ + interface IQueryUnreceivedPacketsResponse { + /** QueryUnreceivedPacketsResponse sequences */ + sequences?: Long[] | null; + + /** QueryUnreceivedPacketsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryUnreceivedPacketsResponse. */ + class QueryUnreceivedPacketsResponse implements IQueryUnreceivedPacketsResponse { + /** + * Constructs a new QueryUnreceivedPacketsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse); + + /** QueryUnreceivedPacketsResponse sequences. */ + public sequences: Long[]; + + /** QueryUnreceivedPacketsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryUnreceivedPacketsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnreceivedPacketsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, + ): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + + /** + * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * @param m QueryUnreceivedPacketsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnreceivedPacketsResponse + * @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, + ): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + } + + /** Properties of a QueryUnrelayedAcksRequest. */ + interface IQueryUnrelayedAcksRequest { + /** QueryUnrelayedAcksRequest portId */ + portId?: string | null; + + /** QueryUnrelayedAcksRequest channelId */ + channelId?: string | null; + + /** QueryUnrelayedAcksRequest packetCommitmentSequences */ + packetCommitmentSequences?: Long[] | null; + } + + /** Represents a QueryUnrelayedAcksRequest. */ + class QueryUnrelayedAcksRequest implements IQueryUnrelayedAcksRequest { + /** + * Constructs a new QueryUnrelayedAcksRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest); + + /** QueryUnrelayedAcksRequest portId. */ + public portId: string; + + /** QueryUnrelayedAcksRequest channelId. */ + public channelId: string; + + /** QueryUnrelayedAcksRequest packetCommitmentSequences. */ + public packetCommitmentSequences: Long[]; + + /** + * Creates a new QueryUnrelayedAcksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnrelayedAcksRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + + /** + * Encodes the specified QueryUnrelayedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksRequest.verify|verify} messages. + * @param m QueryUnrelayedAcksRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnrelayedAcksRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnrelayedAcksRequest + * @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, + ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + } + + /** Properties of a QueryUnrelayedAcksResponse. */ + interface IQueryUnrelayedAcksResponse { + /** QueryUnrelayedAcksResponse sequences */ + sequences?: Long[] | null; + + /** QueryUnrelayedAcksResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryUnrelayedAcksResponse. */ + class QueryUnrelayedAcksResponse implements IQueryUnrelayedAcksResponse { + /** + * Constructs a new QueryUnrelayedAcksResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse); + + /** QueryUnrelayedAcksResponse sequences. */ + public sequences: Long[]; + + /** QueryUnrelayedAcksResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryUnrelayedAcksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnrelayedAcksResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, + ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + + /** + * Encodes the specified QueryUnrelayedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksResponse.verify|verify} messages. + * @param m QueryUnrelayedAcksResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnrelayedAcksResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnrelayedAcksResponse + * @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, + ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + } + + /** Properties of a QueryNextSequenceReceiveRequest. */ + interface IQueryNextSequenceReceiveRequest { + /** QueryNextSequenceReceiveRequest portId */ + portId?: string | null; + + /** QueryNextSequenceReceiveRequest channelId */ + channelId?: string | null; + } + + /** Represents a QueryNextSequenceReceiveRequest. */ + class QueryNextSequenceReceiveRequest implements IQueryNextSequenceReceiveRequest { + /** + * Constructs a new QueryNextSequenceReceiveRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest); + + /** QueryNextSequenceReceiveRequest portId. */ + public portId: string; + + /** QueryNextSequenceReceiveRequest channelId. */ + public channelId: string; + + /** + * Creates a new QueryNextSequenceReceiveRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryNextSequenceReceiveRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + ): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + + /** + * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * @param m QueryNextSequenceReceiveRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryNextSequenceReceiveRequest + * @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, + ): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + } + + /** Properties of a QueryNextSequenceReceiveResponse. */ + interface IQueryNextSequenceReceiveResponse { + /** QueryNextSequenceReceiveResponse nextSequenceReceive */ + nextSequenceReceive?: Long | null; + + /** QueryNextSequenceReceiveResponse proof */ + proof?: Uint8Array | null; + + /** QueryNextSequenceReceiveResponse proofPath */ + proofPath?: string | null; + + /** QueryNextSequenceReceiveResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryNextSequenceReceiveResponse. */ + class QueryNextSequenceReceiveResponse implements IQueryNextSequenceReceiveResponse { + /** + * Constructs a new QueryNextSequenceReceiveResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse); + + /** QueryNextSequenceReceiveResponse nextSequenceReceive. */ + public nextSequenceReceive: Long; + + /** QueryNextSequenceReceiveResponse proof. */ + public proof: Uint8Array; + + /** QueryNextSequenceReceiveResponse proofPath. */ + public proofPath: string; + + /** QueryNextSequenceReceiveResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryNextSequenceReceiveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryNextSequenceReceiveResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, + ): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + + /** + * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * @param m QueryNextSequenceReceiveResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryNextSequenceReceiveResponse + * @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, + ): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + } + } + } + + /** Namespace client. */ + namespace client { + /** Namespace v1. */ + namespace v1 { + /** Properties of an IdentifiedClientState. */ + interface IIdentifiedClientState { + /** IdentifiedClientState clientId */ + clientId?: string | null; + + /** IdentifiedClientState clientState */ + clientState?: google.protobuf.IAny | null; + } + + /** Represents an IdentifiedClientState. */ + class IdentifiedClientState implements IIdentifiedClientState { + /** + * Constructs a new IdentifiedClientState. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IIdentifiedClientState); + + /** IdentifiedClientState clientId. */ + public clientId: string; + + /** IdentifiedClientState clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** + * Creates a new IdentifiedClientState instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentifiedClientState instance + */ + public static create( + properties?: ibc.core.client.v1.IIdentifiedClientState, + ): ibc.core.client.v1.IdentifiedClientState; + + /** + * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * @param m IdentifiedClientState message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IIdentifiedClientState, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IdentifiedClientState message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IdentifiedClientState + * @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, + ): ibc.core.client.v1.IdentifiedClientState; + } + + /** Properties of a ConsensusStateWithHeight. */ + interface IConsensusStateWithHeight { + /** ConsensusStateWithHeight height */ + height?: ibc.core.client.v1.IHeight | null; + + /** ConsensusStateWithHeight consensusState */ + consensusState?: google.protobuf.IAny | null; + } + + /** Represents a ConsensusStateWithHeight. */ + class ConsensusStateWithHeight implements IConsensusStateWithHeight { + /** + * Constructs a new ConsensusStateWithHeight. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IConsensusStateWithHeight); + + /** ConsensusStateWithHeight height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** ConsensusStateWithHeight consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** + * Creates a new ConsensusStateWithHeight instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusStateWithHeight instance + */ + public static create( + properties?: ibc.core.client.v1.IConsensusStateWithHeight, + ): ibc.core.client.v1.ConsensusStateWithHeight; + + /** + * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * @param m ConsensusStateWithHeight message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IConsensusStateWithHeight, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ConsensusStateWithHeight + * @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, + ): ibc.core.client.v1.ConsensusStateWithHeight; + } + + /** Properties of a ClientConsensusStates. */ + interface IClientConsensusStates { + /** ClientConsensusStates clientId */ + clientId?: string | null; + + /** ClientConsensusStates consensusStates */ + consensusStates?: ibc.core.client.v1.IConsensusStateWithHeight[] | null; + } + + /** Represents a ClientConsensusStates. */ + class ClientConsensusStates implements IClientConsensusStates { + /** + * Constructs a new ClientConsensusStates. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IClientConsensusStates); + + /** ClientConsensusStates clientId. */ + public clientId: string; + + /** ClientConsensusStates consensusStates. */ + public consensusStates: ibc.core.client.v1.IConsensusStateWithHeight[]; + + /** + * Creates a new ClientConsensusStates instance using the specified properties. + * @param [properties] Properties to set + * @returns ClientConsensusStates instance + */ + public static create( + properties?: ibc.core.client.v1.IClientConsensusStates, + ): ibc.core.client.v1.ClientConsensusStates; + + /** + * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * @param m ClientConsensusStates message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IClientConsensusStates, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ClientConsensusStates message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ClientConsensusStates + * @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, + ): ibc.core.client.v1.ClientConsensusStates; + } + + /** Properties of a ClientUpdateProposal. */ + interface IClientUpdateProposal { + /** ClientUpdateProposal title */ + title?: string | null; + + /** ClientUpdateProposal description */ + description?: string | null; + + /** ClientUpdateProposal clientId */ + clientId?: string | null; + + /** ClientUpdateProposal header */ + header?: google.protobuf.IAny | null; + } + + /** Represents a ClientUpdateProposal. */ + class ClientUpdateProposal implements IClientUpdateProposal { + /** + * Constructs a new ClientUpdateProposal. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IClientUpdateProposal); + + /** ClientUpdateProposal title. */ + public title: string; + + /** ClientUpdateProposal description. */ + public description: string; + + /** ClientUpdateProposal clientId. */ + public clientId: string; + + /** ClientUpdateProposal header. */ + public header?: google.protobuf.IAny | null; + + /** + * Creates a new ClientUpdateProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns ClientUpdateProposal instance + */ + public static create( + properties?: ibc.core.client.v1.IClientUpdateProposal, + ): ibc.core.client.v1.ClientUpdateProposal; + + /** + * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * @param m ClientUpdateProposal message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IClientUpdateProposal, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ClientUpdateProposal message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ClientUpdateProposal + * @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, + ): ibc.core.client.v1.ClientUpdateProposal; + } + + /** Properties of a MsgCreateClient. */ + interface IMsgCreateClient { + /** MsgCreateClient clientId */ + clientId?: string | null; + + /** MsgCreateClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer */ + signer?: string | null; + } + + /** Represents a MsgCreateClient. */ + class MsgCreateClient implements IMsgCreateClient { + /** + * Constructs a new MsgCreateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgCreateClient); + + /** MsgCreateClient clientId. */ + public clientId: string; + + /** MsgCreateClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer. */ + public signer: string; + + /** + * Creates a new MsgCreateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgCreateClient, + ): ibc.core.client.v1.MsgCreateClient; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.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: ibc.core.client.v1.IMsgCreateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * 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, + ): ibc.core.client.v1.MsgCreateClient; + } + + /** Properties of a MsgUpdateClient. */ + interface IMsgUpdateClient { + /** MsgUpdateClient clientId */ + clientId?: string | null; + + /** MsgUpdateClient header */ + header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpdateClient. */ + class MsgUpdateClient implements IMsgUpdateClient { + /** + * Constructs a new MsgUpdateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpdateClient); + + /** MsgUpdateClient clientId. */ + public clientId: string; + + /** MsgUpdateClient header. */ + public header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpdateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpdateClient, + ): ibc.core.client.v1.MsgUpdateClient; + + /** + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * @param m MsgUpdateClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpdateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateClient + * @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, + ): ibc.core.client.v1.MsgUpdateClient; + } + + /** Properties of a MsgUpgradeClient. */ + interface IMsgUpgradeClient { + /** MsgUpgradeClient clientId */ + clientId?: string | null; + + /** MsgUpgradeClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight */ + upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade */ + proofUpgrade?: Uint8Array | null; + + /** MsgUpgradeClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpgradeClient. */ + class MsgUpgradeClient implements IMsgUpgradeClient { + /** + * Constructs a new MsgUpgradeClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpgradeClient); + + /** MsgUpgradeClient clientId. */ + public clientId: string; + + /** MsgUpgradeClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight. */ + public upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade. */ + public proofUpgrade: Uint8Array; + + /** MsgUpgradeClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpgradeClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpgradeClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpgradeClient, + ): ibc.core.client.v1.MsgUpgradeClient; + + /** + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * @param m MsgUpgradeClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpgradeClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpgradeClient + * @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, + ): ibc.core.client.v1.MsgUpgradeClient; + } + + /** Properties of a MsgSubmitMisbehaviour. */ + interface IMsgSubmitMisbehaviour { + /** MsgSubmitMisbehaviour clientId */ + clientId?: string | null; + + /** MsgSubmitMisbehaviour misbehaviour */ + misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer */ + signer?: string | null; + } + + /** Represents a MsgSubmitMisbehaviour. */ + class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { + /** + * Constructs a new MsgSubmitMisbehaviour. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviour); + + /** MsgSubmitMisbehaviour clientId. */ + public clientId: string; + + /** MsgSubmitMisbehaviour misbehaviour. */ + public misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer. */ + public signer: string; + + /** + * Creates a new MsgSubmitMisbehaviour instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitMisbehaviour instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + + /** + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * @param m MsgSubmitMisbehaviour message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgSubmitMisbehaviour, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSubmitMisbehaviour + * @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, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + } + + /** Properties of an Height. */ + interface IHeight { + /** Height versionNumber */ + versionNumber?: Long | null; + + /** Height versionHeight */ + versionHeight?: Long | null; + } + + /** Represents an Height. */ + class Height implements IHeight { + /** + * Constructs a new Height. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IHeight); + + /** Height versionNumber. */ + public versionNumber: Long; + + /** Height versionHeight. */ + public versionHeight: Long; + + /** + * Creates a new Height instance using the specified properties. + * @param [properties] Properties to set + * @returns Height instance + */ + public static create(properties?: ibc.core.client.v1.IHeight): ibc.core.client.v1.Height; + + /** + * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * @param m Height message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: ibc.core.client.v1.IHeight, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Height message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Height + * @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): ibc.core.client.v1.Height; + } + } + } + + /** 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?: ibc.core.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?: ibc.core.commitment.v1.IMerkleRoot, + ): ibc.core.commitment.v1.MerkleRoot; + + /** + * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.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?: ibc.core.commitment.v1.IMerklePrefix, + ): ibc.core.commitment.v1.MerklePrefix; + + /** + * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.commitment.v1.MerklePrefix; + } + + /** Properties of a MerklePath. */ + interface IMerklePath { + /** MerklePath keyPath */ + keyPath?: ibc.core.commitment.v1.IKeyPath | null; + } + + /** Represents a MerklePath. */ + class MerklePath implements IMerklePath { + /** + * Constructs a new MerklePath. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IMerklePath); + + /** MerklePath keyPath. */ + public keyPath?: ibc.core.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?: ibc.core.commitment.v1.IMerklePath, + ): ibc.core.commitment.v1.MerklePath; + + /** + * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.commitment.v1.MerklePath; + } + + /** Properties of a MerkleProof. */ + interface IMerkleProof { + /** MerkleProof proof */ + proof?: tendermint.crypto.IProofOps | null; + } + + /** Represents a MerkleProof. */ + class MerkleProof implements IMerkleProof { + /** + * Constructs a new MerkleProof. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IMerkleProof); + + /** MerkleProof proof. */ + public proof?: tendermint.crypto.IProofOps | null; + + /** + * Creates a new MerkleProof instance using the specified properties. + * @param [properties] Properties to set + * @returns MerkleProof instance + */ + public static create( + properties?: ibc.core.commitment.v1.IMerkleProof, + ): ibc.core.commitment.v1.MerkleProof; + + /** + * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.commitment.v1.MerkleProof; + } + + /** Properties of a KeyPath. */ + interface IKeyPath { + /** KeyPath keys */ + keys?: ibc.core.commitment.v1.IKey[] | null; + } + + /** Represents a KeyPath. */ + class KeyPath implements IKeyPath { + /** + * Constructs a new KeyPath. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IKeyPath); + + /** KeyPath keys. */ + public keys: ibc.core.commitment.v1.IKey[]; + + /** + * Creates a new KeyPath instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyPath instance + */ + public static create(properties?: ibc.core.commitment.v1.IKeyPath): ibc.core.commitment.v1.KeyPath; + + /** + * Encodes the specified KeyPath message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.commitment.v1.KeyPath; + } + + /** Properties of a Key. */ + interface IKey { + /** Key name */ + name?: Uint8Array | null; + + /** Key enc */ + enc?: ibc.core.commitment.v1.KeyEncoding | null; + } + + /** Represents a Key. */ + class Key implements IKey { + /** + * Constructs a new Key. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IKey); + + /** Key name. */ + public name: Uint8Array; + + /** Key enc. */ + public enc: ibc.core.commitment.v1.KeyEncoding; + + /** + * Creates a new Key instance using the specified properties. + * @param [properties] Properties to set + * @returns Key instance + */ + public static create(properties?: ibc.core.commitment.v1.IKey): ibc.core.commitment.v1.Key; + + /** + * Encodes the specified Key message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.commitment.v1.Key; + } + + /** KeyEncoding enum. */ + enum KeyEncoding { + KEY_ENCODING_URL_UNSPECIFIED = 0, + KEY_ENCODING_HEX = 1, + } + } + } + + /** 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?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenInit version */ + version?: string | null; + + /** MsgConnectionOpenInit signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenInit. */ + class MsgConnectionOpenInit implements IMsgConnectionOpenInit { + /** + * Constructs a new MsgConnectionOpenInit. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenInit); + + /** MsgConnectionOpenInit clientId. */ + public clientId: string; + + /** MsgConnectionOpenInit connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenInit counterparty. */ + public counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenInit version. */ + public version: string; + + /** MsgConnectionOpenInit signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenInit instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenInit, + ): ibc.core.connection.v1.MsgConnectionOpenInit; + + /** + * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenInit; + } + + /** Properties of a MsgConnectionOpenTry. */ + interface IMsgConnectionOpenTry { + /** MsgConnectionOpenTry clientId */ + clientId?: string | null; + + /** MsgConnectionOpenTry desiredConnectionId */ + desiredConnectionId?: string | null; + + /** MsgConnectionOpenTry counterpartyChosenConnectionId */ + counterpartyChosenConnectionId?: string | null; + + /** MsgConnectionOpenTry clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenTry counterparty */ + counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenTry counterpartyVersions */ + counterpartyVersions?: string[] | null; + + /** MsgConnectionOpenTry proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry proofInit */ + proofInit?: Uint8Array | null; + + /** MsgConnectionOpenTry proofClient */ + proofClient?: Uint8Array | null; + + /** MsgConnectionOpenTry proofConsensus */ + proofConsensus?: Uint8Array | null; + + /** MsgConnectionOpenTry consensusHeight */ + consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenTry. */ + class MsgConnectionOpenTry implements IMsgConnectionOpenTry { + /** + * Constructs a new MsgConnectionOpenTry. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenTry); + + /** MsgConnectionOpenTry clientId. */ + public clientId: string; + + /** MsgConnectionOpenTry desiredConnectionId. */ + public desiredConnectionId: string; + + /** MsgConnectionOpenTry counterpartyChosenConnectionId. */ + public counterpartyChosenConnectionId: string; + + /** MsgConnectionOpenTry clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenTry counterparty. */ + public counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenTry counterpartyVersions. */ + public counterpartyVersions: string[]; + + /** MsgConnectionOpenTry proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry proofInit. */ + public proofInit: Uint8Array; + + /** MsgConnectionOpenTry proofClient. */ + public proofClient: Uint8Array; + + /** MsgConnectionOpenTry proofConsensus. */ + public proofConsensus: Uint8Array; + + /** MsgConnectionOpenTry consensusHeight. */ + public consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenTry instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenTry instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenTry, + ): ibc.core.connection.v1.MsgConnectionOpenTry; + + /** + * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenTry; + } + + /** Properties of a MsgConnectionOpenAck. */ + interface IMsgConnectionOpenAck { + /** MsgConnectionOpenAck connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenAck counterpartyConnectionId */ + counterpartyConnectionId?: string | null; + + /** MsgConnectionOpenAck version */ + version?: string | null; + + /** MsgConnectionOpenAck clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenAck proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck proofTry */ + proofTry?: Uint8Array | null; + + /** MsgConnectionOpenAck proofClient */ + proofClient?: Uint8Array | null; + + /** MsgConnectionOpenAck proofConsensus */ + proofConsensus?: Uint8Array | null; + + /** MsgConnectionOpenAck consensusHeight */ + consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenAck. */ + class MsgConnectionOpenAck implements IMsgConnectionOpenAck { + /** + * Constructs a new MsgConnectionOpenAck. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenAck); + + /** MsgConnectionOpenAck connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenAck counterpartyConnectionId. */ + public counterpartyConnectionId: string; + + /** MsgConnectionOpenAck version. */ + public version: string; + + /** MsgConnectionOpenAck clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenAck proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck proofTry. */ + public proofTry: Uint8Array; + + /** MsgConnectionOpenAck proofClient. */ + public proofClient: Uint8Array; + + /** MsgConnectionOpenAck proofConsensus. */ + public proofConsensus: Uint8Array; + + /** MsgConnectionOpenAck consensusHeight. */ + public consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenAck instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenAck instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenAck, + ): ibc.core.connection.v1.MsgConnectionOpenAck; + + /** + * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenAck; + } + + /** Properties of a MsgConnectionOpenConfirm. */ + interface IMsgConnectionOpenConfirm { + /** MsgConnectionOpenConfirm connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenConfirm proofAck */ + proofAck?: Uint8Array | null; + + /** MsgConnectionOpenConfirm proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenConfirm signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenConfirm. */ + class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { + /** + * Constructs a new MsgConnectionOpenConfirm. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenConfirm); + + /** MsgConnectionOpenConfirm connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenConfirm proofAck. */ + public proofAck: Uint8Array; + + /** MsgConnectionOpenConfirm proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenConfirm signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenConfirm instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirm, + ): ibc.core.connection.v1.MsgConnectionOpenConfirm; + + /** + * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenConfirm; + } + + /** Properties of a ConnectionEnd. */ + interface IConnectionEnd { + /** ConnectionEnd clientId */ + clientId?: string | null; + + /** ConnectionEnd versions */ + versions?: string[] | null; + + /** ConnectionEnd state */ + state?: ibc.core.connection.v1.State | null; + + /** ConnectionEnd counterparty */ + counterparty?: ibc.core.connection.v1.ICounterparty | null; + } + + /** Represents a ConnectionEnd. */ + class ConnectionEnd implements IConnectionEnd { + /** + * Constructs a new ConnectionEnd. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IConnectionEnd); + + /** ConnectionEnd clientId. */ + public clientId: string; + + /** ConnectionEnd versions. */ + public versions: string[]; + + /** ConnectionEnd state. */ + public state: ibc.core.connection.v1.State; + + /** ConnectionEnd counterparty. */ + public counterparty?: ibc.core.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?: ibc.core.connection.v1.IConnectionEnd, + ): ibc.core.connection.v1.ConnectionEnd; + + /** + * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.ConnectionEnd; + } + + /** Properties of an IdentifiedConnection. */ + interface IIdentifiedConnection { + /** IdentifiedConnection id */ + id?: string | null; + + /** IdentifiedConnection clientId */ + clientId?: string | null; + + /** IdentifiedConnection versions */ + versions?: string[] | null; + + /** IdentifiedConnection state */ + state?: ibc.core.connection.v1.State | null; + + /** IdentifiedConnection counterparty */ + counterparty?: ibc.core.connection.v1.ICounterparty | null; + } + + /** Represents an IdentifiedConnection. */ + class IdentifiedConnection implements IIdentifiedConnection { + /** + * Constructs a new IdentifiedConnection. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IIdentifiedConnection); + + /** IdentifiedConnection id. */ + public id: string; + + /** IdentifiedConnection clientId. */ + public clientId: string; + + /** IdentifiedConnection versions. */ + public versions: string[]; + + /** IdentifiedConnection state. */ + public state: ibc.core.connection.v1.State; + + /** IdentifiedConnection counterparty. */ + public counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** + * Creates a new IdentifiedConnection instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentifiedConnection instance + */ + public static create( + properties?: ibc.core.connection.v1.IIdentifiedConnection, + ): ibc.core.connection.v1.IdentifiedConnection; + + /** + * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * @param m IdentifiedConnection message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IIdentifiedConnection, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IdentifiedConnection message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IdentifiedConnection + * @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, + ): ibc.core.connection.v1.IdentifiedConnection; + } + + /** 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?: ibc.core.commitment.v1.IMerklePrefix | null; + } + + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { + /** + * Constructs a new Counterparty. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.ICounterparty); + + /** Counterparty clientId. */ + public clientId: string; + + /** Counterparty connectionId. */ + public connectionId: string; + + /** Counterparty prefix. */ + public prefix?: ibc.core.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?: ibc.core.connection.v1.ICounterparty, + ): ibc.core.connection.v1.Counterparty; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.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?: ibc.core.connection.v1.IClientPaths, + ): ibc.core.connection.v1.ClientPaths; + + /** + * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.ClientPaths; + } + + /** Properties of a ConnectionPaths. */ + interface IConnectionPaths { + /** ConnectionPaths clientId */ + clientId?: string | null; + + /** ConnectionPaths paths */ + paths?: string[] | null; + } + + /** Represents a ConnectionPaths. */ + class ConnectionPaths implements IConnectionPaths { + /** + * Constructs a new ConnectionPaths. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IConnectionPaths); + + /** ConnectionPaths clientId. */ + public clientId: string; + + /** ConnectionPaths paths. */ + public paths: string[]; + + /** + * Creates a new ConnectionPaths instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionPaths instance + */ + public static create( + properties?: ibc.core.connection.v1.IConnectionPaths, + ): ibc.core.connection.v1.ConnectionPaths; + + /** + * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * @param m ConnectionPaths message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IConnectionPaths, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConnectionPaths message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ConnectionPaths + * @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, + ): ibc.core.connection.v1.ConnectionPaths; + } + + /** Properties of a Version. */ + interface IVersion { + /** Version identifier */ + identifier?: string | null; + + /** Version features */ + features?: string[] | null; + } + + /** Represents a Version. */ + class Version implements IVersion { + /** + * Constructs a new Version. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IVersion); + + /** Version identifier. */ + public identifier: string; + + /** Version features. */ + public features: string[]; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: ibc.core.connection.v1.IVersion): ibc.core.connection.v1.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * @param m Version message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: ibc.core.connection.v1.IVersion, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @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(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.connection.v1.Version; + } + + /** 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 Connection. + * @param request QueryConnectionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionResponse + */ + public connection( + request: ibc.core.connection.v1.IQueryConnectionRequest, + callback: ibc.core.connection.v1.Query.ConnectionCallback, + ): void; + + /** + * Calls Connection. + * @param request QueryConnectionRequest message or plain object + * @returns Promise + */ + public connection( + request: ibc.core.connection.v1.IQueryConnectionRequest, + ): Promise; + + /** + * Calls Connections. + * @param request QueryConnectionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionsResponse + */ + public connections( + request: ibc.core.connection.v1.IQueryConnectionsRequest, + callback: ibc.core.connection.v1.Query.ConnectionsCallback, + ): void; + + /** + * Calls Connections. + * @param request QueryConnectionsRequest message or plain object + * @returns Promise + */ + public connections( + request: ibc.core.connection.v1.IQueryConnectionsRequest, + ): Promise; + + /** + * Calls ClientConnections. + * @param request QueryClientConnectionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse + */ + public clientConnections( + request: ibc.core.connection.v1.IQueryClientConnectionsRequest, + callback: ibc.core.connection.v1.Query.ClientConnectionsCallback, + ): void; + + /** + * Calls ClientConnections. + * @param request QueryClientConnectionsRequest message or plain object + * @returns Promise + */ + public clientConnections( + request: ibc.core.connection.v1.IQueryClientConnectionsRequest, + ): Promise; + + /** + * Calls ConnectionClientState. + * @param request QueryConnectionClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse + */ + public connectionClientState( + request: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + callback: ibc.core.connection.v1.Query.ConnectionClientStateCallback, + ): void; + + /** + * Calls ConnectionClientState. + * @param request QueryConnectionClientStateRequest message or plain object + * @returns Promise + */ + public connectionClientState( + request: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + ): Promise; + + /** + * Calls ConnectionConsensusState. + * @param request QueryConnectionConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse + */ + public connectionConsensusState( + request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + callback: ibc.core.connection.v1.Query.ConnectionConsensusStateCallback, + ): void; + + /** + * Calls ConnectionConsensusState. + * @param request QueryConnectionConsensusStateRequest message or plain object + * @returns Promise + */ + public connectionConsensusState( + request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connection}. + * @param error Error, if any + * @param [response] QueryConnectionResponse + */ + type ConnectionCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connections}. + * @param error Error, if any + * @param [response] QueryConnectionsResponse + */ + type ConnectionsCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. + * @param error Error, if any + * @param [response] QueryClientConnectionsResponse + */ + type ClientConnectionsCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryClientConnectionsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. + * @param error Error, if any + * @param [response] QueryConnectionClientStateResponse + */ + type ConnectionClientStateCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionClientStateResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. + * @param error Error, if any + * @param [response] QueryConnectionConsensusStateResponse + */ + type ConnectionConsensusStateCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionConsensusStateResponse, + ) => void; + } + + /** Properties of a QueryConnectionRequest. */ + interface IQueryConnectionRequest { + /** QueryConnectionRequest connectionId */ + connectionId?: string | null; + } + + /** Represents a QueryConnectionRequest. */ + class QueryConnectionRequest implements IQueryConnectionRequest { + /** + * Constructs a new QueryConnectionRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionRequest); + + /** QueryConnectionRequest connectionId. */ + public connectionId: string; + + /** + * Creates a new QueryConnectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionRequest, + ): ibc.core.connection.v1.QueryConnectionRequest; + + /** + * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * @param m QueryConnectionRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionRequest; + } + + /** Properties of a QueryConnectionResponse. */ + interface IQueryConnectionResponse { + /** QueryConnectionResponse connection */ + connection?: ibc.core.connection.v1.IConnectionEnd | null; + + /** QueryConnectionResponse proof */ + proof?: Uint8Array | null; + + /** QueryConnectionResponse proofPath */ + proofPath?: string | null; + + /** QueryConnectionResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionResponse. */ + class QueryConnectionResponse implements IQueryConnectionResponse { + /** + * Constructs a new QueryConnectionResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionResponse); + + /** QueryConnectionResponse connection. */ + public connection?: ibc.core.connection.v1.IConnectionEnd | null; + + /** QueryConnectionResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionResponse proofPath. */ + public proofPath: string; + + /** QueryConnectionResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionResponse, + ): ibc.core.connection.v1.QueryConnectionResponse; + + /** + * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * @param m QueryConnectionResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionResponse; + } + + /** Properties of a QueryConnectionsRequest. */ + interface IQueryConnectionsRequest { + /** QueryConnectionsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryConnectionsRequest. */ + class QueryConnectionsRequest implements IQueryConnectionsRequest { + /** + * Constructs a new QueryConnectionsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionsRequest); + + /** QueryConnectionsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionsRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionsRequest, + ): ibc.core.connection.v1.QueryConnectionsRequest; + + /** + * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * @param m QueryConnectionsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionsRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionsRequest; + } + + /** Properties of a QueryConnectionsResponse. */ + interface IQueryConnectionsResponse { + /** QueryConnectionsResponse connections */ + connections?: ibc.core.connection.v1.IIdentifiedConnection[] | null; + + /** QueryConnectionsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionsResponse. */ + class QueryConnectionsResponse implements IQueryConnectionsResponse { + /** + * Constructs a new QueryConnectionsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionsResponse); + + /** QueryConnectionsResponse connections. */ + public connections: ibc.core.connection.v1.IIdentifiedConnection[]; + + /** QueryConnectionsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionsResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionsResponse, + ): ibc.core.connection.v1.QueryConnectionsResponse; + + /** + * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * @param m QueryConnectionsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionsResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionsResponse; + } + + /** Properties of a QueryClientConnectionsRequest. */ + interface IQueryClientConnectionsRequest { + /** QueryClientConnectionsRequest clientId */ + clientId?: string | null; + } + + /** Represents a QueryClientConnectionsRequest. */ + class QueryClientConnectionsRequest implements IQueryClientConnectionsRequest { + /** + * Constructs a new QueryClientConnectionsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryClientConnectionsRequest); + + /** QueryClientConnectionsRequest clientId. */ + public clientId: string; + + /** + * Creates a new QueryClientConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryClientConnectionsRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryClientConnectionsRequest, + ): ibc.core.connection.v1.QueryClientConnectionsRequest; + + /** + * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * @param m QueryClientConnectionsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryClientConnectionsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryClientConnectionsRequest + * @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, + ): ibc.core.connection.v1.QueryClientConnectionsRequest; + } + + /** Properties of a QueryClientConnectionsResponse. */ + interface IQueryClientConnectionsResponse { + /** QueryClientConnectionsResponse connectionPaths */ + connectionPaths?: string[] | null; + + /** QueryClientConnectionsResponse proof */ + proof?: Uint8Array | null; + + /** QueryClientConnectionsResponse proofPath */ + proofPath?: string | null; + + /** QueryClientConnectionsResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryClientConnectionsResponse. */ + class QueryClientConnectionsResponse implements IQueryClientConnectionsResponse { + /** + * Constructs a new QueryClientConnectionsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryClientConnectionsResponse); + + /** QueryClientConnectionsResponse connectionPaths. */ + public connectionPaths: string[]; + + /** QueryClientConnectionsResponse proof. */ + public proof: Uint8Array; + + /** QueryClientConnectionsResponse proofPath. */ + public proofPath: string; + + /** QueryClientConnectionsResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryClientConnectionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryClientConnectionsResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryClientConnectionsResponse, + ): ibc.core.connection.v1.QueryClientConnectionsResponse; + + /** + * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * @param m QueryClientConnectionsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryClientConnectionsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryClientConnectionsResponse + * @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, + ): ibc.core.connection.v1.QueryClientConnectionsResponse; + } + + /** Properties of a QueryConnectionClientStateRequest. */ + interface IQueryConnectionClientStateRequest { + /** QueryConnectionClientStateRequest connectionId */ + connectionId?: string | null; + } + + /** Represents a QueryConnectionClientStateRequest. */ + class QueryConnectionClientStateRequest implements IQueryConnectionClientStateRequest { + /** + * Constructs a new QueryConnectionClientStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionClientStateRequest); + + /** QueryConnectionClientStateRequest connectionId. */ + public connectionId: string; + + /** + * Creates a new QueryConnectionClientStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionClientStateRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + ): ibc.core.connection.v1.QueryConnectionClientStateRequest; + + /** + * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * @param m QueryConnectionClientStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionClientStateRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionClientStateRequest; + } + + /** Properties of a QueryConnectionClientStateResponse. */ + interface IQueryConnectionClientStateResponse { + /** QueryConnectionClientStateResponse identifiedClientState */ + identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryConnectionClientStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryConnectionClientStateResponse proofPath */ + proofPath?: string | null; + + /** QueryConnectionClientStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionClientStateResponse. */ + class QueryConnectionClientStateResponse implements IQueryConnectionClientStateResponse { + /** + * Constructs a new QueryConnectionClientStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionClientStateResponse); + + /** QueryConnectionClientStateResponse identifiedClientState. */ + public identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryConnectionClientStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionClientStateResponse proofPath. */ + public proofPath: string; + + /** QueryConnectionClientStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionClientStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionClientStateResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionClientStateResponse, + ): ibc.core.connection.v1.QueryConnectionClientStateResponse; + + /** + * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * @param m QueryConnectionClientStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionClientStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionClientStateResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionClientStateResponse; + } + + /** Properties of a QueryConnectionConsensusStateRequest. */ + interface IQueryConnectionConsensusStateRequest { + /** QueryConnectionConsensusStateRequest connectionId */ + connectionId?: string | null; + + /** QueryConnectionConsensusStateRequest versionNumber */ + versionNumber?: Long | null; + + /** QueryConnectionConsensusStateRequest versionHeight */ + versionHeight?: Long | null; + } + + /** Represents a QueryConnectionConsensusStateRequest. */ + class QueryConnectionConsensusStateRequest implements IQueryConnectionConsensusStateRequest { + /** + * Constructs a new QueryConnectionConsensusStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest); + + /** QueryConnectionConsensusStateRequest connectionId. */ + public connectionId: string; + + /** QueryConnectionConsensusStateRequest versionNumber. */ + public versionNumber: Long; + + /** QueryConnectionConsensusStateRequest versionHeight. */ + public versionHeight: Long; + + /** + * Creates a new QueryConnectionConsensusStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionConsensusStateRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + ): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + + /** + * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * @param m QueryConnectionConsensusStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionConsensusStateRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + } + + /** Properties of a QueryConnectionConsensusStateResponse. */ + interface IQueryConnectionConsensusStateResponse { + /** QueryConnectionConsensusStateResponse consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** QueryConnectionConsensusStateResponse clientId */ + clientId?: string | null; + + /** QueryConnectionConsensusStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryConnectionConsensusStateResponse proofPath */ + proofPath?: string | null; + + /** QueryConnectionConsensusStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionConsensusStateResponse. */ + class QueryConnectionConsensusStateResponse implements IQueryConnectionConsensusStateResponse { + /** + * Constructs a new QueryConnectionConsensusStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse); + + /** QueryConnectionConsensusStateResponse consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** QueryConnectionConsensusStateResponse clientId. */ + public clientId: string; + + /** QueryConnectionConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionConsensusStateResponse proofPath. */ + public proofPath: string; + + /** QueryConnectionConsensusStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionConsensusStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionConsensusStateResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, + ): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + + /** + * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * @param m QueryConnectionConsensusStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionConsensusStateResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + } + } + } + } +} + +/** Namespace tendermint. */ +export namespace tendermint { + /** Namespace crypto. */ + namespace crypto { + /** Properties of a Proof. */ + interface IProof { + /** Proof total */ + total?: Long | null; + + /** Proof index */ + index?: Long | null; + + /** Proof leafHash */ + leafHash?: Uint8Array | null; + + /** Proof aunts */ + aunts?: Uint8Array[] | null; + } + + /** Represents a Proof. */ + class Proof implements IProof { + /** + * Constructs a new Proof. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IProof); + + /** Proof total. */ + public total: Long; + + /** Proof index. */ + public index: Long; + + /** Proof leafHash. */ + public leafHash: Uint8Array; + + /** Proof aunts. */ + public aunts: Uint8Array[]; + + /** + * Creates a new Proof instance using the specified properties. + * @param [properties] Properties to set + * @returns Proof instance + */ + public static create(properties?: tendermint.crypto.IProof): tendermint.crypto.Proof; + + /** + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. + * @param m Proof message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IProof, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Proof message from the specified reader or buffer. + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.Proof; + } + + /** Properties of a ValueOp. */ + interface IValueOp { + /** ValueOp key */ + key?: Uint8Array | null; + + /** ValueOp proof */ + proof?: tendermint.crypto.IProof | null; + } + + /** Represents a ValueOp. */ + class ValueOp implements IValueOp { + /** + * Constructs a new ValueOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IValueOp); + + /** ValueOp key. */ + public key: Uint8Array; + + /** ValueOp proof. */ + public proof?: tendermint.crypto.IProof | null; + + /** + * Creates a new ValueOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ValueOp instance + */ + public static create(properties?: tendermint.crypto.IValueOp): tendermint.crypto.ValueOp; + + /** + * Encodes the specified ValueOp message. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. + * @param m ValueOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IValueOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValueOp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValueOp + * @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): tendermint.crypto.ValueOp; + } + + /** Properties of a DominoOp. */ + interface IDominoOp { + /** DominoOp key */ + key?: string | null; + + /** DominoOp input */ + input?: string | null; + + /** DominoOp output */ + output?: string | null; + } + + /** Represents a DominoOp. */ + class DominoOp implements IDominoOp { + /** + * Constructs a new DominoOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IDominoOp); + + /** DominoOp key. */ + public key: string; + + /** DominoOp input. */ + public input: string; + + /** DominoOp output. */ + public output: string; + + /** + * Creates a new DominoOp instance using the specified properties. + * @param [properties] Properties to set + * @returns DominoOp instance + */ + public static create(properties?: tendermint.crypto.IDominoOp): tendermint.crypto.DominoOp; + + /** + * Encodes the specified DominoOp message. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. + * @param m DominoOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IDominoOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DominoOp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DominoOp + * @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): tendermint.crypto.DominoOp; + } + + /** Properties of a ProofOp. */ + interface IProofOp { + /** ProofOp type */ + type?: string | null; + + /** ProofOp key */ + key?: Uint8Array | null; + + /** ProofOp data */ + data?: Uint8Array | null; + } + + /** Represents a ProofOp. */ + class ProofOp implements IProofOp { + /** + * Constructs a new ProofOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IProofOp); + + /** ProofOp type. */ + public type: string; + + /** ProofOp key. */ + public key: Uint8Array; + + /** ProofOp data. */ + public data: Uint8Array; + + /** + * Creates a new ProofOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOp instance + */ + public static create(properties?: tendermint.crypto.IProofOp): tendermint.crypto.ProofOp; + + /** + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. + * @param m ProofOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IProofOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProofOp message from the specified reader or buffer. + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.ProofOp; + } + + /** Properties of a ProofOps. */ + interface IProofOps { + /** ProofOps ops */ + ops?: tendermint.crypto.IProofOp[] | null; + } + + /** Represents a ProofOps. */ + class ProofOps implements IProofOps { + /** + * Constructs a new ProofOps. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IProofOps); + + /** ProofOps ops. */ + public ops: tendermint.crypto.IProofOp[]; + + /** + * Creates a new ProofOps instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOps instance + */ + public static create(properties?: tendermint.crypto.IProofOps): tendermint.crypto.ProofOps; + + /** + * Encodes the specified ProofOps message. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. + * @param m ProofOps message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IProofOps, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProofOps message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ProofOps + * @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): tendermint.crypto.ProofOps; } } } diff --git a/packages/stargate/src/codec/generated/codecimpl.js b/packages/stargate/src/codec/generated/codecimpl.js index 0225239d..8316d31d 100644 --- a/packages/stargate/src/codec/generated/codecimpl.js +++ b/packages/stargate/src/codec/generated/codecimpl.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.google = exports.tendermint = exports.ibc = exports.cosmos = void 0; +exports.tendermint = exports.ibc = exports.google = exports.cosmos = void 0; var $protobuf = require("protobufjs/minimal"); const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, @@ -8,2630 +8,832 @@ const $Reader = $protobuf.Reader, const $root = {}; exports.cosmos = $root.cosmos = (() => { const cosmos = {}; - cosmos.Coin = (function () { - 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]]; - } - Coin.prototype.denom = ""; - Coin.prototype.amount = ""; - Coin.create = function create(properties) { - return new Coin(properties); - }; - 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; - }; - 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.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; - }; - return Coin; - })(); - cosmos.DecCoin = (function () { - 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.prototype.denom = ""; - DecCoin.prototype.amount = ""; - DecCoin.create = function create(properties) { - return new DecCoin(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.IntProto = (function () { - 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.prototype.int = ""; - IntProto.create = function create(properties) { - return new IntProto(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.DecProto = (function () { - 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.prototype.dec = ""; - DecProto.create = function create(properties) { - return new DecProto(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.ValAddresses = (function () { - 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.prototype.addresses = $util.emptyArray; - ValAddresses.create = function create(properties) { - return new ValAddresses(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.GasInfo = (function () { - 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.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - GasInfo.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - GasInfo.create = function create(properties) { - return new GasInfo(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.Result = (function () { - 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.prototype.data = $util.newBuffer([]); - Result.prototype.log = ""; - Result.prototype.events = $util.emptyArray; - Result.create = function create(properties) { - return new Result(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.SimulationResponse = (function () { - 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.prototype.gasInfo = null; - SimulationResponse.prototype.result = null; - SimulationResponse.create = function create(properties) { - return new SimulationResponse(properties); - }; - SimulationResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.gasInfo != null && Object.hasOwnProperty.call(m, "gasInfo")) - $root.cosmos.GasInfo.encode(m.gasInfo, w.uint32(10).fork()).ldelim(); - if (m.result != null && Object.hasOwnProperty.call(m, "result")) - $root.cosmos.Result.encode(m.result, w.uint32(18).fork()).ldelim(); - return w; - }; - 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.SimulationResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.gasInfo = $root.cosmos.GasInfo.decode(r, r.uint32()); - break; - case 2: - m.result = $root.cosmos.Result.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return SimulationResponse; - })(); - cosmos.MsgData = (function () { - 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.prototype.msgType = ""; - MsgData.prototype.data = $util.newBuffer([]); - MsgData.create = function create(properties) { - return new MsgData(properties); - }; - 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; - }; - 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.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; - })(); - cosmos.TxData = (function () { - 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.prototype.data = $util.emptyArray; - TxData.create = function create(properties) { - return new TxData(properties); - }; - 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.MsgData.encode(m.data[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - 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.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.MsgData.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return TxData; - })(); - cosmos.TxResponse = (function () { - function TxResponse(p) { - this.logs = []; - 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]]; - } - TxResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - TxResponse.prototype.txhash = ""; - TxResponse.prototype.codespace = ""; - TxResponse.prototype.code = 0; - TxResponse.prototype.data = ""; - TxResponse.prototype.rawLog = ""; - TxResponse.prototype.logs = $util.emptyArray; - TxResponse.prototype.info = ""; - TxResponse.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - TxResponse.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - TxResponse.prototype.tx = null; - TxResponse.prototype.timestamp = ""; - TxResponse.create = function create(properties) { - return new TxResponse(properties); - }; - TxResponse.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.txhash != null && Object.hasOwnProperty.call(m, "txhash")) w.uint32(18).string(m.txhash); - if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) w.uint32(26).string(m.codespace); - if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(32).uint32(m.code); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(42).string(m.data); - if (m.rawLog != null && Object.hasOwnProperty.call(m, "rawLog")) w.uint32(50).string(m.rawLog); - if (m.logs != null && m.logs.length) { - for (var i = 0; i < m.logs.length; ++i) - $root.cosmos.ABCIMessageLog.encode(m.logs[i], w.uint32(58).fork()).ldelim(); - } - if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(66).string(m.info); - if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) w.uint32(72).int64(m.gasWanted); - if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(80).int64(m.gasUsed); - if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) - $root.google.protobuf.Any.encode(m.tx, w.uint32(90).fork()).ldelim(); - if (m.timestamp != null && Object.hasOwnProperty.call(m, "timestamp")) w.uint32(98).string(m.timestamp); - return w; - }; - TxResponse.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.TxResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.height = r.int64(); - break; - case 2: - m.txhash = r.string(); - break; - case 3: - m.codespace = r.string(); - break; - case 4: - m.code = r.uint32(); - break; - case 5: - m.data = r.string(); - break; - case 6: - m.rawLog = r.string(); - break; - case 7: - if (!(m.logs && m.logs.length)) m.logs = []; - m.logs.push($root.cosmos.ABCIMessageLog.decode(r, r.uint32())); - break; - case 8: - m.info = r.string(); - break; - case 9: - m.gasWanted = r.int64(); - break; - case 10: - m.gasUsed = r.int64(); - break; - case 11: - m.tx = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - case 12: - m.timestamp = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return TxResponse; - })(); - cosmos.ABCIMessageLog = (function () { - function ABCIMessageLog(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]]; - } - ABCIMessageLog.prototype.msgIndex = 0; - ABCIMessageLog.prototype.log = ""; - ABCIMessageLog.prototype.events = $util.emptyArray; - ABCIMessageLog.create = function create(properties) { - return new ABCIMessageLog(properties); - }; - ABCIMessageLog.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.msgIndex != null && Object.hasOwnProperty.call(m, "msgIndex")) w.uint32(8).uint32(m.msgIndex); - 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.cosmos.StringEvent.encode(m.events[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - ABCIMessageLog.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.ABCIMessageLog(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.msgIndex = r.uint32(); - break; - case 2: - m.log = r.string(); - break; - case 3: - if (!(m.events && m.events.length)) m.events = []; - m.events.push($root.cosmos.StringEvent.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ABCIMessageLog; - })(); - cosmos.StringEvent = (function () { - function StringEvent(p) { - this.attributes = []; - 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]]; - } - StringEvent.prototype.type = ""; - StringEvent.prototype.attributes = $util.emptyArray; - StringEvent.create = function create(properties) { - return new StringEvent(properties); - }; - StringEvent.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); - if (m.attributes != null && m.attributes.length) { - for (var i = 0; i < m.attributes.length; ++i) - $root.cosmos.Attribute.encode(m.attributes[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - StringEvent.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.StringEvent(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.type = r.string(); - break; - case 2: - if (!(m.attributes && m.attributes.length)) m.attributes = []; - m.attributes.push($root.cosmos.Attribute.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return StringEvent; - })(); - cosmos.Attribute = (function () { - function Attribute(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]]; - } - Attribute.prototype.key = ""; - Attribute.prototype.value = ""; - Attribute.create = function create(properties) { - return new Attribute(properties); - }; - Attribute.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).string(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).string(m.value); - return w; - }; - Attribute.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.Attribute(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.string(); - break; - case 2: - m.value = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Attribute; - })(); cosmos.auth = (function () { const auth = {}; - auth.BaseAccount = (function () { - 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]]; - } - BaseAccount.prototype.address = $util.newBuffer([]); - BaseAccount.prototype.pubKey = $util.newBuffer([]); - BaseAccount.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - BaseAccount.create = function create(properties) { - return new BaseAccount(properties); - }; - 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; - }; - 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.auth.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; + auth.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.BaseAccount = (function () { + 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]]; + } + BaseAccount.prototype.address = ""; + BaseAccount.prototype.pubKey = null; + BaseAccount.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + BaseAccount.create = function create(properties) { + return new BaseAccount(properties); + }; + BaseAccount.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); + if (m.pubKey != null && Object.hasOwnProperty.call(m, "pubKey")) + $root.google.protobuf.Any.encode(m.pubKey, w.uint32(18).fork()).ldelim(); + 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; + }; + 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.auth.v1beta1.BaseAccount(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.string(); + break; + case 2: + m.pubKey = $root.google.protobuf.Any.decode(r, r.uint32()); + 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; + })(); + v1beta1.ModuleAccount = (function () { + 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]]; } - return m; - }; - return BaseAccount; - })(); - auth.ModuleAccount = (function () { - 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.prototype.baseAccount = null; - ModuleAccount.prototype.name = ""; - ModuleAccount.prototype.permissions = $util.emptyArray; - ModuleAccount.create = function create(properties) { - return new ModuleAccount(properties); - }; - ModuleAccount.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.baseAccount != null && Object.hasOwnProperty.call(m, "baseAccount")) - $root.cosmos.auth.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; - }; - 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.auth.ModuleAccount(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.baseAccount = $root.cosmos.auth.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; + ModuleAccount.prototype.baseAccount = null; + ModuleAccount.prototype.name = ""; + ModuleAccount.prototype.permissions = $util.emptyArray; + ModuleAccount.create = function create(properties) { + return new ModuleAccount(properties); + }; + ModuleAccount.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.baseAccount != null && Object.hasOwnProperty.call(m, "baseAccount")) + $root.cosmos.auth.v1beta1.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 m; - }; - return ModuleAccount; - })(); - auth.Params = (function () { - 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.prototype.maxMemoCharacters = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Params.prototype.txSigLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Params.prototype.txSizeCostPerByte = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Params.prototype.sigVerifyCostEd25519 = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Params.prototype.sigVerifyCostSecp256k1 = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Params.create = function create(properties) { - return new Params(properties); - }; - 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; - }; - 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.auth.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 w; + }; + 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.auth.v1beta1.ModuleAccount(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.baseAccount = $root.cosmos.auth.v1beta1.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; + })(); + v1beta1.Params = (function () { + 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]]; } - return m; - }; - return Params; - })(); - auth.Query = (function () { - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (Query.prototype.account = function account(request, callback) { - return this.rpcCall( - account, - $root.cosmos.auth.QueryAccountRequest, - $root.cosmos.auth.QueryAccountResponse, - request, - callback, - ); - }), - "name", - { value: "Account" }, - ); - Object.defineProperty( - (Query.prototype.params = function params(request, callback) { - return this.rpcCall( - params, - $root.cosmos.auth.QueryParamsRequest, - $root.cosmos.auth.QueryParamsResponse, - request, - callback, - ); - }), - "name", - { value: "Params" }, - ); - return Query; - })(); - auth.QueryAccountRequest = (function () { - function QueryAccountRequest(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]]; - } - QueryAccountRequest.prototype.address = $util.newBuffer([]); - QueryAccountRequest.create = function create(properties) { - return new QueryAccountRequest(properties); - }; - QueryAccountRequest.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; - }; - QueryAccountRequest.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.auth.QueryAccountRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - default: - r.skipType(t & 7); - break; + Params.prototype.maxMemoCharacters = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.txSigLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.txSizeCostPerByte = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.sigVerifyCostEd25519 = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.sigVerifyCostSecp256k1 = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.create = function create(properties) { + return new Params(properties); + }; + 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; + }; + 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.auth.v1beta1.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; + })(); + v1beta1.Query = (function () { + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - return m; - }; - return QueryAccountRequest; - })(); - auth.QueryAccountResponse = (function () { - function QueryAccountResponse(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]]; - } - QueryAccountResponse.prototype.account = null; - QueryAccountResponse.create = function create(properties) { - return new QueryAccountResponse(properties); - }; - QueryAccountResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.account != null && Object.hasOwnProperty.call(m, "account")) - $root.google.protobuf.Any.encode(m.account, w.uint32(10).fork()).ldelim(); - return w; - }; - QueryAccountResponse.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.auth.QueryAccountResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.account = $root.google.protobuf.Any.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Query.prototype.account = function account(request, callback) { + return this.rpcCall( + account, + $root.cosmos.auth.v1beta1.QueryAccountRequest, + $root.cosmos.auth.v1beta1.QueryAccountResponse, + request, + callback, + ); + }), + "name", + { value: "Account" }, + ); + Object.defineProperty( + (Query.prototype.params = function params(request, callback) { + return this.rpcCall( + params, + $root.cosmos.auth.v1beta1.QueryParamsRequest, + $root.cosmos.auth.v1beta1.QueryParamsResponse, + request, + callback, + ); + }), + "name", + { value: "Params" }, + ); + return Query; + })(); + v1beta1.QueryAccountRequest = (function () { + function QueryAccountRequest(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]]; + } + QueryAccountRequest.prototype.address = ""; + QueryAccountRequest.create = function create(properties) { + return new QueryAccountRequest(properties); + }; + QueryAccountRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); + return w; + }; + QueryAccountRequest.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.auth.v1beta1.QueryAccountRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.string(); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryAccountRequest; + })(); + v1beta1.QueryAccountResponse = (function () { + function QueryAccountResponse(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 QueryAccountResponse; - })(); - auth.QueryParamsRequest = (function () { - function QueryParamsRequest(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]]; - } - QueryParamsRequest.create = function create(properties) { - return new QueryParamsRequest(properties); - }; - QueryParamsRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - QueryParamsRequest.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.auth.QueryParamsRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; + QueryAccountResponse.prototype.account = null; + QueryAccountResponse.create = function create(properties) { + return new QueryAccountResponse(properties); + }; + QueryAccountResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.account != null && Object.hasOwnProperty.call(m, "account")) + $root.google.protobuf.Any.encode(m.account, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryAccountResponse.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.auth.v1beta1.QueryAccountResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.account = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryAccountResponse; + })(); + v1beta1.QueryParamsRequest = (function () { + function QueryParamsRequest(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 QueryParamsRequest; - })(); - auth.QueryParamsResponse = (function () { - function QueryParamsResponse(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]]; - } - QueryParamsResponse.prototype.params = null; - QueryParamsResponse.create = function create(properties) { - return new QueryParamsResponse(properties); - }; - QueryParamsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.params != null && Object.hasOwnProperty.call(m, "params")) - $root.cosmos.auth.Params.encode(m.params, w.uint32(10).fork()).ldelim(); - return w; - }; - QueryParamsResponse.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.auth.QueryParamsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.params = $root.cosmos.auth.Params.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + QueryParamsRequest.create = function create(properties) { + return new QueryParamsRequest(properties); + }; + QueryParamsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + QueryParamsRequest.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.auth.v1beta1.QueryParamsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryParamsRequest; + })(); + v1beta1.QueryParamsResponse = (function () { + function QueryParamsResponse(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 QueryParamsResponse; + QueryParamsResponse.prototype.params = null; + QueryParamsResponse.create = function create(properties) { + return new QueryParamsResponse(properties); + }; + QueryParamsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.params != null && Object.hasOwnProperty.call(m, "params")) + $root.cosmos.auth.v1beta1.Params.encode(m.params, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryParamsResponse.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.auth.v1beta1.QueryParamsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.params = $root.cosmos.auth.v1beta1.Params.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryParamsResponse; + })(); + return v1beta1; })(); return auth; })(); cosmos.bank = (function () { const bank = {}; - bank.Params = (function () { - function Params(p) { - this.sendEnabled = []; - 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.prototype.sendEnabled = $util.emptyArray; - Params.prototype.defaultSendEnabled = false; - Params.create = function create(properties) { - return new Params(properties); - }; - Params.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sendEnabled != null && m.sendEnabled.length) { - for (var i = 0; i < m.sendEnabled.length; ++i) - $root.cosmos.bank.SendEnabled.encode(m.sendEnabled[i], w.uint32(10).fork()).ldelim(); + bank.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.Query = (function () { + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - if (m.defaultSendEnabled != null && Object.hasOwnProperty.call(m, "defaultSendEnabled")) - w.uint32(16).bool(m.defaultSendEnabled); - return w; - }; - 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.bank.Params(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.sendEnabled && m.sendEnabled.length)) m.sendEnabled = []; - m.sendEnabled.push($root.cosmos.bank.SendEnabled.decode(r, r.uint32())); - break; - case 2: - m.defaultSendEnabled = r.bool(); - break; - default: - r.skipType(t & 7); - break; + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Query.prototype.balance = function balance(request, callback) { + return this.rpcCall( + balance, + $root.cosmos.bank.v1beta1.QueryBalanceRequest, + $root.cosmos.bank.v1beta1.QueryBalanceResponse, + request, + callback, + ); + }), + "name", + { value: "Balance" }, + ); + Object.defineProperty( + (Query.prototype.allBalances = function allBalances(request, callback) { + return this.rpcCall( + allBalances, + $root.cosmos.bank.v1beta1.QueryAllBalancesRequest, + $root.cosmos.bank.v1beta1.QueryAllBalancesResponse, + request, + callback, + ); + }), + "name", + { value: "AllBalances" }, + ); + Object.defineProperty( + (Query.prototype.totalSupply = function totalSupply(request, callback) { + return this.rpcCall( + totalSupply, + $root.cosmos.bank.v1beta1.QueryTotalSupplyRequest, + $root.cosmos.bank.v1beta1.QueryTotalSupplyResponse, + request, + callback, + ); + }), + "name", + { value: "TotalSupply" }, + ); + Object.defineProperty( + (Query.prototype.supplyOf = function supplyOf(request, callback) { + return this.rpcCall( + supplyOf, + $root.cosmos.bank.v1beta1.QuerySupplyOfRequest, + $root.cosmos.bank.v1beta1.QuerySupplyOfResponse, + request, + callback, + ); + }), + "name", + { value: "SupplyOf" }, + ); + Object.defineProperty( + (Query.prototype.params = function params(request, callback) { + return this.rpcCall( + params, + $root.cosmos.bank.v1beta1.QueryParamsRequest, + $root.cosmos.bank.v1beta1.QueryParamsResponse, + request, + callback, + ); + }), + "name", + { value: "Params" }, + ); + return Query; + })(); + v1beta1.QueryBalanceRequest = (function () { + 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.prototype.address = ""; + QueryBalanceRequest.prototype.denom = ""; + QueryBalanceRequest.create = function create(properties) { + return new QueryBalanceRequest(properties); + }; + QueryBalanceRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(18).string(m.denom); + return w; + }; + 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.bank.v1beta1.QueryBalanceRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.string(); + break; + case 2: + m.denom = r.string(); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryBalanceRequest; + })(); + v1beta1.QueryBalanceResponse = (function () { + 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]]; } - return m; - }; - return Params; - })(); - bank.SendEnabled = (function () { - function SendEnabled(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]]; - } - SendEnabled.prototype.denom = ""; - SendEnabled.prototype.enabled = false; - SendEnabled.create = function create(properties) { - return new SendEnabled(properties); - }; - SendEnabled.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.enabled != null && Object.hasOwnProperty.call(m, "enabled")) w.uint32(16).bool(m.enabled); - return w; - }; - SendEnabled.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.bank.SendEnabled(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - case 2: - m.enabled = r.bool(); - break; - default: - r.skipType(t & 7); - break; + QueryBalanceResponse.prototype.balance = null; + QueryBalanceResponse.create = function create(properties) { + return new QueryBalanceResponse(properties); + }; + QueryBalanceResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.balance != null && Object.hasOwnProperty.call(m, "balance")) + $root.cosmos.base.v1beta1.Coin.encode(m.balance, w.uint32(10).fork()).ldelim(); + return w; + }; + 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.bank.v1beta1.QueryBalanceResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.balance = $root.cosmos.base.v1beta1.Coin.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryBalanceResponse; + })(); + v1beta1.QueryAllBalancesRequest = (function () { + 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]]; } - return m; - }; - return SendEnabled; - })(); - bank.MsgSend = (function () { - 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.prototype.fromAddress = $util.newBuffer([]); - MsgSend.prototype.toAddress = $util.newBuffer([]); - MsgSend.prototype.amount = $util.emptyArray; - MsgSend.create = function create(properties) { - return new MsgSend(properties); - }; - 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.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); - } - return w; - }; - 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.bank.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.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; + QueryAllBalancesRequest.prototype.address = ""; + QueryAllBalancesRequest.prototype.pagination = null; + QueryAllBalancesRequest.create = function create(properties) { + return new QueryAllBalancesRequest(properties); + }; + QueryAllBalancesRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).string(m.address); + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); + return w; + }; + 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.bank.v1beta1.QueryAllBalancesRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.string(); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryAllBalancesRequest; + })(); + v1beta1.QueryAllBalancesResponse = (function () { + 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]]; } - return m; - }; - return MsgSend; - })(); - bank.Input = (function () { - 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.prototype.address = $util.newBuffer([]); - Input.prototype.coins = $util.emptyArray; - Input.create = function create(properties) { - return new Input(properties); - }; - 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.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - 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.bank.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.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; + QueryAllBalancesResponse.prototype.balances = $util.emptyArray; + QueryAllBalancesResponse.prototype.pagination = null; + QueryAllBalancesResponse.create = function create(properties) { + return new QueryAllBalancesResponse(properties); + }; + 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.base.v1beta1.Coin.encode(m.balances[i], w.uint32(10).fork()).ldelim(); } - } - return m; - }; - return Input; - })(); - bank.Output = (function () { - 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.prototype.address = $util.newBuffer([]); - Output.prototype.coins = $util.emptyArray; - Output.create = function create(properties) { - return new Output(properties); - }; - 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.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - 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.bank.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.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + return w; + }; + 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.bank.v1beta1.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.base.v1beta1.Coin.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryAllBalancesResponse; + })(); + v1beta1.QueryTotalSupplyRequest = (function () { + 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]]; } - return m; - }; - return Output; - })(); - bank.MsgMultiSend = (function () { - 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.prototype.inputs = $util.emptyArray; - MsgMultiSend.prototype.outputs = $util.emptyArray; - MsgMultiSend.create = function create(properties) { - return new MsgMultiSend(properties); - }; - 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.bank.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.bank.Output.encode(m.outputs[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - 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.bank.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.bank.Input.decode(r, r.uint32())); - break; - case 2: - if (!(m.outputs && m.outputs.length)) m.outputs = []; - m.outputs.push($root.cosmos.bank.Output.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; + QueryTotalSupplyRequest.create = function create(properties) { + return new QueryTotalSupplyRequest(properties); + }; + QueryTotalSupplyRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + 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.bank.v1beta1.QueryTotalSupplyRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryTotalSupplyRequest; + })(); + v1beta1.QueryTotalSupplyResponse = (function () { + 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]]; } - return m; - }; - return MsgMultiSend; - })(); - bank.Supply = (function () { - 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.prototype.total = $util.emptyArray; - Supply.create = function create(properties) { - return new Supply(properties); - }; - 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.Coin.encode(m.total[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - 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.bank.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.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; + QueryTotalSupplyResponse.prototype.supply = $util.emptyArray; + QueryTotalSupplyResponse.create = function create(properties) { + return new QueryTotalSupplyResponse(properties); + }; + 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.base.v1beta1.Coin.encode(m.supply[i], w.uint32(10).fork()).ldelim(); } - } - return m; - }; - return Supply; - })(); - bank.DenomUnits = (function () { - function DenomUnits(p) { - this.aliases = []; - 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]]; - } - DenomUnits.prototype.denom = ""; - DenomUnits.prototype.exponent = 0; - DenomUnits.prototype.aliases = $util.emptyArray; - DenomUnits.create = function create(properties) { - return new DenomUnits(properties); - }; - DenomUnits.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.exponent != null && Object.hasOwnProperty.call(m, "exponent")) w.uint32(16).uint32(m.exponent); - if (m.aliases != null && m.aliases.length) { - for (var i = 0; i < m.aliases.length; ++i) w.uint32(26).string(m.aliases[i]); - } - return w; - }; - DenomUnits.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.bank.DenomUnits(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.denom = r.string(); - break; - case 2: - m.exponent = r.uint32(); - break; - case 3: - if (!(m.aliases && m.aliases.length)) m.aliases = []; - m.aliases.push(r.string()); - break; - default: - r.skipType(t & 7); - break; + return w; + }; + 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.bank.v1beta1.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.base.v1beta1.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryTotalSupplyResponse; + })(); + v1beta1.QuerySupplyOfRequest = (function () { + 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]]; } - return m; - }; - return DenomUnits; - })(); - bank.Metadata = (function () { - function Metadata(p) { - this.denomUnits = []; - 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]]; - } - Metadata.prototype.description = ""; - Metadata.prototype.denomUnits = $util.emptyArray; - Metadata.prototype.base = ""; - Metadata.prototype.display = ""; - Metadata.create = function create(properties) { - return new Metadata(properties); - }; - Metadata.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.description != null && Object.hasOwnProperty.call(m, "description")) - w.uint32(10).string(m.description); - if (m.denomUnits != null && m.denomUnits.length) { - for (var i = 0; i < m.denomUnits.length; ++i) - $root.cosmos.bank.DenomUnits.encode(m.denomUnits[i], w.uint32(18).fork()).ldelim(); - } - if (m.base != null && Object.hasOwnProperty.call(m, "base")) w.uint32(26).string(m.base); - if (m.display != null && Object.hasOwnProperty.call(m, "display")) w.uint32(34).string(m.display); - return w; - }; - Metadata.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.bank.Metadata(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.description = r.string(); - break; - case 2: - if (!(m.denomUnits && m.denomUnits.length)) m.denomUnits = []; - m.denomUnits.push($root.cosmos.bank.DenomUnits.decode(r, r.uint32())); - break; - case 3: - m.base = r.string(); - break; - case 4: - m.display = r.string(); - break; - default: - r.skipType(t & 7); - break; + QuerySupplyOfRequest.prototype.denom = ""; + QuerySupplyOfRequest.create = function create(properties) { + return new QuerySupplyOfRequest(properties); + }; + 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; + }; + 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.bank.v1beta1.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; + })(); + v1beta1.QuerySupplyOfResponse = (function () { + 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]]; } - return m; - }; - return Metadata; - })(); - bank.Query = (function () { - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (Query.prototype.balance = function balance(request, callback) { - return this.rpcCall( - balance, - $root.cosmos.bank.QueryBalanceRequest, - $root.cosmos.bank.QueryBalanceResponse, - request, - callback, - ); - }), - "name", - { value: "Balance" }, - ); - Object.defineProperty( - (Query.prototype.allBalances = function allBalances(request, callback) { - return this.rpcCall( - allBalances, - $root.cosmos.bank.QueryAllBalancesRequest, - $root.cosmos.bank.QueryAllBalancesResponse, - request, - callback, - ); - }), - "name", - { value: "AllBalances" }, - ); - Object.defineProperty( - (Query.prototype.totalSupply = function totalSupply(request, callback) { - return this.rpcCall( - totalSupply, - $root.cosmos.bank.QueryTotalSupplyRequest, - $root.cosmos.bank.QueryTotalSupplyResponse, - request, - callback, - ); - }), - "name", - { value: "TotalSupply" }, - ); - Object.defineProperty( - (Query.prototype.supplyOf = function supplyOf(request, callback) { - return this.rpcCall( - supplyOf, - $root.cosmos.bank.QuerySupplyOfRequest, - $root.cosmos.bank.QuerySupplyOfResponse, - request, - callback, - ); - }), - "name", - { value: "SupplyOf" }, - ); - return Query; - })(); - bank.QueryBalanceRequest = (function () { - 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.prototype.address = $util.newBuffer([]); - QueryBalanceRequest.prototype.denom = ""; - QueryBalanceRequest.create = function create(properties) { - return new QueryBalanceRequest(properties); - }; - 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; - }; - 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.bank.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; + QuerySupplyOfResponse.prototype.amount = null; + QuerySupplyOfResponse.create = function create(properties) { + return new QuerySupplyOfResponse(properties); + }; + QuerySupplyOfResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) + $root.cosmos.base.v1beta1.Coin.encode(m.amount, w.uint32(10).fork()).ldelim(); + return w; + }; + 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.bank.v1beta1.QuerySupplyOfResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.amount = $root.cosmos.base.v1beta1.Coin.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QuerySupplyOfResponse; + })(); + v1beta1.QueryParamsRequest = (function () { + function QueryParamsRequest(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 QueryBalanceRequest; - })(); - bank.QueryBalanceResponse = (function () { - 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.prototype.balance = null; - QueryBalanceResponse.create = function create(properties) { - return new QueryBalanceResponse(properties); - }; - QueryBalanceResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.balance != null && Object.hasOwnProperty.call(m, "balance")) - $root.cosmos.Coin.encode(m.balance, w.uint32(10).fork()).ldelim(); - return w; - }; - 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.bank.QueryBalanceResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.balance = $root.cosmos.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + QueryParamsRequest.create = function create(properties) { + return new QueryParamsRequest(properties); + }; + QueryParamsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + QueryParamsRequest.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.bank.v1beta1.QueryParamsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } } + return m; + }; + return QueryParamsRequest; + })(); + v1beta1.QueryParamsResponse = (function () { + function QueryParamsResponse(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 QueryBalanceResponse; - })(); - bank.QueryAllBalancesRequest = (function () { - 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.prototype.address = $util.newBuffer([]); - QueryAllBalancesRequest.prototype.pagination = null; - QueryAllBalancesRequest.create = function create(properties) { - return new QueryAllBalancesRequest(properties); - }; - 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); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - 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.bank.QueryAllBalancesRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 2: - m.pagination = $root.cosmos.query.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + QueryParamsResponse.prototype.params = null; + QueryParamsResponse.create = function create(properties) { + return new QueryParamsResponse(properties); + }; + QueryParamsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.params != null && Object.hasOwnProperty.call(m, "params")) + $root.cosmos.auth.v1beta1.Params.encode(m.params, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryParamsResponse.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.bank.v1beta1.QueryParamsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.params = $root.cosmos.auth.v1beta1.Params.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } } - } - return m; - }; - return QueryAllBalancesRequest; - })(); - bank.QueryAllBalancesResponse = (function () { - 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.prototype.balances = $util.emptyArray; - QueryAllBalancesResponse.prototype.pagination = null; - QueryAllBalancesResponse.create = function create(properties) { - return new QueryAllBalancesResponse(properties); - }; - 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.Coin.encode(m.balances[i], w.uint32(10).fork()).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - 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.bank.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.Coin.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.query.PageResponse.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryAllBalancesResponse; - })(); - bank.QueryTotalSupplyRequest = (function () { - 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]]; - } - QueryTotalSupplyRequest.create = function create(properties) { - return new QueryTotalSupplyRequest(properties); - }; - QueryTotalSupplyRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - 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.bank.QueryTotalSupplyRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryTotalSupplyRequest; - })(); - bank.QueryTotalSupplyResponse = (function () { - 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.prototype.supply = $util.emptyArray; - QueryTotalSupplyResponse.create = function create(properties) { - return new QueryTotalSupplyResponse(properties); - }; - 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.Coin.encode(m.supply[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - 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.bank.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.Coin.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryTotalSupplyResponse; - })(); - bank.QuerySupplyOfRequest = (function () { - 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.prototype.denom = ""; - QuerySupplyOfRequest.create = function create(properties) { - return new QuerySupplyOfRequest(properties); - }; - 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; - }; - 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.bank.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; - })(); - bank.QuerySupplyOfResponse = (function () { - 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.prototype.amount = null; - QuerySupplyOfResponse.create = function create(properties) { - return new QuerySupplyOfResponse(properties); - }; - QuerySupplyOfResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) - $root.cosmos.Coin.encode(m.amount, w.uint32(10).fork()).ldelim(); - return w; - }; - 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.bank.QuerySupplyOfResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.amount = $root.cosmos.Coin.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QuerySupplyOfResponse; + return m; + }; + return QueryParamsResponse; + })(); + return v1beta1; })(); return bank; })(); - cosmos.crypto = (function () { - const crypto = {}; - crypto.PublicKey = (function () { - 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]]; - } - PublicKey.prototype.secp256k1 = $util.newBuffer([]); - PublicKey.prototype.ed25519 = $util.newBuffer([]); - PublicKey.prototype.sr25519 = $util.newBuffer([]); - PublicKey.prototype.multisig = null; - PublicKey.prototype.secp256r1 = $util.newBuffer([]); - PublicKey.prototype.anyPubkey = null; - let $oneOfFields; - Object.defineProperty(PublicKey.prototype, "sum", { - get: $util.oneOfGetter( - ($oneOfFields = ["secp256k1", "ed25519", "sr25519", "multisig", "secp256r1", "anyPubkey"]), - ), - set: $util.oneOfSetter($oneOfFields), - }); - PublicKey.create = function create(properties) { - return new PublicKey(properties); - }; - 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.crypto.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; - }; - 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.crypto.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.crypto.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; - })(); - crypto.PubKeyMultisigThreshold = (function () { - 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.prototype.threshold = 0; - PubKeyMultisigThreshold.prototype.publicKeys = $util.emptyArray; - PubKeyMultisigThreshold.create = function create(properties) { - return new PubKeyMultisigThreshold(properties); - }; - 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.crypto.PublicKey.encode(m.publicKeys[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - 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.crypto.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.crypto.PublicKey.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PubKeyMultisigThreshold; - })(); - crypto.MultiSignature = (function () { - 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.prototype.signatures = $util.emptyArray; - MultiSignature.create = function create(properties) { - return new MultiSignature(properties); - }; - 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; - }; - 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.crypto.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; - })(); - crypto.CompactBitArray = (function () { - 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.prototype.extraBitsStored = 0; - CompactBitArray.prototype.elems = $util.newBuffer([]); - CompactBitArray.create = function create(properties) { - return new CompactBitArray(properties); - }; - 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; - }; - 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.crypto.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 crypto; - })(); - cosmos.query = (function () { - const query = {}; - query.PageRequest = (function () { - function PageRequest(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]]; - } - PageRequest.prototype.key = $util.newBuffer([]); - PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PageRequest.prototype.countTotal = false; - PageRequest.create = function create(properties) { - return new PageRequest(properties); - }; - PageRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); - if (m.offset != null && Object.hasOwnProperty.call(m, "offset")) w.uint32(16).uint64(m.offset); - if (m.limit != null && Object.hasOwnProperty.call(m, "limit")) w.uint32(24).uint64(m.limit); - if (m.countTotal != null && Object.hasOwnProperty.call(m, "countTotal")) - w.uint32(32).bool(m.countTotal); - return w; - }; - PageRequest.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.query.PageRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.bytes(); - break; - case 2: - m.offset = r.uint64(); - break; - case 3: - m.limit = r.uint64(); - break; - case 4: - m.countTotal = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PageRequest; - })(); - query.PageResponse = (function () { - function PageResponse(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]]; - } - PageResponse.prototype.nextKey = $util.newBuffer([]); - PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PageResponse.create = function create(properties) { - return new PageResponse(properties); - }; - PageResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.nextKey != null && Object.hasOwnProperty.call(m, "nextKey")) w.uint32(10).bytes(m.nextKey); - if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(16).uint64(m.total); - return w; - }; - PageResponse.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.query.PageResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.nextKey = r.bytes(); - break; - case 2: - m.total = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PageResponse; - })(); - return query; - })(); - cosmos.tx = (function () { - const tx = {}; - tx.Tx = (function () { - function Tx(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]]; - } - Tx.prototype.body = null; - Tx.prototype.authInfo = null; - Tx.prototype.signatures = $util.emptyArray; - Tx.create = function create(properties) { - return new Tx(properties); - }; - Tx.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.body != null && Object.hasOwnProperty.call(m, "body")) - $root.cosmos.tx.TxBody.encode(m.body, w.uint32(10).fork()).ldelim(); - if (m.authInfo != null && Object.hasOwnProperty.call(m, "authInfo")) - $root.cosmos.tx.AuthInfo.encode(m.authInfo, w.uint32(18).fork()).ldelim(); - if (m.signatures != null && m.signatures.length) { - for (var i = 0; i < m.signatures.length; ++i) w.uint32(26).bytes(m.signatures[i]); - } - return w; - }; - Tx.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.tx.Tx(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.body = $root.cosmos.tx.TxBody.decode(r, r.uint32()); - break; - case 2: - m.authInfo = $root.cosmos.tx.AuthInfo.decode(r, r.uint32()); - break; - case 3: - if (!(m.signatures && m.signatures.length)) m.signatures = []; - m.signatures.push(r.bytes()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Tx; - })(); - tx.TxRaw = (function () { - function TxRaw(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]]; - } - TxRaw.prototype.bodyBytes = $util.newBuffer([]); - TxRaw.prototype.authInfoBytes = $util.newBuffer([]); - TxRaw.prototype.signatures = $util.emptyArray; - TxRaw.create = function create(properties) { - return new TxRaw(properties); - }; - TxRaw.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.bodyBytes != null && Object.hasOwnProperty.call(m, "bodyBytes")) - w.uint32(10).bytes(m.bodyBytes); - if (m.authInfoBytes != null && Object.hasOwnProperty.call(m, "authInfoBytes")) - w.uint32(18).bytes(m.authInfoBytes); - if (m.signatures != null && m.signatures.length) { - for (var i = 0; i < m.signatures.length; ++i) w.uint32(26).bytes(m.signatures[i]); - } - return w; - }; - TxRaw.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.tx.TxRaw(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.bodyBytes = r.bytes(); - break; - case 2: - m.authInfoBytes = r.bytes(); - break; - case 3: - if (!(m.signatures && m.signatures.length)) m.signatures = []; - m.signatures.push(r.bytes()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return TxRaw; - })(); - tx.SignDoc = (function () { - function SignDoc(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]]; - } - SignDoc.prototype.bodyBytes = $util.newBuffer([]); - SignDoc.prototype.authInfoBytes = $util.newBuffer([]); - SignDoc.prototype.chainId = ""; - SignDoc.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - SignDoc.prototype.accountSequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - SignDoc.create = function create(properties) { - return new SignDoc(properties); - }; - SignDoc.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.bodyBytes != null && Object.hasOwnProperty.call(m, "bodyBytes")) - w.uint32(10).bytes(m.bodyBytes); - if (m.authInfoBytes != null && Object.hasOwnProperty.call(m, "authInfoBytes")) - w.uint32(18).bytes(m.authInfoBytes); - if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(26).string(m.chainId); - if (m.accountNumber != null && Object.hasOwnProperty.call(m, "accountNumber")) - w.uint32(32).uint64(m.accountNumber); - if (m.accountSequence != null && Object.hasOwnProperty.call(m, "accountSequence")) - w.uint32(40).uint64(m.accountSequence); - return w; - }; - SignDoc.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.tx.SignDoc(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.bodyBytes = r.bytes(); - break; - case 2: - m.authInfoBytes = r.bytes(); - break; - case 3: - m.chainId = r.string(); - break; - case 4: - m.accountNumber = r.uint64(); - break; - case 5: - m.accountSequence = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return SignDoc; - })(); - tx.TxBody = (function () { - function TxBody(p) { - this.messages = []; - this.extensionOptions = []; - this.nonCriticalExtensionOptions = []; - 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]]; - } - TxBody.prototype.messages = $util.emptyArray; - TxBody.prototype.memo = ""; - TxBody.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - TxBody.prototype.extensionOptions = $util.emptyArray; - TxBody.prototype.nonCriticalExtensionOptions = $util.emptyArray; - TxBody.create = function create(properties) { - return new TxBody(properties); - }; - TxBody.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.messages != null && m.messages.length) { - for (var i = 0; i < m.messages.length; ++i) - $root.google.protobuf.Any.encode(m.messages[i], w.uint32(10).fork()).ldelim(); - } - if (m.memo != null && Object.hasOwnProperty.call(m, "memo")) w.uint32(18).string(m.memo); - if (m.timeoutHeight != null && Object.hasOwnProperty.call(m, "timeoutHeight")) - w.uint32(24).uint64(m.timeoutHeight); - if (m.extensionOptions != null && m.extensionOptions.length) { - for (var i = 0; i < m.extensionOptions.length; ++i) - $root.google.protobuf.Any.encode(m.extensionOptions[i], w.uint32(8186).fork()).ldelim(); - } - if (m.nonCriticalExtensionOptions != null && m.nonCriticalExtensionOptions.length) { - for (var i = 0; i < m.nonCriticalExtensionOptions.length; ++i) - $root.google.protobuf.Any.encode( - m.nonCriticalExtensionOptions[i], - w.uint32(16378).fork(), - ).ldelim(); - } - return w; - }; - TxBody.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.tx.TxBody(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.messages && m.messages.length)) m.messages = []; - m.messages.push($root.google.protobuf.Any.decode(r, r.uint32())); - break; - case 2: - m.memo = r.string(); - break; - case 3: - m.timeoutHeight = r.uint64(); - break; - case 1023: - if (!(m.extensionOptions && m.extensionOptions.length)) m.extensionOptions = []; - m.extensionOptions.push($root.google.protobuf.Any.decode(r, r.uint32())); - break; - case 2047: - if (!(m.nonCriticalExtensionOptions && m.nonCriticalExtensionOptions.length)) - m.nonCriticalExtensionOptions = []; - m.nonCriticalExtensionOptions.push($root.google.protobuf.Any.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return TxBody; - })(); - tx.AuthInfo = (function () { - function AuthInfo(p) { - this.signerInfos = []; - 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]]; - } - AuthInfo.prototype.signerInfos = $util.emptyArray; - AuthInfo.prototype.fee = null; - AuthInfo.create = function create(properties) { - return new AuthInfo(properties); - }; - AuthInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.signerInfos != null && m.signerInfos.length) { - for (var i = 0; i < m.signerInfos.length; ++i) - $root.cosmos.tx.SignerInfo.encode(m.signerInfos[i], w.uint32(10).fork()).ldelim(); - } - if (m.fee != null && Object.hasOwnProperty.call(m, "fee")) - $root.cosmos.tx.Fee.encode(m.fee, w.uint32(18).fork()).ldelim(); - return w; - }; - AuthInfo.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.tx.AuthInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.signerInfos && m.signerInfos.length)) m.signerInfos = []; - m.signerInfos.push($root.cosmos.tx.SignerInfo.decode(r, r.uint32())); - break; - case 2: - m.fee = $root.cosmos.tx.Fee.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return AuthInfo; - })(); - tx.SignerInfo = (function () { - function SignerInfo(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]]; - } - SignerInfo.prototype.publicKey = null; - SignerInfo.prototype.modeInfo = null; - SignerInfo.create = function create(properties) { - return new SignerInfo(properties); - }; - SignerInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.publicKey != null && Object.hasOwnProperty.call(m, "publicKey")) - $root.cosmos.crypto.PublicKey.encode(m.publicKey, w.uint32(10).fork()).ldelim(); - if (m.modeInfo != null && Object.hasOwnProperty.call(m, "modeInfo")) - $root.cosmos.tx.ModeInfo.encode(m.modeInfo, w.uint32(18).fork()).ldelim(); - return w; - }; - SignerInfo.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.tx.SignerInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.publicKey = $root.cosmos.crypto.PublicKey.decode(r, r.uint32()); - break; - case 2: - m.modeInfo = $root.cosmos.tx.ModeInfo.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return SignerInfo; - })(); - tx.ModeInfo = (function () { - function ModeInfo(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]]; - } - ModeInfo.prototype.single = null; - ModeInfo.prototype.multi = null; - let $oneOfFields; - Object.defineProperty(ModeInfo.prototype, "sum", { - get: $util.oneOfGetter(($oneOfFields = ["single", "multi"])), - set: $util.oneOfSetter($oneOfFields), - }); - ModeInfo.create = function create(properties) { - return new ModeInfo(properties); - }; - ModeInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.single != null && Object.hasOwnProperty.call(m, "single")) - $root.cosmos.tx.ModeInfo.Single.encode(m.single, w.uint32(10).fork()).ldelim(); - if (m.multi != null && Object.hasOwnProperty.call(m, "multi")) - $root.cosmos.tx.ModeInfo.Multi.encode(m.multi, w.uint32(18).fork()).ldelim(); - return w; - }; - ModeInfo.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.tx.ModeInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.single = $root.cosmos.tx.ModeInfo.Single.decode(r, r.uint32()); - break; - case 2: - m.multi = $root.cosmos.tx.ModeInfo.Multi.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - ModeInfo.Single = (function () { - function Single(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]]; - } - Single.prototype.mode = 0; - Single.create = function create(properties) { - return new Single(properties); - }; - Single.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.mode != null && Object.hasOwnProperty.call(m, "mode")) w.uint32(8).int32(m.mode); - return w; - }; - Single.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.tx.ModeInfo.Single(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.mode = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Single; - })(); - ModeInfo.Multi = (function () { - function Multi(p) { - this.modeInfos = []; - 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]]; - } - Multi.prototype.bitarray = null; - Multi.prototype.modeInfos = $util.emptyArray; - Multi.create = function create(properties) { - return new Multi(properties); - }; - Multi.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.bitarray != null && Object.hasOwnProperty.call(m, "bitarray")) - $root.cosmos.crypto.CompactBitArray.encode(m.bitarray, w.uint32(10).fork()).ldelim(); - if (m.modeInfos != null && m.modeInfos.length) { - for (var i = 0; i < m.modeInfos.length; ++i) - $root.cosmos.tx.ModeInfo.encode(m.modeInfos[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - Multi.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.tx.ModeInfo.Multi(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.bitarray = $root.cosmos.crypto.CompactBitArray.decode(r, r.uint32()); - break; - case 2: - if (!(m.modeInfos && m.modeInfos.length)) m.modeInfos = []; - m.modeInfos.push($root.cosmos.tx.ModeInfo.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Multi; - })(); - return ModeInfo; - })(); - tx.Fee = (function () { - function Fee(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]]; - } - Fee.prototype.amount = $util.emptyArray; - Fee.prototype.gasLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Fee.create = function create(properties) { - return new Fee(properties); - }; - Fee.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.Coin.encode(m.amount[i], w.uint32(10).fork()).ldelim(); - } - if (m.gasLimit != null && Object.hasOwnProperty.call(m, "gasLimit")) w.uint32(16).uint64(m.gasLimit); - return w; - }; - Fee.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.tx.Fee(); - 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.Coin.decode(r, r.uint32())); - break; - case 2: - m.gasLimit = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Fee; - })(); - tx.signing = (function () { - const signing = {}; - signing.SignMode = (function () { - const 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; - })(); - signing.SignatureDescriptors = (function () { - function SignatureDescriptors(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]]; - } - SignatureDescriptors.prototype.signatures = $util.emptyArray; - SignatureDescriptors.create = function create(properties) { - return new SignatureDescriptors(properties); - }; - SignatureDescriptors.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) - $root.cosmos.tx.signing.SignatureDescriptor.encode( - m.signatures[i], - w.uint32(10).fork(), - ).ldelim(); - } - return w; - }; - SignatureDescriptors.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.tx.signing.SignatureDescriptors(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.signatures && m.signatures.length)) m.signatures = []; - m.signatures.push($root.cosmos.tx.signing.SignatureDescriptor.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return SignatureDescriptors; - })(); - signing.SignatureDescriptor = (function () { - function SignatureDescriptor(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]]; - } - SignatureDescriptor.prototype.publicKey = null; - SignatureDescriptor.prototype.data = null; - SignatureDescriptor.create = function create(properties) { - return new SignatureDescriptor(properties); - }; - SignatureDescriptor.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.publicKey != null && Object.hasOwnProperty.call(m, "publicKey")) - $root.cosmos.crypto.PublicKey.encode(m.publicKey, w.uint32(10).fork()).ldelim(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) - $root.cosmos.tx.signing.SignatureDescriptor.Data.encode(m.data, w.uint32(18).fork()).ldelim(); - return w; - }; - SignatureDescriptor.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.tx.signing.SignatureDescriptor(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.publicKey = $root.cosmos.crypto.PublicKey.decode(r, r.uint32()); - break; - case 2: - m.data = $root.cosmos.tx.signing.SignatureDescriptor.Data.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - SignatureDescriptor.Data = (function () { - function Data(p) { + cosmos.base = (function () { + const base = {}; + base.query = (function () { + const query = {}; + query.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.PageRequest = (function () { + function PageRequest(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]]; } - Data.prototype.single = null; - Data.prototype.multi = null; - let $oneOfFields; - Object.defineProperty(Data.prototype, "sum", { - get: $util.oneOfGetter(($oneOfFields = ["single", "multi"])), - set: $util.oneOfSetter($oneOfFields), - }); - Data.create = function create(properties) { - return new Data(properties); + PageRequest.prototype.key = $util.newBuffer([]); + PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PageRequest.prototype.countTotal = false; + PageRequest.create = function create(properties) { + return new PageRequest(properties); }; - Data.encode = function encode(m, w) { + PageRequest.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.single != null && Object.hasOwnProperty.call(m, "single")) - $root.cosmos.tx.signing.SignatureDescriptor.Data.Single.encode( - m.single, - w.uint32(10).fork(), - ).ldelim(); - if (m.multi != null && Object.hasOwnProperty.call(m, "multi")) - $root.cosmos.tx.signing.SignatureDescriptor.Data.Multi.encode( - m.multi, - w.uint32(18).fork(), - ).ldelim(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); + if (m.offset != null && Object.hasOwnProperty.call(m, "offset")) w.uint32(16).uint64(m.offset); + if (m.limit != null && Object.hasOwnProperty.call(m, "limit")) w.uint32(24).uint64(m.limit); + if (m.countTotal != null && Object.hasOwnProperty.call(m, "countTotal")) + w.uint32(32).bool(m.countTotal); return w; }; - Data.decode = function decode(r, l) { + PageRequest.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.tx.signing.SignatureDescriptor.Data(); + m = new $root.cosmos.base.query.v1beta1.PageRequest(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { case 1: - m.single = $root.cosmos.tx.signing.SignatureDescriptor.Data.Single.decode(r, r.uint32()); + m.key = r.bytes(); break; case 2: - m.multi = $root.cosmos.tx.signing.SignatureDescriptor.Data.Multi.decode(r, r.uint32()); + m.offset = r.uint64(); + break; + case 3: + m.limit = r.uint64(); + break; + case 4: + m.countTotal = r.bool(); break; default: r.skipType(t & 7); @@ -2640,4927 +842,317 @@ exports.cosmos = $root.cosmos = (() => { } return m; }; - Data.Single = (function () { - function Single(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]]; - } - Single.prototype.mode = 0; - Single.prototype.signature = $util.newBuffer([]); - Single.create = function create(properties) { - return new Single(properties); - }; - Single.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.mode != null && Object.hasOwnProperty.call(m, "mode")) w.uint32(8).int32(m.mode); - if (m.signature != null && Object.hasOwnProperty.call(m, "signature")) - w.uint32(18).bytes(m.signature); - return w; - }; - Single.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.tx.signing.SignatureDescriptor.Data.Single(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.mode = r.int32(); - break; - case 2: - m.signature = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Single; - })(); - Data.Multi = (function () { - function Multi(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]]; - } - Multi.prototype.bitarray = null; - Multi.prototype.signatures = $util.emptyArray; - Multi.create = function create(properties) { - return new Multi(properties); - }; - Multi.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.bitarray != null && Object.hasOwnProperty.call(m, "bitarray")) - $root.cosmos.crypto.CompactBitArray.encode(m.bitarray, w.uint32(10).fork()).ldelim(); - if (m.signatures != null && m.signatures.length) { - for (var i = 0; i < m.signatures.length; ++i) - $root.cosmos.tx.signing.SignatureDescriptor.Data.encode( - m.signatures[i], - w.uint32(18).fork(), - ).ldelim(); - } - return w; - }; - Multi.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.tx.signing.SignatureDescriptor.Data.Multi(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.bitarray = $root.cosmos.crypto.CompactBitArray.decode(r, r.uint32()); - break; - case 2: - if (!(m.signatures && m.signatures.length)) m.signatures = []; - m.signatures.push($root.cosmos.tx.signing.SignatureDescriptor.Data.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Multi; - })(); - return Data; + return PageRequest; })(); - return SignatureDescriptor; + v1beta1.PageResponse = (function () { + function PageResponse(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]]; + } + PageResponse.prototype.nextKey = $util.newBuffer([]); + PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PageResponse.create = function create(properties) { + return new PageResponse(properties); + }; + PageResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.nextKey != null && Object.hasOwnProperty.call(m, "nextKey")) w.uint32(10).bytes(m.nextKey); + if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(16).uint64(m.total); + return w; + }; + PageResponse.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.base.query.v1beta1.PageResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.nextKey = r.bytes(); + break; + case 2: + m.total = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PageResponse; + })(); + return v1beta1; })(); - return signing; + return query; })(); - return tx; + base.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.Coin = (function () { + 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]]; + } + Coin.prototype.denom = ""; + Coin.prototype.amount = ""; + Coin.create = function create(properties) { + return new Coin(properties); + }; + 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; + }; + 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.base.v1beta1.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; + }; + return Coin; + })(); + v1beta1.DecCoin = (function () { + 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.prototype.denom = ""; + DecCoin.prototype.amount = ""; + DecCoin.create = function create(properties) { + return new DecCoin(properties); + }; + 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; + }; + 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.base.v1beta1.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; + })(); + v1beta1.IntProto = (function () { + 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.prototype.int = ""; + IntProto.create = function create(properties) { + return new IntProto(properties); + }; + 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; + }; + 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.base.v1beta1.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; + })(); + v1beta1.DecProto = (function () { + 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.prototype.dec = ""; + DecProto.create = function create(properties) { + return new DecProto(properties); + }; + 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; + }; + 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.base.v1beta1.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; + })(); + return v1beta1; + })(); + return base; })(); - return cosmos; -})(); -exports.ibc = $root.ibc = (() => { - const ibc = {}; - ibc.channel = (function () { - const channel = {}; - channel.MsgChannelOpenInit = (function () { - 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.prototype.portId = ""; - MsgChannelOpenInit.prototype.channelId = ""; - MsgChannelOpenInit.prototype.channel = null; - MsgChannelOpenInit.prototype.signer = $util.newBuffer([]); - MsgChannelOpenInit.create = function create(properties) { - return new MsgChannelOpenInit(properties); - }; - 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.ibc.channel.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; - }; - 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.ibc.channel.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.ibc.channel.Channel.decode(r, r.uint32()); - break; - case 4: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; + cosmos.crypto = (function () { + const crypto = {}; + crypto.multisig = (function () { + const multisig = {}; + multisig.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.MultiSignature = (function () { + 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 MsgChannelOpenInit; - })(); - channel.MsgChannelOpenTry = (function () { - 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.prototype.portId = ""; - MsgChannelOpenTry.prototype.channelId = ""; - MsgChannelOpenTry.prototype.channel = null; - MsgChannelOpenTry.prototype.counterpartyVersion = ""; - MsgChannelOpenTry.prototype.proofInit = $util.newBuffer([]); - MsgChannelOpenTry.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgChannelOpenTry.prototype.signer = $util.newBuffer([]); - MsgChannelOpenTry.create = function create(properties) { - return new MsgChannelOpenTry(properties); - }; - 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.ibc.channel.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; - }; - 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.ibc.channel.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.ibc.channel.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; - })(); - channel.MsgChannelOpenAck = (function () { - 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.prototype.portId = ""; - MsgChannelOpenAck.prototype.channelId = ""; - MsgChannelOpenAck.prototype.counterpartyVersion = ""; - MsgChannelOpenAck.prototype.proofTry = $util.newBuffer([]); - MsgChannelOpenAck.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgChannelOpenAck.prototype.signer = $util.newBuffer([]); - MsgChannelOpenAck.create = function create(properties) { - return new MsgChannelOpenAck(properties); - }; - 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; - }; - 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.ibc.channel.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; - })(); - channel.MsgChannelOpenConfirm = (function () { - 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.prototype.portId = ""; - MsgChannelOpenConfirm.prototype.channelId = ""; - MsgChannelOpenConfirm.prototype.proofAck = $util.newBuffer([]); - MsgChannelOpenConfirm.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgChannelOpenConfirm.prototype.signer = $util.newBuffer([]); - MsgChannelOpenConfirm.create = function create(properties) { - return new MsgChannelOpenConfirm(properties); - }; - 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; - }; - 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.ibc.channel.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; - })(); - channel.MsgChannelCloseInit = (function () { - 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.prototype.portId = ""; - MsgChannelCloseInit.prototype.channelId = ""; - MsgChannelCloseInit.prototype.signer = $util.newBuffer([]); - MsgChannelCloseInit.create = function create(properties) { - return new MsgChannelCloseInit(properties); - }; - 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; - }; - 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.ibc.channel.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; - })(); - channel.MsgChannelCloseConfirm = (function () { - 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.prototype.portId = ""; - MsgChannelCloseConfirm.prototype.channelId = ""; - MsgChannelCloseConfirm.prototype.proofInit = $util.newBuffer([]); - MsgChannelCloseConfirm.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgChannelCloseConfirm.prototype.signer = $util.newBuffer([]); - MsgChannelCloseConfirm.create = function create(properties) { - return new MsgChannelCloseConfirm(properties); - }; - 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; - }; - 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.ibc.channel.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; - })(); - channel.MsgRecvPacket = (function () { - function MsgRecvPacket(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]]; - } - MsgRecvPacket.prototype.packet = null; - MsgRecvPacket.prototype.proof = $util.newBuffer([]); - MsgRecvPacket.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgRecvPacket.prototype.signer = $util.newBuffer([]); - MsgRecvPacket.create = function create(properties) { - return new MsgRecvPacket(properties); - }; - MsgRecvPacket.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.channel.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; - }; - MsgRecvPacket.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.ibc.channel.MsgRecvPacket(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.channel.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 MsgRecvPacket; - })(); - channel.MsgTimeout = (function () { - 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.prototype.packet = null; - MsgTimeout.prototype.proof = $util.newBuffer([]); - MsgTimeout.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgTimeout.prototype.nextSequenceRecv = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgTimeout.prototype.signer = $util.newBuffer([]); - MsgTimeout.create = function create(properties) { - return new MsgTimeout(properties); - }; - MsgTimeout.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.channel.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; - }; - 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.ibc.channel.MsgTimeout(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.channel.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; - })(); - channel.MsgAcknowledgement = (function () { - 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.prototype.packet = null; - MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); - MsgAcknowledgement.prototype.proof = $util.newBuffer([]); - MsgAcknowledgement.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgAcknowledgement.prototype.signer = $util.newBuffer([]); - MsgAcknowledgement.create = function create(properties) { - return new MsgAcknowledgement(properties); - }; - MsgAcknowledgement.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) - $root.ibc.channel.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; - }; - 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.ibc.channel.MsgAcknowledgement(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.packet = $root.ibc.channel.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; - })(); - channel.Channel = (function () { - 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.prototype.state = 0; - Channel.prototype.ordering = 0; - Channel.prototype.counterparty = null; - Channel.prototype.connectionHops = $util.emptyArray; - Channel.prototype.version = ""; - Channel.create = function create(properties) { - return new Channel(properties); - }; - 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.ibc.channel.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; - }; - 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.ibc.channel.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.ibc.channel.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; - })(); - channel.IdentifiedChannel = (function () { - function IdentifiedChannel(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]]; - } - IdentifiedChannel.prototype.state = 0; - IdentifiedChannel.prototype.ordering = 0; - IdentifiedChannel.prototype.counterparty = null; - IdentifiedChannel.prototype.connectionHops = $util.emptyArray; - IdentifiedChannel.prototype.version = ""; - IdentifiedChannel.prototype.portId = ""; - IdentifiedChannel.prototype.channelId = ""; - IdentifiedChannel.create = function create(properties) { - return new IdentifiedChannel(properties); - }; - IdentifiedChannel.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.ibc.channel.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); - if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(50).string(m.portId); - if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) - w.uint32(58).string(m.channelId); - return w; - }; - IdentifiedChannel.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.ibc.channel.IdentifiedChannel(); - 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.ibc.channel.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; - case 6: - m.portId = r.string(); - break; - case 7: - m.channelId = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return IdentifiedChannel; - })(); - channel.State = (function () { - const 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; - })(); - channel.Order = (function () { - const 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; - })(); - channel.Counterparty = (function () { - 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.prototype.portId = ""; - Counterparty.prototype.channelId = ""; - Counterparty.create = function create(properties) { - return new Counterparty(properties); - }; - 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; - }; - 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.ibc.channel.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; - })(); - channel.Packet = (function () { - 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.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Packet.prototype.sourcePort = ""; - Packet.prototype.sourceChannel = ""; - Packet.prototype.destinationPort = ""; - Packet.prototype.destinationChannel = ""; - Packet.prototype.data = $util.newBuffer([]); - Packet.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Packet.prototype.timeoutTimestamp = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Packet.create = function create(properties) { - return new Packet(properties); - }; - 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; - }; - 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.ibc.channel.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; - })(); - channel.PacketAckCommitment = (function () { - function PacketAckCommitment(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]]; - } - PacketAckCommitment.prototype.portId = ""; - PacketAckCommitment.prototype.channelId = ""; - PacketAckCommitment.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - PacketAckCommitment.prototype.hash = $util.newBuffer([]); - PacketAckCommitment.create = function create(properties) { - return new PacketAckCommitment(properties); - }; - PacketAckCommitment.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.sequence != null && Object.hasOwnProperty.call(m, "sequence")) w.uint32(24).uint64(m.sequence); - if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(34).bytes(m.hash); - return w; - }; - PacketAckCommitment.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.ibc.channel.PacketAckCommitment(); - 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.sequence = r.uint64(); - break; - case 4: - m.hash = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PacketAckCommitment; - })(); - channel.Query = (function () { - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (Query.prototype.channel = function channel(request, callback) { - return this.rpcCall( - channel, - $root.ibc.channel.QueryChannelRequest, - $root.ibc.channel.QueryChannelResponse, - request, - callback, - ); - }), - "name", - { value: "Channel" }, - ); - Object.defineProperty( - (Query.prototype.channels = function channels(request, callback) { - return this.rpcCall( - channels, - $root.ibc.channel.QueryChannelsRequest, - $root.ibc.channel.QueryChannelsResponse, - request, - callback, - ); - }), - "name", - { value: "Channels" }, - ); - Object.defineProperty( - (Query.prototype.connectionChannels = function connectionChannels(request, callback) { - return this.rpcCall( - connectionChannels, - $root.ibc.channel.QueryConnectionChannelsRequest, - $root.ibc.channel.QueryConnectionChannelsResponse, - request, - callback, - ); - }), - "name", - { value: "ConnectionChannels" }, - ); - Object.defineProperty( - (Query.prototype.packetCommitment = function packetCommitment(request, callback) { - return this.rpcCall( - packetCommitment, - $root.ibc.channel.QueryPacketCommitmentRequest, - $root.ibc.channel.QueryPacketCommitmentResponse, - request, - callback, - ); - }), - "name", - { value: "PacketCommitment" }, - ); - Object.defineProperty( - (Query.prototype.packetCommitments = function packetCommitments(request, callback) { - return this.rpcCall( - packetCommitments, - $root.ibc.channel.QueryPacketCommitmentsRequest, - $root.ibc.channel.QueryPacketCommitmentsResponse, - request, - callback, - ); - }), - "name", - { value: "PacketCommitments" }, - ); - Object.defineProperty( - (Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { - return this.rpcCall( - packetAcknowledgement, - $root.ibc.channel.QueryPacketAcknowledgementRequest, - $root.ibc.channel.QueryPacketAcknowledgementResponse, - request, - callback, - ); - }), - "name", - { value: "PacketAcknowledgement" }, - ); - Object.defineProperty( - (Query.prototype.unrelayedPackets = function unrelayedPackets(request, callback) { - return this.rpcCall( - unrelayedPackets, - $root.ibc.channel.QueryUnrelayedPacketsRequest, - $root.ibc.channel.QueryUnrelayedPacketsResponse, - request, - callback, - ); - }), - "name", - { value: "UnrelayedPackets" }, - ); - Object.defineProperty( - (Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { - return this.rpcCall( - nextSequenceReceive, - $root.ibc.channel.QueryNextSequenceReceiveRequest, - $root.ibc.channel.QueryNextSequenceReceiveResponse, - request, - callback, - ); - }), - "name", - { value: "NextSequenceReceive" }, - ); - return Query; - })(); - channel.QueryChannelRequest = (function () { - function QueryChannelRequest(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]]; - } - QueryChannelRequest.prototype.portId = ""; - QueryChannelRequest.prototype.channelId = ""; - QueryChannelRequest.create = function create(properties) { - return new QueryChannelRequest(properties); - }; - QueryChannelRequest.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; - }; - QueryChannelRequest.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.ibc.channel.QueryChannelRequest(); - 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 QueryChannelRequest; - })(); - channel.QueryChannelResponse = (function () { - function QueryChannelResponse(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]]; - } - QueryChannelResponse.prototype.channel = null; - QueryChannelResponse.prototype.proof = $util.newBuffer([]); - QueryChannelResponse.prototype.proofPath = ""; - QueryChannelResponse.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryChannelResponse.create = function create(properties) { - return new QueryChannelResponse(properties); - }; - QueryChannelResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) - $root.ibc.channel.Channel.encode(m.channel, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - return w; - }; - QueryChannelResponse.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.ibc.channel.QueryChannelResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.channel = $root.ibc.channel.Channel.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofPath = r.string(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryChannelResponse; - })(); - channel.QueryChannelsRequest = (function () { - function QueryChannelsRequest(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]]; - } - QueryChannelsRequest.prototype.pagination = null; - QueryChannelsRequest.create = function create(properties) { - return new QueryChannelsRequest(properties); - }; - QueryChannelsRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageRequest.encode(m.pagination, w.uint32(10).fork()).ldelim(); - return w; - }; - QueryChannelsRequest.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.ibc.channel.QueryChannelsRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.pagination = $root.cosmos.query.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryChannelsRequest; - })(); - channel.QueryChannelsResponse = (function () { - function QueryChannelsResponse(p) { - this.channels = []; - 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]]; - } - QueryChannelsResponse.prototype.channels = $util.emptyArray; - QueryChannelsResponse.prototype.pagination = null; - QueryChannelsResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - QueryChannelsResponse.create = function create(properties) { - return new QueryChannelsResponse(properties); - }; - QueryChannelsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.channels != null && m.channels.length) { - for (var i = 0; i < m.channels.length; ++i) - $root.ibc.channel.IdentifiedChannel.encode(m.channels[i], w.uint32(10).fork()).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - return w; - }; - QueryChannelsResponse.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.ibc.channel.QueryChannelsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.channels && m.channels.length)) m.channels = []; - m.channels.push($root.ibc.channel.IdentifiedChannel.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.query.PageResponse.decode(r, r.uint32()); - break; - case 3: - m.height = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryChannelsResponse; - })(); - channel.QueryConnectionChannelsRequest = (function () { - function QueryConnectionChannelsRequest(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]]; - } - QueryConnectionChannelsRequest.prototype.connection = ""; - QueryConnectionChannelsRequest.prototype.pagination = null; - QueryConnectionChannelsRequest.create = function create(properties) { - return new QueryConnectionChannelsRequest(properties); - }; - QueryConnectionChannelsRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.connection != null && Object.hasOwnProperty.call(m, "connection")) - w.uint32(10).string(m.connection); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); - return w; - }; - QueryConnectionChannelsRequest.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.ibc.channel.QueryConnectionChannelsRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connection = r.string(); - break; - case 2: - m.pagination = $root.cosmos.query.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryConnectionChannelsRequest; - })(); - channel.QueryConnectionChannelsResponse = (function () { - function QueryConnectionChannelsResponse(p) { - this.channels = []; - 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]]; - } - QueryConnectionChannelsResponse.prototype.channels = $util.emptyArray; - QueryConnectionChannelsResponse.prototype.pagination = null; - QueryConnectionChannelsResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - QueryConnectionChannelsResponse.create = function create(properties) { - return new QueryConnectionChannelsResponse(properties); - }; - QueryConnectionChannelsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.channels != null && m.channels.length) { - for (var i = 0; i < m.channels.length; ++i) - $root.ibc.channel.IdentifiedChannel.encode(m.channels[i], w.uint32(10).fork()).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - return w; - }; - QueryConnectionChannelsResponse.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.ibc.channel.QueryConnectionChannelsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.channels && m.channels.length)) m.channels = []; - m.channels.push($root.ibc.channel.IdentifiedChannel.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.query.PageResponse.decode(r, r.uint32()); - break; - case 3: - m.height = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryConnectionChannelsResponse; - })(); - channel.QueryPacketCommitmentRequest = (function () { - function QueryPacketCommitmentRequest(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]]; - } - QueryPacketCommitmentRequest.prototype.portId = ""; - QueryPacketCommitmentRequest.prototype.channelId = ""; - QueryPacketCommitmentRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryPacketCommitmentRequest.create = function create(properties) { - return new QueryPacketCommitmentRequest(properties); - }; - QueryPacketCommitmentRequest.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.sequence != null && Object.hasOwnProperty.call(m, "sequence")) w.uint32(24).uint64(m.sequence); - return w; - }; - QueryPacketCommitmentRequest.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.ibc.channel.QueryPacketCommitmentRequest(); - 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.sequence = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryPacketCommitmentRequest; - })(); - channel.QueryPacketCommitmentResponse = (function () { - function QueryPacketCommitmentResponse(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]]; - } - QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); - QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); - QueryPacketCommitmentResponse.prototype.proofPath = ""; - QueryPacketCommitmentResponse.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryPacketCommitmentResponse.create = function create(properties) { - return new QueryPacketCommitmentResponse(properties); - }; - QueryPacketCommitmentResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.commitment != null && Object.hasOwnProperty.call(m, "commitment")) - w.uint32(10).bytes(m.commitment); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - return w; - }; - QueryPacketCommitmentResponse.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.ibc.channel.QueryPacketCommitmentResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.commitment = r.bytes(); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofPath = r.string(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryPacketCommitmentResponse; - })(); - channel.QueryPacketCommitmentsRequest = (function () { - function QueryPacketCommitmentsRequest(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]]; - } - QueryPacketCommitmentsRequest.prototype.portId = ""; - QueryPacketCommitmentsRequest.prototype.channelId = ""; - QueryPacketCommitmentsRequest.prototype.pagination = null; - QueryPacketCommitmentsRequest.create = function create(properties) { - return new QueryPacketCommitmentsRequest(properties); - }; - QueryPacketCommitmentsRequest.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.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageRequest.encode(m.pagination, w.uint32(26).fork()).ldelim(); - return w; - }; - QueryPacketCommitmentsRequest.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.ibc.channel.QueryPacketCommitmentsRequest(); - 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.pagination = $root.cosmos.query.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryPacketCommitmentsRequest; - })(); - channel.QueryPacketCommitmentsResponse = (function () { - function QueryPacketCommitmentsResponse(p) { - this.commitments = []; - 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]]; - } - QueryPacketCommitmentsResponse.prototype.commitments = $util.emptyArray; - QueryPacketCommitmentsResponse.prototype.pagination = null; - QueryPacketCommitmentsResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - QueryPacketCommitmentsResponse.create = function create(properties) { - return new QueryPacketCommitmentsResponse(properties); - }; - QueryPacketCommitmentsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.commitments != null && m.commitments.length) { - for (var i = 0; i < m.commitments.length; ++i) - $root.ibc.channel.PacketAckCommitment.encode(m.commitments[i], w.uint32(10).fork()).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - return w; - }; - QueryPacketCommitmentsResponse.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.ibc.channel.QueryPacketCommitmentsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.commitments && m.commitments.length)) m.commitments = []; - m.commitments.push($root.ibc.channel.PacketAckCommitment.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.query.PageResponse.decode(r, r.uint32()); - break; - case 3: - m.height = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryPacketCommitmentsResponse; - })(); - channel.QueryPacketAcknowledgementRequest = (function () { - function QueryPacketAcknowledgementRequest(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]]; - } - QueryPacketAcknowledgementRequest.prototype.portId = ""; - QueryPacketAcknowledgementRequest.prototype.channelId = ""; - QueryPacketAcknowledgementRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryPacketAcknowledgementRequest.create = function create(properties) { - return new QueryPacketAcknowledgementRequest(properties); - }; - QueryPacketAcknowledgementRequest.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.sequence != null && Object.hasOwnProperty.call(m, "sequence")) w.uint32(24).uint64(m.sequence); - return w; - }; - QueryPacketAcknowledgementRequest.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.ibc.channel.QueryPacketAcknowledgementRequest(); - 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.sequence = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryPacketAcknowledgementRequest; - })(); - channel.QueryPacketAcknowledgementResponse = (function () { - function QueryPacketAcknowledgementResponse(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]]; - } - QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); - QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); - QueryPacketAcknowledgementResponse.prototype.proofPath = ""; - QueryPacketAcknowledgementResponse.prototype.proofHeight = $util.Long - ? $util.Long.fromBits(0, 0, true) - : 0; - QueryPacketAcknowledgementResponse.create = function create(properties) { - return new QueryPacketAcknowledgementResponse(properties); - }; - QueryPacketAcknowledgementResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.acknowledgement != null && Object.hasOwnProperty.call(m, "acknowledgement")) - w.uint32(10).bytes(m.acknowledgement); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - return w; - }; - QueryPacketAcknowledgementResponse.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.ibc.channel.QueryPacketAcknowledgementResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.acknowledgement = r.bytes(); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofPath = r.string(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryPacketAcknowledgementResponse; - })(); - channel.QueryUnrelayedPacketsRequest = (function () { - function QueryUnrelayedPacketsRequest(p) { - this.packetCommitmentSequences = []; - 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]]; - } - QueryUnrelayedPacketsRequest.prototype.portId = ""; - QueryUnrelayedPacketsRequest.prototype.channelId = ""; - QueryUnrelayedPacketsRequest.prototype.packetCommitmentSequences = $util.emptyArray; - QueryUnrelayedPacketsRequest.prototype.acknowledgements = false; - QueryUnrelayedPacketsRequest.create = function create(properties) { - return new QueryUnrelayedPacketsRequest(properties); - }; - QueryUnrelayedPacketsRequest.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.packetCommitmentSequences != null && m.packetCommitmentSequences.length) { - w.uint32(26).fork(); - for (var i = 0; i < m.packetCommitmentSequences.length; ++i) - w.uint64(m.packetCommitmentSequences[i]); - w.ldelim(); - } - if (m.acknowledgements != null && Object.hasOwnProperty.call(m, "acknowledgements")) - w.uint32(32).bool(m.acknowledgements); - return w; - }; - QueryUnrelayedPacketsRequest.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.ibc.channel.QueryUnrelayedPacketsRequest(); - 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: - if (!(m.packetCommitmentSequences && m.packetCommitmentSequences.length)) - m.packetCommitmentSequences = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.packetCommitmentSequences.push(r.uint64()); - } else m.packetCommitmentSequences.push(r.uint64()); - break; - case 4: - m.acknowledgements = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryUnrelayedPacketsRequest; - })(); - channel.QueryUnrelayedPacketsResponse = (function () { - function QueryUnrelayedPacketsResponse(p) { - this.sequences = []; - 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]]; - } - QueryUnrelayedPacketsResponse.prototype.sequences = $util.emptyArray; - QueryUnrelayedPacketsResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - QueryUnrelayedPacketsResponse.create = function create(properties) { - return new QueryUnrelayedPacketsResponse(properties); - }; - QueryUnrelayedPacketsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.sequences != null && m.sequences.length) { - w.uint32(10).fork(); - for (var i = 0; i < m.sequences.length; ++i) w.uint64(m.sequences[i]); - w.ldelim(); - } - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(16).int64(m.height); - return w; - }; - QueryUnrelayedPacketsResponse.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.ibc.channel.QueryUnrelayedPacketsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.sequences && m.sequences.length)) m.sequences = []; - if ((t & 7) === 2) { - var c2 = r.uint32() + r.pos; - while (r.pos < c2) m.sequences.push(r.uint64()); - } else m.sequences.push(r.uint64()); - break; - case 2: - m.height = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryUnrelayedPacketsResponse; - })(); - channel.QueryNextSequenceReceiveRequest = (function () { - function QueryNextSequenceReceiveRequest(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]]; - } - QueryNextSequenceReceiveRequest.prototype.portId = ""; - QueryNextSequenceReceiveRequest.prototype.channelId = ""; - QueryNextSequenceReceiveRequest.create = function create(properties) { - return new QueryNextSequenceReceiveRequest(properties); - }; - QueryNextSequenceReceiveRequest.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; - }; - QueryNextSequenceReceiveRequest.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.ibc.channel.QueryNextSequenceReceiveRequest(); - 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 QueryNextSequenceReceiveRequest; - })(); - channel.QueryNextSequenceReceiveResponse = (function () { - function QueryNextSequenceReceiveResponse(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]]; - } - QueryNextSequenceReceiveResponse.prototype.nextSequenceReceive = $util.Long - ? $util.Long.fromBits(0, 0, true) - : 0; - QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); - QueryNextSequenceReceiveResponse.prototype.proofPath = ""; - QueryNextSequenceReceiveResponse.prototype.proofHeight = $util.Long - ? $util.Long.fromBits(0, 0, true) - : 0; - QueryNextSequenceReceiveResponse.create = function create(properties) { - return new QueryNextSequenceReceiveResponse(properties); - }; - QueryNextSequenceReceiveResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.nextSequenceReceive != null && Object.hasOwnProperty.call(m, "nextSequenceReceive")) - w.uint32(8).uint64(m.nextSequenceReceive); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - return w; - }; - QueryNextSequenceReceiveResponse.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.ibc.channel.QueryNextSequenceReceiveResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.nextSequenceReceive = r.uint64(); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofPath = r.string(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryNextSequenceReceiveResponse; - })(); - channel.QueryChannelClientStateRequest = (function () { - function QueryChannelClientStateRequest(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]]; - } - QueryChannelClientStateRequest.prototype.portId = ""; - QueryChannelClientStateRequest.prototype.channelId = ""; - QueryChannelClientStateRequest.create = function create(properties) { - return new QueryChannelClientStateRequest(properties); - }; - QueryChannelClientStateRequest.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; - }; - QueryChannelClientStateRequest.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.ibc.channel.QueryChannelClientStateRequest(); - 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 QueryChannelClientStateRequest; - })(); - channel.QueryChannelConsensusStateRequest = (function () { - function QueryChannelConsensusStateRequest(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]]; - } - QueryChannelConsensusStateRequest.prototype.portId = ""; - QueryChannelConsensusStateRequest.prototype.channelId = ""; - QueryChannelConsensusStateRequest.create = function create(properties) { - return new QueryChannelConsensusStateRequest(properties); - }; - QueryChannelConsensusStateRequest.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; - }; - QueryChannelConsensusStateRequest.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.ibc.channel.QueryChannelConsensusStateRequest(); - 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 QueryChannelConsensusStateRequest; - })(); - return channel; - })(); - ibc.commitment = (function () { - const commitment = {}; - commitment.MerkleRoot = (function () { - 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.prototype.hash = $util.newBuffer([]); - MerkleRoot.create = function create(properties) { - return new MerkleRoot(properties); - }; - 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; - }; - 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.ibc.commitment.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; - })(); - commitment.MerklePrefix = (function () { - 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.prototype.keyPrefix = $util.newBuffer([]); - MerklePrefix.create = function create(properties) { - return new MerklePrefix(properties); - }; - 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; - }; - 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.ibc.commitment.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; - })(); - commitment.MerklePath = (function () { - 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.prototype.keyPath = null; - MerklePath.create = function create(properties) { - return new MerklePath(properties); - }; - MerklePath.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.keyPath != null && Object.hasOwnProperty.call(m, "keyPath")) - $root.ibc.commitment.KeyPath.encode(m.keyPath, w.uint32(10).fork()).ldelim(); - return w; - }; - 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.ibc.commitment.MerklePath(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.keyPath = $root.ibc.commitment.KeyPath.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MerklePath; - })(); - commitment.MerkleProof = (function () { - 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.prototype.proof = null; - MerkleProof.create = function create(properties) { - return new MerkleProof(properties); - }; - 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; - }; - 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.ibc.commitment.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; - })(); - commitment.KeyPath = (function () { - 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.prototype.keys = $util.emptyArray; - KeyPath.create = function create(properties) { - return new KeyPath(properties); - }; - 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.ibc.commitment.Key.encode(m.keys[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - 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.ibc.commitment.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.ibc.commitment.Key.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return KeyPath; - })(); - commitment.Key = (function () { - 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.prototype.name = $util.newBuffer([]); - Key.prototype.enc = 0; - Key.create = function create(properties) { - return new Key(properties); - }; - 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; - }; - 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.ibc.commitment.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; - })(); - commitment.KeyEncoding = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[0] = "KEY_ENCODING_URL_UNSPECIFIED")] = 0; - values[(valuesById[1] = "KEY_ENCODING_HEX")] = 1; - return values; - })(); - return commitment; - })(); - ibc.connection = (function () { - const connection = {}; - connection.MsgConnectionOpenInit = (function () { - 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.prototype.clientId = ""; - MsgConnectionOpenInit.prototype.connectionId = ""; - MsgConnectionOpenInit.prototype.counterparty = null; - MsgConnectionOpenInit.prototype.signer = $util.newBuffer([]); - MsgConnectionOpenInit.create = function create(properties) { - return new MsgConnectionOpenInit(properties); - }; - 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.ibc.connection.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; - }; - 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.ibc.connection.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.ibc.connection.Counterparty.decode(r, r.uint32()); - break; - case 4: - m.signer = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return MsgConnectionOpenInit; - })(); - connection.MsgConnectionOpenTry = (function () { - 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.prototype.clientId = ""; - MsgConnectionOpenTry.prototype.connectionId = ""; - MsgConnectionOpenTry.prototype.counterparty = null; - MsgConnectionOpenTry.prototype.counterpartyVersions = $util.emptyArray; - MsgConnectionOpenTry.prototype.proofInit = $util.newBuffer([]); - MsgConnectionOpenTry.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgConnectionOpenTry.prototype.proofConsensus = $util.newBuffer([]); - MsgConnectionOpenTry.prototype.consensusHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgConnectionOpenTry.prototype.signer = $util.newBuffer([]); - MsgConnectionOpenTry.create = function create(properties) { - return new MsgConnectionOpenTry(properties); - }; - 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.ibc.connection.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; - }; - 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.ibc.connection.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.ibc.connection.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; - })(); - connection.MsgConnectionOpenAck = (function () { - 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.prototype.connectionId = ""; - MsgConnectionOpenAck.prototype.version = ""; - MsgConnectionOpenAck.prototype.proofTry = $util.newBuffer([]); - MsgConnectionOpenAck.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgConnectionOpenAck.prototype.proofConsensus = $util.newBuffer([]); - MsgConnectionOpenAck.prototype.consensusHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgConnectionOpenAck.prototype.signer = $util.newBuffer([]); - MsgConnectionOpenAck.create = function create(properties) { - return new MsgConnectionOpenAck(properties); - }; - 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; - }; - 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.ibc.connection.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; - })(); - connection.MsgConnectionOpenConfirm = (function () { - 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.prototype.connectionId = ""; - MsgConnectionOpenConfirm.prototype.proofAck = $util.newBuffer([]); - MsgConnectionOpenConfirm.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - MsgConnectionOpenConfirm.prototype.signer = $util.newBuffer([]); - MsgConnectionOpenConfirm.create = function create(properties) { - return new MsgConnectionOpenConfirm(properties); - }; - 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; - }; - 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.ibc.connection.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; - })(); - connection.ConnectionEnd = (function () { - 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.prototype.clientId = ""; - ConnectionEnd.prototype.versions = $util.emptyArray; - ConnectionEnd.prototype.state = 0; - ConnectionEnd.prototype.counterparty = null; - ConnectionEnd.create = function create(properties) { - return new ConnectionEnd(properties); - }; - ConnectionEnd.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.versions != null && m.versions.length) { - for (var i = 0; i < m.versions.length; ++i) w.uint32(18).string(m.versions[i]); - } - if (m.state != null && Object.hasOwnProperty.call(m, "state")) w.uint32(24).int32(m.state); - if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) - $root.ibc.connection.Counterparty.encode(m.counterparty, w.uint32(34).fork()).ldelim(); - return w; - }; - 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.ibc.connection.ConnectionEnd(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - if (!(m.versions && m.versions.length)) m.versions = []; - m.versions.push(r.string()); - break; - case 3: - m.state = r.int32(); - break; - case 4: - m.counterparty = $root.ibc.connection.Counterparty.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ConnectionEnd; - })(); - connection.IdentifiedConnection = (function () { - function IdentifiedConnection(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]]; - } - IdentifiedConnection.prototype.id = ""; - IdentifiedConnection.prototype.clientId = ""; - IdentifiedConnection.prototype.versions = $util.emptyArray; - IdentifiedConnection.prototype.state = 0; - IdentifiedConnection.prototype.counterparty = null; - IdentifiedConnection.create = function create(properties) { - return new IdentifiedConnection(properties); - }; - IdentifiedConnection.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.ibc.connection.Counterparty.encode(m.counterparty, w.uint32(42).fork()).ldelim(); - return w; - }; - IdentifiedConnection.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.ibc.connection.IdentifiedConnection(); - 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.ibc.connection.Counterparty.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return IdentifiedConnection; - })(); - connection.State = (function () { - const 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; - })(); - connection.Counterparty = (function () { - 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.prototype.clientId = ""; - Counterparty.prototype.connectionId = ""; - Counterparty.prototype.prefix = null; - Counterparty.create = function create(properties) { - return new Counterparty(properties); - }; - 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.ibc.commitment.MerklePrefix.encode(m.prefix, w.uint32(26).fork()).ldelim(); - return w; - }; - 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.ibc.connection.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.ibc.commitment.MerklePrefix.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Counterparty; - })(); - connection.ClientPaths = (function () { - 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.prototype.paths = $util.emptyArray; - ClientPaths.create = function create(properties) { - return new ClientPaths(properties); - }; - 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; - }; - 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.ibc.connection.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; - })(); - connection.ConnectionPaths = (function () { - function ConnectionPaths(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]]; - } - ConnectionPaths.prototype.clientId = ""; - ConnectionPaths.prototype.paths = $util.emptyArray; - ConnectionPaths.create = function create(properties) { - return new ConnectionPaths(properties); - }; - ConnectionPaths.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.paths != null && m.paths.length) { - for (var i = 0; i < m.paths.length; ++i) w.uint32(18).string(m.paths[i]); - } - return w; - }; - ConnectionPaths.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.ibc.connection.ConnectionPaths(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - case 2: - if (!(m.paths && m.paths.length)) m.paths = []; - m.paths.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ConnectionPaths; - })(); - connection.Version = (function () { - function Version(p) { - this.features = []; - 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]]; - } - Version.prototype.identifier = ""; - Version.prototype.features = $util.emptyArray; - Version.create = function create(properties) { - return new Version(properties); - }; - Version.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.identifier != null && Object.hasOwnProperty.call(m, "identifier")) - w.uint32(10).string(m.identifier); - if (m.features != null && m.features.length) { - for (var i = 0; i < m.features.length; ++i) w.uint32(18).string(m.features[i]); - } - return w; - }; - Version.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.ibc.connection.Version(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.identifier = r.string(); - break; - case 2: - if (!(m.features && m.features.length)) m.features = []; - m.features.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Version; - })(); - connection.Query = (function () { - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (Query.prototype.connection = function connection(request, callback) { - return this.rpcCall( - connection, - $root.ibc.connection.QueryConnectionRequest, - $root.ibc.connection.QueryConnectionResponse, - request, - callback, - ); - }), - "name", - { value: "Connection" }, - ); - Object.defineProperty( - (Query.prototype.connections = function connections(request, callback) { - return this.rpcCall( - connections, - $root.ibc.connection.QueryConnectionsRequest, - $root.ibc.connection.QueryConnectionsResponse, - request, - callback, - ); - }), - "name", - { value: "Connections" }, - ); - Object.defineProperty( - (Query.prototype.clientConnections = function clientConnections(request, callback) { - return this.rpcCall( - clientConnections, - $root.ibc.connection.QueryClientConnectionsRequest, - $root.ibc.connection.QueryClientConnectionsResponse, - request, - callback, - ); - }), - "name", - { value: "ClientConnections" }, - ); - return Query; - })(); - connection.QueryConnectionRequest = (function () { - function QueryConnectionRequest(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]]; - } - QueryConnectionRequest.prototype.connectionId = ""; - QueryConnectionRequest.create = function create(properties) { - return new QueryConnectionRequest(properties); - }; - QueryConnectionRequest.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); - return w; - }; - QueryConnectionRequest.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.ibc.connection.QueryConnectionRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connectionId = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryConnectionRequest; - })(); - connection.QueryConnectionResponse = (function () { - function QueryConnectionResponse(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]]; - } - QueryConnectionResponse.prototype.connection = null; - QueryConnectionResponse.prototype.proof = $util.newBuffer([]); - QueryConnectionResponse.prototype.proofPath = ""; - QueryConnectionResponse.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryConnectionResponse.create = function create(properties) { - return new QueryConnectionResponse(properties); - }; - QueryConnectionResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.connection != null && Object.hasOwnProperty.call(m, "connection")) - $root.ibc.connection.ConnectionEnd.encode(m.connection, w.uint32(10).fork()).ldelim(); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - return w; - }; - QueryConnectionResponse.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.ibc.connection.QueryConnectionResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.connection = $root.ibc.connection.ConnectionEnd.decode(r, r.uint32()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofPath = r.string(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryConnectionResponse; - })(); - connection.QueryConnectionsRequest = (function () { - function QueryConnectionsRequest(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]]; - } - QueryConnectionsRequest.prototype.pagination = null; - QueryConnectionsRequest.create = function create(properties) { - return new QueryConnectionsRequest(properties); - }; - QueryConnectionsRequest.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageRequest.encode(m.pagination, w.uint32(10).fork()).ldelim(); - return w; - }; - QueryConnectionsRequest.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.ibc.connection.QueryConnectionsRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.pagination = $root.cosmos.query.PageRequest.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryConnectionsRequest; - })(); - connection.QueryConnectionsResponse = (function () { - function QueryConnectionsResponse(p) { - this.connections = []; - 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]]; - } - QueryConnectionsResponse.prototype.connections = $util.emptyArray; - QueryConnectionsResponse.prototype.pagination = null; - QueryConnectionsResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - QueryConnectionsResponse.create = function create(properties) { - return new QueryConnectionsResponse(properties); - }; - QueryConnectionsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.connections != null && m.connections.length) { - for (var i = 0; i < m.connections.length; ++i) - $root.ibc.connection.IdentifiedConnection.encode(m.connections[i], w.uint32(10).fork()).ldelim(); - } - if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) - $root.cosmos.query.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - return w; - }; - QueryConnectionsResponse.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.ibc.connection.QueryConnectionsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.connections && m.connections.length)) m.connections = []; - m.connections.push($root.ibc.connection.IdentifiedConnection.decode(r, r.uint32())); - break; - case 2: - m.pagination = $root.cosmos.query.PageResponse.decode(r, r.uint32()); - break; - case 3: - m.height = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryConnectionsResponse; - })(); - connection.QueryClientConnectionsRequest = (function () { - function QueryClientConnectionsRequest(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]]; - } - QueryClientConnectionsRequest.prototype.clientId = ""; - QueryClientConnectionsRequest.create = function create(properties) { - return new QueryClientConnectionsRequest(properties); - }; - QueryClientConnectionsRequest.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); - return w; - }; - QueryClientConnectionsRequest.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.ibc.connection.QueryClientConnectionsRequest(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.clientId = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryClientConnectionsRequest; - })(); - connection.QueryClientConnectionsResponse = (function () { - function QueryClientConnectionsResponse(p) { - this.connectionPaths = []; - 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]]; - } - QueryClientConnectionsResponse.prototype.connectionPaths = $util.emptyArray; - QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); - QueryClientConnectionsResponse.prototype.proofPath = ""; - QueryClientConnectionsResponse.prototype.proofHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - QueryClientConnectionsResponse.create = function create(properties) { - return new QueryClientConnectionsResponse(properties); - }; - QueryClientConnectionsResponse.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.connectionPaths != null && m.connectionPaths.length) { - for (var i = 0; i < m.connectionPaths.length; ++i) w.uint32(10).string(m.connectionPaths[i]); - } - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); - if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) - w.uint32(26).string(m.proofPath); - if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) - w.uint32(32).uint64(m.proofHeight); - return w; - }; - QueryClientConnectionsResponse.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.ibc.connection.QueryClientConnectionsResponse(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.connectionPaths && m.connectionPaths.length)) m.connectionPaths = []; - m.connectionPaths.push(r.string()); - break; - case 2: - m.proof = r.bytes(); - break; - case 3: - m.proofPath = r.string(); - break; - case 4: - m.proofHeight = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return QueryClientConnectionsResponse; - })(); - return connection; - })(); - return ibc; -})(); -exports.tendermint = $root.tendermint = (() => { - const tendermint = {}; - tendermint.abci = (function () { - const abci = {}; - abci.types = (function () { - const types = {}; - types.Request = (function () { - function Request(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]]; - } - Request.prototype.echo = null; - Request.prototype.flush = null; - Request.prototype.info = null; - Request.prototype.setOption = null; - Request.prototype.initChain = null; - Request.prototype.query = null; - Request.prototype.beginBlock = null; - Request.prototype.checkTx = null; - Request.prototype.deliverTx = null; - Request.prototype.endBlock = null; - Request.prototype.commit = null; - let $oneOfFields; - Object.defineProperty(Request.prototype, "value", { - get: $util.oneOfGetter( - ($oneOfFields = [ - "echo", - "flush", - "info", - "setOption", - "initChain", - "query", - "beginBlock", - "checkTx", - "deliverTx", - "endBlock", - "commit", - ]), - ), - set: $util.oneOfSetter($oneOfFields), - }); - Request.create = function create(properties) { - return new Request(properties); - }; - Request.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.echo != null && Object.hasOwnProperty.call(m, "echo")) - $root.tendermint.abci.types.RequestEcho.encode(m.echo, w.uint32(18).fork()).ldelim(); - if (m.flush != null && Object.hasOwnProperty.call(m, "flush")) - $root.tendermint.abci.types.RequestFlush.encode(m.flush, w.uint32(26).fork()).ldelim(); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) - $root.tendermint.abci.types.RequestInfo.encode(m.info, w.uint32(34).fork()).ldelim(); - if (m.setOption != null && Object.hasOwnProperty.call(m, "setOption")) - $root.tendermint.abci.types.RequestSetOption.encode(m.setOption, w.uint32(42).fork()).ldelim(); - if (m.initChain != null && Object.hasOwnProperty.call(m, "initChain")) - $root.tendermint.abci.types.RequestInitChain.encode(m.initChain, w.uint32(50).fork()).ldelim(); - if (m.query != null && Object.hasOwnProperty.call(m, "query")) - $root.tendermint.abci.types.RequestQuery.encode(m.query, w.uint32(58).fork()).ldelim(); - if (m.beginBlock != null && Object.hasOwnProperty.call(m, "beginBlock")) - $root.tendermint.abci.types.RequestBeginBlock.encode(m.beginBlock, w.uint32(66).fork()).ldelim(); - if (m.checkTx != null && Object.hasOwnProperty.call(m, "checkTx")) - $root.tendermint.abci.types.RequestCheckTx.encode(m.checkTx, w.uint32(74).fork()).ldelim(); - if (m.endBlock != null && Object.hasOwnProperty.call(m, "endBlock")) - $root.tendermint.abci.types.RequestEndBlock.encode(m.endBlock, w.uint32(90).fork()).ldelim(); - if (m.commit != null && Object.hasOwnProperty.call(m, "commit")) - $root.tendermint.abci.types.RequestCommit.encode(m.commit, w.uint32(98).fork()).ldelim(); - if (m.deliverTx != null && Object.hasOwnProperty.call(m, "deliverTx")) - $root.tendermint.abci.types.RequestDeliverTx.encode(m.deliverTx, w.uint32(154).fork()).ldelim(); - return w; - }; - Request.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.tendermint.abci.types.Request(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 2: - m.echo = $root.tendermint.abci.types.RequestEcho.decode(r, r.uint32()); - break; - case 3: - m.flush = $root.tendermint.abci.types.RequestFlush.decode(r, r.uint32()); - break; - case 4: - m.info = $root.tendermint.abci.types.RequestInfo.decode(r, r.uint32()); - break; - case 5: - m.setOption = $root.tendermint.abci.types.RequestSetOption.decode(r, r.uint32()); - break; - case 6: - m.initChain = $root.tendermint.abci.types.RequestInitChain.decode(r, r.uint32()); - break; - case 7: - m.query = $root.tendermint.abci.types.RequestQuery.decode(r, r.uint32()); - break; - case 8: - m.beginBlock = $root.tendermint.abci.types.RequestBeginBlock.decode(r, r.uint32()); - break; - case 9: - m.checkTx = $root.tendermint.abci.types.RequestCheckTx.decode(r, r.uint32()); - break; - case 19: - m.deliverTx = $root.tendermint.abci.types.RequestDeliverTx.decode(r, r.uint32()); - break; - case 11: - m.endBlock = $root.tendermint.abci.types.RequestEndBlock.decode(r, r.uint32()); - break; - case 12: - m.commit = $root.tendermint.abci.types.RequestCommit.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; + MultiSignature.prototype.signatures = $util.emptyArray; + MultiSignature.create = function create(properties) { + return new MultiSignature(properties); + }; + 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 m; - }; - return Request; - })(); - types.RequestEcho = (function () { - function RequestEcho(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]]; - } - RequestEcho.prototype.message = ""; - RequestEcho.create = function create(properties) { - return new RequestEcho(properties); - }; - RequestEcho.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; - }; - RequestEcho.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.tendermint.abci.types.RequestEcho(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.message = r.string(); - break; - default: - r.skipType(t & 7); - break; + return w; + }; + 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.crypto.multisig.v1beta1.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; + })(); + v1beta1.CompactBitArray = (function () { + 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 RequestEcho; - })(); - types.RequestFlush = (function () { - function RequestFlush(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]]; - } - RequestFlush.create = function create(properties) { - return new RequestFlush(properties); - }; - RequestFlush.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - RequestFlush.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.tendermint.abci.types.RequestFlush(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; + CompactBitArray.prototype.extraBitsStored = 0; + CompactBitArray.prototype.elems = $util.newBuffer([]); + CompactBitArray.create = function create(properties) { + return new CompactBitArray(properties); + }; + 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; + }; + 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.crypto.multisig.v1beta1.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 RequestFlush; + return m; + }; + return CompactBitArray; + })(); + return v1beta1; })(); - types.RequestInfo = (function () { - function RequestInfo(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]]; - } - RequestInfo.prototype.version = ""; - RequestInfo.prototype.blockVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - RequestInfo.prototype.p2pVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - RequestInfo.create = function create(properties) { - return new RequestInfo(properties); - }; - RequestInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(10).string(m.version); - if (m.blockVersion != null && Object.hasOwnProperty.call(m, "blockVersion")) - w.uint32(16).uint64(m.blockVersion); - if (m.p2pVersion != null && Object.hasOwnProperty.call(m, "p2pVersion")) - w.uint32(24).uint64(m.p2pVersion); - return w; - }; - RequestInfo.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.tendermint.abci.types.RequestInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.version = r.string(); - break; - case 2: - m.blockVersion = r.uint64(); - break; - case 3: - m.p2pVersion = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestInfo; - })(); - types.RequestSetOption = (function () { - function RequestSetOption(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]]; - } - RequestSetOption.prototype.key = ""; - RequestSetOption.prototype.value = ""; - RequestSetOption.create = function create(properties) { - return new RequestSetOption(properties); - }; - RequestSetOption.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).string(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).string(m.value); - return w; - }; - RequestSetOption.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.tendermint.abci.types.RequestSetOption(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.string(); - break; - case 2: - m.value = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestSetOption; - })(); - types.RequestInitChain = (function () { - function RequestInitChain(p) { - this.validators = []; - 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]]; - } - RequestInitChain.prototype.time = null; - RequestInitChain.prototype.chainId = ""; - RequestInitChain.prototype.consensusParams = null; - RequestInitChain.prototype.validators = $util.emptyArray; - RequestInitChain.prototype.appStateBytes = $util.newBuffer([]); - RequestInitChain.create = function create(properties) { - return new RequestInitChain(properties); - }; - RequestInitChain.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.time != null && Object.hasOwnProperty.call(m, "time")) - $root.google.protobuf.Timestamp.encode(m.time, w.uint32(10).fork()).ldelim(); - if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(18).string(m.chainId); - if (m.consensusParams != null && Object.hasOwnProperty.call(m, "consensusParams")) - $root.tendermint.abci.types.ConsensusParams.encode( - m.consensusParams, - w.uint32(26).fork(), - ).ldelim(); - if (m.validators != null && m.validators.length) { - for (var i = 0; i < m.validators.length; ++i) - $root.tendermint.abci.types.ValidatorUpdate.encode( - m.validators[i], - w.uint32(34).fork(), - ).ldelim(); - } - if (m.appStateBytes != null && Object.hasOwnProperty.call(m, "appStateBytes")) - w.uint32(42).bytes(m.appStateBytes); - return w; - }; - RequestInitChain.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.tendermint.abci.types.RequestInitChain(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 2: - m.chainId = r.string(); - break; - case 3: - m.consensusParams = $root.tendermint.abci.types.ConsensusParams.decode(r, r.uint32()); - break; - case 4: - if (!(m.validators && m.validators.length)) m.validators = []; - m.validators.push($root.tendermint.abci.types.ValidatorUpdate.decode(r, r.uint32())); - break; - case 5: - m.appStateBytes = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestInitChain; - })(); - types.RequestQuery = (function () { - function RequestQuery(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]]; - } - RequestQuery.prototype.data = $util.newBuffer([]); - RequestQuery.prototype.path = ""; - RequestQuery.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - RequestQuery.prototype.prove = false; - RequestQuery.create = function create(properties) { - return new RequestQuery(properties); - }; - RequestQuery.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.path != null && Object.hasOwnProperty.call(m, "path")) w.uint32(18).string(m.path); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - if (m.prove != null && Object.hasOwnProperty.call(m, "prove")) w.uint32(32).bool(m.prove); - return w; - }; - RequestQuery.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.tendermint.abci.types.RequestQuery(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.bytes(); - break; - case 2: - m.path = r.string(); - break; - case 3: - m.height = r.int64(); - break; - case 4: - m.prove = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestQuery; - })(); - types.RequestBeginBlock = (function () { - function RequestBeginBlock(p) { - this.byzantineValidators = []; - 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]]; - } - RequestBeginBlock.prototype.hash = $util.newBuffer([]); - RequestBeginBlock.prototype.header = null; - RequestBeginBlock.prototype.lastCommitInfo = null; - RequestBeginBlock.prototype.byzantineValidators = $util.emptyArray; - RequestBeginBlock.create = function create(properties) { - return new RequestBeginBlock(properties); - }; - RequestBeginBlock.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); - if (m.header != null && Object.hasOwnProperty.call(m, "header")) - $root.tendermint.abci.types.Header.encode(m.header, w.uint32(18).fork()).ldelim(); - if (m.lastCommitInfo != null && Object.hasOwnProperty.call(m, "lastCommitInfo")) - $root.tendermint.abci.types.LastCommitInfo.encode(m.lastCommitInfo, w.uint32(26).fork()).ldelim(); - if (m.byzantineValidators != null && m.byzantineValidators.length) { - for (var i = 0; i < m.byzantineValidators.length; ++i) - $root.tendermint.abci.types.Evidence.encode( - m.byzantineValidators[i], - w.uint32(34).fork(), - ).ldelim(); - } - return w; - }; - RequestBeginBlock.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.tendermint.abci.types.RequestBeginBlock(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.hash = r.bytes(); - break; - case 2: - m.header = $root.tendermint.abci.types.Header.decode(r, r.uint32()); - break; - case 3: - m.lastCommitInfo = $root.tendermint.abci.types.LastCommitInfo.decode(r, r.uint32()); - break; - case 4: - if (!(m.byzantineValidators && m.byzantineValidators.length)) m.byzantineValidators = []; - m.byzantineValidators.push($root.tendermint.abci.types.Evidence.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestBeginBlock; - })(); - types.CheckTxType = (function () { - const valuesById = {}, - values = Object.create(valuesById); - values[(valuesById[0] = "New")] = 0; - values[(valuesById[1] = "Recheck")] = 1; - return values; - })(); - types.RequestCheckTx = (function () { - function RequestCheckTx(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]]; - } - RequestCheckTx.prototype.tx = $util.newBuffer([]); - RequestCheckTx.prototype.type = 0; - RequestCheckTx.create = function create(properties) { - return new RequestCheckTx(properties); - }; - RequestCheckTx.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) w.uint32(10).bytes(m.tx); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(16).int32(m.type); - return w; - }; - RequestCheckTx.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.tendermint.abci.types.RequestCheckTx(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.tx = r.bytes(); - break; - case 2: - m.type = r.int32(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestCheckTx; - })(); - types.RequestDeliverTx = (function () { - function RequestDeliverTx(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]]; - } - RequestDeliverTx.prototype.tx = $util.newBuffer([]); - RequestDeliverTx.create = function create(properties) { - return new RequestDeliverTx(properties); - }; - RequestDeliverTx.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) w.uint32(10).bytes(m.tx); - return w; - }; - RequestDeliverTx.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.tendermint.abci.types.RequestDeliverTx(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.tx = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestDeliverTx; - })(); - types.RequestEndBlock = (function () { - function RequestEndBlock(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]]; - } - RequestEndBlock.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - RequestEndBlock.create = function create(properties) { - return new RequestEndBlock(properties); - }; - RequestEndBlock.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); - return w; - }; - RequestEndBlock.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.tendermint.abci.types.RequestEndBlock(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.height = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestEndBlock; - })(); - types.RequestCommit = (function () { - function RequestCommit(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]]; - } - RequestCommit.create = function create(properties) { - return new RequestCommit(properties); - }; - RequestCommit.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - RequestCommit.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.tendermint.abci.types.RequestCommit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return RequestCommit; - })(); - types.Response = (function () { - function Response(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]]; - } - Response.prototype.exception = null; - Response.prototype.echo = null; - Response.prototype.flush = null; - Response.prototype.info = null; - Response.prototype.setOption = null; - Response.prototype.initChain = null; - Response.prototype.query = null; - Response.prototype.beginBlock = null; - Response.prototype.checkTx = null; - Response.prototype.deliverTx = null; - Response.prototype.endBlock = null; - Response.prototype.commit = null; - let $oneOfFields; - Object.defineProperty(Response.prototype, "value", { - get: $util.oneOfGetter( - ($oneOfFields = [ - "exception", - "echo", - "flush", - "info", - "setOption", - "initChain", - "query", - "beginBlock", - "checkTx", - "deliverTx", - "endBlock", - "commit", - ]), - ), - set: $util.oneOfSetter($oneOfFields), - }); - Response.create = function create(properties) { - return new Response(properties); - }; - Response.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.exception != null && Object.hasOwnProperty.call(m, "exception")) - $root.tendermint.abci.types.ResponseException.encode(m.exception, w.uint32(10).fork()).ldelim(); - if (m.echo != null && Object.hasOwnProperty.call(m, "echo")) - $root.tendermint.abci.types.ResponseEcho.encode(m.echo, w.uint32(18).fork()).ldelim(); - if (m.flush != null && Object.hasOwnProperty.call(m, "flush")) - $root.tendermint.abci.types.ResponseFlush.encode(m.flush, w.uint32(26).fork()).ldelim(); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) - $root.tendermint.abci.types.ResponseInfo.encode(m.info, w.uint32(34).fork()).ldelim(); - if (m.setOption != null && Object.hasOwnProperty.call(m, "setOption")) - $root.tendermint.abci.types.ResponseSetOption.encode(m.setOption, w.uint32(42).fork()).ldelim(); - if (m.initChain != null && Object.hasOwnProperty.call(m, "initChain")) - $root.tendermint.abci.types.ResponseInitChain.encode(m.initChain, w.uint32(50).fork()).ldelim(); - if (m.query != null && Object.hasOwnProperty.call(m, "query")) - $root.tendermint.abci.types.ResponseQuery.encode(m.query, w.uint32(58).fork()).ldelim(); - if (m.beginBlock != null && Object.hasOwnProperty.call(m, "beginBlock")) - $root.tendermint.abci.types.ResponseBeginBlock.encode(m.beginBlock, w.uint32(66).fork()).ldelim(); - if (m.checkTx != null && Object.hasOwnProperty.call(m, "checkTx")) - $root.tendermint.abci.types.ResponseCheckTx.encode(m.checkTx, w.uint32(74).fork()).ldelim(); - if (m.deliverTx != null && Object.hasOwnProperty.call(m, "deliverTx")) - $root.tendermint.abci.types.ResponseDeliverTx.encode(m.deliverTx, w.uint32(82).fork()).ldelim(); - if (m.endBlock != null && Object.hasOwnProperty.call(m, "endBlock")) - $root.tendermint.abci.types.ResponseEndBlock.encode(m.endBlock, w.uint32(90).fork()).ldelim(); - if (m.commit != null && Object.hasOwnProperty.call(m, "commit")) - $root.tendermint.abci.types.ResponseCommit.encode(m.commit, w.uint32(98).fork()).ldelim(); - return w; - }; - Response.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.tendermint.abci.types.Response(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.exception = $root.tendermint.abci.types.ResponseException.decode(r, r.uint32()); - break; - case 2: - m.echo = $root.tendermint.abci.types.ResponseEcho.decode(r, r.uint32()); - break; - case 3: - m.flush = $root.tendermint.abci.types.ResponseFlush.decode(r, r.uint32()); - break; - case 4: - m.info = $root.tendermint.abci.types.ResponseInfo.decode(r, r.uint32()); - break; - case 5: - m.setOption = $root.tendermint.abci.types.ResponseSetOption.decode(r, r.uint32()); - break; - case 6: - m.initChain = $root.tendermint.abci.types.ResponseInitChain.decode(r, r.uint32()); - break; - case 7: - m.query = $root.tendermint.abci.types.ResponseQuery.decode(r, r.uint32()); - break; - case 8: - m.beginBlock = $root.tendermint.abci.types.ResponseBeginBlock.decode(r, r.uint32()); - break; - case 9: - m.checkTx = $root.tendermint.abci.types.ResponseCheckTx.decode(r, r.uint32()); - break; - case 10: - m.deliverTx = $root.tendermint.abci.types.ResponseDeliverTx.decode(r, r.uint32()); - break; - case 11: - m.endBlock = $root.tendermint.abci.types.ResponseEndBlock.decode(r, r.uint32()); - break; - case 12: - m.commit = $root.tendermint.abci.types.ResponseCommit.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Response; - })(); - types.ResponseException = (function () { - function ResponseException(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]]; - } - ResponseException.prototype.error = ""; - ResponseException.create = function create(properties) { - return new ResponseException(properties); - }; - ResponseException.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.error != null && Object.hasOwnProperty.call(m, "error")) w.uint32(10).string(m.error); - return w; - }; - ResponseException.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.tendermint.abci.types.ResponseException(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.error = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseException; - })(); - types.ResponseEcho = (function () { - function ResponseEcho(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]]; - } - ResponseEcho.prototype.message = ""; - ResponseEcho.create = function create(properties) { - return new ResponseEcho(properties); - }; - ResponseEcho.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; - }; - ResponseEcho.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.tendermint.abci.types.ResponseEcho(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.message = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseEcho; - })(); - types.ResponseFlush = (function () { - function ResponseFlush(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]]; - } - ResponseFlush.create = function create(properties) { - return new ResponseFlush(properties); - }; - ResponseFlush.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - return w; - }; - ResponseFlush.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.tendermint.abci.types.ResponseFlush(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseFlush; - })(); - types.ResponseInfo = (function () { - function ResponseInfo(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]]; - } - ResponseInfo.prototype.data = ""; - ResponseInfo.prototype.version = ""; - ResponseInfo.prototype.appVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - ResponseInfo.prototype.lastBlockHeight = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseInfo.prototype.lastBlockAppHash = $util.newBuffer([]); - ResponseInfo.create = function create(properties) { - return new ResponseInfo(properties); - }; - ResponseInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).string(m.data); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(18).string(m.version); - if (m.appVersion != null && Object.hasOwnProperty.call(m, "appVersion")) - w.uint32(24).uint64(m.appVersion); - if (m.lastBlockHeight != null && Object.hasOwnProperty.call(m, "lastBlockHeight")) - w.uint32(32).int64(m.lastBlockHeight); - if (m.lastBlockAppHash != null && Object.hasOwnProperty.call(m, "lastBlockAppHash")) - w.uint32(42).bytes(m.lastBlockAppHash); - return w; - }; - ResponseInfo.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.tendermint.abci.types.ResponseInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.data = r.string(); - break; - case 2: - m.version = r.string(); - break; - case 3: - m.appVersion = r.uint64(); - break; - case 4: - m.lastBlockHeight = r.int64(); - break; - case 5: - m.lastBlockAppHash = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseInfo; - })(); - types.ResponseSetOption = (function () { - function ResponseSetOption(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]]; - } - ResponseSetOption.prototype.code = 0; - ResponseSetOption.prototype.log = ""; - ResponseSetOption.prototype.info = ""; - ResponseSetOption.create = function create(properties) { - return new ResponseSetOption(properties); - }; - ResponseSetOption.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); - if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); - return w; - }; - ResponseSetOption.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.tendermint.abci.types.ResponseSetOption(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.code = r.uint32(); - break; - case 3: - m.log = r.string(); - break; - case 4: - m.info = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseSetOption; - })(); - types.ResponseInitChain = (function () { - function ResponseInitChain(p) { - this.validators = []; - 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]]; - } - ResponseInitChain.prototype.consensusParams = null; - ResponseInitChain.prototype.validators = $util.emptyArray; - ResponseInitChain.create = function create(properties) { - return new ResponseInitChain(properties); - }; - ResponseInitChain.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.consensusParams != null && Object.hasOwnProperty.call(m, "consensusParams")) - $root.tendermint.abci.types.ConsensusParams.encode( - m.consensusParams, - w.uint32(10).fork(), - ).ldelim(); - if (m.validators != null && m.validators.length) { - for (var i = 0; i < m.validators.length; ++i) - $root.tendermint.abci.types.ValidatorUpdate.encode( - m.validators[i], - w.uint32(18).fork(), - ).ldelim(); - } - return w; - }; - ResponseInitChain.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.tendermint.abci.types.ResponseInitChain(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.consensusParams = $root.tendermint.abci.types.ConsensusParams.decode(r, r.uint32()); - break; - case 2: - if (!(m.validators && m.validators.length)) m.validators = []; - m.validators.push($root.tendermint.abci.types.ValidatorUpdate.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseInitChain; - })(); - types.ResponseQuery = (function () { - function ResponseQuery(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]]; - } - ResponseQuery.prototype.code = 0; - ResponseQuery.prototype.log = ""; - ResponseQuery.prototype.info = ""; - ResponseQuery.prototype.index = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseQuery.prototype.key = $util.newBuffer([]); - ResponseQuery.prototype.value = $util.newBuffer([]); - ResponseQuery.prototype.proof = null; - ResponseQuery.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseQuery.prototype.codespace = ""; - ResponseQuery.create = function create(properties) { - return new ResponseQuery(properties); - }; - ResponseQuery.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); - if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); - if (m.index != null && Object.hasOwnProperty.call(m, "index")) w.uint32(40).int64(m.index); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(50).bytes(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(58).bytes(m.value); - if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) - $root.tendermint.crypto.merkle.Proof.encode(m.proof, w.uint32(66).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(72).int64(m.height); - if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) - w.uint32(82).string(m.codespace); - return w; - }; - ResponseQuery.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.tendermint.abci.types.ResponseQuery(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.code = r.uint32(); - break; - case 3: - m.log = r.string(); - break; - case 4: - m.info = r.string(); - break; - case 5: - m.index = r.int64(); - break; - case 6: - m.key = r.bytes(); - break; - case 7: - m.value = r.bytes(); - break; - case 8: - m.proof = $root.tendermint.crypto.merkle.Proof.decode(r, r.uint32()); - break; - case 9: - m.height = r.int64(); - break; - case 10: - m.codespace = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseQuery; - })(); - types.ResponseBeginBlock = (function () { - function ResponseBeginBlock(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]]; - } - ResponseBeginBlock.prototype.events = $util.emptyArray; - ResponseBeginBlock.create = function create(properties) { - return new ResponseBeginBlock(properties); - }; - ResponseBeginBlock.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - 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(10).fork()).ldelim(); - } - return w; - }; - ResponseBeginBlock.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.tendermint.abci.types.ResponseBeginBlock(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - 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 ResponseBeginBlock; - })(); - types.ResponseCheckTx = (function () { - function ResponseCheckTx(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]]; - } - ResponseCheckTx.prototype.code = 0; - ResponseCheckTx.prototype.data = $util.newBuffer([]); - ResponseCheckTx.prototype.log = ""; - ResponseCheckTx.prototype.info = ""; - ResponseCheckTx.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseCheckTx.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseCheckTx.prototype.events = $util.emptyArray; - ResponseCheckTx.prototype.codespace = ""; - ResponseCheckTx.create = function create(properties) { - return new ResponseCheckTx(properties); - }; - ResponseCheckTx.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); - if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); - if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) - w.uint32(40).int64(m.gasWanted); - if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(48).int64(m.gasUsed); - 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(58).fork()).ldelim(); - } - if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) - w.uint32(66).string(m.codespace); - return w; - }; - ResponseCheckTx.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.tendermint.abci.types.ResponseCheckTx(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.code = r.uint32(); - break; - case 2: - m.data = r.bytes(); - break; - case 3: - m.log = r.string(); - break; - case 4: - m.info = r.string(); - break; - case 5: - m.gasWanted = r.int64(); - break; - case 6: - m.gasUsed = r.int64(); - break; - case 7: - if (!(m.events && m.events.length)) m.events = []; - m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); - break; - case 8: - m.codespace = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseCheckTx; - })(); - types.ResponseDeliverTx = (function () { - function ResponseDeliverTx(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]]; - } - ResponseDeliverTx.prototype.code = 0; - ResponseDeliverTx.prototype.data = $util.newBuffer([]); - ResponseDeliverTx.prototype.log = ""; - ResponseDeliverTx.prototype.info = ""; - ResponseDeliverTx.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseDeliverTx.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ResponseDeliverTx.prototype.events = $util.emptyArray; - ResponseDeliverTx.prototype.codespace = ""; - ResponseDeliverTx.create = function create(properties) { - return new ResponseDeliverTx(properties); - }; - ResponseDeliverTx.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); - if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); - if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); - if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) - w.uint32(40).int64(m.gasWanted); - if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(48).int64(m.gasUsed); - 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(58).fork()).ldelim(); - } - if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) - w.uint32(66).string(m.codespace); - return w; - }; - ResponseDeliverTx.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.tendermint.abci.types.ResponseDeliverTx(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.code = r.uint32(); - break; - case 2: - m.data = r.bytes(); - break; - case 3: - m.log = r.string(); - break; - case 4: - m.info = r.string(); - break; - case 5: - m.gasWanted = r.int64(); - break; - case 6: - m.gasUsed = r.int64(); - break; - case 7: - if (!(m.events && m.events.length)) m.events = []; - m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); - break; - case 8: - m.codespace = r.string(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseDeliverTx; - })(); - types.ResponseEndBlock = (function () { - function ResponseEndBlock(p) { - this.validatorUpdates = []; - 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]]; - } - ResponseEndBlock.prototype.validatorUpdates = $util.emptyArray; - ResponseEndBlock.prototype.consensusParamUpdates = null; - ResponseEndBlock.prototype.events = $util.emptyArray; - ResponseEndBlock.create = function create(properties) { - return new ResponseEndBlock(properties); - }; - ResponseEndBlock.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.validatorUpdates != null && m.validatorUpdates.length) { - for (var i = 0; i < m.validatorUpdates.length; ++i) - $root.tendermint.abci.types.ValidatorUpdate.encode( - m.validatorUpdates[i], - w.uint32(10).fork(), - ).ldelim(); - } - if (m.consensusParamUpdates != null && Object.hasOwnProperty.call(m, "consensusParamUpdates")) - $root.tendermint.abci.types.ConsensusParams.encode( - m.consensusParamUpdates, - w.uint32(18).fork(), - ).ldelim(); - 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; - }; - ResponseEndBlock.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.tendermint.abci.types.ResponseEndBlock(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.validatorUpdates && m.validatorUpdates.length)) m.validatorUpdates = []; - m.validatorUpdates.push($root.tendermint.abci.types.ValidatorUpdate.decode(r, r.uint32())); - break; - case 2: - m.consensusParamUpdates = $root.tendermint.abci.types.ConsensusParams.decode(r, r.uint32()); - 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 ResponseEndBlock; - })(); - types.ResponseCommit = (function () { - function ResponseCommit(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]]; - } - ResponseCommit.prototype.data = $util.newBuffer([]); - ResponseCommit.create = function create(properties) { - return new ResponseCommit(properties); - }; - ResponseCommit.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); - return w; - }; - ResponseCommit.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.tendermint.abci.types.ResponseCommit(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 2: - m.data = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ResponseCommit; - })(); - types.ConsensusParams = (function () { - function ConsensusParams(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]]; - } - ConsensusParams.prototype.block = null; - ConsensusParams.prototype.evidence = null; - ConsensusParams.prototype.validator = null; - ConsensusParams.create = function create(properties) { - return new ConsensusParams(properties); - }; - ConsensusParams.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.block != null && Object.hasOwnProperty.call(m, "block")) - $root.tendermint.abci.types.BlockParams.encode(m.block, w.uint32(10).fork()).ldelim(); - if (m.evidence != null && Object.hasOwnProperty.call(m, "evidence")) - $root.tendermint.abci.types.EvidenceParams.encode(m.evidence, w.uint32(18).fork()).ldelim(); - if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) - $root.tendermint.abci.types.ValidatorParams.encode(m.validator, w.uint32(26).fork()).ldelim(); - return w; - }; - ConsensusParams.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.tendermint.abci.types.ConsensusParams(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.block = $root.tendermint.abci.types.BlockParams.decode(r, r.uint32()); - break; - case 2: - m.evidence = $root.tendermint.abci.types.EvidenceParams.decode(r, r.uint32()); - break; - case 3: - m.validator = $root.tendermint.abci.types.ValidatorParams.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ConsensusParams; - })(); - types.BlockParams = (function () { - function BlockParams(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]]; - } - BlockParams.prototype.maxBytes = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - BlockParams.prototype.maxGas = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - BlockParams.create = function create(properties) { - return new BlockParams(properties); - }; - BlockParams.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.maxBytes != null && Object.hasOwnProperty.call(m, "maxBytes")) w.uint32(8).int64(m.maxBytes); - if (m.maxGas != null && Object.hasOwnProperty.call(m, "maxGas")) w.uint32(16).int64(m.maxGas); - return w; - }; - BlockParams.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.tendermint.abci.types.BlockParams(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.maxBytes = r.int64(); - break; - case 2: - m.maxGas = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return BlockParams; - })(); - types.EvidenceParams = (function () { - function EvidenceParams(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]]; - } - EvidenceParams.prototype.maxAgeNumBlocks = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - EvidenceParams.prototype.maxAgeDuration = null; - EvidenceParams.create = function create(properties) { - return new EvidenceParams(properties); - }; - EvidenceParams.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.maxAgeNumBlocks != null && Object.hasOwnProperty.call(m, "maxAgeNumBlocks")) - w.uint32(8).int64(m.maxAgeNumBlocks); - if (m.maxAgeDuration != null && Object.hasOwnProperty.call(m, "maxAgeDuration")) - $root.google.protobuf.Duration.encode(m.maxAgeDuration, w.uint32(18).fork()).ldelim(); - return w; - }; - EvidenceParams.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.tendermint.abci.types.EvidenceParams(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.maxAgeNumBlocks = r.int64(); - break; - case 2: - m.maxAgeDuration = $root.google.protobuf.Duration.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return EvidenceParams; - })(); - types.ValidatorParams = (function () { - function ValidatorParams(p) { - this.pubKeyTypes = []; - 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]]; - } - ValidatorParams.prototype.pubKeyTypes = $util.emptyArray; - ValidatorParams.create = function create(properties) { - return new ValidatorParams(properties); - }; - ValidatorParams.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.pubKeyTypes != null && m.pubKeyTypes.length) { - for (var i = 0; i < m.pubKeyTypes.length; ++i) w.uint32(10).string(m.pubKeyTypes[i]); - } - return w; - }; - ValidatorParams.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.tendermint.abci.types.ValidatorParams(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.pubKeyTypes && m.pubKeyTypes.length)) m.pubKeyTypes = []; - m.pubKeyTypes.push(r.string()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ValidatorParams; - })(); - types.LastCommitInfo = (function () { - function LastCommitInfo(p) { - this.votes = []; - 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]]; - } - LastCommitInfo.prototype.round = 0; - LastCommitInfo.prototype.votes = $util.emptyArray; - LastCommitInfo.create = function create(properties) { - return new LastCommitInfo(properties); - }; - LastCommitInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.round != null && Object.hasOwnProperty.call(m, "round")) w.uint32(8).int32(m.round); - if (m.votes != null && m.votes.length) { - for (var i = 0; i < m.votes.length; ++i) - $root.tendermint.abci.types.VoteInfo.encode(m.votes[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - LastCommitInfo.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.tendermint.abci.types.LastCommitInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.round = r.int32(); - break; - case 2: - if (!(m.votes && m.votes.length)) m.votes = []; - m.votes.push($root.tendermint.abci.types.VoteInfo.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return LastCommitInfo; - })(); - types.Event = (function () { - function Event(p) { - this.attributes = []; - 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]]; - } - Event.prototype.type = ""; - Event.prototype.attributes = $util.emptyArray; - Event.create = function create(properties) { - return new Event(properties); - }; - Event.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); - if (m.attributes != null && m.attributes.length) { - for (var i = 0; i < m.attributes.length; ++i) - $root.tendermint.libs.kv.Pair.encode(m.attributes[i], w.uint32(18).fork()).ldelim(); - } - return w; - }; - Event.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.tendermint.abci.types.Event(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.type = r.string(); - break; - case 2: - if (!(m.attributes && m.attributes.length)) m.attributes = []; - m.attributes.push($root.tendermint.libs.kv.Pair.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Event; - })(); - types.Header = (function () { - function Header(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]]; - } - Header.prototype.version = null; - Header.prototype.chainId = ""; - Header.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Header.prototype.time = null; - Header.prototype.lastBlockId = null; - Header.prototype.lastCommitHash = $util.newBuffer([]); - Header.prototype.dataHash = $util.newBuffer([]); - Header.prototype.validatorsHash = $util.newBuffer([]); - Header.prototype.nextValidatorsHash = $util.newBuffer([]); - Header.prototype.consensusHash = $util.newBuffer([]); - Header.prototype.appHash = $util.newBuffer([]); - Header.prototype.lastResultsHash = $util.newBuffer([]); - Header.prototype.evidenceHash = $util.newBuffer([]); - Header.prototype.proposerAddress = $util.newBuffer([]); - Header.create = function create(properties) { - return new Header(properties); - }; - Header.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.version != null && Object.hasOwnProperty.call(m, "version")) - $root.tendermint.abci.types.Version.encode(m.version, w.uint32(10).fork()).ldelim(); - if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(18).string(m.chainId); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - if (m.time != null && Object.hasOwnProperty.call(m, "time")) - $root.google.protobuf.Timestamp.encode(m.time, w.uint32(34).fork()).ldelim(); - if (m.lastBlockId != null && Object.hasOwnProperty.call(m, "lastBlockId")) - $root.tendermint.abci.types.BlockID.encode(m.lastBlockId, w.uint32(42).fork()).ldelim(); - if (m.lastCommitHash != null && Object.hasOwnProperty.call(m, "lastCommitHash")) - w.uint32(50).bytes(m.lastCommitHash); - if (m.dataHash != null && Object.hasOwnProperty.call(m, "dataHash")) w.uint32(58).bytes(m.dataHash); - if (m.validatorsHash != null && Object.hasOwnProperty.call(m, "validatorsHash")) - w.uint32(66).bytes(m.validatorsHash); - if (m.nextValidatorsHash != null && Object.hasOwnProperty.call(m, "nextValidatorsHash")) - w.uint32(74).bytes(m.nextValidatorsHash); - if (m.consensusHash != null && Object.hasOwnProperty.call(m, "consensusHash")) - w.uint32(82).bytes(m.consensusHash); - if (m.appHash != null && Object.hasOwnProperty.call(m, "appHash")) w.uint32(90).bytes(m.appHash); - if (m.lastResultsHash != null && Object.hasOwnProperty.call(m, "lastResultsHash")) - w.uint32(98).bytes(m.lastResultsHash); - if (m.evidenceHash != null && Object.hasOwnProperty.call(m, "evidenceHash")) - w.uint32(106).bytes(m.evidenceHash); - if (m.proposerAddress != null && Object.hasOwnProperty.call(m, "proposerAddress")) - w.uint32(114).bytes(m.proposerAddress); - return w; - }; - Header.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.tendermint.abci.types.Header(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.version = $root.tendermint.abci.types.Version.decode(r, r.uint32()); - break; - case 2: - m.chainId = r.string(); - break; - case 3: - m.height = r.int64(); - break; - case 4: - m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 5: - m.lastBlockId = $root.tendermint.abci.types.BlockID.decode(r, r.uint32()); - break; - case 6: - m.lastCommitHash = r.bytes(); - break; - case 7: - m.dataHash = r.bytes(); - break; - case 8: - m.validatorsHash = r.bytes(); - break; - case 9: - m.nextValidatorsHash = r.bytes(); - break; - case 10: - m.consensusHash = r.bytes(); - break; - case 11: - m.appHash = r.bytes(); - break; - case 12: - m.lastResultsHash = r.bytes(); - break; - case 13: - m.evidenceHash = r.bytes(); - break; - case 14: - m.proposerAddress = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Header; - })(); - types.Version = (function () { - function Version(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]]; - } - Version.prototype.Block = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Version.prototype.App = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; - Version.create = function create(properties) { - return new Version(properties); - }; - Version.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.Block != null && Object.hasOwnProperty.call(m, "Block")) w.uint32(8).uint64(m.Block); - if (m.App != null && Object.hasOwnProperty.call(m, "App")) w.uint32(16).uint64(m.App); - return w; - }; - Version.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.tendermint.abci.types.Version(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.Block = r.uint64(); - break; - case 2: - m.App = r.uint64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Version; - })(); - types.BlockID = (function () { - function BlockID(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]]; - } - BlockID.prototype.hash = $util.newBuffer([]); - BlockID.prototype.partsHeader = null; - BlockID.create = function create(properties) { - return new BlockID(properties); - }; - BlockID.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); - if (m.partsHeader != null && Object.hasOwnProperty.call(m, "partsHeader")) - $root.tendermint.abci.types.PartSetHeader.encode(m.partsHeader, w.uint32(18).fork()).ldelim(); - return w; - }; - BlockID.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.tendermint.abci.types.BlockID(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.hash = r.bytes(); - break; - case 2: - m.partsHeader = $root.tendermint.abci.types.PartSetHeader.decode(r, r.uint32()); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return BlockID; - })(); - types.PartSetHeader = (function () { - function PartSetHeader(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]]; - } - PartSetHeader.prototype.total = 0; - PartSetHeader.prototype.hash = $util.newBuffer([]); - PartSetHeader.create = function create(properties) { - return new PartSetHeader(properties); - }; - PartSetHeader.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(8).int32(m.total); - if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(18).bytes(m.hash); - return w; - }; - PartSetHeader.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.tendermint.abci.types.PartSetHeader(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.total = r.int32(); - break; - case 2: - m.hash = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return PartSetHeader; - })(); - types.Validator = (function () { - 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.prototype.address = $util.newBuffer([]); - Validator.prototype.power = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Validator.create = function create(properties) { - return new Validator(properties); - }; - Validator.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.power != null && Object.hasOwnProperty.call(m, "power")) w.uint32(24).int64(m.power); - return w; - }; - 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.tendermint.abci.types.Validator(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.address = r.bytes(); - break; - case 3: - m.power = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Validator; - })(); - types.ValidatorUpdate = (function () { - function ValidatorUpdate(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]]; - } - ValidatorUpdate.prototype.pubKey = null; - ValidatorUpdate.prototype.power = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - ValidatorUpdate.create = function create(properties) { - return new ValidatorUpdate(properties); - }; - ValidatorUpdate.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.pubKey != null && Object.hasOwnProperty.call(m, "pubKey")) - $root.tendermint.abci.types.PubKey.encode(m.pubKey, w.uint32(10).fork()).ldelim(); - if (m.power != null && Object.hasOwnProperty.call(m, "power")) w.uint32(16).int64(m.power); - return w; - }; - ValidatorUpdate.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.tendermint.abci.types.ValidatorUpdate(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.pubKey = $root.tendermint.abci.types.PubKey.decode(r, r.uint32()); - break; - case 2: - m.power = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return ValidatorUpdate; - })(); - types.VoteInfo = (function () { - function VoteInfo(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]]; - } - VoteInfo.prototype.validator = null; - VoteInfo.prototype.signedLastBlock = false; - VoteInfo.create = function create(properties) { - return new VoteInfo(properties); - }; - VoteInfo.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) - $root.tendermint.abci.types.Validator.encode(m.validator, w.uint32(10).fork()).ldelim(); - if (m.signedLastBlock != null && Object.hasOwnProperty.call(m, "signedLastBlock")) - w.uint32(16).bool(m.signedLastBlock); - return w; - }; - VoteInfo.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.tendermint.abci.types.VoteInfo(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.validator = $root.tendermint.abci.types.Validator.decode(r, r.uint32()); - break; - case 2: - m.signedLastBlock = r.bool(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return VoteInfo; - })(); - types.PubKey = (function () { + return multisig; + })(); + crypto.secp256k1 = (function () { + const secp256k1 = {}; + secp256k1.PubKey = (function () { function PubKey(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]]; } - PubKey.prototype.type = ""; - PubKey.prototype.data = $util.newBuffer([]); + PubKey.prototype.key = $util.newBuffer([]); PubKey.create = function create(properties) { return new PubKey(properties); }; PubKey.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); return w; }; PubKey.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.tendermint.abci.types.PubKey(); + m = new $root.cosmos.crypto.secp256k1.PubKey(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { case 1: - m.type = r.string(); - break; - case 2: - m.data = r.bytes(); + m.key = r.bytes(); break; default: r.skipType(t & 7); @@ -7571,261 +1163,31 @@ exports.tendermint = $root.tendermint = (() => { }; return PubKey; })(); - types.Evidence = (function () { - function Evidence(p) { + secp256k1.PrivKey = (function () { + function PrivKey(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]]; } - Evidence.prototype.type = ""; - Evidence.prototype.validator = null; - Evidence.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Evidence.prototype.time = null; - Evidence.prototype.totalVotingPower = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Evidence.create = function create(properties) { - return new Evidence(properties); + PrivKey.prototype.key = $util.newBuffer([]); + PrivKey.create = function create(properties) { + return new PrivKey(properties); }; - Evidence.encode = function encode(m, w) { + PrivKey.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); - if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) - $root.tendermint.abci.types.Validator.encode(m.validator, w.uint32(18).fork()).ldelim(); - if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); - if (m.time != null && Object.hasOwnProperty.call(m, "time")) - $root.google.protobuf.Timestamp.encode(m.time, w.uint32(34).fork()).ldelim(); - if (m.totalVotingPower != null && Object.hasOwnProperty.call(m, "totalVotingPower")) - w.uint32(40).int64(m.totalVotingPower); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); return w; }; - Evidence.decode = function decode(r, l) { + PrivKey.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.tendermint.abci.types.Evidence(); + m = new $root.cosmos.crypto.secp256k1.PrivKey(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { case 1: - m.type = r.string(); - break; - case 2: - m.validator = $root.tendermint.abci.types.Validator.decode(r, r.uint32()); - break; - case 3: - m.height = r.int64(); - break; - case 4: - m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); - break; - case 5: - m.totalVotingPower = r.int64(); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Evidence; - })(); - types.ABCIApplication = (function () { - function ABCIApplication(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - (ABCIApplication.prototype = Object.create( - $protobuf.rpc.Service.prototype, - )).constructor = ABCIApplication; - ABCIApplication.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - Object.defineProperty( - (ABCIApplication.prototype.echo = function echo(request, callback) { - return this.rpcCall( - echo, - $root.tendermint.abci.types.RequestEcho, - $root.tendermint.abci.types.ResponseEcho, - request, - callback, - ); - }), - "name", - { value: "Echo" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.flush = function flush(request, callback) { - return this.rpcCall( - flush, - $root.tendermint.abci.types.RequestFlush, - $root.tendermint.abci.types.ResponseFlush, - request, - callback, - ); - }), - "name", - { value: "Flush" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.info = function info(request, callback) { - return this.rpcCall( - info, - $root.tendermint.abci.types.RequestInfo, - $root.tendermint.abci.types.ResponseInfo, - request, - callback, - ); - }), - "name", - { value: "Info" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.setOption = function setOption(request, callback) { - return this.rpcCall( - setOption, - $root.tendermint.abci.types.RequestSetOption, - $root.tendermint.abci.types.ResponseSetOption, - request, - callback, - ); - }), - "name", - { value: "SetOption" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.deliverTx = function deliverTx(request, callback) { - return this.rpcCall( - deliverTx, - $root.tendermint.abci.types.RequestDeliverTx, - $root.tendermint.abci.types.ResponseDeliverTx, - request, - callback, - ); - }), - "name", - { value: "DeliverTx" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.checkTx = function checkTx(request, callback) { - return this.rpcCall( - checkTx, - $root.tendermint.abci.types.RequestCheckTx, - $root.tendermint.abci.types.ResponseCheckTx, - request, - callback, - ); - }), - "name", - { value: "CheckTx" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.query = function query(request, callback) { - return this.rpcCall( - query, - $root.tendermint.abci.types.RequestQuery, - $root.tendermint.abci.types.ResponseQuery, - request, - callback, - ); - }), - "name", - { value: "Query" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.commit = function commit(request, callback) { - return this.rpcCall( - commit, - $root.tendermint.abci.types.RequestCommit, - $root.tendermint.abci.types.ResponseCommit, - request, - callback, - ); - }), - "name", - { value: "Commit" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.initChain = function initChain(request, callback) { - return this.rpcCall( - initChain, - $root.tendermint.abci.types.RequestInitChain, - $root.tendermint.abci.types.ResponseInitChain, - request, - callback, - ); - }), - "name", - { value: "InitChain" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.beginBlock = function beginBlock(request, callback) { - return this.rpcCall( - beginBlock, - $root.tendermint.abci.types.RequestBeginBlock, - $root.tendermint.abci.types.ResponseBeginBlock, - request, - callback, - ); - }), - "name", - { value: "BeginBlock" }, - ); - Object.defineProperty( - (ABCIApplication.prototype.endBlock = function endBlock(request, callback) { - return this.rpcCall( - endBlock, - $root.tendermint.abci.types.RequestEndBlock, - $root.tendermint.abci.types.ResponseEndBlock, - request, - callback, - ); - }), - "name", - { value: "EndBlock" }, - ); - return ABCIApplication; - })(); - return types; - })(); - return abci; - })(); - tendermint.crypto = (function () { - const crypto = {}; - crypto.merkle = (function () { - const merkle = {}; - merkle.ProofOp = (function () { - function ProofOp(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]]; - } - ProofOp.prototype.type = ""; - ProofOp.prototype.key = $util.newBuffer([]); - ProofOp.prototype.data = $util.newBuffer([]); - ProofOp.create = function create(properties) { - return new ProofOp(properties); - }; - ProofOp.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(18).bytes(m.key); - if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(26).bytes(m.data); - return w; - }; - ProofOp.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.tendermint.crypto.merkle.ProofOp(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.type = r.string(); - break; - case 2: m.key = r.bytes(); break; - case 3: - m.data = r.bytes(); - break; default: r.skipType(t & 7); break; @@ -7833,138 +1195,784 @@ exports.tendermint = $root.tendermint = (() => { } return m; }; - return ProofOp; + return PrivKey; })(); - merkle.Proof = (function () { - function Proof(p) { - this.ops = []; - 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]]; - } - Proof.prototype.ops = $util.emptyArray; - Proof.create = function create(properties) { - return new Proof(properties); - }; - Proof.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.ops != null && m.ops.length) { - for (var i = 0; i < m.ops.length; ++i) - $root.tendermint.crypto.merkle.ProofOp.encode(m.ops[i], w.uint32(10).fork()).ldelim(); - } - return w; - }; - Proof.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.tendermint.crypto.merkle.Proof(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - if (!(m.ops && m.ops.length)) m.ops = []; - m.ops.push($root.tendermint.crypto.merkle.ProofOp.decode(r, r.uint32())); - break; - default: - r.skipType(t & 7); - break; - } - } - return m; - }; - return Proof; - })(); - return merkle; + return secp256k1; })(); return crypto; })(); - tendermint.libs = (function () { - const libs = {}; - libs.kv = (function () { - const kv = {}; - kv.Pair = (function () { - function Pair(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]]; - } - Pair.prototype.key = $util.newBuffer([]); - Pair.prototype.value = $util.newBuffer([]); - Pair.create = function create(properties) { - return new Pair(properties); - }; - Pair.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).bytes(m.value); - return w; - }; - Pair.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.tendermint.libs.kv.Pair(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.bytes(); - break; - case 2: - m.value = r.bytes(); - break; - default: - r.skipType(t & 7); - break; - } + cosmos.tx = (function () { + const tx = {}; + tx.signing = (function () { + const signing = {}; + signing.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.SignMode = (function () { + const 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; + })(); + v1beta1.SignatureDescriptors = (function () { + function SignatureDescriptors(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 Pair; - })(); - kv.KI64Pair = (function () { - function KI64Pair(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]]; - } - KI64Pair.prototype.key = $util.newBuffer([]); - KI64Pair.prototype.value = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - KI64Pair.create = function create(properties) { - return new KI64Pair(properties); - }; - KI64Pair.encode = function encode(m, w) { - if (!w) w = $Writer.create(); - if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); - if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(16).int64(m.value); - return w; - }; - KI64Pair.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.tendermint.libs.kv.KI64Pair(); - while (r.pos < c) { - var t = r.uint32(); - switch (t >>> 3) { - case 1: - m.key = r.bytes(); - break; - case 2: - m.value = r.int64(); - break; - default: - r.skipType(t & 7); - break; + SignatureDescriptors.prototype.signatures = $util.emptyArray; + SignatureDescriptors.create = function create(properties) { + return new SignatureDescriptors(properties); + }; + SignatureDescriptors.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) + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.encode( + m.signatures[i], + w.uint32(10).fork(), + ).ldelim(); } + return w; + }; + SignatureDescriptors.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.tx.signing.v1beta1.SignatureDescriptors(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push( + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.decode(r, r.uint32()), + ); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SignatureDescriptors; + })(); + v1beta1.SignatureDescriptor = (function () { + function SignatureDescriptor(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 KI64Pair; + SignatureDescriptor.prototype.publicKey = null; + SignatureDescriptor.prototype.data = null; + SignatureDescriptor.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SignatureDescriptor.create = function create(properties) { + return new SignatureDescriptor(properties); + }; + SignatureDescriptor.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.publicKey != null && Object.hasOwnProperty.call(m, "publicKey")) + $root.google.protobuf.Any.encode(m.publicKey, w.uint32(10).fork()).ldelim(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.encode( + m.data, + w.uint32(18).fork(), + ).ldelim(); + if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) + w.uint32(24).uint64(m.sequence); + return w; + }; + SignatureDescriptor.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.tx.signing.v1beta1.SignatureDescriptor(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.publicKey = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 2: + m.data = $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.decode(r, r.uint32()); + break; + case 3: + m.sequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + SignatureDescriptor.Data = (function () { + function Data(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]]; + } + Data.prototype.single = null; + Data.prototype.multi = null; + let $oneOfFields; + Object.defineProperty(Data.prototype, "sum", { + get: $util.oneOfGetter(($oneOfFields = ["single", "multi"])), + set: $util.oneOfSetter($oneOfFields), + }); + Data.create = function create(properties) { + return new Data(properties); + }; + Data.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.single != null && Object.hasOwnProperty.call(m, "single")) + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.encode( + m.single, + w.uint32(10).fork(), + ).ldelim(); + if (m.multi != null && Object.hasOwnProperty.call(m, "multi")) + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.encode( + m.multi, + w.uint32(18).fork(), + ).ldelim(); + return w; + }; + Data.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.tx.signing.v1beta1.SignatureDescriptor.Data(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.single = $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.decode( + r, + r.uint32(), + ); + break; + case 2: + m.multi = $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.decode( + r, + r.uint32(), + ); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + Data.Single = (function () { + function Single(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]]; + } + Single.prototype.mode = 0; + Single.prototype.signature = $util.newBuffer([]); + Single.create = function create(properties) { + return new Single(properties); + }; + Single.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.mode != null && Object.hasOwnProperty.call(m, "mode")) w.uint32(8).int32(m.mode); + if (m.signature != null && Object.hasOwnProperty.call(m, "signature")) + w.uint32(18).bytes(m.signature); + return w; + }; + Single.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.tx.signing.v1beta1.SignatureDescriptor.Data.Single(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.mode = r.int32(); + break; + case 2: + m.signature = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Single; + })(); + Data.Multi = (function () { + function Multi(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]]; + } + Multi.prototype.bitarray = null; + Multi.prototype.signatures = $util.emptyArray; + Multi.create = function create(properties) { + return new Multi(properties); + }; + Multi.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bitarray != null && Object.hasOwnProperty.call(m, "bitarray")) + $root.cosmos.crypto.multisig.v1beta1.CompactBitArray.encode( + m.bitarray, + w.uint32(10).fork(), + ).ldelim(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.encode( + m.signatures[i], + w.uint32(18).fork(), + ).ldelim(); + } + return w; + }; + Multi.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.tx.signing.v1beta1.SignatureDescriptor.Data.Multi(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bitarray = $root.cosmos.crypto.multisig.v1beta1.CompactBitArray.decode(r, r.uint32()); + break; + case 2: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push( + $root.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.decode(r, r.uint32()), + ); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Multi; + })(); + return Data; + })(); + return SignatureDescriptor; + })(); + return v1beta1; })(); - return kv; + return signing; })(); - return libs; + tx.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.Tx = (function () { + function Tx(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]]; + } + Tx.prototype.body = null; + Tx.prototype.authInfo = null; + Tx.prototype.signatures = $util.emptyArray; + Tx.create = function create(properties) { + return new Tx(properties); + }; + Tx.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.body != null && Object.hasOwnProperty.call(m, "body")) + $root.cosmos.tx.v1beta1.TxBody.encode(m.body, w.uint32(10).fork()).ldelim(); + if (m.authInfo != null && Object.hasOwnProperty.call(m, "authInfo")) + $root.cosmos.tx.v1beta1.AuthInfo.encode(m.authInfo, w.uint32(18).fork()).ldelim(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) w.uint32(26).bytes(m.signatures[i]); + } + return w; + }; + Tx.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.tx.v1beta1.Tx(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.body = $root.cosmos.tx.v1beta1.TxBody.decode(r, r.uint32()); + break; + case 2: + m.authInfo = $root.cosmos.tx.v1beta1.AuthInfo.decode(r, r.uint32()); + break; + case 3: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Tx; + })(); + v1beta1.TxRaw = (function () { + function TxRaw(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]]; + } + TxRaw.prototype.bodyBytes = $util.newBuffer([]); + TxRaw.prototype.authInfoBytes = $util.newBuffer([]); + TxRaw.prototype.signatures = $util.emptyArray; + TxRaw.create = function create(properties) { + return new TxRaw(properties); + }; + TxRaw.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bodyBytes != null && Object.hasOwnProperty.call(m, "bodyBytes")) + w.uint32(10).bytes(m.bodyBytes); + if (m.authInfoBytes != null && Object.hasOwnProperty.call(m, "authInfoBytes")) + w.uint32(18).bytes(m.authInfoBytes); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) w.uint32(26).bytes(m.signatures[i]); + } + return w; + }; + TxRaw.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.tx.v1beta1.TxRaw(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bodyBytes = r.bytes(); + break; + case 2: + m.authInfoBytes = r.bytes(); + break; + case 3: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxRaw; + })(); + v1beta1.SignDoc = (function () { + function SignDoc(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]]; + } + SignDoc.prototype.bodyBytes = $util.newBuffer([]); + SignDoc.prototype.authInfoBytes = $util.newBuffer([]); + SignDoc.prototype.chainId = ""; + SignDoc.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SignDoc.create = function create(properties) { + return new SignDoc(properties); + }; + SignDoc.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bodyBytes != null && Object.hasOwnProperty.call(m, "bodyBytes")) + w.uint32(10).bytes(m.bodyBytes); + if (m.authInfoBytes != null && Object.hasOwnProperty.call(m, "authInfoBytes")) + w.uint32(18).bytes(m.authInfoBytes); + if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(26).string(m.chainId); + if (m.accountNumber != null && Object.hasOwnProperty.call(m, "accountNumber")) + w.uint32(32).uint64(m.accountNumber); + return w; + }; + SignDoc.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.tx.v1beta1.SignDoc(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bodyBytes = r.bytes(); + break; + case 2: + m.authInfoBytes = r.bytes(); + break; + case 3: + m.chainId = r.string(); + break; + case 4: + m.accountNumber = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SignDoc; + })(); + v1beta1.TxBody = (function () { + function TxBody(p) { + this.messages = []; + this.extensionOptions = []; + this.nonCriticalExtensionOptions = []; + 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]]; + } + TxBody.prototype.messages = $util.emptyArray; + TxBody.prototype.memo = ""; + TxBody.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + TxBody.prototype.extensionOptions = $util.emptyArray; + TxBody.prototype.nonCriticalExtensionOptions = $util.emptyArray; + TxBody.create = function create(properties) { + return new TxBody(properties); + }; + TxBody.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.messages != null && m.messages.length) { + for (var i = 0; i < m.messages.length; ++i) + $root.google.protobuf.Any.encode(m.messages[i], w.uint32(10).fork()).ldelim(); + } + if (m.memo != null && Object.hasOwnProperty.call(m, "memo")) w.uint32(18).string(m.memo); + if (m.timeoutHeight != null && Object.hasOwnProperty.call(m, "timeoutHeight")) + w.uint32(24).uint64(m.timeoutHeight); + if (m.extensionOptions != null && m.extensionOptions.length) { + for (var i = 0; i < m.extensionOptions.length; ++i) + $root.google.protobuf.Any.encode(m.extensionOptions[i], w.uint32(8186).fork()).ldelim(); + } + if (m.nonCriticalExtensionOptions != null && m.nonCriticalExtensionOptions.length) { + for (var i = 0; i < m.nonCriticalExtensionOptions.length; ++i) + $root.google.protobuf.Any.encode( + m.nonCriticalExtensionOptions[i], + w.uint32(16378).fork(), + ).ldelim(); + } + return w; + }; + TxBody.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.tx.v1beta1.TxBody(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.messages && m.messages.length)) m.messages = []; + m.messages.push($root.google.protobuf.Any.decode(r, r.uint32())); + break; + case 2: + m.memo = r.string(); + break; + case 3: + m.timeoutHeight = r.uint64(); + break; + case 1023: + if (!(m.extensionOptions && m.extensionOptions.length)) m.extensionOptions = []; + m.extensionOptions.push($root.google.protobuf.Any.decode(r, r.uint32())); + break; + case 2047: + if (!(m.nonCriticalExtensionOptions && m.nonCriticalExtensionOptions.length)) + m.nonCriticalExtensionOptions = []; + m.nonCriticalExtensionOptions.push($root.google.protobuf.Any.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxBody; + })(); + v1beta1.AuthInfo = (function () { + function AuthInfo(p) { + this.signerInfos = []; + 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]]; + } + AuthInfo.prototype.signerInfos = $util.emptyArray; + AuthInfo.prototype.fee = null; + AuthInfo.create = function create(properties) { + return new AuthInfo(properties); + }; + AuthInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.signerInfos != null && m.signerInfos.length) { + for (var i = 0; i < m.signerInfos.length; ++i) + $root.cosmos.tx.v1beta1.SignerInfo.encode(m.signerInfos[i], w.uint32(10).fork()).ldelim(); + } + if (m.fee != null && Object.hasOwnProperty.call(m, "fee")) + $root.cosmos.tx.v1beta1.Fee.encode(m.fee, w.uint32(18).fork()).ldelim(); + return w; + }; + AuthInfo.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.tx.v1beta1.AuthInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.signerInfos && m.signerInfos.length)) m.signerInfos = []; + m.signerInfos.push($root.cosmos.tx.v1beta1.SignerInfo.decode(r, r.uint32())); + break; + case 2: + m.fee = $root.cosmos.tx.v1beta1.Fee.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return AuthInfo; + })(); + v1beta1.SignerInfo = (function () { + function SignerInfo(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]]; + } + SignerInfo.prototype.publicKey = null; + SignerInfo.prototype.modeInfo = null; + SignerInfo.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SignerInfo.create = function create(properties) { + return new SignerInfo(properties); + }; + SignerInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.publicKey != null && Object.hasOwnProperty.call(m, "publicKey")) + $root.google.protobuf.Any.encode(m.publicKey, w.uint32(10).fork()).ldelim(); + if (m.modeInfo != null && Object.hasOwnProperty.call(m, "modeInfo")) + $root.cosmos.tx.v1beta1.ModeInfo.encode(m.modeInfo, w.uint32(18).fork()).ldelim(); + if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) + w.uint32(24).uint64(m.sequence); + return w; + }; + SignerInfo.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.tx.v1beta1.SignerInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.publicKey = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 2: + m.modeInfo = $root.cosmos.tx.v1beta1.ModeInfo.decode(r, r.uint32()); + break; + case 3: + m.sequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SignerInfo; + })(); + v1beta1.ModeInfo = (function () { + function ModeInfo(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]]; + } + ModeInfo.prototype.single = null; + ModeInfo.prototype.multi = null; + let $oneOfFields; + Object.defineProperty(ModeInfo.prototype, "sum", { + get: $util.oneOfGetter(($oneOfFields = ["single", "multi"])), + set: $util.oneOfSetter($oneOfFields), + }); + ModeInfo.create = function create(properties) { + return new ModeInfo(properties); + }; + ModeInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.single != null && Object.hasOwnProperty.call(m, "single")) + $root.cosmos.tx.v1beta1.ModeInfo.Single.encode(m.single, w.uint32(10).fork()).ldelim(); + if (m.multi != null && Object.hasOwnProperty.call(m, "multi")) + $root.cosmos.tx.v1beta1.ModeInfo.Multi.encode(m.multi, w.uint32(18).fork()).ldelim(); + return w; + }; + ModeInfo.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.tx.v1beta1.ModeInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.single = $root.cosmos.tx.v1beta1.ModeInfo.Single.decode(r, r.uint32()); + break; + case 2: + m.multi = $root.cosmos.tx.v1beta1.ModeInfo.Multi.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + ModeInfo.Single = (function () { + function Single(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]]; + } + Single.prototype.mode = 0; + Single.create = function create(properties) { + return new Single(properties); + }; + Single.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.mode != null && Object.hasOwnProperty.call(m, "mode")) w.uint32(8).int32(m.mode); + return w; + }; + Single.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.tx.v1beta1.ModeInfo.Single(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.mode = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Single; + })(); + ModeInfo.Multi = (function () { + function Multi(p) { + this.modeInfos = []; + 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]]; + } + Multi.prototype.bitarray = null; + Multi.prototype.modeInfos = $util.emptyArray; + Multi.create = function create(properties) { + return new Multi(properties); + }; + Multi.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bitarray != null && Object.hasOwnProperty.call(m, "bitarray")) + $root.cosmos.crypto.multisig.v1beta1.CompactBitArray.encode( + m.bitarray, + w.uint32(10).fork(), + ).ldelim(); + if (m.modeInfos != null && m.modeInfos.length) { + for (var i = 0; i < m.modeInfos.length; ++i) + $root.cosmos.tx.v1beta1.ModeInfo.encode(m.modeInfos[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + Multi.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.tx.v1beta1.ModeInfo.Multi(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bitarray = $root.cosmos.crypto.multisig.v1beta1.CompactBitArray.decode(r, r.uint32()); + break; + case 2: + if (!(m.modeInfos && m.modeInfos.length)) m.modeInfos = []; + m.modeInfos.push($root.cosmos.tx.v1beta1.ModeInfo.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Multi; + })(); + return ModeInfo; + })(); + v1beta1.Fee = (function () { + function Fee(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]]; + } + Fee.prototype.amount = $util.emptyArray; + Fee.prototype.gasLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Fee.prototype.payer = ""; + Fee.prototype.granter = ""; + Fee.create = function create(properties) { + return new Fee(properties); + }; + Fee.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.base.v1beta1.Coin.encode(m.amount[i], w.uint32(10).fork()).ldelim(); + } + if (m.gasLimit != null && Object.hasOwnProperty.call(m, "gasLimit")) + w.uint32(16).uint64(m.gasLimit); + if (m.payer != null && Object.hasOwnProperty.call(m, "payer")) w.uint32(26).string(m.payer); + if (m.granter != null && Object.hasOwnProperty.call(m, "granter")) w.uint32(34).string(m.granter); + return w; + }; + Fee.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.tx.v1beta1.Fee(); + 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.base.v1beta1.Coin.decode(r, r.uint32())); + break; + case 2: + m.gasLimit = r.uint64(); + break; + case 3: + m.payer = r.string(); + break; + case 4: + m.granter = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Fee; + })(); + return v1beta1; + })(); + return tx; })(); - return tendermint; + return cosmos; })(); exports.google = $root.google = (() => { const google = {}; @@ -8009,35 +2017,35 @@ exports.google = $root.google = (() => { }; return Any; })(); - protobuf.Timestamp = (function () { - function Timestamp(p) { + protobuf.FileDescriptorSet = (function () { + function FileDescriptorSet(p) { + this.file = []; 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]]; } - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Timestamp.prototype.nanos = 0; - Timestamp.create = function create(properties) { - return new Timestamp(properties); + FileDescriptorSet.prototype.file = $util.emptyArray; + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); }; - Timestamp.encode = function encode(m, w) { + FileDescriptorSet.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.seconds != null && Object.hasOwnProperty.call(m, "seconds")) w.uint32(8).int64(m.seconds); - if (m.nanos != null && Object.hasOwnProperty.call(m, "nanos")) w.uint32(16).int32(m.nanos); + if (m.file != null && m.file.length) { + for (var i = 0; i < m.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(m.file[i], w.uint32(10).fork()).ldelim(); + } return w; }; - Timestamp.decode = function decode(r, l) { + FileDescriptorSet.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.Timestamp(); + m = new $root.google.protobuf.FileDescriptorSet(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { case 1: - m.seconds = r.int64(); - break; - case 2: - m.nanos = r.int32(); + if (!(m.file && m.file.length)) m.file = []; + m.file.push($root.google.protobuf.FileDescriptorProto.decode(r, r.uint32())); break; default: r.skipType(t & 7); @@ -8046,37 +2054,128 @@ exports.google = $root.google = (() => { } return m; }; - return Timestamp; + return FileDescriptorSet; })(); - protobuf.Duration = (function () { - function Duration(p) { + protobuf.FileDescriptorProto = (function () { + function FileDescriptorProto(p) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; 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]]; } - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; - Duration.prototype.nanos = 0; - Duration.create = function create(properties) { - return new Duration(properties); + FileDescriptorProto.prototype.name = ""; + FileDescriptorProto.prototype["package"] = ""; + FileDescriptorProto.prototype.dependency = $util.emptyArray; + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + FileDescriptorProto.prototype.messageType = $util.emptyArray; + FileDescriptorProto.prototype.enumType = $util.emptyArray; + FileDescriptorProto.prototype.service = $util.emptyArray; + FileDescriptorProto.prototype.extension = $util.emptyArray; + FileDescriptorProto.prototype.options = null; + FileDescriptorProto.prototype.sourceCodeInfo = null; + FileDescriptorProto.prototype.syntax = ""; + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); }; - Duration.encode = function encode(m, w) { + FileDescriptorProto.encode = function encode(m, w) { if (!w) w = $Writer.create(); - if (m.seconds != null && Object.hasOwnProperty.call(m, "seconds")) w.uint32(8).int64(m.seconds); - if (m.nanos != null && Object.hasOwnProperty.call(m, "nanos")) w.uint32(16).int32(m.nanos); + if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(10).string(m.name); + if (m["package"] != null && Object.hasOwnProperty.call(m, "package")) + w.uint32(18).string(m["package"]); + if (m.dependency != null && m.dependency.length) { + for (var i = 0; i < m.dependency.length; ++i) w.uint32(26).string(m.dependency[i]); + } + if (m.messageType != null && m.messageType.length) { + for (var i = 0; i < m.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(m.messageType[i], w.uint32(34).fork()).ldelim(); + } + if (m.enumType != null && m.enumType.length) { + for (var i = 0; i < m.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(m.enumType[i], w.uint32(42).fork()).ldelim(); + } + if (m.service != null && m.service.length) { + for (var i = 0; i < m.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(m.service[i], w.uint32(50).fork()).ldelim(); + } + if (m.extension != null && m.extension.length) { + for (var i = 0; i < m.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(m.extension[i], w.uint32(58).fork()).ldelim(); + } + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.FileOptions.encode(m.options, w.uint32(66).fork()).ldelim(); + if (m.sourceCodeInfo != null && Object.hasOwnProperty.call(m, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(m.sourceCodeInfo, w.uint32(74).fork()).ldelim(); + if (m.publicDependency != null && m.publicDependency.length) { + for (var i = 0; i < m.publicDependency.length; ++i) w.uint32(80).int32(m.publicDependency[i]); + } + if (m.weakDependency != null && m.weakDependency.length) { + for (var i = 0; i < m.weakDependency.length; ++i) w.uint32(88).int32(m.weakDependency[i]); + } + if (m.syntax != null && Object.hasOwnProperty.call(m, "syntax")) w.uint32(98).string(m.syntax); return w; }; - Duration.decode = function decode(r, l) { + FileDescriptorProto.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.Duration(); + m = new $root.google.protobuf.FileDescriptorProto(); while (r.pos < c) { var t = r.uint32(); switch (t >>> 3) { case 1: - m.seconds = r.int64(); + m.name = r.string(); break; case 2: - m.nanos = r.int32(); + m["package"] = r.string(); + break; + case 3: + if (!(m.dependency && m.dependency.length)) m.dependency = []; + m.dependency.push(r.string()); + break; + case 10: + if (!(m.publicDependency && m.publicDependency.length)) m.publicDependency = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.publicDependency.push(r.int32()); + } else m.publicDependency.push(r.int32()); + break; + case 11: + if (!(m.weakDependency && m.weakDependency.length)) m.weakDependency = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.weakDependency.push(r.int32()); + } else m.weakDependency.push(r.int32()); + break; + case 4: + if (!(m.messageType && m.messageType.length)) m.messageType = []; + m.messageType.push($root.google.protobuf.DescriptorProto.decode(r, r.uint32())); + break; + case 5: + if (!(m.enumType && m.enumType.length)) m.enumType = []; + m.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(r, r.uint32())); + break; + case 6: + if (!(m.service && m.service.length)) m.service = []; + m.service.push($root.google.protobuf.ServiceDescriptorProto.decode(r, r.uint32())); + break; + case 7: + if (!(m.extension && m.extension.length)) m.extension = []; + m.extension.push($root.google.protobuf.FieldDescriptorProto.decode(r, r.uint32())); + break; + case 8: + m.options = $root.google.protobuf.FileOptions.decode(r, r.uint32()); + break; + case 9: + m.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(r, r.uint32()); + break; + case 12: + m.syntax = r.string(); break; default: r.skipType(t & 7); @@ -8085,10 +2184,5875 @@ exports.google = $root.google = (() => { } return m; }; - return Duration; + return FileDescriptorProto; + })(); + protobuf.DescriptorProto = (function () { + function DescriptorProto(p) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + DescriptorProto.prototype.name = ""; + DescriptorProto.prototype.field = $util.emptyArray; + DescriptorProto.prototype.extension = $util.emptyArray; + DescriptorProto.prototype.nestedType = $util.emptyArray; + DescriptorProto.prototype.enumType = $util.emptyArray; + DescriptorProto.prototype.extensionRange = $util.emptyArray; + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + DescriptorProto.prototype.options = null; + DescriptorProto.prototype.reservedRange = $util.emptyArray; + DescriptorProto.prototype.reservedName = $util.emptyArray; + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + DescriptorProto.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.field != null && m.field.length) { + for (var i = 0; i < m.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(m.field[i], w.uint32(18).fork()).ldelim(); + } + if (m.nestedType != null && m.nestedType.length) { + for (var i = 0; i < m.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(m.nestedType[i], w.uint32(26).fork()).ldelim(); + } + if (m.enumType != null && m.enumType.length) { + for (var i = 0; i < m.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(m.enumType[i], w.uint32(34).fork()).ldelim(); + } + if (m.extensionRange != null && m.extensionRange.length) { + for (var i = 0; i < m.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode( + m.extensionRange[i], + w.uint32(42).fork(), + ).ldelim(); + } + if (m.extension != null && m.extension.length) { + for (var i = 0; i < m.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(m.extension[i], w.uint32(50).fork()).ldelim(); + } + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.MessageOptions.encode(m.options, w.uint32(58).fork()).ldelim(); + if (m.oneofDecl != null && m.oneofDecl.length) { + for (var i = 0; i < m.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(m.oneofDecl[i], w.uint32(66).fork()).ldelim(); + } + if (m.reservedRange != null && m.reservedRange.length) { + for (var i = 0; i < m.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode( + m.reservedRange[i], + w.uint32(74).fork(), + ).ldelim(); + } + if (m.reservedName != null && m.reservedName.length) { + for (var i = 0; i < m.reservedName.length; ++i) w.uint32(82).string(m.reservedName[i]); + } + return w; + }; + DescriptorProto.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.DescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 2: + if (!(m.field && m.field.length)) m.field = []; + m.field.push($root.google.protobuf.FieldDescriptorProto.decode(r, r.uint32())); + break; + case 6: + if (!(m.extension && m.extension.length)) m.extension = []; + m.extension.push($root.google.protobuf.FieldDescriptorProto.decode(r, r.uint32())); + break; + case 3: + if (!(m.nestedType && m.nestedType.length)) m.nestedType = []; + m.nestedType.push($root.google.protobuf.DescriptorProto.decode(r, r.uint32())); + break; + case 4: + if (!(m.enumType && m.enumType.length)) m.enumType = []; + m.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(r, r.uint32())); + break; + case 5: + if (!(m.extensionRange && m.extensionRange.length)) m.extensionRange = []; + m.extensionRange.push( + $root.google.protobuf.DescriptorProto.ExtensionRange.decode(r, r.uint32()), + ); + break; + case 8: + if (!(m.oneofDecl && m.oneofDecl.length)) m.oneofDecl = []; + m.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(r, r.uint32())); + break; + case 7: + m.options = $root.google.protobuf.MessageOptions.decode(r, r.uint32()); + break; + case 9: + if (!(m.reservedRange && m.reservedRange.length)) m.reservedRange = []; + m.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(r, r.uint32())); + break; + case 10: + if (!(m.reservedName && m.reservedName.length)) m.reservedName = []; + m.reservedName.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + DescriptorProto.ExtensionRange = (function () { + function ExtensionRange(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]]; + } + ExtensionRange.prototype.start = 0; + ExtensionRange.prototype.end = 0; + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + ExtensionRange.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.start != null && Object.hasOwnProperty.call(m, "start")) w.uint32(8).int32(m.start); + if (m.end != null && Object.hasOwnProperty.call(m, "end")) w.uint32(16).int32(m.end); + return w; + }; + ExtensionRange.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.DescriptorProto.ExtensionRange(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.start = r.int32(); + break; + case 2: + m.end = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ExtensionRange; + })(); + DescriptorProto.ReservedRange = (function () { + function ReservedRange(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]]; + } + ReservedRange.prototype.start = 0; + ReservedRange.prototype.end = 0; + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + ReservedRange.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.start != null && Object.hasOwnProperty.call(m, "start")) w.uint32(8).int32(m.start); + if (m.end != null && Object.hasOwnProperty.call(m, "end")) w.uint32(16).int32(m.end); + return w; + }; + ReservedRange.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.DescriptorProto.ReservedRange(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.start = r.int32(); + break; + case 2: + m.end = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ReservedRange; + })(); + return DescriptorProto; + })(); + protobuf.FieldDescriptorProto = (function () { + function FieldDescriptorProto(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]]; + } + FieldDescriptorProto.prototype.name = ""; + FieldDescriptorProto.prototype.number = 0; + FieldDescriptorProto.prototype.label = 1; + FieldDescriptorProto.prototype.type = 1; + FieldDescriptorProto.prototype.typeName = ""; + FieldDescriptorProto.prototype.extendee = ""; + FieldDescriptorProto.prototype.defaultValue = ""; + FieldDescriptorProto.prototype.oneofIndex = 0; + FieldDescriptorProto.prototype.jsonName = ""; + FieldDescriptorProto.prototype.options = null; + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + FieldDescriptorProto.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.extendee != null && Object.hasOwnProperty.call(m, "extendee")) w.uint32(18).string(m.extendee); + if (m.number != null && Object.hasOwnProperty.call(m, "number")) w.uint32(24).int32(m.number); + if (m.label != null && Object.hasOwnProperty.call(m, "label")) w.uint32(32).int32(m.label); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(40).int32(m.type); + if (m.typeName != null && Object.hasOwnProperty.call(m, "typeName")) w.uint32(50).string(m.typeName); + if (m.defaultValue != null && Object.hasOwnProperty.call(m, "defaultValue")) + w.uint32(58).string(m.defaultValue); + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.FieldOptions.encode(m.options, w.uint32(66).fork()).ldelim(); + if (m.oneofIndex != null && Object.hasOwnProperty.call(m, "oneofIndex")) + w.uint32(72).int32(m.oneofIndex); + if (m.jsonName != null && Object.hasOwnProperty.call(m, "jsonName")) w.uint32(82).string(m.jsonName); + return w; + }; + FieldDescriptorProto.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.FieldDescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 3: + m.number = r.int32(); + break; + case 4: + m.label = r.int32(); + break; + case 5: + m.type = r.int32(); + break; + case 6: + m.typeName = r.string(); + break; + case 2: + m.extendee = r.string(); + break; + case 7: + m.defaultValue = r.string(); + break; + case 9: + m.oneofIndex = r.int32(); + break; + case 10: + m.jsonName = r.string(); + break; + case 8: + m.options = $root.google.protobuf.FieldOptions.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + FieldDescriptorProto.Type = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[1] = "TYPE_DOUBLE")] = 1; + values[(valuesById[2] = "TYPE_FLOAT")] = 2; + values[(valuesById[3] = "TYPE_INT64")] = 3; + values[(valuesById[4] = "TYPE_UINT64")] = 4; + values[(valuesById[5] = "TYPE_INT32")] = 5; + values[(valuesById[6] = "TYPE_FIXED64")] = 6; + values[(valuesById[7] = "TYPE_FIXED32")] = 7; + values[(valuesById[8] = "TYPE_BOOL")] = 8; + values[(valuesById[9] = "TYPE_STRING")] = 9; + values[(valuesById[10] = "TYPE_GROUP")] = 10; + values[(valuesById[11] = "TYPE_MESSAGE")] = 11; + values[(valuesById[12] = "TYPE_BYTES")] = 12; + values[(valuesById[13] = "TYPE_UINT32")] = 13; + values[(valuesById[14] = "TYPE_ENUM")] = 14; + values[(valuesById[15] = "TYPE_SFIXED32")] = 15; + values[(valuesById[16] = "TYPE_SFIXED64")] = 16; + values[(valuesById[17] = "TYPE_SINT32")] = 17; + values[(valuesById[18] = "TYPE_SINT64")] = 18; + return values; + })(); + FieldDescriptorProto.Label = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[1] = "LABEL_OPTIONAL")] = 1; + values[(valuesById[2] = "LABEL_REQUIRED")] = 2; + values[(valuesById[3] = "LABEL_REPEATED")] = 3; + return values; + })(); + return FieldDescriptorProto; + })(); + protobuf.OneofDescriptorProto = (function () { + function OneofDescriptorProto(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]]; + } + OneofDescriptorProto.prototype.name = ""; + OneofDescriptorProto.prototype.options = null; + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + OneofDescriptorProto.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.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.OneofOptions.encode(m.options, w.uint32(18).fork()).ldelim(); + return w; + }; + OneofDescriptorProto.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.OneofDescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 2: + m.options = $root.google.protobuf.OneofOptions.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return OneofDescriptorProto; + })(); + protobuf.EnumDescriptorProto = (function () { + function EnumDescriptorProto(p) { + this.value = []; + 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]]; + } + EnumDescriptorProto.prototype.name = ""; + EnumDescriptorProto.prototype.value = $util.emptyArray; + EnumDescriptorProto.prototype.options = null; + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + EnumDescriptorProto.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.value != null && m.value.length) { + for (var i = 0; i < m.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(m.value[i], w.uint32(18).fork()).ldelim(); + } + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.EnumOptions.encode(m.options, w.uint32(26).fork()).ldelim(); + return w; + }; + EnumDescriptorProto.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.EnumDescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 2: + if (!(m.value && m.value.length)) m.value = []; + m.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(r, r.uint32())); + break; + case 3: + m.options = $root.google.protobuf.EnumOptions.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return EnumDescriptorProto; + })(); + protobuf.EnumValueDescriptorProto = (function () { + function EnumValueDescriptorProto(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]]; + } + EnumValueDescriptorProto.prototype.name = ""; + EnumValueDescriptorProto.prototype.number = 0; + EnumValueDescriptorProto.prototype.options = null; + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + EnumValueDescriptorProto.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.number != null && Object.hasOwnProperty.call(m, "number")) w.uint32(16).int32(m.number); + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.EnumValueOptions.encode(m.options, w.uint32(26).fork()).ldelim(); + return w; + }; + EnumValueDescriptorProto.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.EnumValueDescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 2: + m.number = r.int32(); + break; + case 3: + m.options = $root.google.protobuf.EnumValueOptions.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return EnumValueDescriptorProto; + })(); + protobuf.ServiceDescriptorProto = (function () { + function ServiceDescriptorProto(p) { + this.method = []; + 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]]; + } + ServiceDescriptorProto.prototype.name = ""; + ServiceDescriptorProto.prototype.method = $util.emptyArray; + ServiceDescriptorProto.prototype.options = null; + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + ServiceDescriptorProto.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.method != null && m.method.length) { + for (var i = 0; i < m.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(m.method[i], w.uint32(18).fork()).ldelim(); + } + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.ServiceOptions.encode(m.options, w.uint32(26).fork()).ldelim(); + return w; + }; + ServiceDescriptorProto.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.ServiceDescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 2: + if (!(m.method && m.method.length)) m.method = []; + m.method.push($root.google.protobuf.MethodDescriptorProto.decode(r, r.uint32())); + break; + case 3: + m.options = $root.google.protobuf.ServiceOptions.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ServiceDescriptorProto; + })(); + protobuf.MethodDescriptorProto = (function () { + function MethodDescriptorProto(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]]; + } + MethodDescriptorProto.prototype.name = ""; + MethodDescriptorProto.prototype.inputType = ""; + MethodDescriptorProto.prototype.outputType = ""; + MethodDescriptorProto.prototype.options = null; + MethodDescriptorProto.prototype.clientStreaming = false; + MethodDescriptorProto.prototype.serverStreaming = false; + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + MethodDescriptorProto.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.inputType != null && Object.hasOwnProperty.call(m, "inputType")) + w.uint32(18).string(m.inputType); + if (m.outputType != null && Object.hasOwnProperty.call(m, "outputType")) + w.uint32(26).string(m.outputType); + if (m.options != null && Object.hasOwnProperty.call(m, "options")) + $root.google.protobuf.MethodOptions.encode(m.options, w.uint32(34).fork()).ldelim(); + if (m.clientStreaming != null && Object.hasOwnProperty.call(m, "clientStreaming")) + w.uint32(40).bool(m.clientStreaming); + if (m.serverStreaming != null && Object.hasOwnProperty.call(m, "serverStreaming")) + w.uint32(48).bool(m.serverStreaming); + return w; + }; + MethodDescriptorProto.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.MethodDescriptorProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.name = r.string(); + break; + case 2: + m.inputType = r.string(); + break; + case 3: + m.outputType = r.string(); + break; + case 4: + m.options = $root.google.protobuf.MethodOptions.decode(r, r.uint32()); + break; + case 5: + m.clientStreaming = r.bool(); + break; + case 6: + m.serverStreaming = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MethodDescriptorProto; + })(); + protobuf.FileOptions = (function () { + function FileOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + FileOptions.prototype.javaPackage = ""; + FileOptions.prototype.javaOuterClassname = ""; + FileOptions.prototype.javaMultipleFiles = false; + FileOptions.prototype.javaGenerateEqualsAndHash = false; + FileOptions.prototype.javaStringCheckUtf8 = false; + FileOptions.prototype.optimizeFor = 1; + FileOptions.prototype.goPackage = ""; + FileOptions.prototype.ccGenericServices = false; + FileOptions.prototype.javaGenericServices = false; + FileOptions.prototype.pyGenericServices = false; + FileOptions.prototype.deprecated = false; + FileOptions.prototype.ccEnableArenas = false; + FileOptions.prototype.objcClassPrefix = ""; + FileOptions.prototype.csharpNamespace = ""; + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + FileOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.javaPackage != null && Object.hasOwnProperty.call(m, "javaPackage")) + w.uint32(10).string(m.javaPackage); + if (m.javaOuterClassname != null && Object.hasOwnProperty.call(m, "javaOuterClassname")) + w.uint32(66).string(m.javaOuterClassname); + if (m.optimizeFor != null && Object.hasOwnProperty.call(m, "optimizeFor")) + w.uint32(72).int32(m.optimizeFor); + if (m.javaMultipleFiles != null && Object.hasOwnProperty.call(m, "javaMultipleFiles")) + w.uint32(80).bool(m.javaMultipleFiles); + if (m.goPackage != null && Object.hasOwnProperty.call(m, "goPackage")) + w.uint32(90).string(m.goPackage); + if (m.ccGenericServices != null && Object.hasOwnProperty.call(m, "ccGenericServices")) + w.uint32(128).bool(m.ccGenericServices); + if (m.javaGenericServices != null && Object.hasOwnProperty.call(m, "javaGenericServices")) + w.uint32(136).bool(m.javaGenericServices); + if (m.pyGenericServices != null && Object.hasOwnProperty.call(m, "pyGenericServices")) + w.uint32(144).bool(m.pyGenericServices); + if (m.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(m, "javaGenerateEqualsAndHash")) + w.uint32(160).bool(m.javaGenerateEqualsAndHash); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(184).bool(m.deprecated); + if (m.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(m, "javaStringCheckUtf8")) + w.uint32(216).bool(m.javaStringCheckUtf8); + if (m.ccEnableArenas != null && Object.hasOwnProperty.call(m, "ccEnableArenas")) + w.uint32(248).bool(m.ccEnableArenas); + if (m.objcClassPrefix != null && Object.hasOwnProperty.call(m, "objcClassPrefix")) + w.uint32(290).string(m.objcClassPrefix); + if (m.csharpNamespace != null && Object.hasOwnProperty.call(m, "csharpNamespace")) + w.uint32(298).string(m.csharpNamespace); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + 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) { + case 1: + m.javaPackage = r.string(); + break; + case 8: + m.javaOuterClassname = r.string(); + break; + case 10: + m.javaMultipleFiles = r.bool(); + break; + case 20: + m.javaGenerateEqualsAndHash = r.bool(); + break; + case 27: + m.javaStringCheckUtf8 = r.bool(); + break; + case 9: + m.optimizeFor = r.int32(); + break; + case 11: + m.goPackage = r.string(); + break; + case 16: + m.ccGenericServices = r.bool(); + break; + case 17: + m.javaGenericServices = r.bool(); + break; + case 18: + m.pyGenericServices = r.bool(); + break; + case 23: + m.deprecated = r.bool(); + break; + case 31: + m.ccEnableArenas = r.bool(); + break; + case 36: + m.objcClassPrefix = r.string(); + break; + case 37: + m.csharpNamespace = r.string(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + FileOptions.OptimizeMode = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[1] = "SPEED")] = 1; + values[(valuesById[2] = "CODE_SIZE")] = 2; + values[(valuesById[3] = "LITE_RUNTIME")] = 3; + return values; + })(); + return FileOptions; + })(); + protobuf.MessageOptions = (function () { + function MessageOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + MessageOptions.prototype.messageSetWireFormat = false; + MessageOptions.prototype.noStandardDescriptorAccessor = false; + MessageOptions.prototype.deprecated = false; + MessageOptions.prototype.mapEntry = false; + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + MessageOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.messageSetWireFormat != null && Object.hasOwnProperty.call(m, "messageSetWireFormat")) + w.uint32(8).bool(m.messageSetWireFormat); + if ( + m.noStandardDescriptorAccessor != null && + Object.hasOwnProperty.call(m, "noStandardDescriptorAccessor") + ) + w.uint32(16).bool(m.noStandardDescriptorAccessor); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(24).bool(m.deprecated); + if (m.mapEntry != null && Object.hasOwnProperty.call(m, "mapEntry")) w.uint32(56).bool(m.mapEntry); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + 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) { + case 1: + m.messageSetWireFormat = r.bool(); + break; + case 2: + m.noStandardDescriptorAccessor = r.bool(); + break; + case 3: + m.deprecated = r.bool(); + break; + case 7: + m.mapEntry = r.bool(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MessageOptions; + })(); + protobuf.FieldOptions = (function () { + function FieldOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + FieldOptions.prototype.ctype = 0; + FieldOptions.prototype.packed = false; + FieldOptions.prototype.jstype = 0; + FieldOptions.prototype.lazy = false; + FieldOptions.prototype.deprecated = false; + FieldOptions.prototype.weak = false; + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + FieldOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.ctype != null && Object.hasOwnProperty.call(m, "ctype")) w.uint32(8).int32(m.ctype); + if (m.packed != null && Object.hasOwnProperty.call(m, "packed")) w.uint32(16).bool(m.packed); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(24).bool(m.deprecated); + if (m.lazy != null && Object.hasOwnProperty.call(m, "lazy")) w.uint32(40).bool(m.lazy); + if (m.jstype != null && Object.hasOwnProperty.call(m, "jstype")) w.uint32(48).int32(m.jstype); + if (m.weak != null && Object.hasOwnProperty.call(m, "weak")) w.uint32(80).bool(m.weak); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + 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) { + case 1: + m.ctype = r.int32(); + break; + case 2: + m.packed = r.bool(); + break; + case 6: + m.jstype = r.int32(); + break; + case 5: + m.lazy = r.bool(); + break; + case 3: + m.deprecated = r.bool(); + break; + case 10: + m.weak = r.bool(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + FieldOptions.CType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "STRING")] = 0; + values[(valuesById[1] = "CORD")] = 1; + values[(valuesById[2] = "STRING_PIECE")] = 2; + return values; + })(); + FieldOptions.JSType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "JS_NORMAL")] = 0; + values[(valuesById[1] = "JS_STRING")] = 1; + values[(valuesById[2] = "JS_NUMBER")] = 2; + return values; + })(); + return FieldOptions; + })(); + protobuf.OneofOptions = (function () { + function OneofOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + OneofOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + OneofOptions.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.OneofOptions(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return OneofOptions; + })(); + protobuf.EnumOptions = (function () { + function EnumOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + EnumOptions.prototype.allowAlias = false; + EnumOptions.prototype.deprecated = false; + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + EnumOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.allowAlias != null && Object.hasOwnProperty.call(m, "allowAlias")) + w.uint32(16).bool(m.allowAlias); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(24).bool(m.deprecated); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + 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) { + case 2: + m.allowAlias = r.bool(); + break; + case 3: + m.deprecated = r.bool(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return EnumOptions; + })(); + protobuf.EnumValueOptions = (function () { + function EnumValueOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + EnumValueOptions.prototype.deprecated = false; + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + EnumValueOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(8).bool(m.deprecated); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + 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) { + case 1: + m.deprecated = r.bool(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return EnumValueOptions; + })(); + protobuf.ServiceOptions = (function () { + function ServiceOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + ServiceOptions.prototype.deprecated = false; + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + ServiceOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(264).bool(m.deprecated); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + return w; + }; + ServiceOptions.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.ServiceOptions(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 33: + m.deprecated = r.bool(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ServiceOptions; + })(); + protobuf.MethodOptions = (function () { + function MethodOptions(p) { + this.uninterpretedOption = []; + 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]]; + } + MethodOptions.prototype.deprecated = false; + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + MethodOptions.prototype[".google.api.http"] = null; + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + MethodOptions.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.deprecated != null && Object.hasOwnProperty.call(m, "deprecated")) + w.uint32(264).bool(m.deprecated); + if (m.uninterpretedOption != null && m.uninterpretedOption.length) { + for (var i = 0; i < m.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode( + m.uninterpretedOption[i], + w.uint32(7994).fork(), + ).ldelim(); + } + if (m[".google.api.http"] != null && Object.hasOwnProperty.call(m, ".google.api.http")) + $root.google.api.HttpRule.encode(m[".google.api.http"], w.uint32(578365826).fork()).ldelim(); + return w; + }; + MethodOptions.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.MethodOptions(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 33: + m.deprecated = r.bool(); + break; + case 999: + if (!(m.uninterpretedOption && m.uninterpretedOption.length)) m.uninterpretedOption = []; + m.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(r, r.uint32())); + break; + case 72295728: + m[".google.api.http"] = $root.google.api.HttpRule.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MethodOptions; + })(); + protobuf.UninterpretedOption = (function () { + function UninterpretedOption(p) { + this.name = []; + 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]]; + } + UninterpretedOption.prototype.name = $util.emptyArray; + UninterpretedOption.prototype.identifierValue = ""; + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + UninterpretedOption.prototype.doubleValue = 0; + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + UninterpretedOption.prototype.aggregateValue = ""; + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + UninterpretedOption.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.name != null && m.name.length) { + for (var i = 0; i < m.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode( + m.name[i], + w.uint32(18).fork(), + ).ldelim(); + } + if (m.identifierValue != null && Object.hasOwnProperty.call(m, "identifierValue")) + w.uint32(26).string(m.identifierValue); + if (m.positiveIntValue != null && Object.hasOwnProperty.call(m, "positiveIntValue")) + w.uint32(32).uint64(m.positiveIntValue); + if (m.negativeIntValue != null && Object.hasOwnProperty.call(m, "negativeIntValue")) + w.uint32(40).int64(m.negativeIntValue); + if (m.doubleValue != null && Object.hasOwnProperty.call(m, "doubleValue")) + w.uint32(49).double(m.doubleValue); + if (m.stringValue != null && Object.hasOwnProperty.call(m, "stringValue")) + w.uint32(58).bytes(m.stringValue); + if (m.aggregateValue != null && Object.hasOwnProperty.call(m, "aggregateValue")) + w.uint32(66).string(m.aggregateValue); + return w; + }; + UninterpretedOption.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.UninterpretedOption(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 2: + if (!(m.name && m.name.length)) m.name = []; + m.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(r, r.uint32())); + break; + case 3: + m.identifierValue = r.string(); + break; + case 4: + m.positiveIntValue = r.uint64(); + break; + case 5: + m.negativeIntValue = r.int64(); + break; + case 6: + m.doubleValue = r.double(); + break; + case 7: + m.stringValue = r.bytes(); + break; + case 8: + m.aggregateValue = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + UninterpretedOption.NamePart = (function () { + function NamePart(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]]; + } + NamePart.prototype.namePart = ""; + NamePart.prototype.isExtension = false; + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + NamePart.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + w.uint32(10).string(m.namePart); + w.uint32(16).bool(m.isExtension); + return w; + }; + NamePart.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.UninterpretedOption.NamePart(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.namePart = r.string(); + break; + case 2: + m.isExtension = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + if (!m.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: m }); + if (!m.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: m }); + return m; + }; + return NamePart; + })(); + return UninterpretedOption; + })(); + protobuf.SourceCodeInfo = (function () { + function SourceCodeInfo(p) { + this.location = []; + 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]]; + } + SourceCodeInfo.prototype.location = $util.emptyArray; + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + SourceCodeInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.location != null && m.location.length) { + for (var i = 0; i < m.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(m.location[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + SourceCodeInfo.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.SourceCodeInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.location && m.location.length)) m.location = []; + m.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + SourceCodeInfo.Location = (function () { + function Location(p) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + Location.prototype.path = $util.emptyArray; + Location.prototype.span = $util.emptyArray; + Location.prototype.leadingComments = ""; + Location.prototype.trailingComments = ""; + Location.prototype.leadingDetachedComments = $util.emptyArray; + Location.create = function create(properties) { + return new Location(properties); + }; + Location.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.path != null && m.path.length) { + w.uint32(10).fork(); + for (var i = 0; i < m.path.length; ++i) w.int32(m.path[i]); + w.ldelim(); + } + if (m.span != null && m.span.length) { + w.uint32(18).fork(); + for (var i = 0; i < m.span.length; ++i) w.int32(m.span[i]); + w.ldelim(); + } + if (m.leadingComments != null && Object.hasOwnProperty.call(m, "leadingComments")) + w.uint32(26).string(m.leadingComments); + if (m.trailingComments != null && Object.hasOwnProperty.call(m, "trailingComments")) + w.uint32(34).string(m.trailingComments); + if (m.leadingDetachedComments != null && m.leadingDetachedComments.length) { + for (var i = 0; i < m.leadingDetachedComments.length; ++i) + w.uint32(50).string(m.leadingDetachedComments[i]); + } + return w; + }; + Location.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.SourceCodeInfo.Location(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.path && m.path.length)) m.path = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.path.push(r.int32()); + } else m.path.push(r.int32()); + break; + case 2: + if (!(m.span && m.span.length)) m.span = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.span.push(r.int32()); + } else m.span.push(r.int32()); + break; + case 3: + m.leadingComments = r.string(); + break; + case 4: + m.trailingComments = r.string(); + break; + case 6: + if (!(m.leadingDetachedComments && m.leadingDetachedComments.length)) + m.leadingDetachedComments = []; + m.leadingDetachedComments.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Location; + })(); + return SourceCodeInfo; + })(); + protobuf.GeneratedCodeInfo = (function () { + function GeneratedCodeInfo(p) { + this.annotation = []; + 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]]; + } + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + GeneratedCodeInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.annotation != null && m.annotation.length) { + for (var i = 0; i < m.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode( + m.annotation[i], + w.uint32(10).fork(), + ).ldelim(); + } + return w; + }; + GeneratedCodeInfo.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.GeneratedCodeInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.annotation && m.annotation.length)) m.annotation = []; + m.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + GeneratedCodeInfo.Annotation = (function () { + function Annotation(p) { + this.path = []; + 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]]; + } + Annotation.prototype.path = $util.emptyArray; + Annotation.prototype.sourceFile = ""; + Annotation.prototype.begin = 0; + Annotation.prototype.end = 0; + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + Annotation.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.path != null && m.path.length) { + w.uint32(10).fork(); + for (var i = 0; i < m.path.length; ++i) w.int32(m.path[i]); + w.ldelim(); + } + if (m.sourceFile != null && Object.hasOwnProperty.call(m, "sourceFile")) + w.uint32(18).string(m.sourceFile); + if (m.begin != null && Object.hasOwnProperty.call(m, "begin")) w.uint32(24).int32(m.begin); + if (m.end != null && Object.hasOwnProperty.call(m, "end")) w.uint32(32).int32(m.end); + return w; + }; + Annotation.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.GeneratedCodeInfo.Annotation(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.path && m.path.length)) m.path = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.path.push(r.int32()); + } else m.path.push(r.int32()); + break; + case 2: + m.sourceFile = r.string(); + break; + case 3: + m.begin = r.int32(); + break; + case 4: + m.end = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Annotation; + })(); + return GeneratedCodeInfo; })(); return protobuf; })(); + google.api = (function () { + const api = {}; + api.Http = (function () { + function Http(p) { + this.rules = []; + 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]]; + } + Http.prototype.rules = $util.emptyArray; + Http.create = function create(properties) { + return new Http(properties); + }; + Http.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.rules != null && m.rules.length) { + for (var i = 0; i < m.rules.length; ++i) + $root.google.api.HttpRule.encode(m.rules[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + Http.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.api.Http(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.rules && m.rules.length)) m.rules = []; + m.rules.push($root.google.api.HttpRule.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Http; + })(); + api.HttpRule = (function () { + function HttpRule(p) { + this.additionalBindings = []; + 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]]; + } + HttpRule.prototype.get = ""; + HttpRule.prototype.put = ""; + HttpRule.prototype.post = ""; + HttpRule.prototype["delete"] = ""; + HttpRule.prototype.patch = ""; + HttpRule.prototype.custom = null; + HttpRule.prototype.selector = ""; + HttpRule.prototype.body = ""; + HttpRule.prototype.additionalBindings = $util.emptyArray; + let $oneOfFields; + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter(($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"])), + set: $util.oneOfSetter($oneOfFields), + }); + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + HttpRule.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.selector != null && Object.hasOwnProperty.call(m, "selector")) w.uint32(10).string(m.selector); + if (m.get != null && Object.hasOwnProperty.call(m, "get")) w.uint32(18).string(m.get); + if (m.put != null && Object.hasOwnProperty.call(m, "put")) w.uint32(26).string(m.put); + if (m.post != null && Object.hasOwnProperty.call(m, "post")) w.uint32(34).string(m.post); + if (m["delete"] != null && Object.hasOwnProperty.call(m, "delete")) w.uint32(42).string(m["delete"]); + if (m.patch != null && Object.hasOwnProperty.call(m, "patch")) w.uint32(50).string(m.patch); + if (m.body != null && Object.hasOwnProperty.call(m, "body")) w.uint32(58).string(m.body); + if (m.custom != null && Object.hasOwnProperty.call(m, "custom")) + $root.google.api.CustomHttpPattern.encode(m.custom, w.uint32(66).fork()).ldelim(); + if (m.additionalBindings != null && m.additionalBindings.length) { + for (var i = 0; i < m.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(m.additionalBindings[i], w.uint32(90).fork()).ldelim(); + } + return w; + }; + HttpRule.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.api.HttpRule(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 2: + m.get = r.string(); + break; + case 3: + m.put = r.string(); + break; + case 4: + m.post = r.string(); + break; + case 5: + m["delete"] = r.string(); + break; + case 6: + m.patch = r.string(); + break; + case 8: + m.custom = $root.google.api.CustomHttpPattern.decode(r, r.uint32()); + break; + case 1: + m.selector = r.string(); + break; + case 7: + m.body = r.string(); + break; + case 11: + if (!(m.additionalBindings && m.additionalBindings.length)) m.additionalBindings = []; + m.additionalBindings.push($root.google.api.HttpRule.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return HttpRule; + })(); + api.CustomHttpPattern = (function () { + function CustomHttpPattern(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]]; + } + CustomHttpPattern.prototype.kind = ""; + CustomHttpPattern.prototype.path = ""; + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + CustomHttpPattern.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.kind != null && Object.hasOwnProperty.call(m, "kind")) w.uint32(10).string(m.kind); + if (m.path != null && Object.hasOwnProperty.call(m, "path")) w.uint32(18).string(m.path); + return w; + }; + CustomHttpPattern.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.api.CustomHttpPattern(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.kind = r.string(); + break; + case 2: + m.path = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return CustomHttpPattern; + })(); + return api; + })(); return google; })(); +exports.ibc = $root.ibc = (() => { + const ibc = {}; + ibc.core = (function () { + const core = {}; + core.channel = (function () { + const channel = {}; + channel.v1 = (function () { + const v1 = {}; + v1.MsgChannelOpenInit = (function () { + 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.prototype.portId = ""; + MsgChannelOpenInit.prototype.channelId = ""; + MsgChannelOpenInit.prototype.channel = null; + MsgChannelOpenInit.prototype.signer = ""; + MsgChannelOpenInit.create = function create(properties) { + return new MsgChannelOpenInit(properties); + }; + 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.ibc.core.channel.v1.Channel.encode(m.channel, w.uint32(26).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); + return w; + }; + 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.ibc.core.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.ibc.core.channel.v1.Channel.decode(r, r.uint32()); + break; + case 4: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgChannelOpenInit; + })(); + v1.MsgChannelOpenTry = (function () { + 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.prototype.portId = ""; + MsgChannelOpenTry.prototype.desiredChannelId = ""; + MsgChannelOpenTry.prototype.counterpartyChosenChannelId = ""; + MsgChannelOpenTry.prototype.channel = null; + MsgChannelOpenTry.prototype.counterpartyVersion = ""; + MsgChannelOpenTry.prototype.proofInit = $util.newBuffer([]); + MsgChannelOpenTry.prototype.proofHeight = null; + MsgChannelOpenTry.prototype.signer = ""; + MsgChannelOpenTry.create = function create(properties) { + return new MsgChannelOpenTry(properties); + }; + 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.desiredChannelId != null && Object.hasOwnProperty.call(m, "desiredChannelId")) + w.uint32(18).string(m.desiredChannelId); + if ( + m.counterpartyChosenChannelId != null && + Object.hasOwnProperty.call(m, "counterpartyChosenChannelId") + ) + w.uint32(26).string(m.counterpartyChosenChannelId); + if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) + $root.ibc.core.channel.v1.Channel.encode(m.channel, w.uint32(34).fork()).ldelim(); + if (m.counterpartyVersion != null && Object.hasOwnProperty.call(m, "counterpartyVersion")) + w.uint32(42).string(m.counterpartyVersion); + if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) + w.uint32(50).bytes(m.proofInit); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(58).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(66).string(m.signer); + return w; + }; + 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.ibc.core.channel.v1.MsgChannelOpenTry(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.portId = r.string(); + break; + case 2: + m.desiredChannelId = r.string(); + break; + case 3: + m.counterpartyChosenChannelId = r.string(); + break; + case 4: + m.channel = $root.ibc.core.channel.v1.Channel.decode(r, r.uint32()); + break; + case 5: + m.counterpartyVersion = r.string(); + break; + case 6: + m.proofInit = r.bytes(); + break; + case 7: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 8: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgChannelOpenTry; + })(); + v1.MsgChannelOpenAck = (function () { + 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.prototype.portId = ""; + MsgChannelOpenAck.prototype.channelId = ""; + MsgChannelOpenAck.prototype.counterpartyChannelId = ""; + MsgChannelOpenAck.prototype.counterpartyVersion = ""; + MsgChannelOpenAck.prototype.proofTry = $util.newBuffer([]); + MsgChannelOpenAck.prototype.proofHeight = null; + MsgChannelOpenAck.prototype.signer = ""; + MsgChannelOpenAck.create = function create(properties) { + return new MsgChannelOpenAck(properties); + }; + 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.counterpartyChannelId != null && Object.hasOwnProperty.call(m, "counterpartyChannelId")) + w.uint32(26).string(m.counterpartyChannelId); + if (m.counterpartyVersion != null && Object.hasOwnProperty.call(m, "counterpartyVersion")) + w.uint32(34).string(m.counterpartyVersion); + if (m.proofTry != null && Object.hasOwnProperty.call(m, "proofTry")) + w.uint32(42).bytes(m.proofTry); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(50).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(58).string(m.signer); + return w; + }; + 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.ibc.core.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.counterpartyChannelId = r.string(); + break; + case 4: + m.counterpartyVersion = r.string(); + break; + case 5: + m.proofTry = r.bytes(); + break; + case 6: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 7: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgChannelOpenAck; + })(); + v1.MsgChannelOpenConfirm = (function () { + 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.prototype.portId = ""; + MsgChannelOpenConfirm.prototype.channelId = ""; + MsgChannelOpenConfirm.prototype.proofAck = $util.newBuffer([]); + MsgChannelOpenConfirm.prototype.proofHeight = null; + MsgChannelOpenConfirm.prototype.signer = ""; + MsgChannelOpenConfirm.create = function create(properties) { + return new MsgChannelOpenConfirm(properties); + }; + 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")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); + return w; + }; + 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.ibc.core.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 = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgChannelOpenConfirm; + })(); + v1.MsgChannelCloseInit = (function () { + 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.prototype.portId = ""; + MsgChannelCloseInit.prototype.channelId = ""; + MsgChannelCloseInit.prototype.signer = ""; + MsgChannelCloseInit.create = function create(properties) { + return new MsgChannelCloseInit(properties); + }; + 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).string(m.signer); + return w; + }; + 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.ibc.core.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.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgChannelCloseInit; + })(); + v1.MsgChannelCloseConfirm = (function () { + 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.prototype.portId = ""; + MsgChannelCloseConfirm.prototype.channelId = ""; + MsgChannelCloseConfirm.prototype.proofInit = $util.newBuffer([]); + MsgChannelCloseConfirm.prototype.proofHeight = null; + MsgChannelCloseConfirm.prototype.signer = ""; + MsgChannelCloseConfirm.create = function create(properties) { + return new MsgChannelCloseConfirm(properties); + }; + 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")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); + return w; + }; + 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.ibc.core.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 = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgChannelCloseConfirm; + })(); + v1.MsgRecvPacket = (function () { + function MsgRecvPacket(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]]; + } + MsgRecvPacket.prototype.packet = null; + MsgRecvPacket.prototype.proof = $util.newBuffer([]); + MsgRecvPacket.prototype.proofHeight = null; + MsgRecvPacket.prototype.signer = ""; + MsgRecvPacket.create = function create(properties) { + return new MsgRecvPacket(properties); + }; + MsgRecvPacket.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) + $root.ibc.core.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")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); + return w; + }; + MsgRecvPacket.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.ibc.core.channel.v1.MsgRecvPacket(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 4: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgRecvPacket; + })(); + v1.MsgTimeout = (function () { + 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.prototype.packet = null; + MsgTimeout.prototype.proof = $util.newBuffer([]); + MsgTimeout.prototype.proofHeight = null; + MsgTimeout.prototype.nextSequenceRecv = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + MsgTimeout.prototype.signer = ""; + MsgTimeout.create = function create(properties) { + return new MsgTimeout(properties); + }; + MsgTimeout.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) + $root.ibc.core.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")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); + 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).string(m.signer); + return w; + }; + 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.ibc.core.channel.v1.MsgTimeout(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 4: + m.nextSequenceRecv = r.uint64(); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgTimeout; + })(); + v1.MsgTimeoutOnClose = (function () { + function MsgTimeoutOnClose(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]]; + } + MsgTimeoutOnClose.prototype.packet = null; + MsgTimeoutOnClose.prototype.proof = $util.newBuffer([]); + MsgTimeoutOnClose.prototype.proofClose = $util.newBuffer([]); + MsgTimeoutOnClose.prototype.proofHeight = null; + MsgTimeoutOnClose.prototype.nextSequenceRecv = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + MsgTimeoutOnClose.prototype.signer = ""; + MsgTimeoutOnClose.create = function create(properties) { + return new MsgTimeoutOnClose(properties); + }; + MsgTimeoutOnClose.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) + $root.ibc.core.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.proofClose != null && Object.hasOwnProperty.call(m, "proofClose")) + w.uint32(26).bytes(m.proofClose); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + if (m.nextSequenceRecv != null && Object.hasOwnProperty.call(m, "nextSequenceRecv")) + w.uint32(40).uint64(m.nextSequenceRecv); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(50).string(m.signer); + return w; + }; + MsgTimeoutOnClose.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.ibc.core.channel.v1.MsgTimeoutOnClose(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.packet = $root.ibc.core.channel.v1.Packet.decode(r, r.uint32()); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofClose = r.bytes(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 5: + m.nextSequenceRecv = r.uint64(); + break; + case 6: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgTimeoutOnClose; + })(); + v1.MsgAcknowledgement = (function () { + 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.prototype.packet = null; + MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); + MsgAcknowledgement.prototype.proof = $util.newBuffer([]); + MsgAcknowledgement.prototype.proofHeight = null; + MsgAcknowledgement.prototype.signer = ""; + MsgAcknowledgement.create = function create(properties) { + return new MsgAcknowledgement(properties); + }; + MsgAcknowledgement.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.packet != null && Object.hasOwnProperty.call(m, "packet")) + $root.ibc.core.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")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); + return w; + }; + 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.ibc.core.channel.v1.MsgAcknowledgement(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.packet = $root.ibc.core.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 = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgAcknowledgement; + })(); + v1.Channel = (function () { + 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.prototype.state = 0; + Channel.prototype.ordering = 0; + Channel.prototype.counterparty = null; + Channel.prototype.connectionHops = $util.emptyArray; + Channel.prototype.version = ""; + Channel.create = function create(properties) { + return new Channel(properties); + }; + 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.ibc.core.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; + }; + 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.ibc.core.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.ibc.core.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; + })(); + v1.IdentifiedChannel = (function () { + function IdentifiedChannel(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]]; + } + IdentifiedChannel.prototype.state = 0; + IdentifiedChannel.prototype.ordering = 0; + IdentifiedChannel.prototype.counterparty = null; + IdentifiedChannel.prototype.connectionHops = $util.emptyArray; + IdentifiedChannel.prototype.version = ""; + IdentifiedChannel.prototype.portId = ""; + IdentifiedChannel.prototype.channelId = ""; + IdentifiedChannel.create = function create(properties) { + return new IdentifiedChannel(properties); + }; + IdentifiedChannel.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.ibc.core.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); + if (m.portId != null && Object.hasOwnProperty.call(m, "portId")) w.uint32(50).string(m.portId); + if (m.channelId != null && Object.hasOwnProperty.call(m, "channelId")) + w.uint32(58).string(m.channelId); + return w; + }; + IdentifiedChannel.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.ibc.core.channel.v1.IdentifiedChannel(); + 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.ibc.core.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; + case 6: + m.portId = r.string(); + break; + case 7: + m.channelId = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return IdentifiedChannel; + })(); + v1.State = (function () { + const 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; + })(); + v1.Order = (function () { + const 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 () { + 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.prototype.portId = ""; + Counterparty.prototype.channelId = ""; + Counterparty.create = function create(properties) { + return new Counterparty(properties); + }; + 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; + }; + 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.ibc.core.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 () { + 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.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Packet.prototype.sourcePort = ""; + Packet.prototype.sourceChannel = ""; + Packet.prototype.destinationPort = ""; + Packet.prototype.destinationChannel = ""; + Packet.prototype.data = $util.newBuffer([]); + Packet.prototype.timeoutHeight = null; + Packet.prototype.timeoutTimestamp = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Packet.create = function create(properties) { + return new Packet(properties); + }; + 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")) + $root.ibc.core.client.v1.Height.encode(m.timeoutHeight, w.uint32(58).fork()).ldelim(); + if (m.timeoutTimestamp != null && Object.hasOwnProperty.call(m, "timeoutTimestamp")) + w.uint32(64).uint64(m.timeoutTimestamp); + return w; + }; + 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.ibc.core.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 = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 8: + m.timeoutTimestamp = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Packet; + })(); + v1.PacketAckCommitment = (function () { + function PacketAckCommitment(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]]; + } + PacketAckCommitment.prototype.portId = ""; + PacketAckCommitment.prototype.channelId = ""; + PacketAckCommitment.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PacketAckCommitment.prototype.hash = $util.newBuffer([]); + PacketAckCommitment.create = function create(properties) { + return new PacketAckCommitment(properties); + }; + PacketAckCommitment.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.sequence != null && Object.hasOwnProperty.call(m, "sequence")) + w.uint32(24).uint64(m.sequence); + if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(34).bytes(m.hash); + return w; + }; + PacketAckCommitment.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.ibc.core.channel.v1.PacketAckCommitment(); + 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.sequence = r.uint64(); + break; + case 4: + m.hash = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PacketAckCommitment; + })(); + v1.Acknowledgement = (function () { + function Acknowledgement(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]]; + } + Acknowledgement.prototype.result = $util.newBuffer([]); + Acknowledgement.prototype.error = ""; + let $oneOfFields; + Object.defineProperty(Acknowledgement.prototype, "response", { + get: $util.oneOfGetter(($oneOfFields = ["result", "error"])), + set: $util.oneOfSetter($oneOfFields), + }); + Acknowledgement.create = function create(properties) { + return new Acknowledgement(properties); + }; + Acknowledgement.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) w.uint32(170).bytes(m.result); + if (m.error != null && Object.hasOwnProperty.call(m, "error")) w.uint32(178).string(m.error); + return w; + }; + Acknowledgement.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.ibc.core.channel.v1.Acknowledgement(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 21: + m.result = r.bytes(); + break; + case 22: + m.error = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Acknowledgement; + })(); + v1.Query = (function () { + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Query.prototype.channel = function channel(request, callback) { + return this.rpcCall( + channel, + $root.ibc.core.channel.v1.QueryChannelRequest, + $root.ibc.core.channel.v1.QueryChannelResponse, + request, + callback, + ); + }), + "name", + { value: "Channel" }, + ); + Object.defineProperty( + (Query.prototype.channels = function channels(request, callback) { + return this.rpcCall( + channels, + $root.ibc.core.channel.v1.QueryChannelsRequest, + $root.ibc.core.channel.v1.QueryChannelsResponse, + request, + callback, + ); + }), + "name", + { value: "Channels" }, + ); + Object.defineProperty( + (Query.prototype.connectionChannels = function connectionChannels(request, callback) { + return this.rpcCall( + connectionChannels, + $root.ibc.core.channel.v1.QueryConnectionChannelsRequest, + $root.ibc.core.channel.v1.QueryConnectionChannelsResponse, + request, + callback, + ); + }), + "name", + { value: "ConnectionChannels" }, + ); + Object.defineProperty( + (Query.prototype.channelClientState = function channelClientState(request, callback) { + return this.rpcCall( + channelClientState, + $root.ibc.core.channel.v1.QueryChannelClientStateRequest, + $root.ibc.core.channel.v1.QueryChannelClientStateResponse, + request, + callback, + ); + }), + "name", + { value: "ChannelClientState" }, + ); + Object.defineProperty( + (Query.prototype.channelConsensusState = function channelConsensusState(request, callback) { + return this.rpcCall( + channelConsensusState, + $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest, + $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse, + request, + callback, + ); + }), + "name", + { value: "ChannelConsensusState" }, + ); + Object.defineProperty( + (Query.prototype.packetCommitment = function packetCommitment(request, callback) { + return this.rpcCall( + packetCommitment, + $root.ibc.core.channel.v1.QueryPacketCommitmentRequest, + $root.ibc.core.channel.v1.QueryPacketCommitmentResponse, + request, + callback, + ); + }), + "name", + { value: "PacketCommitment" }, + ); + Object.defineProperty( + (Query.prototype.packetCommitments = function packetCommitments(request, callback) { + return this.rpcCall( + packetCommitments, + $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest, + $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse, + request, + callback, + ); + }), + "name", + { value: "PacketCommitments" }, + ); + Object.defineProperty( + (Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { + return this.rpcCall( + packetAcknowledgement, + $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest, + $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse, + request, + callback, + ); + }), + "name", + { value: "PacketAcknowledgement" }, + ); + Object.defineProperty( + (Query.prototype.unreceivedPackets = function unreceivedPackets(request, callback) { + return this.rpcCall( + unreceivedPackets, + $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest, + $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse, + request, + callback, + ); + }), + "name", + { value: "UnreceivedPackets" }, + ); + Object.defineProperty( + (Query.prototype.unrelayedAcks = function unrelayedAcks(request, callback) { + return this.rpcCall( + unrelayedAcks, + $root.ibc.core.channel.v1.QueryUnrelayedAcksRequest, + $root.ibc.core.channel.v1.QueryUnrelayedAcksResponse, + request, + callback, + ); + }), + "name", + { value: "UnrelayedAcks" }, + ); + Object.defineProperty( + (Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { + return this.rpcCall( + nextSequenceReceive, + $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest, + $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse, + request, + callback, + ); + }), + "name", + { value: "NextSequenceReceive" }, + ); + return Query; + })(); + v1.QueryChannelRequest = (function () { + function QueryChannelRequest(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]]; + } + QueryChannelRequest.prototype.portId = ""; + QueryChannelRequest.prototype.channelId = ""; + QueryChannelRequest.create = function create(properties) { + return new QueryChannelRequest(properties); + }; + QueryChannelRequest.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; + }; + QueryChannelRequest.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.ibc.core.channel.v1.QueryChannelRequest(); + 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 QueryChannelRequest; + })(); + v1.QueryChannelResponse = (function () { + function QueryChannelResponse(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]]; + } + QueryChannelResponse.prototype.channel = null; + QueryChannelResponse.prototype.proof = $util.newBuffer([]); + QueryChannelResponse.prototype.proofPath = ""; + QueryChannelResponse.prototype.proofHeight = null; + QueryChannelResponse.create = function create(properties) { + return new QueryChannelResponse(properties); + }; + QueryChannelResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.channel != null && Object.hasOwnProperty.call(m, "channel")) + $root.ibc.core.channel.v1.Channel.encode(m.channel, w.uint32(10).fork()).ldelim(); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryChannelResponse.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.ibc.core.channel.v1.QueryChannelResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.channel = $root.ibc.core.channel.v1.Channel.decode(r, r.uint32()); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryChannelResponse; + })(); + v1.QueryChannelsRequest = (function () { + function QueryChannelsRequest(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]]; + } + QueryChannelsRequest.prototype.pagination = null; + QueryChannelsRequest.create = function create(properties) { + return new QueryChannelsRequest(properties); + }; + QueryChannelsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryChannelsRequest.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.ibc.core.channel.v1.QueryChannelsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryChannelsRequest; + })(); + v1.QueryChannelsResponse = (function () { + function QueryChannelsResponse(p) { + this.channels = []; + 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]]; + } + QueryChannelsResponse.prototype.channels = $util.emptyArray; + QueryChannelsResponse.prototype.pagination = null; + QueryChannelsResponse.prototype.height = null; + QueryChannelsResponse.create = function create(properties) { + return new QueryChannelsResponse(properties); + }; + QueryChannelsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.channels != null && m.channels.length) { + for (var i = 0; i < m.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode( + m.channels[i], + w.uint32(10).fork(), + ).ldelim(); + } + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryChannelsResponse.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.ibc.core.channel.v1.QueryChannelsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.channels && m.channels.length)) m.channels = []; + m.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); + break; + case 3: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryChannelsResponse; + })(); + v1.QueryConnectionChannelsRequest = (function () { + function QueryConnectionChannelsRequest(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]]; + } + QueryConnectionChannelsRequest.prototype.connection = ""; + QueryConnectionChannelsRequest.prototype.pagination = null; + QueryConnectionChannelsRequest.create = function create(properties) { + return new QueryConnectionChannelsRequest(properties); + }; + QueryConnectionChannelsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.connection != null && Object.hasOwnProperty.call(m, "connection")) + w.uint32(10).string(m.connection); + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); + return w; + }; + QueryConnectionChannelsRequest.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.ibc.core.channel.v1.QueryConnectionChannelsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.connection = r.string(); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionChannelsRequest; + })(); + v1.QueryConnectionChannelsResponse = (function () { + function QueryConnectionChannelsResponse(p) { + this.channels = []; + 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]]; + } + QueryConnectionChannelsResponse.prototype.channels = $util.emptyArray; + QueryConnectionChannelsResponse.prototype.pagination = null; + QueryConnectionChannelsResponse.prototype.height = null; + QueryConnectionChannelsResponse.create = function create(properties) { + return new QueryConnectionChannelsResponse(properties); + }; + QueryConnectionChannelsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.channels != null && m.channels.length) { + for (var i = 0; i < m.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode( + m.channels[i], + w.uint32(10).fork(), + ).ldelim(); + } + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryConnectionChannelsResponse.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.ibc.core.channel.v1.QueryConnectionChannelsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.channels && m.channels.length)) m.channels = []; + m.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); + break; + case 3: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionChannelsResponse; + })(); + v1.QueryChannelClientStateRequest = (function () { + function QueryChannelClientStateRequest(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]]; + } + QueryChannelClientStateRequest.prototype.portId = ""; + QueryChannelClientStateRequest.prototype.channelId = ""; + QueryChannelClientStateRequest.create = function create(properties) { + return new QueryChannelClientStateRequest(properties); + }; + QueryChannelClientStateRequest.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; + }; + QueryChannelClientStateRequest.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.ibc.core.channel.v1.QueryChannelClientStateRequest(); + 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 QueryChannelClientStateRequest; + })(); + v1.QueryChannelClientStateResponse = (function () { + function QueryChannelClientStateResponse(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]]; + } + QueryChannelClientStateResponse.prototype.identifiedClientState = null; + QueryChannelClientStateResponse.prototype.proof = $util.newBuffer([]); + QueryChannelClientStateResponse.prototype.proofPath = ""; + QueryChannelClientStateResponse.prototype.proofHeight = null; + QueryChannelClientStateResponse.create = function create(properties) { + return new QueryChannelClientStateResponse(properties); + }; + QueryChannelClientStateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.identifiedClientState != null && Object.hasOwnProperty.call(m, "identifiedClientState")) + $root.ibc.core.client.v1.IdentifiedClientState.encode( + m.identifiedClientState, + w.uint32(10).fork(), + ).ldelim(); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryChannelClientStateResponse.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.ibc.core.channel.v1.QueryChannelClientStateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.identifiedClientState = $root.ibc.core.client.v1.IdentifiedClientState.decode( + r, + r.uint32(), + ); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryChannelClientStateResponse; + })(); + v1.QueryChannelConsensusStateRequest = (function () { + function QueryChannelConsensusStateRequest(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]]; + } + QueryChannelConsensusStateRequest.prototype.portId = ""; + QueryChannelConsensusStateRequest.prototype.channelId = ""; + QueryChannelConsensusStateRequest.prototype.versionNumber = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; + QueryChannelConsensusStateRequest.prototype.versionHeight = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; + QueryChannelConsensusStateRequest.create = function create(properties) { + return new QueryChannelConsensusStateRequest(properties); + }; + QueryChannelConsensusStateRequest.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.versionNumber != null && Object.hasOwnProperty.call(m, "versionNumber")) + w.uint32(24).uint64(m.versionNumber); + if (m.versionHeight != null && Object.hasOwnProperty.call(m, "versionHeight")) + w.uint32(32).uint64(m.versionHeight); + return w; + }; + QueryChannelConsensusStateRequest.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.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); + 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.versionNumber = r.uint64(); + break; + case 4: + m.versionHeight = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryChannelConsensusStateRequest; + })(); + v1.QueryChannelConsensusStateResponse = (function () { + function QueryChannelConsensusStateResponse(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]]; + } + QueryChannelConsensusStateResponse.prototype.consensusState = null; + QueryChannelConsensusStateResponse.prototype.clientId = ""; + QueryChannelConsensusStateResponse.prototype.proof = $util.newBuffer([]); + QueryChannelConsensusStateResponse.prototype.proofPath = ""; + QueryChannelConsensusStateResponse.prototype.proofHeight = null; + QueryChannelConsensusStateResponse.create = function create(properties) { + return new QueryChannelConsensusStateResponse(properties); + }; + QueryChannelConsensusStateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.consensusState != null && Object.hasOwnProperty.call(m, "consensusState")) + $root.google.protobuf.Any.encode(m.consensusState, w.uint32(10).fork()).ldelim(); + if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(18).string(m.clientId); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(26).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(34).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(42).fork()).ldelim(); + return w; + }; + QueryChannelConsensusStateResponse.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.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.consensusState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 2: + m.clientId = r.string(); + break; + case 3: + m.proof = r.bytes(); + break; + case 4: + m.proofPath = r.string(); + break; + case 5: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryChannelConsensusStateResponse; + })(); + v1.QueryPacketCommitmentRequest = (function () { + function QueryPacketCommitmentRequest(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]]; + } + QueryPacketCommitmentRequest.prototype.portId = ""; + QueryPacketCommitmentRequest.prototype.channelId = ""; + QueryPacketCommitmentRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + QueryPacketCommitmentRequest.create = function create(properties) { + return new QueryPacketCommitmentRequest(properties); + }; + QueryPacketCommitmentRequest.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.sequence != null && Object.hasOwnProperty.call(m, "sequence")) + w.uint32(24).uint64(m.sequence); + return w; + }; + QueryPacketCommitmentRequest.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.ibc.core.channel.v1.QueryPacketCommitmentRequest(); + 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.sequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketCommitmentRequest; + })(); + v1.QueryPacketCommitmentResponse = (function () { + function QueryPacketCommitmentResponse(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]]; + } + QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); + QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); + QueryPacketCommitmentResponse.prototype.proofPath = ""; + QueryPacketCommitmentResponse.prototype.proofHeight = null; + QueryPacketCommitmentResponse.create = function create(properties) { + return new QueryPacketCommitmentResponse(properties); + }; + QueryPacketCommitmentResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.commitment != null && Object.hasOwnProperty.call(m, "commitment")) + w.uint32(10).bytes(m.commitment); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryPacketCommitmentResponse.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.ibc.core.channel.v1.QueryPacketCommitmentResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.commitment = r.bytes(); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketCommitmentResponse; + })(); + v1.QueryPacketCommitmentsRequest = (function () { + function QueryPacketCommitmentsRequest(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]]; + } + QueryPacketCommitmentsRequest.prototype.portId = ""; + QueryPacketCommitmentsRequest.prototype.channelId = ""; + QueryPacketCommitmentsRequest.prototype.pagination = null; + QueryPacketCommitmentsRequest.create = function create(properties) { + return new QueryPacketCommitmentsRequest(properties); + }; + QueryPacketCommitmentsRequest.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.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryPacketCommitmentsRequest.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.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); + 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.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketCommitmentsRequest; + })(); + v1.QueryPacketCommitmentsResponse = (function () { + function QueryPacketCommitmentsResponse(p) { + this.commitments = []; + 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]]; + } + QueryPacketCommitmentsResponse.prototype.commitments = $util.emptyArray; + QueryPacketCommitmentsResponse.prototype.pagination = null; + QueryPacketCommitmentsResponse.prototype.height = null; + QueryPacketCommitmentsResponse.create = function create(properties) { + return new QueryPacketCommitmentsResponse(properties); + }; + QueryPacketCommitmentsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.commitments != null && m.commitments.length) { + for (var i = 0; i < m.commitments.length; ++i) + $root.ibc.core.channel.v1.PacketAckCommitment.encode( + m.commitments[i], + w.uint32(10).fork(), + ).ldelim(); + } + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryPacketCommitmentsResponse.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.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.commitments && m.commitments.length)) m.commitments = []; + m.commitments.push($root.ibc.core.channel.v1.PacketAckCommitment.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); + break; + case 3: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketCommitmentsResponse; + })(); + v1.QueryPacketAcknowledgementRequest = (function () { + function QueryPacketAcknowledgementRequest(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]]; + } + QueryPacketAcknowledgementRequest.prototype.portId = ""; + QueryPacketAcknowledgementRequest.prototype.channelId = ""; + QueryPacketAcknowledgementRequest.prototype.sequence = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; + QueryPacketAcknowledgementRequest.create = function create(properties) { + return new QueryPacketAcknowledgementRequest(properties); + }; + QueryPacketAcknowledgementRequest.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.sequence != null && Object.hasOwnProperty.call(m, "sequence")) + w.uint32(24).uint64(m.sequence); + return w; + }; + QueryPacketAcknowledgementRequest.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.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + 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.sequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketAcknowledgementRequest; + })(); + v1.QueryPacketAcknowledgementResponse = (function () { + function QueryPacketAcknowledgementResponse(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]]; + } + QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); + QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); + QueryPacketAcknowledgementResponse.prototype.proofPath = ""; + QueryPacketAcknowledgementResponse.prototype.proofHeight = null; + QueryPacketAcknowledgementResponse.create = function create(properties) { + return new QueryPacketAcknowledgementResponse(properties); + }; + QueryPacketAcknowledgementResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.acknowledgement != null && Object.hasOwnProperty.call(m, "acknowledgement")) + w.uint32(10).bytes(m.acknowledgement); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryPacketAcknowledgementResponse.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.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.acknowledgement = r.bytes(); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryPacketAcknowledgementResponse; + })(); + v1.QueryUnreceivedPacketsRequest = (function () { + function QueryUnreceivedPacketsRequest(p) { + this.packetCommitmentSequences = []; + 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]]; + } + QueryUnreceivedPacketsRequest.prototype.portId = ""; + QueryUnreceivedPacketsRequest.prototype.channelId = ""; + QueryUnreceivedPacketsRequest.prototype.packetCommitmentSequences = $util.emptyArray; + QueryUnreceivedPacketsRequest.create = function create(properties) { + return new QueryUnreceivedPacketsRequest(properties); + }; + QueryUnreceivedPacketsRequest.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.packetCommitmentSequences != null && m.packetCommitmentSequences.length) { + w.uint32(26).fork(); + for (var i = 0; i < m.packetCommitmentSequences.length; ++i) + w.uint64(m.packetCommitmentSequences[i]); + w.ldelim(); + } + return w; + }; + QueryUnreceivedPacketsRequest.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.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); + 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: + if (!(m.packetCommitmentSequences && m.packetCommitmentSequences.length)) + m.packetCommitmentSequences = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.packetCommitmentSequences.push(r.uint64()); + } else m.packetCommitmentSequences.push(r.uint64()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryUnreceivedPacketsRequest; + })(); + v1.QueryUnreceivedPacketsResponse = (function () { + function QueryUnreceivedPacketsResponse(p) { + this.sequences = []; + 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]]; + } + QueryUnreceivedPacketsResponse.prototype.sequences = $util.emptyArray; + QueryUnreceivedPacketsResponse.prototype.height = null; + QueryUnreceivedPacketsResponse.create = function create(properties) { + return new QueryUnreceivedPacketsResponse(properties); + }; + QueryUnreceivedPacketsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sequences != null && m.sequences.length) { + w.uint32(10).fork(); + for (var i = 0; i < m.sequences.length; ++i) w.uint64(m.sequences[i]); + w.ldelim(); + } + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(18).fork()).ldelim(); + return w; + }; + QueryUnreceivedPacketsResponse.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.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.sequences && m.sequences.length)) m.sequences = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.sequences.push(r.uint64()); + } else m.sequences.push(r.uint64()); + break; + case 2: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryUnreceivedPacketsResponse; + })(); + v1.QueryUnrelayedAcksRequest = (function () { + function QueryUnrelayedAcksRequest(p) { + this.packetCommitmentSequences = []; + 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]]; + } + QueryUnrelayedAcksRequest.prototype.portId = ""; + QueryUnrelayedAcksRequest.prototype.channelId = ""; + QueryUnrelayedAcksRequest.prototype.packetCommitmentSequences = $util.emptyArray; + QueryUnrelayedAcksRequest.create = function create(properties) { + return new QueryUnrelayedAcksRequest(properties); + }; + QueryUnrelayedAcksRequest.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.packetCommitmentSequences != null && m.packetCommitmentSequences.length) { + w.uint32(26).fork(); + for (var i = 0; i < m.packetCommitmentSequences.length; ++i) + w.uint64(m.packetCommitmentSequences[i]); + w.ldelim(); + } + return w; + }; + QueryUnrelayedAcksRequest.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.ibc.core.channel.v1.QueryUnrelayedAcksRequest(); + 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: + if (!(m.packetCommitmentSequences && m.packetCommitmentSequences.length)) + m.packetCommitmentSequences = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.packetCommitmentSequences.push(r.uint64()); + } else m.packetCommitmentSequences.push(r.uint64()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryUnrelayedAcksRequest; + })(); + v1.QueryUnrelayedAcksResponse = (function () { + function QueryUnrelayedAcksResponse(p) { + this.sequences = []; + 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]]; + } + QueryUnrelayedAcksResponse.prototype.sequences = $util.emptyArray; + QueryUnrelayedAcksResponse.prototype.height = null; + QueryUnrelayedAcksResponse.create = function create(properties) { + return new QueryUnrelayedAcksResponse(properties); + }; + QueryUnrelayedAcksResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sequences != null && m.sequences.length) { + w.uint32(10).fork(); + for (var i = 0; i < m.sequences.length; ++i) w.uint64(m.sequences[i]); + w.ldelim(); + } + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(18).fork()).ldelim(); + return w; + }; + QueryUnrelayedAcksResponse.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.ibc.core.channel.v1.QueryUnrelayedAcksResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.sequences && m.sequences.length)) m.sequences = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.sequences.push(r.uint64()); + } else m.sequences.push(r.uint64()); + break; + case 2: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryUnrelayedAcksResponse; + })(); + v1.QueryNextSequenceReceiveRequest = (function () { + function QueryNextSequenceReceiveRequest(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]]; + } + QueryNextSequenceReceiveRequest.prototype.portId = ""; + QueryNextSequenceReceiveRequest.prototype.channelId = ""; + QueryNextSequenceReceiveRequest.create = function create(properties) { + return new QueryNextSequenceReceiveRequest(properties); + }; + QueryNextSequenceReceiveRequest.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; + }; + QueryNextSequenceReceiveRequest.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.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); + 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 QueryNextSequenceReceiveRequest; + })(); + v1.QueryNextSequenceReceiveResponse = (function () { + function QueryNextSequenceReceiveResponse(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]]; + } + QueryNextSequenceReceiveResponse.prototype.nextSequenceReceive = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; + QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); + QueryNextSequenceReceiveResponse.prototype.proofPath = ""; + QueryNextSequenceReceiveResponse.prototype.proofHeight = null; + QueryNextSequenceReceiveResponse.create = function create(properties) { + return new QueryNextSequenceReceiveResponse(properties); + }; + QueryNextSequenceReceiveResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.nextSequenceReceive != null && Object.hasOwnProperty.call(m, "nextSequenceReceive")) + w.uint32(8).uint64(m.nextSequenceReceive); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryNextSequenceReceiveResponse.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.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.nextSequenceReceive = r.uint64(); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryNextSequenceReceiveResponse; + })(); + return v1; + })(); + return channel; + })(); + core.client = (function () { + const client = {}; + client.v1 = (function () { + const v1 = {}; + v1.IdentifiedClientState = (function () { + function IdentifiedClientState(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]]; + } + IdentifiedClientState.prototype.clientId = ""; + IdentifiedClientState.prototype.clientState = null; + IdentifiedClientState.create = function create(properties) { + return new IdentifiedClientState(properties); + }; + IdentifiedClientState.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.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); + return w; + }; + IdentifiedClientState.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.ibc.core.client.v1.IdentifiedClientState(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return IdentifiedClientState; + })(); + v1.ConsensusStateWithHeight = (function () { + function ConsensusStateWithHeight(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]]; + } + ConsensusStateWithHeight.prototype.height = null; + ConsensusStateWithHeight.prototype.consensusState = null; + ConsensusStateWithHeight.create = function create(properties) { + return new ConsensusStateWithHeight(properties); + }; + ConsensusStateWithHeight.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(10).fork()).ldelim(); + if (m.consensusState != null && Object.hasOwnProperty.call(m, "consensusState")) + $root.google.protobuf.Any.encode(m.consensusState, w.uint32(18).fork()).ldelim(); + return w; + }; + ConsensusStateWithHeight.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.ibc.core.client.v1.ConsensusStateWithHeight(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 2: + m.consensusState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ConsensusStateWithHeight; + })(); + v1.ClientConsensusStates = (function () { + function ClientConsensusStates(p) { + this.consensusStates = []; + 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]]; + } + ClientConsensusStates.prototype.clientId = ""; + ClientConsensusStates.prototype.consensusStates = $util.emptyArray; + ClientConsensusStates.create = function create(properties) { + return new ClientConsensusStates(properties); + }; + ClientConsensusStates.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.consensusStates != null && m.consensusStates.length) { + for (var i = 0; i < m.consensusStates.length; ++i) + $root.ibc.core.client.v1.ConsensusStateWithHeight.encode( + m.consensusStates[i], + w.uint32(18).fork(), + ).ldelim(); + } + return w; + }; + ClientConsensusStates.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.ibc.core.client.v1.ClientConsensusStates(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + if (!(m.consensusStates && m.consensusStates.length)) m.consensusStates = []; + m.consensusStates.push( + $root.ibc.core.client.v1.ConsensusStateWithHeight.decode(r, r.uint32()), + ); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ClientConsensusStates; + })(); + v1.ClientUpdateProposal = (function () { + function ClientUpdateProposal(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]]; + } + ClientUpdateProposal.prototype.title = ""; + ClientUpdateProposal.prototype.description = ""; + ClientUpdateProposal.prototype.clientId = ""; + ClientUpdateProposal.prototype.header = null; + ClientUpdateProposal.create = function create(properties) { + return new ClientUpdateProposal(properties); + }; + ClientUpdateProposal.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.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(26).string(m.clientId); + if (m.header != null && Object.hasOwnProperty.call(m, "header")) + $root.google.protobuf.Any.encode(m.header, w.uint32(34).fork()).ldelim(); + return w; + }; + ClientUpdateProposal.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.ibc.core.client.v1.ClientUpdateProposal(); + 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.clientId = r.string(); + break; + case 4: + m.header = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ClientUpdateProposal; + })(); + v1.MsgCreateClient = (function () { + 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.prototype.clientId = ""; + MsgCreateClient.prototype.clientState = null; + MsgCreateClient.prototype.consensusState = null; + MsgCreateClient.prototype.signer = ""; + MsgCreateClient.create = function create(properties) { + return new MsgCreateClient(properties); + }; + MsgCreateClient.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.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); + if (m.consensusState != null && Object.hasOwnProperty.call(m, "consensusState")) + $root.google.protobuf.Any.encode(m.consensusState, w.uint32(26).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); + return w; + }; + 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.ibc.core.client.v1.MsgCreateClient(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.consensusState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 4: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgCreateClient; + })(); + v1.MsgUpdateClient = (function () { + function MsgUpdateClient(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]]; + } + MsgUpdateClient.prototype.clientId = ""; + MsgUpdateClient.prototype.header = null; + MsgUpdateClient.prototype.signer = ""; + MsgUpdateClient.create = function create(properties) { + return new MsgUpdateClient(properties); + }; + MsgUpdateClient.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.header != null && Object.hasOwnProperty.call(m, "header")) + $root.google.protobuf.Any.encode(m.header, w.uint32(18).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); + return w; + }; + MsgUpdateClient.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.ibc.core.client.v1.MsgUpdateClient(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.header = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpdateClient; + })(); + v1.MsgUpgradeClient = (function () { + function MsgUpgradeClient(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]]; + } + MsgUpgradeClient.prototype.clientId = ""; + MsgUpgradeClient.prototype.clientState = null; + MsgUpgradeClient.prototype.upgradeHeight = null; + MsgUpgradeClient.prototype.proofUpgrade = $util.newBuffer([]); + MsgUpgradeClient.prototype.signer = ""; + MsgUpgradeClient.create = function create(properties) { + return new MsgUpgradeClient(properties); + }; + MsgUpgradeClient.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.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(18).fork()).ldelim(); + if (m.upgradeHeight != null && Object.hasOwnProperty.call(m, "upgradeHeight")) + $root.ibc.core.client.v1.Height.encode(m.upgradeHeight, w.uint32(26).fork()).ldelim(); + if (m.proofUpgrade != null && Object.hasOwnProperty.call(m, "proofUpgrade")) + w.uint32(34).bytes(m.proofUpgrade); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); + return w; + }; + MsgUpgradeClient.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.ibc.core.client.v1.MsgUpgradeClient(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.upgradeHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 4: + m.proofUpgrade = r.bytes(); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgUpgradeClient; + })(); + v1.MsgSubmitMisbehaviour = (function () { + function MsgSubmitMisbehaviour(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]]; + } + MsgSubmitMisbehaviour.prototype.clientId = ""; + MsgSubmitMisbehaviour.prototype.misbehaviour = null; + MsgSubmitMisbehaviour.prototype.signer = ""; + MsgSubmitMisbehaviour.create = function create(properties) { + return new MsgSubmitMisbehaviour(properties); + }; + MsgSubmitMisbehaviour.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.misbehaviour != null && Object.hasOwnProperty.call(m, "misbehaviour")) + $root.google.protobuf.Any.encode(m.misbehaviour, w.uint32(18).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(26).string(m.signer); + return w; + }; + MsgSubmitMisbehaviour.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.ibc.core.client.v1.MsgSubmitMisbehaviour(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.misbehaviour = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 3: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgSubmitMisbehaviour; + })(); + v1.Height = (function () { + function Height(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]]; + } + Height.prototype.versionNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Height.prototype.versionHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Height.create = function create(properties) { + return new Height(properties); + }; + Height.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.versionNumber != null && Object.hasOwnProperty.call(m, "versionNumber")) + w.uint32(8).uint64(m.versionNumber); + if (m.versionHeight != null && Object.hasOwnProperty.call(m, "versionHeight")) + w.uint32(16).uint64(m.versionHeight); + return w; + }; + Height.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.ibc.core.client.v1.Height(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.versionNumber = r.uint64(); + break; + case 2: + m.versionHeight = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Height; + })(); + return v1; + })(); + return client; + })(); + core.commitment = (function () { + const commitment = {}; + commitment.v1 = (function () { + const v1 = {}; + v1.MerkleRoot = (function () { + 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.prototype.hash = $util.newBuffer([]); + MerkleRoot.create = function create(properties) { + return new MerkleRoot(properties); + }; + 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; + }; + 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.ibc.core.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 () { + 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.prototype.keyPrefix = $util.newBuffer([]); + MerklePrefix.create = function create(properties) { + return new MerklePrefix(properties); + }; + 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; + }; + 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.ibc.core.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 () { + 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.prototype.keyPath = null; + MerklePath.create = function create(properties) { + return new MerklePath(properties); + }; + MerklePath.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.keyPath != null && Object.hasOwnProperty.call(m, "keyPath")) + $root.ibc.core.commitment.v1.KeyPath.encode(m.keyPath, w.uint32(10).fork()).ldelim(); + return w; + }; + 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.ibc.core.commitment.v1.MerklePath(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.keyPath = $root.ibc.core.commitment.v1.KeyPath.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MerklePath; + })(); + v1.MerkleProof = (function () { + 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.prototype.proof = null; + MerkleProof.create = function create(properties) { + return new MerkleProof(properties); + }; + MerkleProof.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) + $root.tendermint.crypto.ProofOps.encode(m.proof, w.uint32(10).fork()).ldelim(); + return w; + }; + 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.ibc.core.commitment.v1.MerkleProof(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.proof = $root.tendermint.crypto.ProofOps.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MerkleProof; + })(); + v1.KeyPath = (function () { + 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.prototype.keys = $util.emptyArray; + KeyPath.create = function create(properties) { + return new KeyPath(properties); + }; + 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.ibc.core.commitment.v1.Key.encode(m.keys[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + 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.ibc.core.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.ibc.core.commitment.v1.Key.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return KeyPath; + })(); + v1.Key = (function () { + 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.prototype.name = $util.newBuffer([]); + Key.prototype.enc = 0; + Key.create = function create(properties) { + return new Key(properties); + }; + 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; + }; + 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.ibc.core.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; + })(); + v1.KeyEncoding = (function () { + const 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; + })(); + core.connection = (function () { + const connection = {}; + connection.v1 = (function () { + const v1 = {}; + v1.MsgConnectionOpenInit = (function () { + 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.prototype.clientId = ""; + MsgConnectionOpenInit.prototype.connectionId = ""; + MsgConnectionOpenInit.prototype.counterparty = null; + MsgConnectionOpenInit.prototype.version = ""; + MsgConnectionOpenInit.prototype.signer = ""; + MsgConnectionOpenInit.create = function create(properties) { + return new MsgConnectionOpenInit(properties); + }; + 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.ibc.core.connection.v1.Counterparty.encode(m.counterparty, w.uint32(26).fork()).ldelim(); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(34).string(m.version); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(42).string(m.signer); + return w; + }; + 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.ibc.core.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.ibc.core.connection.v1.Counterparty.decode(r, r.uint32()); + break; + case 4: + m.version = r.string(); + break; + case 5: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgConnectionOpenInit; + })(); + v1.MsgConnectionOpenTry = (function () { + 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.prototype.clientId = ""; + MsgConnectionOpenTry.prototype.desiredConnectionId = ""; + MsgConnectionOpenTry.prototype.counterpartyChosenConnectionId = ""; + MsgConnectionOpenTry.prototype.clientState = null; + MsgConnectionOpenTry.prototype.counterparty = null; + MsgConnectionOpenTry.prototype.counterpartyVersions = $util.emptyArray; + MsgConnectionOpenTry.prototype.proofHeight = null; + MsgConnectionOpenTry.prototype.proofInit = $util.newBuffer([]); + MsgConnectionOpenTry.prototype.proofClient = $util.newBuffer([]); + MsgConnectionOpenTry.prototype.proofConsensus = $util.newBuffer([]); + MsgConnectionOpenTry.prototype.consensusHeight = null; + MsgConnectionOpenTry.prototype.signer = ""; + MsgConnectionOpenTry.create = function create(properties) { + return new MsgConnectionOpenTry(properties); + }; + 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.desiredConnectionId != null && Object.hasOwnProperty.call(m, "desiredConnectionId")) + w.uint32(18).string(m.desiredConnectionId); + if ( + m.counterpartyChosenConnectionId != null && + Object.hasOwnProperty.call(m, "counterpartyChosenConnectionId") + ) + w.uint32(26).string(m.counterpartyChosenConnectionId); + if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(34).fork()).ldelim(); + if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(m.counterparty, w.uint32(42).fork()).ldelim(); + if (m.counterpartyVersions != null && m.counterpartyVersions.length) { + for (var i = 0; i < m.counterpartyVersions.length; ++i) + w.uint32(50).string(m.counterpartyVersions[i]); + } + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(58).fork()).ldelim(); + if (m.proofInit != null && Object.hasOwnProperty.call(m, "proofInit")) + w.uint32(66).bytes(m.proofInit); + if (m.proofClient != null && Object.hasOwnProperty.call(m, "proofClient")) + w.uint32(74).bytes(m.proofClient); + if (m.proofConsensus != null && Object.hasOwnProperty.call(m, "proofConsensus")) + w.uint32(82).bytes(m.proofConsensus); + if (m.consensusHeight != null && Object.hasOwnProperty.call(m, "consensusHeight")) + $root.ibc.core.client.v1.Height.encode(m.consensusHeight, w.uint32(90).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(98).string(m.signer); + return w; + }; + 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.ibc.core.connection.v1.MsgConnectionOpenTry(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + m.desiredConnectionId = r.string(); + break; + case 3: + m.counterpartyChosenConnectionId = r.string(); + break; + case 4: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 5: + m.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(r, r.uint32()); + break; + case 6: + if (!(m.counterpartyVersions && m.counterpartyVersions.length)) m.counterpartyVersions = []; + m.counterpartyVersions.push(r.string()); + break; + case 7: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 8: + m.proofInit = r.bytes(); + break; + case 9: + m.proofClient = r.bytes(); + break; + case 10: + m.proofConsensus = r.bytes(); + break; + case 11: + m.consensusHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 12: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgConnectionOpenTry; + })(); + v1.MsgConnectionOpenAck = (function () { + 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.prototype.connectionId = ""; + MsgConnectionOpenAck.prototype.counterpartyConnectionId = ""; + MsgConnectionOpenAck.prototype.version = ""; + MsgConnectionOpenAck.prototype.clientState = null; + MsgConnectionOpenAck.prototype.proofHeight = null; + MsgConnectionOpenAck.prototype.proofTry = $util.newBuffer([]); + MsgConnectionOpenAck.prototype.proofClient = $util.newBuffer([]); + MsgConnectionOpenAck.prototype.proofConsensus = $util.newBuffer([]); + MsgConnectionOpenAck.prototype.consensusHeight = null; + MsgConnectionOpenAck.prototype.signer = ""; + MsgConnectionOpenAck.create = function create(properties) { + return new MsgConnectionOpenAck(properties); + }; + 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.counterpartyConnectionId != null && + Object.hasOwnProperty.call(m, "counterpartyConnectionId") + ) + w.uint32(18).string(m.counterpartyConnectionId); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(26).string(m.version); + if (m.clientState != null && Object.hasOwnProperty.call(m, "clientState")) + $root.google.protobuf.Any.encode(m.clientState, w.uint32(34).fork()).ldelim(); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(42).fork()).ldelim(); + if (m.proofTry != null && Object.hasOwnProperty.call(m, "proofTry")) + w.uint32(50).bytes(m.proofTry); + if (m.proofClient != null && Object.hasOwnProperty.call(m, "proofClient")) + w.uint32(58).bytes(m.proofClient); + if (m.proofConsensus != null && Object.hasOwnProperty.call(m, "proofConsensus")) + w.uint32(66).bytes(m.proofConsensus); + if (m.consensusHeight != null && Object.hasOwnProperty.call(m, "consensusHeight")) + $root.ibc.core.client.v1.Height.encode(m.consensusHeight, w.uint32(74).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(82).string(m.signer); + return w; + }; + 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.ibc.core.connection.v1.MsgConnectionOpenAck(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.connectionId = r.string(); + break; + case 2: + m.counterpartyConnectionId = r.string(); + break; + case 3: + m.version = r.string(); + break; + case 4: + m.clientState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 5: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 6: + m.proofTry = r.bytes(); + break; + case 7: + m.proofClient = r.bytes(); + break; + case 8: + m.proofConsensus = r.bytes(); + break; + case 9: + m.consensusHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 10: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgConnectionOpenAck; + })(); + v1.MsgConnectionOpenConfirm = (function () { + 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.prototype.connectionId = ""; + MsgConnectionOpenConfirm.prototype.proofAck = $util.newBuffer([]); + MsgConnectionOpenConfirm.prototype.proofHeight = null; + MsgConnectionOpenConfirm.prototype.signer = ""; + MsgConnectionOpenConfirm.create = function create(properties) { + return new MsgConnectionOpenConfirm(properties); + }; + 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")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(26).fork()).ldelim(); + if (m.signer != null && Object.hasOwnProperty.call(m, "signer")) w.uint32(34).string(m.signer); + return w; + }; + 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.ibc.core.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 = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + case 4: + m.signer = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgConnectionOpenConfirm; + })(); + v1.ConnectionEnd = (function () { + 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.prototype.clientId = ""; + ConnectionEnd.prototype.versions = $util.emptyArray; + ConnectionEnd.prototype.state = 0; + ConnectionEnd.prototype.counterparty = null; + ConnectionEnd.create = function create(properties) { + return new ConnectionEnd(properties); + }; + ConnectionEnd.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.versions != null && m.versions.length) { + for (var i = 0; i < m.versions.length; ++i) w.uint32(18).string(m.versions[i]); + } + if (m.state != null && Object.hasOwnProperty.call(m, "state")) w.uint32(24).int32(m.state); + if (m.counterparty != null && Object.hasOwnProperty.call(m, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(m.counterparty, w.uint32(34).fork()).ldelim(); + return w; + }; + 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.ibc.core.connection.v1.ConnectionEnd(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + if (!(m.versions && m.versions.length)) m.versions = []; + m.versions.push(r.string()); + break; + case 3: + m.state = r.int32(); + break; + case 4: + m.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ConnectionEnd; + })(); + v1.IdentifiedConnection = (function () { + function IdentifiedConnection(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]]; + } + IdentifiedConnection.prototype.id = ""; + IdentifiedConnection.prototype.clientId = ""; + IdentifiedConnection.prototype.versions = $util.emptyArray; + IdentifiedConnection.prototype.state = 0; + IdentifiedConnection.prototype.counterparty = null; + IdentifiedConnection.create = function create(properties) { + return new IdentifiedConnection(properties); + }; + IdentifiedConnection.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.ibc.core.connection.v1.Counterparty.encode(m.counterparty, w.uint32(42).fork()).ldelim(); + return w; + }; + IdentifiedConnection.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.ibc.core.connection.v1.IdentifiedConnection(); + 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.ibc.core.connection.v1.Counterparty.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return IdentifiedConnection; + })(); + v1.State = (function () { + const 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 () { + 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.prototype.clientId = ""; + Counterparty.prototype.connectionId = ""; + Counterparty.prototype.prefix = null; + Counterparty.create = function create(properties) { + return new Counterparty(properties); + }; + 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.ibc.core.commitment.v1.MerklePrefix.encode(m.prefix, w.uint32(26).fork()).ldelim(); + return w; + }; + 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.ibc.core.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.ibc.core.commitment.v1.MerklePrefix.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Counterparty; + })(); + v1.ClientPaths = (function () { + 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.prototype.paths = $util.emptyArray; + ClientPaths.create = function create(properties) { + return new ClientPaths(properties); + }; + 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; + }; + 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.ibc.core.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; + })(); + v1.ConnectionPaths = (function () { + function ConnectionPaths(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]]; + } + ConnectionPaths.prototype.clientId = ""; + ConnectionPaths.prototype.paths = $util.emptyArray; + ConnectionPaths.create = function create(properties) { + return new ConnectionPaths(properties); + }; + ConnectionPaths.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.paths != null && m.paths.length) { + for (var i = 0; i < m.paths.length; ++i) w.uint32(18).string(m.paths[i]); + } + return w; + }; + ConnectionPaths.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.ibc.core.connection.v1.ConnectionPaths(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + case 2: + if (!(m.paths && m.paths.length)) m.paths = []; + m.paths.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ConnectionPaths; + })(); + v1.Version = (function () { + function Version(p) { + this.features = []; + 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]]; + } + Version.prototype.identifier = ""; + Version.prototype.features = $util.emptyArray; + Version.create = function create(properties) { + return new Version(properties); + }; + Version.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.identifier != null && Object.hasOwnProperty.call(m, "identifier")) + w.uint32(10).string(m.identifier); + if (m.features != null && m.features.length) { + for (var i = 0; i < m.features.length; ++i) w.uint32(18).string(m.features[i]); + } + return w; + }; + Version.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.ibc.core.connection.v1.Version(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.identifier = r.string(); + break; + case 2: + if (!(m.features && m.features.length)) m.features = []; + m.features.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Version; + })(); + v1.Query = (function () { + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Query.prototype.connection = function connection(request, callback) { + return this.rpcCall( + connection, + $root.ibc.core.connection.v1.QueryConnectionRequest, + $root.ibc.core.connection.v1.QueryConnectionResponse, + request, + callback, + ); + }), + "name", + { value: "Connection" }, + ); + Object.defineProperty( + (Query.prototype.connections = function connections(request, callback) { + return this.rpcCall( + connections, + $root.ibc.core.connection.v1.QueryConnectionsRequest, + $root.ibc.core.connection.v1.QueryConnectionsResponse, + request, + callback, + ); + }), + "name", + { value: "Connections" }, + ); + Object.defineProperty( + (Query.prototype.clientConnections = function clientConnections(request, callback) { + return this.rpcCall( + clientConnections, + $root.ibc.core.connection.v1.QueryClientConnectionsRequest, + $root.ibc.core.connection.v1.QueryClientConnectionsResponse, + request, + callback, + ); + }), + "name", + { value: "ClientConnections" }, + ); + Object.defineProperty( + (Query.prototype.connectionClientState = function connectionClientState(request, callback) { + return this.rpcCall( + connectionClientState, + $root.ibc.core.connection.v1.QueryConnectionClientStateRequest, + $root.ibc.core.connection.v1.QueryConnectionClientStateResponse, + request, + callback, + ); + }), + "name", + { value: "ConnectionClientState" }, + ); + Object.defineProperty( + (Query.prototype.connectionConsensusState = function connectionConsensusState(request, callback) { + return this.rpcCall( + connectionConsensusState, + $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest, + $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse, + request, + callback, + ); + }), + "name", + { value: "ConnectionConsensusState" }, + ); + return Query; + })(); + v1.QueryConnectionRequest = (function () { + function QueryConnectionRequest(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]]; + } + QueryConnectionRequest.prototype.connectionId = ""; + QueryConnectionRequest.create = function create(properties) { + return new QueryConnectionRequest(properties); + }; + QueryConnectionRequest.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); + return w; + }; + QueryConnectionRequest.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.ibc.core.connection.v1.QueryConnectionRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.connectionId = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionRequest; + })(); + v1.QueryConnectionResponse = (function () { + function QueryConnectionResponse(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]]; + } + QueryConnectionResponse.prototype.connection = null; + QueryConnectionResponse.prototype.proof = $util.newBuffer([]); + QueryConnectionResponse.prototype.proofPath = ""; + QueryConnectionResponse.prototype.proofHeight = null; + QueryConnectionResponse.create = function create(properties) { + return new QueryConnectionResponse(properties); + }; + QueryConnectionResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.connection != null && Object.hasOwnProperty.call(m, "connection")) + $root.ibc.core.connection.v1.ConnectionEnd.encode(m.connection, w.uint32(10).fork()).ldelim(); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryConnectionResponse.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.ibc.core.connection.v1.QueryConnectionResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(r, r.uint32()); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionResponse; + })(); + v1.QueryConnectionsRequest = (function () { + function QueryConnectionsRequest(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]]; + } + QueryConnectionsRequest.prototype.pagination = null; + QueryConnectionsRequest.create = function create(properties) { + return new QueryConnectionsRequest(properties); + }; + QueryConnectionsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(m.pagination, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryConnectionsRequest.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.ibc.core.connection.v1.QueryConnectionsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionsRequest; + })(); + v1.QueryConnectionsResponse = (function () { + function QueryConnectionsResponse(p) { + this.connections = []; + 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]]; + } + QueryConnectionsResponse.prototype.connections = $util.emptyArray; + QueryConnectionsResponse.prototype.pagination = null; + QueryConnectionsResponse.prototype.height = null; + QueryConnectionsResponse.create = function create(properties) { + return new QueryConnectionsResponse(properties); + }; + QueryConnectionsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.connections != null && m.connections.length) { + for (var i = 0; i < m.connections.length; ++i) + $root.ibc.core.connection.v1.IdentifiedConnection.encode( + m.connections[i], + w.uint32(10).fork(), + ).ldelim(); + } + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) + $root.ibc.core.client.v1.Height.encode(m.height, w.uint32(26).fork()).ldelim(); + return w; + }; + QueryConnectionsResponse.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.ibc.core.connection.v1.QueryConnectionsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.connections && m.connections.length)) m.connections = []; + m.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(r, r.uint32()); + break; + case 3: + m.height = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionsResponse; + })(); + v1.QueryClientConnectionsRequest = (function () { + function QueryClientConnectionsRequest(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]]; + } + QueryClientConnectionsRequest.prototype.clientId = ""; + QueryClientConnectionsRequest.create = function create(properties) { + return new QueryClientConnectionsRequest(properties); + }; + QueryClientConnectionsRequest.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); + return w; + }; + QueryClientConnectionsRequest.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.ibc.core.connection.v1.QueryClientConnectionsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.clientId = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryClientConnectionsRequest; + })(); + v1.QueryClientConnectionsResponse = (function () { + function QueryClientConnectionsResponse(p) { + this.connectionPaths = []; + 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]]; + } + QueryClientConnectionsResponse.prototype.connectionPaths = $util.emptyArray; + QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); + QueryClientConnectionsResponse.prototype.proofPath = ""; + QueryClientConnectionsResponse.prototype.proofHeight = null; + QueryClientConnectionsResponse.create = function create(properties) { + return new QueryClientConnectionsResponse(properties); + }; + QueryClientConnectionsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.connectionPaths != null && m.connectionPaths.length) { + for (var i = 0; i < m.connectionPaths.length; ++i) w.uint32(10).string(m.connectionPaths[i]); + } + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryClientConnectionsResponse.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.ibc.core.connection.v1.QueryClientConnectionsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.connectionPaths && m.connectionPaths.length)) m.connectionPaths = []; + m.connectionPaths.push(r.string()); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryClientConnectionsResponse; + })(); + v1.QueryConnectionClientStateRequest = (function () { + function QueryConnectionClientStateRequest(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]]; + } + QueryConnectionClientStateRequest.prototype.connectionId = ""; + QueryConnectionClientStateRequest.create = function create(properties) { + return new QueryConnectionClientStateRequest(properties); + }; + QueryConnectionClientStateRequest.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); + return w; + }; + QueryConnectionClientStateRequest.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.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.connectionId = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionClientStateRequest; + })(); + v1.QueryConnectionClientStateResponse = (function () { + function QueryConnectionClientStateResponse(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]]; + } + QueryConnectionClientStateResponse.prototype.identifiedClientState = null; + QueryConnectionClientStateResponse.prototype.proof = $util.newBuffer([]); + QueryConnectionClientStateResponse.prototype.proofPath = ""; + QueryConnectionClientStateResponse.prototype.proofHeight = null; + QueryConnectionClientStateResponse.create = function create(properties) { + return new QueryConnectionClientStateResponse(properties); + }; + QueryConnectionClientStateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.identifiedClientState != null && Object.hasOwnProperty.call(m, "identifiedClientState")) + $root.ibc.core.client.v1.IdentifiedClientState.encode( + m.identifiedClientState, + w.uint32(10).fork(), + ).ldelim(); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(18).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(26).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(34).fork()).ldelim(); + return w; + }; + QueryConnectionClientStateResponse.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.ibc.core.connection.v1.QueryConnectionClientStateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.identifiedClientState = $root.ibc.core.client.v1.IdentifiedClientState.decode( + r, + r.uint32(), + ); + break; + case 2: + m.proof = r.bytes(); + break; + case 3: + m.proofPath = r.string(); + break; + case 4: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionClientStateResponse; + })(); + v1.QueryConnectionConsensusStateRequest = (function () { + function QueryConnectionConsensusStateRequest(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]]; + } + QueryConnectionConsensusStateRequest.prototype.connectionId = ""; + QueryConnectionConsensusStateRequest.prototype.versionNumber = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; + QueryConnectionConsensusStateRequest.prototype.versionHeight = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; + QueryConnectionConsensusStateRequest.create = function create(properties) { + return new QueryConnectionConsensusStateRequest(properties); + }; + QueryConnectionConsensusStateRequest.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.versionNumber != null && Object.hasOwnProperty.call(m, "versionNumber")) + w.uint32(16).uint64(m.versionNumber); + if (m.versionHeight != null && Object.hasOwnProperty.call(m, "versionHeight")) + w.uint32(24).uint64(m.versionHeight); + return w; + }; + QueryConnectionConsensusStateRequest.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.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.connectionId = r.string(); + break; + case 2: + m.versionNumber = r.uint64(); + break; + case 3: + m.versionHeight = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionConsensusStateRequest; + })(); + v1.QueryConnectionConsensusStateResponse = (function () { + function QueryConnectionConsensusStateResponse(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]]; + } + QueryConnectionConsensusStateResponse.prototype.consensusState = null; + QueryConnectionConsensusStateResponse.prototype.clientId = ""; + QueryConnectionConsensusStateResponse.prototype.proof = $util.newBuffer([]); + QueryConnectionConsensusStateResponse.prototype.proofPath = ""; + QueryConnectionConsensusStateResponse.prototype.proofHeight = null; + QueryConnectionConsensusStateResponse.create = function create(properties) { + return new QueryConnectionConsensusStateResponse(properties); + }; + QueryConnectionConsensusStateResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.consensusState != null && Object.hasOwnProperty.call(m, "consensusState")) + $root.google.protobuf.Any.encode(m.consensusState, w.uint32(10).fork()).ldelim(); + if (m.clientId != null && Object.hasOwnProperty.call(m, "clientId")) + w.uint32(18).string(m.clientId); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) w.uint32(26).bytes(m.proof); + if (m.proofPath != null && Object.hasOwnProperty.call(m, "proofPath")) + w.uint32(34).string(m.proofPath); + if (m.proofHeight != null && Object.hasOwnProperty.call(m, "proofHeight")) + $root.ibc.core.client.v1.Height.encode(m.proofHeight, w.uint32(42).fork()).ldelim(); + return w; + }; + QueryConnectionConsensusStateResponse.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.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.consensusState = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 2: + m.clientId = r.string(); + break; + case 3: + m.proof = r.bytes(); + break; + case 4: + m.proofPath = r.string(); + break; + case 5: + m.proofHeight = $root.ibc.core.client.v1.Height.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryConnectionConsensusStateResponse; + })(); + return v1; + })(); + return connection; + })(); + return core; + })(); + return ibc; +})(); +exports.tendermint = $root.tendermint = (() => { + const tendermint = {}; + tendermint.crypto = (function () { + const crypto = {}; + crypto.Proof = (function () { + function Proof(p) { + this.aunts = []; + 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]]; + } + Proof.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Proof.prototype.index = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Proof.prototype.leafHash = $util.newBuffer([]); + Proof.prototype.aunts = $util.emptyArray; + Proof.create = function create(properties) { + return new Proof(properties); + }; + Proof.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(8).int64(m.total); + if (m.index != null && Object.hasOwnProperty.call(m, "index")) w.uint32(16).int64(m.index); + if (m.leafHash != null && Object.hasOwnProperty.call(m, "leafHash")) w.uint32(26).bytes(m.leafHash); + if (m.aunts != null && m.aunts.length) { + for (var i = 0; i < m.aunts.length; ++i) w.uint32(34).bytes(m.aunts[i]); + } + return w; + }; + Proof.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.tendermint.crypto.Proof(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.total = r.int64(); + break; + case 2: + m.index = r.int64(); + break; + case 3: + m.leafHash = r.bytes(); + break; + case 4: + if (!(m.aunts && m.aunts.length)) m.aunts = []; + m.aunts.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Proof; + })(); + crypto.ValueOp = (function () { + function ValueOp(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]]; + } + ValueOp.prototype.key = $util.newBuffer([]); + ValueOp.prototype.proof = null; + ValueOp.create = function create(properties) { + return new ValueOp(properties); + }; + ValueOp.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) + $root.tendermint.crypto.Proof.encode(m.proof, w.uint32(18).fork()).ldelim(); + return w; + }; + ValueOp.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.tendermint.crypto.ValueOp(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.bytes(); + break; + case 2: + m.proof = $root.tendermint.crypto.Proof.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ValueOp; + })(); + crypto.DominoOp = (function () { + function DominoOp(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]]; + } + DominoOp.prototype.key = ""; + DominoOp.prototype.input = ""; + DominoOp.prototype.output = ""; + DominoOp.create = function create(properties) { + return new DominoOp(properties); + }; + DominoOp.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).string(m.key); + if (m.input != null && Object.hasOwnProperty.call(m, "input")) w.uint32(18).string(m.input); + if (m.output != null && Object.hasOwnProperty.call(m, "output")) w.uint32(26).string(m.output); + return w; + }; + DominoOp.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.tendermint.crypto.DominoOp(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.string(); + break; + case 2: + m.input = r.string(); + break; + case 3: + m.output = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return DominoOp; + })(); + crypto.ProofOp = (function () { + function ProofOp(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]]; + } + ProofOp.prototype.type = ""; + ProofOp.prototype.key = $util.newBuffer([]); + ProofOp.prototype.data = $util.newBuffer([]); + ProofOp.create = function create(properties) { + return new ProofOp(properties); + }; + ProofOp.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(18).bytes(m.key); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(26).bytes(m.data); + return w; + }; + ProofOp.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.tendermint.crypto.ProofOp(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.string(); + break; + case 2: + m.key = r.bytes(); + break; + case 3: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ProofOp; + })(); + crypto.ProofOps = (function () { + function ProofOps(p) { + this.ops = []; + 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]]; + } + ProofOps.prototype.ops = $util.emptyArray; + ProofOps.create = function create(properties) { + return new ProofOps(properties); + }; + ProofOps.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.ops != null && m.ops.length) { + for (var i = 0; i < m.ops.length; ++i) + $root.tendermint.crypto.ProofOp.encode(m.ops[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + ProofOps.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.tendermint.crypto.ProofOps(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.ops && m.ops.length)) m.ops = []; + m.ops.push($root.tendermint.crypto.ProofOp.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ProofOps; + })(); + return crypto; + })(); + return tendermint; +})(); module.exports = $root; diff --git a/packages/stargate/types/codec/generated/codecimpl.d.ts b/packages/stargate/types/codec/generated/codecimpl.d.ts index e205516f..e348516f 100644 --- a/packages/stargate/types/codec/generated/codecimpl.d.ts +++ b/packages/stargate/types/codec/generated/codecimpl.d.ts @@ -1,9510 +1,199 @@ import * as $protobuf from "protobufjs"; /** Namespace cosmos. */ export namespace cosmos { - /** 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.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.ICoin): cosmos.Coin; - - /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.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.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.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.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.IDecCoin): cosmos.DecCoin; - - /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.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.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.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.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.IIntProto): cosmos.IntProto; - - /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.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.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.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.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.IDecProto): cosmos.DecProto; - - /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.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.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.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.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.IValAddresses): cosmos.ValAddresses; - - /** - * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos.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.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.ValAddresses; - } - - /** Properties of a GasInfo. */ - interface IGasInfo { - /** GasInfo gasWanted */ - gasWanted?: Long | null; - - /** GasInfo gasUsed */ - gasUsed?: Long | null; - } - - /** Represents a GasInfo. */ - class GasInfo implements IGasInfo { - /** - * Constructs a new GasInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IGasInfo); - - /** GasInfo gasWanted. */ - public gasWanted: Long; - - /** GasInfo gasUsed. */ - public gasUsed: Long; - - /** - * Creates a new GasInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GasInfo instance - */ - public static create(properties?: cosmos.IGasInfo): cosmos.GasInfo; - - /** - * Encodes the specified GasInfo message. Does not implicitly {@link cosmos.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.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.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.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.IResult): cosmos.Result; - - /** - * Encodes the specified Result message. Does not implicitly {@link cosmos.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.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.Result; - } - - /** Properties of a SimulationResponse. */ - interface ISimulationResponse { - /** SimulationResponse gasInfo */ - gasInfo?: cosmos.IGasInfo | null; - - /** SimulationResponse result */ - result?: cosmos.IResult | null; - } - - /** Represents a SimulationResponse. */ - class SimulationResponse implements ISimulationResponse { - /** - * Constructs a new SimulationResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.ISimulationResponse); - - /** SimulationResponse gasInfo. */ - public gasInfo?: cosmos.IGasInfo | null; - - /** SimulationResponse result. */ - public result?: cosmos.IResult | null; - - /** - * Creates a new SimulationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SimulationResponse instance - */ - public static create(properties?: cosmos.ISimulationResponse): cosmos.SimulationResponse; - - /** - * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos.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.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.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.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.IMsgData): cosmos.MsgData; - - /** - * Encodes the specified MsgData message. Does not implicitly {@link cosmos.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.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.MsgData; - } - - /** Properties of a TxData. */ - interface ITxData { - /** TxData data */ - data?: cosmos.IMsgData[] | null; - } - - /** Represents a TxData. */ - class TxData implements ITxData { - /** - * Constructs a new TxData. - * @param [p] Properties to set - */ - constructor(p?: cosmos.ITxData); - - /** TxData data. */ - public data: cosmos.IMsgData[]; - - /** - * Creates a new TxData instance using the specified properties. - * @param [properties] Properties to set - * @returns TxData instance - */ - public static create(properties?: cosmos.ITxData): cosmos.TxData; - - /** - * Encodes the specified TxData message. Does not implicitly {@link cosmos.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.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.TxData; - } - - /** Properties of a TxResponse. */ - interface ITxResponse { - /** TxResponse height */ - height?: Long | null; - - /** TxResponse txhash */ - txhash?: string | null; - - /** TxResponse codespace */ - codespace?: string | null; - - /** TxResponse code */ - code?: number | null; - - /** TxResponse data */ - data?: string | null; - - /** TxResponse rawLog */ - rawLog?: string | null; - - /** TxResponse logs */ - logs?: cosmos.IABCIMessageLog[] | null; - - /** TxResponse info */ - info?: string | null; - - /** TxResponse gasWanted */ - gasWanted?: Long | null; - - /** TxResponse gasUsed */ - gasUsed?: Long | null; - - /** TxResponse tx */ - tx?: google.protobuf.IAny | null; - - /** TxResponse timestamp */ - timestamp?: string | null; - } - - /** Represents a TxResponse. */ - class TxResponse implements ITxResponse { - /** - * Constructs a new TxResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.ITxResponse); - - /** TxResponse height. */ - public height: Long; - - /** TxResponse txhash. */ - public txhash: string; - - /** TxResponse codespace. */ - public codespace: string; - - /** TxResponse code. */ - public code: number; - - /** TxResponse data. */ - public data: string; - - /** TxResponse rawLog. */ - public rawLog: string; - - /** TxResponse logs. */ - public logs: cosmos.IABCIMessageLog[]; - - /** TxResponse info. */ - public info: string; - - /** TxResponse gasWanted. */ - public gasWanted: Long; - - /** TxResponse gasUsed. */ - public gasUsed: Long; - - /** TxResponse tx. */ - public tx?: google.protobuf.IAny | null; - - /** TxResponse timestamp. */ - public timestamp: string; - - /** - * Creates a new TxResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TxResponse instance - */ - public static create(properties?: cosmos.ITxResponse): cosmos.TxResponse; - - /** - * Encodes the specified TxResponse message. Does not implicitly {@link cosmos.TxResponse.verify|verify} messages. - * @param m TxResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.ITxResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TxResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns TxResponse - * @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.TxResponse; - } - - /** Properties of a ABCIMessageLog. */ - interface IABCIMessageLog { - /** ABCIMessageLog msgIndex */ - msgIndex?: number | null; - - /** ABCIMessageLog log */ - log?: string | null; - - /** ABCIMessageLog events */ - events?: cosmos.IStringEvent[] | null; - } - - /** Represents a ABCIMessageLog. */ - class ABCIMessageLog implements IABCIMessageLog { - /** - * Constructs a new ABCIMessageLog. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IABCIMessageLog); - - /** ABCIMessageLog msgIndex. */ - public msgIndex: number; - - /** ABCIMessageLog log. */ - public log: string; - - /** ABCIMessageLog events. */ - public events: cosmos.IStringEvent[]; - - /** - * Creates a new ABCIMessageLog instance using the specified properties. - * @param [properties] Properties to set - * @returns ABCIMessageLog instance - */ - public static create(properties?: cosmos.IABCIMessageLog): cosmos.ABCIMessageLog; - - /** - * Encodes the specified ABCIMessageLog message. Does not implicitly {@link cosmos.ABCIMessageLog.verify|verify} messages. - * @param m ABCIMessageLog message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.IABCIMessageLog, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ABCIMessageLog message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ABCIMessageLog - * @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.ABCIMessageLog; - } - - /** Properties of a StringEvent. */ - interface IStringEvent { - /** StringEvent type */ - type?: string | null; - - /** StringEvent attributes */ - attributes?: cosmos.IAttribute[] | null; - } - - /** Represents a StringEvent. */ - class StringEvent implements IStringEvent { - /** - * Constructs a new StringEvent. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IStringEvent); - - /** StringEvent type. */ - public type: string; - - /** StringEvent attributes. */ - public attributes: cosmos.IAttribute[]; - - /** - * Creates a new StringEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns StringEvent instance - */ - public static create(properties?: cosmos.IStringEvent): cosmos.StringEvent; - - /** - * Encodes the specified StringEvent message. Does not implicitly {@link cosmos.StringEvent.verify|verify} messages. - * @param m StringEvent message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.IStringEvent, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StringEvent message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns StringEvent - * @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.StringEvent; - } - - /** Properties of an Attribute. */ - interface IAttribute { - /** Attribute key */ - key?: string | null; - - /** Attribute value */ - value?: string | null; - } - - /** Represents an Attribute. */ - class Attribute implements IAttribute { - /** - * Constructs a new Attribute. - * @param [p] Properties to set - */ - constructor(p?: cosmos.IAttribute); - - /** Attribute key. */ - public key: string; - - /** Attribute value. */ - public value: string; - - /** - * Creates a new Attribute instance using the specified properties. - * @param [properties] Properties to set - * @returns Attribute instance - */ - public static create(properties?: cosmos.IAttribute): cosmos.Attribute; - - /** - * Encodes the specified Attribute message. Does not implicitly {@link cosmos.Attribute.verify|verify} messages. - * @param m Attribute message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.IAttribute, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Attribute message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Attribute - * @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.Attribute; - } - /** Namespace auth. */ namespace auth { - /** Properties of a BaseAccount. */ - interface IBaseAccount { - /** BaseAccount address */ - address?: Uint8Array | null; + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a BaseAccount. */ + interface IBaseAccount { + /** BaseAccount address */ + address?: string | null; - /** BaseAccount pubKey */ - pubKey?: Uint8Array | null; + /** BaseAccount pubKey */ + pubKey?: google.protobuf.IAny | null; - /** BaseAccount accountNumber */ - accountNumber?: Long | null; + /** BaseAccount accountNumber */ + accountNumber?: Long | null; - /** BaseAccount sequence */ - sequence?: Long | null; - } - - /** Represents a BaseAccount. */ - class BaseAccount implements IBaseAccount { - /** - * Constructs a new BaseAccount. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IBaseAccount); - - /** BaseAccount address. */ - public address: Uint8Array; - - /** BaseAccount pubKey. */ - public pubKey: Uint8Array; - - /** BaseAccount accountNumber. */ - public accountNumber: Long; - - /** BaseAccount sequence. */ - public sequence: Long; - - /** - * Creates a new BaseAccount instance using the specified properties. - * @param [properties] Properties to set - * @returns BaseAccount instance - */ - public static create(properties?: cosmos.auth.IBaseAccount): cosmos.auth.BaseAccount; - - /** - * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.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.auth.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.auth.BaseAccount; - } - - /** Properties of a ModuleAccount. */ - interface IModuleAccount { - /** ModuleAccount baseAccount */ - baseAccount?: cosmos.auth.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.auth.IModuleAccount); - - /** ModuleAccount baseAccount. */ - public baseAccount?: cosmos.auth.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.auth.IModuleAccount): cosmos.auth.ModuleAccount; - - /** - * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.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.auth.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.auth.ModuleAccount; - } - - /** Properties of a Params. */ - interface IParams { - /** Params maxMemoCharacters */ - maxMemoCharacters?: Long | null; - - /** Params txSigLimit */ - txSigLimit?: Long | null; - - /** Params txSizeCostPerByte */ - txSizeCostPerByte?: Long | null; - - /** Params sigVerifyCostEd25519 */ - sigVerifyCostEd25519?: Long | null; - - /** Params sigVerifyCostSecp256k1 */ - sigVerifyCostSecp256k1?: Long | null; - } - - /** Represents a Params. */ - class Params implements IParams { - /** - * Constructs a new Params. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IParams); - - /** Params maxMemoCharacters. */ - public maxMemoCharacters: Long; - - /** Params txSigLimit. */ - public txSigLimit: Long; - - /** Params txSizeCostPerByte. */ - public txSizeCostPerByte: Long; - - /** Params sigVerifyCostEd25519. */ - public sigVerifyCostEd25519: Long; - - /** Params sigVerifyCostSecp256k1. */ - public sigVerifyCostSecp256k1: Long; - - /** - * Creates a new Params instance using the specified properties. - * @param [properties] Properties to set - * @returns Params instance - */ - public static create(properties?: cosmos.auth.IParams): cosmos.auth.Params; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.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.auth.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.auth.Params; - } - - /** 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 Account. - * @param request QueryAccountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryAccountResponse - */ - public account( - request: cosmos.auth.IQueryAccountRequest, - callback: cosmos.auth.Query.AccountCallback, - ): void; - - /** - * Calls Account. - * @param request QueryAccountRequest message or plain object - * @returns Promise - */ - public account(request: cosmos.auth.IQueryAccountRequest): Promise; - - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse - */ - public params( - request: cosmos.auth.IQueryParamsRequest, - callback: cosmos.auth.Query.ParamsCallback, - ): void; - - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: cosmos.auth.IQueryParamsRequest): Promise; - } - - namespace Query { - /** - * Callback as used by {@link cosmos.auth.Query#account}. - * @param error Error, if any - * @param [response] QueryAccountResponse - */ - type AccountCallback = (error: Error | null, response?: cosmos.auth.QueryAccountResponse) => void; - - /** - * Callback as used by {@link cosmos.auth.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse - */ - type ParamsCallback = (error: Error | null, response?: cosmos.auth.QueryParamsResponse) => void; - } - - /** Properties of a QueryAccountRequest. */ - interface IQueryAccountRequest { - /** QueryAccountRequest address */ - address?: Uint8Array | null; - } - - /** Represents a QueryAccountRequest. */ - class QueryAccountRequest implements IQueryAccountRequest { - /** - * Constructs a new QueryAccountRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryAccountRequest); - - /** QueryAccountRequest address. */ - public address: Uint8Array; - - /** - * Creates a new QueryAccountRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAccountRequest instance - */ - public static create(properties?: cosmos.auth.IQueryAccountRequest): cosmos.auth.QueryAccountRequest; - - /** - * Encodes the specified QueryAccountRequest message. Does not implicitly {@link cosmos.auth.QueryAccountRequest.verify|verify} messages. - * @param m QueryAccountRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryAccountRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryAccountRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAccountRequest - * @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.auth.QueryAccountRequest; - } - - /** Properties of a QueryAccountResponse. */ - interface IQueryAccountResponse { - /** QueryAccountResponse account */ - account?: google.protobuf.IAny | null; - } - - /** Represents a QueryAccountResponse. */ - class QueryAccountResponse implements IQueryAccountResponse { - /** - * Constructs a new QueryAccountResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryAccountResponse); - - /** QueryAccountResponse account. */ - public account?: google.protobuf.IAny | null; - - /** - * Creates a new QueryAccountResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAccountResponse instance - */ - public static create(properties?: cosmos.auth.IQueryAccountResponse): cosmos.auth.QueryAccountResponse; - - /** - * Encodes the specified QueryAccountResponse message. Does not implicitly {@link cosmos.auth.QueryAccountResponse.verify|verify} messages. - * @param m QueryAccountResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryAccountResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryAccountResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryAccountResponse - * @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.auth.QueryAccountResponse; - } - - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest {} - - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { - /** - * Constructs a new QueryParamsRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryParamsRequest); - - /** - * Creates a new QueryParamsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryParamsRequest instance - */ - public static create(properties?: cosmos.auth.IQueryParamsRequest): cosmos.auth.QueryParamsRequest; - - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.auth.QueryParamsRequest.verify|verify} messages. - * @param m QueryParamsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryParamsRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryParamsRequest - * @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.auth.QueryParamsRequest; - } - - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { - /** QueryParamsResponse params */ - params?: cosmos.auth.IParams | null; - } - - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { - /** - * Constructs a new QueryParamsResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.auth.IQueryParamsResponse); - - /** QueryParamsResponse params. */ - public params?: cosmos.auth.IParams | null; - - /** - * Creates a new QueryParamsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryParamsResponse instance - */ - public static create(properties?: cosmos.auth.IQueryParamsResponse): cosmos.auth.QueryParamsResponse; - - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.auth.QueryParamsResponse.verify|verify} messages. - * @param m QueryParamsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.auth.IQueryParamsResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryParamsResponse - * @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.auth.QueryParamsResponse; - } - } - - /** Namespace bank. */ - namespace bank { - /** Properties of a Params. */ - interface IParams { - /** Params sendEnabled */ - sendEnabled?: cosmos.bank.ISendEnabled[] | null; - - /** Params defaultSendEnabled */ - defaultSendEnabled?: boolean | null; - } - - /** Represents a Params. */ - class Params implements IParams { - /** - * Constructs a new Params. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IParams); - - /** Params sendEnabled. */ - public sendEnabled: cosmos.bank.ISendEnabled[]; - - /** Params defaultSendEnabled. */ - public defaultSendEnabled: boolean; - - /** - * Creates a new Params instance using the specified properties. - * @param [properties] Properties to set - * @returns Params instance - */ - public static create(properties?: cosmos.bank.IParams): cosmos.bank.Params; - - /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Params; - } - - /** Properties of a SendEnabled. */ - interface ISendEnabled { - /** SendEnabled denom */ - denom?: string | null; - - /** SendEnabled enabled */ - enabled?: boolean | null; - } - - /** Represents a SendEnabled. */ - class SendEnabled implements ISendEnabled { - /** - * Constructs a new SendEnabled. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.ISendEnabled); - - /** SendEnabled denom. */ - public denom: string; - - /** SendEnabled enabled. */ - public enabled: boolean; - - /** - * Creates a new SendEnabled instance using the specified properties. - * @param [properties] Properties to set - * @returns SendEnabled instance - */ - public static create(properties?: cosmos.bank.ISendEnabled): cosmos.bank.SendEnabled; - - /** - * Encodes the specified SendEnabled message. Does not implicitly {@link cosmos.bank.SendEnabled.verify|verify} messages. - * @param m SendEnabled message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.bank.ISendEnabled, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SendEnabled message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns SendEnabled - * @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.bank.SendEnabled; - } - - /** Properties of a MsgSend. */ - interface IMsgSend { - /** MsgSend fromAddress */ - fromAddress?: Uint8Array | null; - - /** MsgSend toAddress */ - toAddress?: Uint8Array | null; - - /** MsgSend amount */ - amount?: cosmos.ICoin[] | null; - } - - /** Represents a MsgSend. */ - class MsgSend implements IMsgSend { - /** - * Constructs a new MsgSend. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IMsgSend); - - /** MsgSend fromAddress. */ - public fromAddress: Uint8Array; - - /** MsgSend toAddress. */ - public toAddress: Uint8Array; - - /** MsgSend amount. */ - public amount: cosmos.ICoin[]; - - /** - * Creates a new MsgSend instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgSend instance - */ - public static create(properties?: cosmos.bank.IMsgSend): cosmos.bank.MsgSend; - - /** - * Encodes the specified MsgSend message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.MsgSend; - } - - /** Properties of an Input. */ - interface IInput { - /** Input address */ - address?: Uint8Array | null; - - /** Input coins */ - coins?: cosmos.ICoin[] | null; - } - - /** Represents an Input. */ - class Input implements IInput { - /** - * Constructs a new Input. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IInput); - - /** Input address. */ - public address: Uint8Array; - - /** Input coins. */ - public coins: cosmos.ICoin[]; - - /** - * Creates a new Input instance using the specified properties. - * @param [properties] Properties to set - * @returns Input instance - */ - public static create(properties?: cosmos.bank.IInput): cosmos.bank.Input; - - /** - * Encodes the specified Input message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Input; - } - - /** Properties of an Output. */ - interface IOutput { - /** Output address */ - address?: Uint8Array | null; - - /** Output coins */ - coins?: cosmos.ICoin[] | null; - } - - /** Represents an Output. */ - class Output implements IOutput { - /** - * Constructs a new Output. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IOutput); - - /** Output address. */ - public address: Uint8Array; - - /** Output coins. */ - public coins: cosmos.ICoin[]; - - /** - * Creates a new Output instance using the specified properties. - * @param [properties] Properties to set - * @returns Output instance - */ - public static create(properties?: cosmos.bank.IOutput): cosmos.bank.Output; - - /** - * Encodes the specified Output message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Output; - } - - /** Properties of a MsgMultiSend. */ - interface IMsgMultiSend { - /** MsgMultiSend inputs */ - inputs?: cosmos.bank.IInput[] | null; - - /** MsgMultiSend outputs */ - outputs?: cosmos.bank.IOutput[] | null; - } - - /** Represents a MsgMultiSend. */ - class MsgMultiSend implements IMsgMultiSend { - /** - * Constructs a new MsgMultiSend. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IMsgMultiSend); - - /** MsgMultiSend inputs. */ - public inputs: cosmos.bank.IInput[]; - - /** MsgMultiSend outputs. */ - public outputs: cosmos.bank.IOutput[]; - - /** - * Creates a new MsgMultiSend instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgMultiSend instance - */ - public static create(properties?: cosmos.bank.IMsgMultiSend): cosmos.bank.MsgMultiSend; - - /** - * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.MsgMultiSend; - } - - /** Properties of a Supply. */ - interface ISupply { - /** Supply total */ - total?: cosmos.ICoin[] | null; - } - - /** Represents a Supply. */ - class Supply implements ISupply { - /** - * Constructs a new Supply. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.ISupply); - - /** Supply total. */ - public total: cosmos.ICoin[]; - - /** - * Creates a new Supply instance using the specified properties. - * @param [properties] Properties to set - * @returns Supply instance - */ - public static create(properties?: cosmos.bank.ISupply): cosmos.bank.Supply; - - /** - * Encodes the specified Supply message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.Supply; - } - - /** Properties of a DenomUnits. */ - interface IDenomUnits { - /** DenomUnits denom */ - denom?: string | null; - - /** DenomUnits exponent */ - exponent?: number | null; - - /** DenomUnits aliases */ - aliases?: string[] | null; - } - - /** Represents a DenomUnits. */ - class DenomUnits implements IDenomUnits { - /** - * Constructs a new DenomUnits. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IDenomUnits); - - /** DenomUnits denom. */ - public denom: string; - - /** DenomUnits exponent. */ - public exponent: number; - - /** DenomUnits aliases. */ - public aliases: string[]; - - /** - * Creates a new DenomUnits instance using the specified properties. - * @param [properties] Properties to set - * @returns DenomUnits instance - */ - public static create(properties?: cosmos.bank.IDenomUnits): cosmos.bank.DenomUnits; - - /** - * Encodes the specified DenomUnits message. Does not implicitly {@link cosmos.bank.DenomUnits.verify|verify} messages. - * @param m DenomUnits message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.bank.IDenomUnits, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DenomUnits message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns DenomUnits - * @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.bank.DenomUnits; - } - - /** Properties of a Metadata. */ - interface IMetadata { - /** Metadata description */ - description?: string | null; - - /** Metadata denomUnits */ - denomUnits?: cosmos.bank.IDenomUnits[] | null; - - /** Metadata base */ - base?: string | null; - - /** Metadata display */ - display?: string | null; - } - - /** Represents a Metadata. */ - class Metadata implements IMetadata { - /** - * Constructs a new Metadata. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IMetadata); - - /** Metadata description. */ - public description: string; - - /** Metadata denomUnits. */ - public denomUnits: cosmos.bank.IDenomUnits[]; - - /** Metadata base. */ - public base: string; - - /** Metadata display. */ - public display: string; - - /** - * Creates a new Metadata instance using the specified properties. - * @param [properties] Properties to set - * @returns Metadata instance - */ - public static create(properties?: cosmos.bank.IMetadata): cosmos.bank.Metadata; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link cosmos.bank.Metadata.verify|verify} messages. - * @param m Metadata message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.bank.IMetadata, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Metadata - * @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.bank.Metadata; - } - - /** 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.bank.IQueryBalanceRequest, - callback: cosmos.bank.Query.BalanceCallback, - ): void; - - /** - * Calls Balance. - * @param request QueryBalanceRequest message or plain object - * @returns Promise - */ - public balance(request: cosmos.bank.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.bank.IQueryAllBalancesRequest, - callback: cosmos.bank.Query.AllBalancesCallback, - ): void; - - /** - * Calls AllBalances. - * @param request QueryAllBalancesRequest message or plain object - * @returns Promise - */ - public allBalances( - request: cosmos.bank.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.bank.IQueryTotalSupplyRequest, - callback: cosmos.bank.Query.TotalSupplyCallback, - ): void; - - /** - * Calls TotalSupply. - * @param request QueryTotalSupplyRequest message or plain object - * @returns Promise - */ - public totalSupply( - request: cosmos.bank.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.bank.IQuerySupplyOfRequest, - callback: cosmos.bank.Query.SupplyOfCallback, - ): void; - - /** - * Calls SupplyOf. - * @param request QuerySupplyOfRequest message or plain object - * @returns Promise - */ - public supplyOf(request: cosmos.bank.IQuerySupplyOfRequest): Promise; - } - - namespace Query { - /** - * Callback as used by {@link cosmos.bank.Query#balance}. - * @param error Error, if any - * @param [response] QueryBalanceResponse - */ - type BalanceCallback = (error: Error | null, response?: cosmos.bank.QueryBalanceResponse) => void; - - /** - * Callback as used by {@link cosmos.bank.Query#allBalances}. - * @param error Error, if any - * @param [response] QueryAllBalancesResponse - */ - type AllBalancesCallback = ( - error: Error | null, - response?: cosmos.bank.QueryAllBalancesResponse, - ) => void; - - /** - * Callback as used by {@link cosmos.bank.Query#totalSupply}. - * @param error Error, if any - * @param [response] QueryTotalSupplyResponse - */ - type TotalSupplyCallback = ( - error: Error | null, - response?: cosmos.bank.QueryTotalSupplyResponse, - ) => void; - - /** - * Callback as used by {@link cosmos.bank.Query#supplyOf}. - * @param error Error, if any - * @param [response] QuerySupplyOfResponse - */ - type SupplyOfCallback = (error: Error | null, response?: cosmos.bank.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.bank.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.bank.IQueryBalanceRequest): cosmos.bank.QueryBalanceRequest; - - /** - * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryBalanceRequest; - } - - /** Properties of a QueryBalanceResponse. */ - interface IQueryBalanceResponse { - /** QueryBalanceResponse balance */ - balance?: cosmos.ICoin | null; - } - - /** Represents a QueryBalanceResponse. */ - class QueryBalanceResponse implements IQueryBalanceResponse { - /** - * Constructs a new QueryBalanceResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryBalanceResponse); - - /** QueryBalanceResponse balance. */ - public balance?: cosmos.ICoin | null; - - /** - * Creates a new QueryBalanceResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryBalanceResponse instance - */ - public static create(properties?: cosmos.bank.IQueryBalanceResponse): cosmos.bank.QueryBalanceResponse; - - /** - * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryBalanceResponse; - } - - /** Properties of a QueryAllBalancesRequest. */ - interface IQueryAllBalancesRequest { - /** QueryAllBalancesRequest address */ - address?: Uint8Array | null; - - /** QueryAllBalancesRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryAllBalancesRequest. */ - class QueryAllBalancesRequest implements IQueryAllBalancesRequest { - /** - * Constructs a new QueryAllBalancesRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryAllBalancesRequest); - - /** QueryAllBalancesRequest address. */ - public address: Uint8Array; - - /** QueryAllBalancesRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryAllBalancesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllBalancesRequest instance - */ - public static create( - properties?: cosmos.bank.IQueryAllBalancesRequest, - ): cosmos.bank.QueryAllBalancesRequest; - - /** - * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryAllBalancesRequest; - } - - /** Properties of a QueryAllBalancesResponse. */ - interface IQueryAllBalancesResponse { - /** QueryAllBalancesResponse balances */ - balances?: cosmos.ICoin[] | null; - - /** QueryAllBalancesResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - } - - /** Represents a QueryAllBalancesResponse. */ - class QueryAllBalancesResponse implements IQueryAllBalancesResponse { - /** - * Constructs a new QueryAllBalancesResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryAllBalancesResponse); - - /** QueryAllBalancesResponse balances. */ - public balances: cosmos.ICoin[]; - - /** QueryAllBalancesResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** - * Creates a new QueryAllBalancesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryAllBalancesResponse instance - */ - public static create( - properties?: cosmos.bank.IQueryAllBalancesResponse, - ): cosmos.bank.QueryAllBalancesResponse; - - /** - * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.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.bank.IQueryTotalSupplyRequest); - - /** - * Creates a new QueryTotalSupplyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryTotalSupplyRequest instance - */ - public static create( - properties?: cosmos.bank.IQueryTotalSupplyRequest, - ): cosmos.bank.QueryTotalSupplyRequest; - - /** - * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QueryTotalSupplyRequest; - } - - /** Properties of a QueryTotalSupplyResponse. */ - interface IQueryTotalSupplyResponse { - /** QueryTotalSupplyResponse supply */ - supply?: cosmos.ICoin[] | null; - } - - /** Represents a QueryTotalSupplyResponse. */ - class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { - /** - * Constructs a new QueryTotalSupplyResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQueryTotalSupplyResponse); - - /** QueryTotalSupplyResponse supply. */ - public supply: cosmos.ICoin[]; - - /** - * Creates a new QueryTotalSupplyResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryTotalSupplyResponse instance - */ - public static create( - properties?: cosmos.bank.IQueryTotalSupplyResponse, - ): cosmos.bank.QueryTotalSupplyResponse; - - /** - * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.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.bank.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.bank.IQuerySupplyOfRequest): cosmos.bank.QuerySupplyOfRequest; - - /** - * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QuerySupplyOfRequest; - } - - /** Properties of a QuerySupplyOfResponse. */ - interface IQuerySupplyOfResponse { - /** QuerySupplyOfResponse amount */ - amount?: cosmos.ICoin | null; - } - - /** Represents a QuerySupplyOfResponse. */ - class QuerySupplyOfResponse implements IQuerySupplyOfResponse { - /** - * Constructs a new QuerySupplyOfResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.bank.IQuerySupplyOfResponse); - - /** QuerySupplyOfResponse amount. */ - public amount?: cosmos.ICoin | null; - - /** - * Creates a new QuerySupplyOfResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QuerySupplyOfResponse instance - */ - public static create( - properties?: cosmos.bank.IQuerySupplyOfResponse, - ): cosmos.bank.QuerySupplyOfResponse; - - /** - * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos.bank.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.bank.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.bank.QuerySupplyOfResponse; - } - } - - /** Namespace crypto. */ - namespace crypto { - /** Properties of a PublicKey. */ - interface IPublicKey { - /** PublicKey secp256k1 */ - secp256k1?: Uint8Array | null; - - /** PublicKey ed25519 */ - ed25519?: Uint8Array | null; - - /** PublicKey sr25519 */ - sr25519?: Uint8Array | null; - - /** PublicKey multisig */ - multisig?: cosmos.crypto.IPubKeyMultisigThreshold | null; - - /** PublicKey secp256r1 */ - secp256r1?: Uint8Array | null; - - /** PublicKey anyPubkey */ - anyPubkey?: google.protobuf.IAny | null; - } - - /** Represents a PublicKey. */ - class PublicKey implements IPublicKey { - /** - * Constructs a new PublicKey. - * @param [p] Properties to set - */ - constructor(p?: cosmos.crypto.IPublicKey); - - /** PublicKey secp256k1. */ - public secp256k1: Uint8Array; - - /** PublicKey ed25519. */ - public ed25519: Uint8Array; - - /** PublicKey sr25519. */ - public sr25519: Uint8Array; - - /** PublicKey multisig. */ - public multisig?: cosmos.crypto.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.crypto.IPublicKey): cosmos.crypto.PublicKey; - - /** - * Encodes the specified PublicKey message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.PublicKey; - } - - /** Properties of a PubKeyMultisigThreshold. */ - interface IPubKeyMultisigThreshold { - /** PubKeyMultisigThreshold threshold */ - threshold?: number | null; - - /** PubKeyMultisigThreshold publicKeys */ - publicKeys?: cosmos.crypto.IPublicKey[] | null; - } - - /** Represents a PubKeyMultisigThreshold. */ - class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { - /** - * Constructs a new PubKeyMultisigThreshold. - * @param [p] Properties to set - */ - constructor(p?: cosmos.crypto.IPubKeyMultisigThreshold); - - /** PubKeyMultisigThreshold threshold. */ - public threshold: number; - - /** PubKeyMultisigThreshold publicKeys. */ - public publicKeys: cosmos.crypto.IPublicKey[]; - - /** - * Creates a new PubKeyMultisigThreshold instance using the specified properties. - * @param [properties] Properties to set - * @returns PubKeyMultisigThreshold instance - */ - public static create( - properties?: cosmos.crypto.IPubKeyMultisigThreshold, - ): cosmos.crypto.PubKeyMultisigThreshold; - - /** - * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.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.crypto.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.crypto.IMultiSignature): cosmos.crypto.MultiSignature; - - /** - * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.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.crypto.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.crypto.ICompactBitArray): cosmos.crypto.CompactBitArray; - - /** - * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos.crypto.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.crypto.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.crypto.CompactBitArray; - } - } - - /** Namespace query. */ - namespace query { - /** Properties of a PageRequest. */ - interface IPageRequest { - /** PageRequest key */ - key?: Uint8Array | null; - - /** PageRequest offset */ - offset?: Long | null; - - /** PageRequest limit */ - limit?: Long | null; - - /** PageRequest countTotal */ - countTotal?: boolean | null; - } - - /** Represents a PageRequest. */ - class PageRequest implements IPageRequest { - /** - * Constructs a new PageRequest. - * @param [p] Properties to set - */ - constructor(p?: cosmos.query.IPageRequest); - - /** PageRequest key. */ - public key: Uint8Array; - - /** PageRequest offset. */ - public offset: Long; - - /** PageRequest limit. */ - public limit: Long; - - /** PageRequest countTotal. */ - public countTotal: boolean; - - /** - * Creates a new PageRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PageRequest instance - */ - public static create(properties?: cosmos.query.IPageRequest): cosmos.query.PageRequest; - - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.query.PageRequest.verify|verify} messages. - * @param m PageRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.query.IPageRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageRequest - * @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.query.PageRequest; - } - - /** Properties of a PageResponse. */ - interface IPageResponse { - /** PageResponse nextKey */ - nextKey?: Uint8Array | null; - - /** PageResponse total */ - total?: Long | null; - } - - /** Represents a PageResponse. */ - class PageResponse implements IPageResponse { - /** - * Constructs a new PageResponse. - * @param [p] Properties to set - */ - constructor(p?: cosmos.query.IPageResponse); - - /** PageResponse nextKey. */ - public nextKey: Uint8Array; - - /** PageResponse total. */ - public total: Long; - - /** - * Creates a new PageResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PageResponse instance - */ - public static create(properties?: cosmos.query.IPageResponse): cosmos.query.PageResponse; - - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.query.PageResponse.verify|verify} messages. - * @param m PageResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.query.IPageResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PageResponse - * @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.query.PageResponse; - } - } - - /** Namespace tx. */ - namespace tx { - /** Properties of a Tx. */ - interface ITx { - /** Tx body */ - body?: cosmos.tx.ITxBody | null; - - /** Tx authInfo */ - authInfo?: cosmos.tx.IAuthInfo | null; - - /** Tx signatures */ - signatures?: Uint8Array[] | null; - } - - /** Represents a Tx. */ - class Tx implements ITx { - /** - * Constructs a new Tx. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ITx); - - /** Tx body. */ - public body?: cosmos.tx.ITxBody | null; - - /** Tx authInfo. */ - public authInfo?: cosmos.tx.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.tx.ITx): cosmos.tx.Tx; - - /** - * Encodes the specified Tx message. Does not implicitly {@link cosmos.tx.Tx.verify|verify} messages. - * @param m Tx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.ITx, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Tx; - } - - /** Properties of a TxRaw. */ - interface ITxRaw { - /** TxRaw bodyBytes */ - bodyBytes?: Uint8Array | null; - - /** TxRaw authInfoBytes */ - authInfoBytes?: Uint8Array | null; - - /** TxRaw signatures */ - signatures?: Uint8Array[] | null; - } - - /** Represents a TxRaw. */ - class TxRaw implements ITxRaw { - /** - * Constructs a new TxRaw. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ITxRaw); - - /** TxRaw bodyBytes. */ - public bodyBytes: Uint8Array; - - /** TxRaw authInfoBytes. */ - public authInfoBytes: Uint8Array; - - /** TxRaw signatures. */ - public signatures: Uint8Array[]; - - /** - * Creates a new TxRaw instance using the specified properties. - * @param [properties] Properties to set - * @returns TxRaw instance - */ - public static create(properties?: cosmos.tx.ITxRaw): cosmos.tx.TxRaw; - - /** - * Encodes the specified TxRaw message. Does not implicitly {@link cosmos.tx.TxRaw.verify|verify} messages. - * @param m TxRaw message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.ITxRaw, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TxRaw message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns TxRaw - * @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.tx.TxRaw; - } - - /** Properties of a SignDoc. */ - interface ISignDoc { - /** SignDoc bodyBytes */ - bodyBytes?: Uint8Array | null; - - /** SignDoc authInfoBytes */ - authInfoBytes?: Uint8Array | null; - - /** SignDoc chainId */ - chainId?: string | null; - - /** SignDoc accountNumber */ - accountNumber?: Long | null; - - /** SignDoc accountSequence */ - accountSequence?: Long | null; - } - - /** Represents a SignDoc. */ - class SignDoc implements ISignDoc { - /** - * Constructs a new SignDoc. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ISignDoc); - - /** SignDoc bodyBytes. */ - public bodyBytes: Uint8Array; - - /** SignDoc authInfoBytes. */ - public authInfoBytes: Uint8Array; - - /** SignDoc chainId. */ - public chainId: string; - - /** SignDoc accountNumber. */ - public accountNumber: Long; - - /** SignDoc accountSequence. */ - public accountSequence: Long; - - /** - * Creates a new SignDoc instance using the specified properties. - * @param [properties] Properties to set - * @returns SignDoc instance - */ - public static create(properties?: cosmos.tx.ISignDoc): cosmos.tx.SignDoc; - - /** - * Encodes the specified SignDoc message. Does not implicitly {@link cosmos.tx.SignDoc.verify|verify} messages. - * @param m SignDoc message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.ISignDoc, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.SignDoc; - } - - /** Properties of a TxBody. */ - interface ITxBody { - /** TxBody messages */ - messages?: google.protobuf.IAny[] | null; - - /** TxBody memo */ - memo?: string | null; - - /** TxBody timeoutHeight */ - timeoutHeight?: 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 [p] Properties to set - */ - constructor(p?: cosmos.tx.ITxBody); - - /** TxBody messages. */ - public messages: google.protobuf.IAny[]; - - /** TxBody memo. */ - public memo: string; - - /** TxBody timeoutHeight. */ - public timeoutHeight: 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.tx.ITxBody): cosmos.tx.TxBody; - - /** - * Encodes the specified TxBody message. Does not implicitly {@link cosmos.tx.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.tx.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.tx.TxBody; - } - - /** Properties of an AuthInfo. */ - interface IAuthInfo { - /** AuthInfo signerInfos */ - signerInfos?: cosmos.tx.ISignerInfo[] | null; - - /** AuthInfo fee */ - fee?: cosmos.tx.IFee | null; - } - - /** Represents an AuthInfo. */ - class AuthInfo implements IAuthInfo { - /** - * Constructs a new AuthInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.IAuthInfo); - - /** AuthInfo signerInfos. */ - public signerInfos: cosmos.tx.ISignerInfo[]; - - /** AuthInfo fee. */ - public fee?: cosmos.tx.IFee | null; - - /** - * Creates a new AuthInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthInfo instance - */ - public static create(properties?: cosmos.tx.IAuthInfo): cosmos.tx.AuthInfo; - - /** - * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos.tx.AuthInfo.verify|verify} messages. - * @param m AuthInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.IAuthInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.AuthInfo; - } - - /** Properties of a SignerInfo. */ - interface ISignerInfo { - /** SignerInfo publicKey */ - publicKey?: cosmos.crypto.IPublicKey | null; - - /** SignerInfo modeInfo */ - modeInfo?: cosmos.tx.IModeInfo | null; - } - - /** Represents a SignerInfo. */ - class SignerInfo implements ISignerInfo { - /** - * Constructs a new SignerInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.ISignerInfo); - - /** SignerInfo publicKey. */ - public publicKey?: cosmos.crypto.IPublicKey | null; - - /** SignerInfo modeInfo. */ - public modeInfo?: cosmos.tx.IModeInfo | null; - - /** - * Creates a new SignerInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SignerInfo instance - */ - public static create(properties?: cosmos.tx.ISignerInfo): cosmos.tx.SignerInfo; - - /** - * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos.tx.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.tx.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.tx.SignerInfo; - } - - /** Properties of a ModeInfo. */ - interface IModeInfo { - /** ModeInfo single */ - single?: cosmos.tx.ModeInfo.ISingle | null; - - /** ModeInfo multi */ - multi?: cosmos.tx.ModeInfo.IMulti | null; - } - - /** Represents a ModeInfo. */ - class ModeInfo implements IModeInfo { - /** - * Constructs a new ModeInfo. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.IModeInfo); - - /** ModeInfo single. */ - public single?: cosmos.tx.ModeInfo.ISingle | null; - - /** ModeInfo multi. */ - public multi?: cosmos.tx.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.tx.IModeInfo): cosmos.tx.ModeInfo; - - /** - * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos.tx.ModeInfo.verify|verify} messages. - * @param m ModeInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.IModeInfo, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo; - } - - namespace ModeInfo { - /** Properties of a Single. */ - interface ISingle { - /** Single mode */ - mode?: cosmos.tx.signing.SignMode | null; + /** BaseAccount sequence */ + sequence?: Long | null; } - /** Represents a Single. */ - class Single implements ISingle { + /** Represents a BaseAccount. */ + class BaseAccount implements IBaseAccount { /** - * Constructs a new Single. + * Constructs a new BaseAccount. * @param [p] Properties to set */ - constructor(p?: cosmos.tx.ModeInfo.ISingle); + constructor(p?: cosmos.auth.v1beta1.IBaseAccount); - /** Single mode. */ - public mode: cosmos.tx.signing.SignMode; + /** BaseAccount address. */ + public address: string; + + /** BaseAccount pubKey. */ + public pubKey?: google.protobuf.IAny | null; + + /** BaseAccount accountNumber. */ + public accountNumber: Long; + + /** BaseAccount sequence. */ + public sequence: Long; /** - * Creates a new Single instance using the specified properties. + * Creates a new BaseAccount instance using the specified properties. * @param [properties] Properties to set - * @returns Single instance + * @returns BaseAccount instance */ - public static create(properties?: cosmos.tx.ModeInfo.ISingle): cosmos.tx.ModeInfo.Single; + public static create(properties?: cosmos.auth.v1beta1.IBaseAccount): cosmos.auth.v1beta1.BaseAccount; /** - * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.ModeInfo.Single.verify|verify} messages. - * @param m Single message or plain object to encode + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.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.tx.ModeInfo.ISingle, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.auth.v1beta1.IBaseAccount, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Single message from the specified reader or buffer. + * 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 Single + * @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.tx.ModeInfo.Single; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.v1beta1.BaseAccount; } - /** Properties of a Multi. */ - interface IMulti { - /** Multi bitarray */ - bitarray?: cosmos.crypto.ICompactBitArray | null; + /** Properties of a ModuleAccount. */ + interface IModuleAccount { + /** ModuleAccount baseAccount */ + baseAccount?: cosmos.auth.v1beta1.IBaseAccount | null; - /** Multi modeInfos */ - modeInfos?: cosmos.tx.IModeInfo[] | null; + /** ModuleAccount name */ + name?: string | null; + + /** ModuleAccount permissions */ + permissions?: string[] | null; } - /** Represents a Multi. */ - class Multi implements IMulti { + /** Represents a ModuleAccount. */ + class ModuleAccount implements IModuleAccount { /** - * Constructs a new Multi. + * Constructs a new ModuleAccount. * @param [p] Properties to set */ - constructor(p?: cosmos.tx.ModeInfo.IMulti); + constructor(p?: cosmos.auth.v1beta1.IModuleAccount); - /** Multi bitarray. */ - public bitarray?: cosmos.crypto.ICompactBitArray | null; + /** ModuleAccount baseAccount. */ + public baseAccount?: cosmos.auth.v1beta1.IBaseAccount | null; - /** Multi modeInfos. */ - public modeInfos: cosmos.tx.IModeInfo[]; + /** ModuleAccount name. */ + public name: string; + + /** ModuleAccount permissions. */ + public permissions: string[]; /** - * Creates a new Multi instance using the specified properties. + * Creates a new ModuleAccount instance using the specified properties. * @param [properties] Properties to set - * @returns Multi instance - */ - public static create(properties?: cosmos.tx.ModeInfo.IMulti): cosmos.tx.ModeInfo.Multi; - - /** - * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.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.tx.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.tx.ModeInfo.Multi; - } - } - - /** Properties of a Fee. */ - interface IFee { - /** Fee amount */ - amount?: cosmos.ICoin[] | null; - - /** Fee gasLimit */ - gasLimit?: Long | null; - } - - /** Represents a Fee. */ - class Fee implements IFee { - /** - * Constructs a new Fee. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.IFee); - - /** Fee amount. */ - public amount: cosmos.ICoin[]; - - /** Fee gasLimit. */ - public gasLimit: Long; - - /** - * Creates a new Fee instance using the specified properties. - * @param [properties] Properties to set - * @returns Fee instance - */ - public static create(properties?: cosmos.tx.IFee): cosmos.tx.Fee; - - /** - * Encodes the specified Fee message. Does not implicitly {@link cosmos.tx.Fee.verify|verify} messages. - * @param m Fee message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: cosmos.tx.IFee, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Fee; - } - - /** Namespace signing. */ - namespace signing { - /** 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 SignatureDescriptors. */ - interface ISignatureDescriptors { - /** SignatureDescriptors signatures */ - signatures?: cosmos.tx.signing.ISignatureDescriptor[] | null; - } - - /** Represents a SignatureDescriptors. */ - class SignatureDescriptors implements ISignatureDescriptors { - /** - * Constructs a new SignatureDescriptors. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.ISignatureDescriptors); - - /** SignatureDescriptors signatures. */ - public signatures: cosmos.tx.signing.ISignatureDescriptor[]; - - /** - * Creates a new SignatureDescriptors instance using the specified properties. - * @param [properties] Properties to set - * @returns SignatureDescriptors instance + * @returns ModuleAccount instance */ public static create( - properties?: cosmos.tx.signing.ISignatureDescriptors, - ): cosmos.tx.signing.SignatureDescriptors; + properties?: cosmos.auth.v1beta1.IModuleAccount, + ): cosmos.auth.v1beta1.ModuleAccount; /** - * Encodes the specified SignatureDescriptors message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptors.verify|verify} messages. - * @param m SignatureDescriptors message or plain object to encode + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.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.tx.signing.ISignatureDescriptors, - w?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos.auth.v1beta1.IModuleAccount, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignatureDescriptors message from the specified reader or buffer. + * 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 SignatureDescriptors + * @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.tx.signing.SignatureDescriptors; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.v1beta1.ModuleAccount; } - /** Properties of a SignatureDescriptor. */ - interface ISignatureDescriptor { - /** SignatureDescriptor publicKey */ - publicKey?: cosmos.crypto.IPublicKey | null; + /** Properties of a Params. */ + interface IParams { + /** Params maxMemoCharacters */ + maxMemoCharacters?: Long | null; - /** SignatureDescriptor data */ - data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + /** Params txSigLimit */ + txSigLimit?: Long | null; + + /** Params txSizeCostPerByte */ + txSizeCostPerByte?: Long | null; + + /** Params sigVerifyCostEd25519 */ + sigVerifyCostEd25519?: Long | null; + + /** Params sigVerifyCostSecp256k1 */ + sigVerifyCostSecp256k1?: Long | null; } - /** Represents a SignatureDescriptor. */ - class SignatureDescriptor implements ISignatureDescriptor { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new SignatureDescriptor. + * Constructs a new Params. * @param [p] Properties to set */ - constructor(p?: cosmos.tx.signing.ISignatureDescriptor); + constructor(p?: cosmos.auth.v1beta1.IParams); - /** SignatureDescriptor publicKey. */ - public publicKey?: cosmos.crypto.IPublicKey | null; + /** Params maxMemoCharacters. */ + public maxMemoCharacters: Long; - /** SignatureDescriptor data. */ - public data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + /** Params txSigLimit. */ + public txSigLimit: Long; + + /** Params txSizeCostPerByte. */ + public txSizeCostPerByte: Long; + + /** Params sigVerifyCostEd25519. */ + public sigVerifyCostEd25519: Long; + + /** Params sigVerifyCostSecp256k1. */ + public sigVerifyCostSecp256k1: Long; /** - * Creates a new SignatureDescriptor instance using the specified properties. + * Creates a new Params instance using the specified properties. * @param [properties] Properties to set - * @returns SignatureDescriptor instance + * @returns Params instance */ - public static create( - properties?: cosmos.tx.signing.ISignatureDescriptor, - ): cosmos.tx.signing.SignatureDescriptor; + public static create(properties?: cosmos.auth.v1beta1.IParams): cosmos.auth.v1beta1.Params; /** - * Encodes the specified SignatureDescriptor message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.verify|verify} messages. - * @param m SignatureDescriptor message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.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.tx.signing.ISignatureDescriptor, - w?: $protobuf.Writer, - ): $protobuf.Writer; + public static encode(m: cosmos.auth.v1beta1.IParams, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignatureDescriptor message from the specified reader or buffer. + * 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 SignatureDescriptor + * @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.tx.signing.SignatureDescriptor; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.v1beta1.Params; } - namespace SignatureDescriptor { - /** Properties of a Data. */ - interface IData { - /** Data single */ - single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; - - /** Data multi */ - multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; - } - - /** Represents a Data. */ - class Data implements IData { - /** - * Constructs a new Data. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.SignatureDescriptor.IData); - - /** Data single. */ - public single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; - - /** Data multi. */ - public multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; - - /** Data sum. */ - public sum?: "single" | "multi"; - - /** - * Creates a new Data instance using the specified properties. - * @param [properties] Properties to set - * @returns Data instance - */ - public static create( - properties?: cosmos.tx.signing.SignatureDescriptor.IData, - ): cosmos.tx.signing.SignatureDescriptor.Data; - - /** - * Encodes the specified Data message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.verify|verify} messages. - * @param m Data message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: cosmos.tx.signing.SignatureDescriptor.IData, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a Data message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns Data - * @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.tx.signing.SignatureDescriptor.Data; - } - - namespace Data { - /** Properties of a Single. */ - interface ISingle { - /** Single mode */ - mode?: cosmos.tx.signing.SignMode | null; - - /** Single signature */ - signature?: Uint8Array | null; - } - - /** Represents a Single. */ - class Single implements ISingle { - /** - * Constructs a new Single. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle); - - /** Single mode. */ - public mode: cosmos.tx.signing.SignMode; - - /** Single signature. */ - public signature: Uint8Array; - - /** - * Creates a new Single instance using the specified properties. - * @param [properties] Properties to set - * @returns Single instance - */ - public static create( - properties?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle, - ): cosmos.tx.signing.SignatureDescriptor.Data.Single; - - /** - * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.Single; - } - - /** Properties of a Multi. */ - interface IMulti { - /** Multi bitarray */ - bitarray?: cosmos.crypto.ICompactBitArray | null; - - /** Multi signatures */ - signatures?: cosmos.tx.signing.SignatureDescriptor.IData[] | null; - } - - /** Represents a Multi. */ - class Multi implements IMulti { - /** - * Constructs a new Multi. - * @param [p] Properties to set - */ - constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti); - - /** Multi bitarray. */ - public bitarray?: cosmos.crypto.ICompactBitArray | null; - - /** Multi signatures. */ - public signatures: cosmos.tx.signing.SignatureDescriptor.IData[]; - - /** - * Creates a new Multi instance using the specified properties. - * @param [properties] Properties to set - * @returns Multi instance - */ - public static create( - properties?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti, - ): cosmos.tx.signing.SignatureDescriptor.Data.Multi; - - /** - * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.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.tx.signing.SignatureDescriptor.Data.Multi; - } - } - } - } - } -} - -/** Namespace ibc. */ -export namespace ibc { - /** Namespace channel. */ - namespace channel { - /** Properties of a MsgChannelOpenInit. */ - interface IMsgChannelOpenInit { - /** MsgChannelOpenInit portId */ - portId?: string | null; - - /** MsgChannelOpenInit channelId */ - channelId?: string | null; - - /** MsgChannelOpenInit channel */ - channel?: ibc.channel.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?: ibc.channel.IMsgChannelOpenInit); - - /** MsgChannelOpenInit portId. */ - public portId: string; - - /** MsgChannelOpenInit channelId. */ - public channelId: string; - - /** MsgChannelOpenInit channel. */ - public channel?: ibc.channel.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?: ibc.channel.IMsgChannelOpenInit): ibc.channel.MsgChannelOpenInit; - - /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgChannelOpenInit; - } - - /** Properties of a MsgChannelOpenTry. */ - interface IMsgChannelOpenTry { - /** MsgChannelOpenTry portId */ - portId?: string | null; - - /** MsgChannelOpenTry channelId */ - channelId?: string | null; - - /** MsgChannelOpenTry channel */ - channel?: ibc.channel.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion */ - counterpartyVersion?: string | null; - - /** MsgChannelOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgChannelOpenTry proofHeight */ - proofHeight?: 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?: ibc.channel.IMsgChannelOpenTry); - - /** MsgChannelOpenTry portId. */ - public portId: string; - - /** MsgChannelOpenTry channelId. */ - public channelId: string; - - /** MsgChannelOpenTry channel. */ - public channel?: ibc.channel.IChannel | null; - - /** MsgChannelOpenTry counterpartyVersion. */ - public counterpartyVersion: string; - - /** MsgChannelOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelOpenTry proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgChannelOpenTry): ibc.channel.MsgChannelOpenTry; - - /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: 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?: ibc.channel.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: 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?: ibc.channel.IMsgChannelOpenAck): ibc.channel.MsgChannelOpenAck; - - /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: 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?: ibc.channel.IMsgChannelOpenConfirm); - - /** MsgChannelOpenConfirm portId. */ - public portId: string; - - /** MsgChannelOpenConfirm channelId. */ - public channelId: string; - - /** MsgChannelOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgChannelOpenConfirm proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgChannelOpenConfirm, - ): ibc.channel.MsgChannelOpenConfirm; - - /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: ibc.channel.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?: ibc.channel.IMsgChannelCloseInit): ibc.channel.MsgChannelCloseInit; - - /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.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?: 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?: ibc.channel.IMsgChannelCloseConfirm); - - /** MsgChannelCloseConfirm portId. */ - public portId: string; - - /** MsgChannelCloseConfirm channelId. */ - public channelId: string; - - /** MsgChannelCloseConfirm proofInit. */ - public proofInit: Uint8Array; - - /** MsgChannelCloseConfirm proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgChannelCloseConfirm, - ): ibc.channel.MsgChannelCloseConfirm; - - /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgChannelCloseConfirm; - } - - /** Properties of a MsgRecvPacket. */ - interface IMsgRecvPacket { - /** MsgRecvPacket packet */ - packet?: ibc.channel.IPacket | null; - - /** MsgRecvPacket proof */ - proof?: Uint8Array | null; - - /** MsgRecvPacket proofHeight */ - proofHeight?: Long | null; - - /** MsgRecvPacket signer */ - signer?: Uint8Array | null; - } - - /** Represents a MsgRecvPacket. */ - class MsgRecvPacket implements IMsgRecvPacket { - /** - * Constructs a new MsgRecvPacket. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IMsgRecvPacket); - - /** MsgRecvPacket packet. */ - public packet?: ibc.channel.IPacket | null; - - /** MsgRecvPacket proof. */ - public proof: Uint8Array; - - /** MsgRecvPacket proofHeight. */ - public proofHeight: Long; - - /** MsgRecvPacket signer. */ - public signer: Uint8Array; - - /** - * Creates a new MsgRecvPacket instance using the specified properties. - * @param [properties] Properties to set - * @returns MsgRecvPacket instance - */ - public static create(properties?: ibc.channel.IMsgRecvPacket): ibc.channel.MsgRecvPacket; - - /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.channel.MsgRecvPacket.verify|verify} messages. - * @param m MsgRecvPacket message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IMsgRecvPacket, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns MsgRecvPacket - * @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): ibc.channel.MsgRecvPacket; - } - - /** Properties of a MsgTimeout. */ - interface IMsgTimeout { - /** MsgTimeout packet */ - packet?: ibc.channel.IPacket | null; - - /** MsgTimeout proof */ - proof?: Uint8Array | null; - - /** MsgTimeout proofHeight */ - proofHeight?: Long | null; - - /** MsgTimeout nextSequenceRecv */ - nextSequenceRecv?: 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?: ibc.channel.IMsgTimeout); - - /** MsgTimeout packet. */ - public packet?: ibc.channel.IPacket | null; - - /** MsgTimeout proof. */ - public proof: Uint8Array; - - /** MsgTimeout proofHeight. */ - public proofHeight: Long; - - /** MsgTimeout nextSequenceRecv. */ - public nextSequenceRecv: 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?: ibc.channel.IMsgTimeout): ibc.channel.MsgTimeout; - - /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgTimeout; - } - - /** Properties of a MsgAcknowledgement. */ - interface IMsgAcknowledgement { - /** MsgAcknowledgement packet */ - packet?: ibc.channel.IPacket | null; - - /** MsgAcknowledgement acknowledgement */ - acknowledgement?: Uint8Array | null; - - /** MsgAcknowledgement proof */ - proof?: Uint8Array | null; - - /** MsgAcknowledgement proofHeight */ - proofHeight?: 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?: ibc.channel.IMsgAcknowledgement); - - /** MsgAcknowledgement packet. */ - public packet?: ibc.channel.IPacket | null; - - /** MsgAcknowledgement acknowledgement. */ - public acknowledgement: Uint8Array; - - /** MsgAcknowledgement proof. */ - public proof: Uint8Array; - - /** MsgAcknowledgement proofHeight. */ - public proofHeight: 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?: ibc.channel.IMsgAcknowledgement): ibc.channel.MsgAcknowledgement; - - /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.MsgAcknowledgement; - } - - /** Properties of a Channel. */ - interface IChannel { - /** Channel state */ - state?: ibc.channel.State | null; - - /** Channel ordering */ - ordering?: ibc.channel.Order | null; - - /** Channel counterparty */ - counterparty?: ibc.channel.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?: ibc.channel.IChannel); - - /** Channel state. */ - public state: ibc.channel.State; - - /** Channel ordering. */ - public ordering: ibc.channel.Order; - - /** Channel counterparty. */ - public counterparty?: ibc.channel.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?: ibc.channel.IChannel): ibc.channel.Channel; - - /** - * Encodes the specified Channel message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.Channel; - } - - /** Properties of an IdentifiedChannel. */ - interface IIdentifiedChannel { - /** IdentifiedChannel state */ - state?: ibc.channel.State | null; - - /** IdentifiedChannel ordering */ - ordering?: ibc.channel.Order | null; - - /** IdentifiedChannel counterparty */ - counterparty?: ibc.channel.ICounterparty | null; - - /** IdentifiedChannel connectionHops */ - connectionHops?: string[] | null; - - /** IdentifiedChannel version */ - version?: string | null; - - /** IdentifiedChannel portId */ - portId?: string | null; - - /** IdentifiedChannel channelId */ - channelId?: string | null; - } - - /** Represents an IdentifiedChannel. */ - class IdentifiedChannel implements IIdentifiedChannel { - /** - * Constructs a new IdentifiedChannel. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IIdentifiedChannel); - - /** IdentifiedChannel state. */ - public state: ibc.channel.State; - - /** IdentifiedChannel ordering. */ - public ordering: ibc.channel.Order; - - /** IdentifiedChannel counterparty. */ - public counterparty?: ibc.channel.ICounterparty | null; - - /** IdentifiedChannel connectionHops. */ - public connectionHops: string[]; - - /** IdentifiedChannel version. */ - public version: string; - - /** IdentifiedChannel portId. */ - public portId: string; - - /** IdentifiedChannel channelId. */ - public channelId: string; - - /** - * Creates a new IdentifiedChannel instance using the specified properties. - * @param [properties] Properties to set - * @returns IdentifiedChannel instance - */ - public static create(properties?: ibc.channel.IIdentifiedChannel): ibc.channel.IdentifiedChannel; - - /** - * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.channel.IdentifiedChannel.verify|verify} messages. - * @param m IdentifiedChannel message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IIdentifiedChannel, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IdentifiedChannel message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns IdentifiedChannel - * @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): ibc.channel.IdentifiedChannel; - } - - /** 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?: ibc.channel.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?: ibc.channel.ICounterparty): ibc.channel.Counterparty; - - /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.Counterparty; - } - - /** Properties of a Packet. */ - interface IPacket { - /** Packet sequence */ - sequence?: 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?: Long | null; - - /** Packet timeoutTimestamp */ - timeoutTimestamp?: Long | null; - } - - /** Represents a Packet. */ - class Packet implements IPacket { - /** - * Constructs a new Packet. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IPacket); - - /** Packet sequence. */ - public sequence: 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: Long; - - /** Packet timeoutTimestamp. */ - public timeoutTimestamp: Long; - - /** - * Creates a new Packet instance using the specified properties. - * @param [properties] Properties to set - * @returns Packet instance - */ - public static create(properties?: ibc.channel.IPacket): ibc.channel.Packet; - - /** - * Encodes the specified Packet message. Does not implicitly {@link ibc.channel.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: ibc.channel.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): ibc.channel.Packet; - } - - /** Properties of a PacketAckCommitment. */ - interface IPacketAckCommitment { - /** PacketAckCommitment portId */ - portId?: string | null; - - /** PacketAckCommitment channelId */ - channelId?: string | null; - - /** PacketAckCommitment sequence */ - sequence?: Long | null; - - /** PacketAckCommitment hash */ - hash?: Uint8Array | null; - } - - /** Represents a PacketAckCommitment. */ - class PacketAckCommitment implements IPacketAckCommitment { - /** - * Constructs a new PacketAckCommitment. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IPacketAckCommitment); - - /** PacketAckCommitment portId. */ - public portId: string; - - /** PacketAckCommitment channelId. */ - public channelId: string; - - /** PacketAckCommitment sequence. */ - public sequence: Long; - - /** PacketAckCommitment hash. */ - public hash: Uint8Array; - - /** - * Creates a new PacketAckCommitment instance using the specified properties. - * @param [properties] Properties to set - * @returns PacketAckCommitment instance - */ - public static create(properties?: ibc.channel.IPacketAckCommitment): ibc.channel.PacketAckCommitment; - - /** - * Encodes the specified PacketAckCommitment message. Does not implicitly {@link ibc.channel.PacketAckCommitment.verify|verify} messages. - * @param m PacketAckCommitment message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IPacketAckCommitment, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PacketAckCommitment message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns PacketAckCommitment - * @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): ibc.channel.PacketAckCommitment; - } - - /** 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 Channel. - * @param request QueryChannelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelResponse - */ - public channel( - request: ibc.channel.IQueryChannelRequest, - callback: ibc.channel.Query.ChannelCallback, - ): void; - - /** - * Calls Channel. - * @param request QueryChannelRequest message or plain object - * @returns Promise - */ - public channel(request: ibc.channel.IQueryChannelRequest): Promise; - - /** - * Calls Channels. - * @param request QueryChannelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelsResponse - */ - public channels( - request: ibc.channel.IQueryChannelsRequest, - callback: ibc.channel.Query.ChannelsCallback, - ): void; - - /** - * Calls Channels. - * @param request QueryChannelsRequest message or plain object - * @returns Promise - */ - public channels(request: ibc.channel.IQueryChannelsRequest): Promise; - - /** - * Calls ConnectionChannels. - * @param request QueryConnectionChannelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse - */ - public connectionChannels( - request: ibc.channel.IQueryConnectionChannelsRequest, - callback: ibc.channel.Query.ConnectionChannelsCallback, - ): void; - - /** - * Calls ConnectionChannels. - * @param request QueryConnectionChannelsRequest message or plain object - * @returns Promise - */ - public connectionChannels( - request: ibc.channel.IQueryConnectionChannelsRequest, - ): Promise; - - /** - * Calls PacketCommitment. - * @param request QueryPacketCommitmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse - */ - public packetCommitment( - request: ibc.channel.IQueryPacketCommitmentRequest, - callback: ibc.channel.Query.PacketCommitmentCallback, - ): void; - - /** - * Calls PacketCommitment. - * @param request QueryPacketCommitmentRequest message or plain object - * @returns Promise - */ - public packetCommitment( - request: ibc.channel.IQueryPacketCommitmentRequest, - ): Promise; - - /** - * Calls PacketCommitments. - * @param request QueryPacketCommitmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse - */ - public packetCommitments( - request: ibc.channel.IQueryPacketCommitmentsRequest, - callback: ibc.channel.Query.PacketCommitmentsCallback, - ): void; - - /** - * Calls PacketCommitments. - * @param request QueryPacketCommitmentsRequest message or plain object - * @returns Promise - */ - public packetCommitments( - request: ibc.channel.IQueryPacketCommitmentsRequest, - ): Promise; - - /** - * Calls PacketAcknowledgement. - * @param request QueryPacketAcknowledgementRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse - */ - public packetAcknowledgement( - request: ibc.channel.IQueryPacketAcknowledgementRequest, - callback: ibc.channel.Query.PacketAcknowledgementCallback, - ): void; - - /** - * Calls PacketAcknowledgement. - * @param request QueryPacketAcknowledgementRequest message or plain object - * @returns Promise - */ - public packetAcknowledgement( - request: ibc.channel.IQueryPacketAcknowledgementRequest, - ): Promise; - - /** - * Calls UnrelayedPackets. - * @param request QueryUnrelayedPacketsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUnrelayedPacketsResponse - */ - public unrelayedPackets( - request: ibc.channel.IQueryUnrelayedPacketsRequest, - callback: ibc.channel.Query.UnrelayedPacketsCallback, - ): void; - - /** - * Calls UnrelayedPackets. - * @param request QueryUnrelayedPacketsRequest message or plain object - * @returns Promise - */ - public unrelayedPackets( - request: ibc.channel.IQueryUnrelayedPacketsRequest, - ): Promise; - - /** - * Calls NextSequenceReceive. - * @param request QueryNextSequenceReceiveRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse - */ - public nextSequenceReceive( - request: ibc.channel.IQueryNextSequenceReceiveRequest, - callback: ibc.channel.Query.NextSequenceReceiveCallback, - ): void; - - /** - * Calls NextSequenceReceive. - * @param request QueryNextSequenceReceiveRequest message or plain object - * @returns Promise - */ - public nextSequenceReceive( - request: ibc.channel.IQueryNextSequenceReceiveRequest, - ): Promise; - } - - namespace Query { - /** - * Callback as used by {@link ibc.channel.Query#channel}. - * @param error Error, if any - * @param [response] QueryChannelResponse - */ - type ChannelCallback = (error: Error | null, response?: ibc.channel.QueryChannelResponse) => void; - - /** - * Callback as used by {@link ibc.channel.Query#channels}. - * @param error Error, if any - * @param [response] QueryChannelsResponse - */ - type ChannelsCallback = (error: Error | null, response?: ibc.channel.QueryChannelsResponse) => void; - - /** - * Callback as used by {@link ibc.channel.Query#connectionChannels}. - * @param error Error, if any - * @param [response] QueryConnectionChannelsResponse - */ - type ConnectionChannelsCallback = ( - error: Error | null, - response?: ibc.channel.QueryConnectionChannelsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#packetCommitment}. - * @param error Error, if any - * @param [response] QueryPacketCommitmentResponse - */ - type PacketCommitmentCallback = ( - error: Error | null, - response?: ibc.channel.QueryPacketCommitmentResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#packetCommitments}. - * @param error Error, if any - * @param [response] QueryPacketCommitmentsResponse - */ - type PacketCommitmentsCallback = ( - error: Error | null, - response?: ibc.channel.QueryPacketCommitmentsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#packetAcknowledgement}. - * @param error Error, if any - * @param [response] QueryPacketAcknowledgementResponse - */ - type PacketAcknowledgementCallback = ( - error: Error | null, - response?: ibc.channel.QueryPacketAcknowledgementResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#unrelayedPackets}. - * @param error Error, if any - * @param [response] QueryUnrelayedPacketsResponse - */ - type UnrelayedPacketsCallback = ( - error: Error | null, - response?: ibc.channel.QueryUnrelayedPacketsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.channel.Query#nextSequenceReceive}. - * @param error Error, if any - * @param [response] QueryNextSequenceReceiveResponse - */ - type NextSequenceReceiveCallback = ( - error: Error | null, - response?: ibc.channel.QueryNextSequenceReceiveResponse, - ) => void; - } - - /** Properties of a QueryChannelRequest. */ - interface IQueryChannelRequest { - /** QueryChannelRequest portId */ - portId?: string | null; - - /** QueryChannelRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryChannelRequest. */ - class QueryChannelRequest implements IQueryChannelRequest { - /** - * Constructs a new QueryChannelRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelRequest); - - /** QueryChannelRequest portId. */ - public portId: string; - - /** QueryChannelRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryChannelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelRequest instance - */ - public static create(properties?: ibc.channel.IQueryChannelRequest): ibc.channel.QueryChannelRequest; - - /** - * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.channel.QueryChannelRequest.verify|verify} messages. - * @param m QueryChannelRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelRequest - * @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): ibc.channel.QueryChannelRequest; - } - - /** Properties of a QueryChannelResponse. */ - interface IQueryChannelResponse { - /** QueryChannelResponse channel */ - channel?: ibc.channel.IChannel | null; - - /** QueryChannelResponse proof */ - proof?: Uint8Array | null; - - /** QueryChannelResponse proofPath */ - proofPath?: string | null; - - /** QueryChannelResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryChannelResponse. */ - class QueryChannelResponse implements IQueryChannelResponse { - /** - * Constructs a new QueryChannelResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelResponse); - - /** QueryChannelResponse channel. */ - public channel?: ibc.channel.IChannel | null; - - /** QueryChannelResponse proof. */ - public proof: Uint8Array; - - /** QueryChannelResponse proofPath. */ - public proofPath: string; - - /** QueryChannelResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryChannelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelResponse instance - */ - public static create(properties?: ibc.channel.IQueryChannelResponse): ibc.channel.QueryChannelResponse; - - /** - * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.channel.QueryChannelResponse.verify|verify} messages. - * @param m QueryChannelResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelResponse - * @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): ibc.channel.QueryChannelResponse; - } - - /** Properties of a QueryChannelsRequest. */ - interface IQueryChannelsRequest { - /** QueryChannelsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryChannelsRequest. */ - class QueryChannelsRequest implements IQueryChannelsRequest { - /** - * Constructs a new QueryChannelsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelsRequest); - - /** QueryChannelsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryChannelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelsRequest instance - */ - public static create(properties?: ibc.channel.IQueryChannelsRequest): ibc.channel.QueryChannelsRequest; - - /** - * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.channel.QueryChannelsRequest.verify|verify} messages. - * @param m QueryChannelsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelsRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelsRequest - * @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): ibc.channel.QueryChannelsRequest; - } - - /** Properties of a QueryChannelsResponse. */ - interface IQueryChannelsResponse { - /** QueryChannelsResponse channels */ - channels?: ibc.channel.IIdentifiedChannel[] | null; - - /** QueryChannelsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryChannelsResponse height */ - height?: Long | null; - } - - /** Represents a QueryChannelsResponse. */ - class QueryChannelsResponse implements IQueryChannelsResponse { - /** - * Constructs a new QueryChannelsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelsResponse); - - /** QueryChannelsResponse channels. */ - public channels: ibc.channel.IIdentifiedChannel[]; - - /** QueryChannelsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryChannelsResponse height. */ - public height: Long; - - /** - * Creates a new QueryChannelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryChannelsResponse, - ): ibc.channel.QueryChannelsResponse; - - /** - * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.channel.QueryChannelsResponse.verify|verify} messages. - * @param m QueryChannelsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.channel.IQueryChannelsResponse, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelsResponse - * @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): ibc.channel.QueryChannelsResponse; - } - - /** Properties of a QueryConnectionChannelsRequest. */ - interface IQueryConnectionChannelsRequest { - /** QueryConnectionChannelsRequest connection */ - connection?: string | null; - - /** QueryConnectionChannelsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryConnectionChannelsRequest. */ - class QueryConnectionChannelsRequest implements IQueryConnectionChannelsRequest { - /** - * Constructs a new QueryConnectionChannelsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryConnectionChannelsRequest); - - /** QueryConnectionChannelsRequest connection. */ - public connection: string; - - /** QueryConnectionChannelsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryConnectionChannelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionChannelsRequest instance - */ - public static create( - properties?: ibc.channel.IQueryConnectionChannelsRequest, - ): ibc.channel.QueryConnectionChannelsRequest; - - /** - * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.channel.QueryConnectionChannelsRequest.verify|verify} messages. - * @param m QueryConnectionChannelsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryConnectionChannelsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionChannelsRequest - * @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, - ): ibc.channel.QueryConnectionChannelsRequest; - } - - /** Properties of a QueryConnectionChannelsResponse. */ - interface IQueryConnectionChannelsResponse { - /** QueryConnectionChannelsResponse channels */ - channels?: ibc.channel.IIdentifiedChannel[] | null; - - /** QueryConnectionChannelsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionChannelsResponse height */ - height?: Long | null; - } - - /** Represents a QueryConnectionChannelsResponse. */ - class QueryConnectionChannelsResponse implements IQueryConnectionChannelsResponse { - /** - * Constructs a new QueryConnectionChannelsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryConnectionChannelsResponse); - - /** QueryConnectionChannelsResponse channels. */ - public channels: ibc.channel.IIdentifiedChannel[]; - - /** QueryConnectionChannelsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionChannelsResponse height. */ - public height: Long; - - /** - * Creates a new QueryConnectionChannelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionChannelsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryConnectionChannelsResponse, - ): ibc.channel.QueryConnectionChannelsResponse; - - /** - * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.channel.QueryConnectionChannelsResponse.verify|verify} messages. - * @param m QueryConnectionChannelsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryConnectionChannelsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionChannelsResponse - * @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, - ): ibc.channel.QueryConnectionChannelsResponse; - } - - /** Properties of a QueryPacketCommitmentRequest. */ - interface IQueryPacketCommitmentRequest { - /** QueryPacketCommitmentRequest portId */ - portId?: string | null; - - /** QueryPacketCommitmentRequest channelId */ - channelId?: string | null; - - /** QueryPacketCommitmentRequest sequence */ - sequence?: Long | null; - } - - /** Represents a QueryPacketCommitmentRequest. */ - class QueryPacketCommitmentRequest implements IQueryPacketCommitmentRequest { - /** - * Constructs a new QueryPacketCommitmentRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentRequest); - - /** QueryPacketCommitmentRequest portId. */ - public portId: string; - - /** QueryPacketCommitmentRequest channelId. */ - public channelId: string; - - /** QueryPacketCommitmentRequest sequence. */ - public sequence: Long; - - /** - * Creates a new QueryPacketCommitmentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentRequest instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentRequest, - ): ibc.channel.QueryPacketCommitmentRequest; - - /** - * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentRequest.verify|verify} messages. - * @param m QueryPacketCommitmentRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentRequest - * @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, - ): ibc.channel.QueryPacketCommitmentRequest; - } - - /** Properties of a QueryPacketCommitmentResponse. */ - interface IQueryPacketCommitmentResponse { - /** QueryPacketCommitmentResponse commitment */ - commitment?: Uint8Array | null; - - /** QueryPacketCommitmentResponse proof */ - proof?: Uint8Array | null; - - /** QueryPacketCommitmentResponse proofPath */ - proofPath?: string | null; - - /** QueryPacketCommitmentResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryPacketCommitmentResponse. */ - class QueryPacketCommitmentResponse implements IQueryPacketCommitmentResponse { - /** - * Constructs a new QueryPacketCommitmentResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentResponse); - - /** QueryPacketCommitmentResponse commitment. */ - public commitment: Uint8Array; - - /** QueryPacketCommitmentResponse proof. */ - public proof: Uint8Array; - - /** QueryPacketCommitmentResponse proofPath. */ - public proofPath: string; - - /** QueryPacketCommitmentResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryPacketCommitmentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentResponse instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentResponse, - ): ibc.channel.QueryPacketCommitmentResponse; - - /** - * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentResponse.verify|verify} messages. - * @param m QueryPacketCommitmentResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentResponse - * @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, - ): ibc.channel.QueryPacketCommitmentResponse; - } - - /** Properties of a QueryPacketCommitmentsRequest. */ - interface IQueryPacketCommitmentsRequest { - /** QueryPacketCommitmentsRequest portId */ - portId?: string | null; - - /** QueryPacketCommitmentsRequest channelId */ - channelId?: string | null; - - /** QueryPacketCommitmentsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryPacketCommitmentsRequest. */ - class QueryPacketCommitmentsRequest implements IQueryPacketCommitmentsRequest { - /** - * Constructs a new QueryPacketCommitmentsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentsRequest); - - /** QueryPacketCommitmentsRequest portId. */ - public portId: string; - - /** QueryPacketCommitmentsRequest channelId. */ - public channelId: string; - - /** QueryPacketCommitmentsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryPacketCommitmentsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentsRequest instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentsRequest, - ): ibc.channel.QueryPacketCommitmentsRequest; - - /** - * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentsRequest.verify|verify} messages. - * @param m QueryPacketCommitmentsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentsRequest - * @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, - ): ibc.channel.QueryPacketCommitmentsRequest; - } - - /** Properties of a QueryPacketCommitmentsResponse. */ - interface IQueryPacketCommitmentsResponse { - /** QueryPacketCommitmentsResponse commitments */ - commitments?: ibc.channel.IPacketAckCommitment[] | null; - - /** QueryPacketCommitmentsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryPacketCommitmentsResponse height */ - height?: Long | null; - } - - /** Represents a QueryPacketCommitmentsResponse. */ - class QueryPacketCommitmentsResponse implements IQueryPacketCommitmentsResponse { - /** - * Constructs a new QueryPacketCommitmentsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketCommitmentsResponse); - - /** QueryPacketCommitmentsResponse commitments. */ - public commitments: ibc.channel.IPacketAckCommitment[]; - - /** QueryPacketCommitmentsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryPacketCommitmentsResponse height. */ - public height: Long; - - /** - * Creates a new QueryPacketCommitmentsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketCommitmentsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryPacketCommitmentsResponse, - ): ibc.channel.QueryPacketCommitmentsResponse; - - /** - * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.channel.QueryPacketCommitmentsResponse.verify|verify} messages. - * @param m QueryPacketCommitmentsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketCommitmentsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketCommitmentsResponse - * @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, - ): ibc.channel.QueryPacketCommitmentsResponse; - } - - /** Properties of a QueryPacketAcknowledgementRequest. */ - interface IQueryPacketAcknowledgementRequest { - /** QueryPacketAcknowledgementRequest portId */ - portId?: string | null; - - /** QueryPacketAcknowledgementRequest channelId */ - channelId?: string | null; - - /** QueryPacketAcknowledgementRequest sequence */ - sequence?: Long | null; - } - - /** Represents a QueryPacketAcknowledgementRequest. */ - class QueryPacketAcknowledgementRequest implements IQueryPacketAcknowledgementRequest { - /** - * Constructs a new QueryPacketAcknowledgementRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketAcknowledgementRequest); - - /** QueryPacketAcknowledgementRequest portId. */ - public portId: string; - - /** QueryPacketAcknowledgementRequest channelId. */ - public channelId: string; - - /** QueryPacketAcknowledgementRequest sequence. */ - public sequence: Long; - - /** - * Creates a new QueryPacketAcknowledgementRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketAcknowledgementRequest instance - */ - public static create( - properties?: ibc.channel.IQueryPacketAcknowledgementRequest, - ): ibc.channel.QueryPacketAcknowledgementRequest; - - /** - * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.channel.QueryPacketAcknowledgementRequest.verify|verify} messages. - * @param m QueryPacketAcknowledgementRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketAcknowledgementRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketAcknowledgementRequest - * @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, - ): ibc.channel.QueryPacketAcknowledgementRequest; - } - - /** Properties of a QueryPacketAcknowledgementResponse. */ - interface IQueryPacketAcknowledgementResponse { - /** QueryPacketAcknowledgementResponse acknowledgement */ - acknowledgement?: Uint8Array | null; - - /** QueryPacketAcknowledgementResponse proof */ - proof?: Uint8Array | null; - - /** QueryPacketAcknowledgementResponse proofPath */ - proofPath?: string | null; - - /** QueryPacketAcknowledgementResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryPacketAcknowledgementResponse. */ - class QueryPacketAcknowledgementResponse implements IQueryPacketAcknowledgementResponse { - /** - * Constructs a new QueryPacketAcknowledgementResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryPacketAcknowledgementResponse); - - /** QueryPacketAcknowledgementResponse acknowledgement. */ - public acknowledgement: Uint8Array; - - /** QueryPacketAcknowledgementResponse proof. */ - public proof: Uint8Array; - - /** QueryPacketAcknowledgementResponse proofPath. */ - public proofPath: string; - - /** QueryPacketAcknowledgementResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryPacketAcknowledgementResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryPacketAcknowledgementResponse instance - */ - public static create( - properties?: ibc.channel.IQueryPacketAcknowledgementResponse, - ): ibc.channel.QueryPacketAcknowledgementResponse; - - /** - * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.channel.QueryPacketAcknowledgementResponse.verify|verify} messages. - * @param m QueryPacketAcknowledgementResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryPacketAcknowledgementResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryPacketAcknowledgementResponse - * @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, - ): ibc.channel.QueryPacketAcknowledgementResponse; - } - - /** Properties of a QueryUnrelayedPacketsRequest. */ - interface IQueryUnrelayedPacketsRequest { - /** QueryUnrelayedPacketsRequest portId */ - portId?: string | null; - - /** QueryUnrelayedPacketsRequest channelId */ - channelId?: string | null; - - /** QueryUnrelayedPacketsRequest packetCommitmentSequences */ - packetCommitmentSequences?: Long[] | null; - - /** QueryUnrelayedPacketsRequest acknowledgements */ - acknowledgements?: boolean | null; - } - - /** Represents a QueryUnrelayedPacketsRequest. */ - class QueryUnrelayedPacketsRequest implements IQueryUnrelayedPacketsRequest { - /** - * Constructs a new QueryUnrelayedPacketsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryUnrelayedPacketsRequest); - - /** QueryUnrelayedPacketsRequest portId. */ - public portId: string; - - /** QueryUnrelayedPacketsRequest channelId. */ - public channelId: string; - - /** QueryUnrelayedPacketsRequest packetCommitmentSequences. */ - public packetCommitmentSequences: Long[]; - - /** QueryUnrelayedPacketsRequest acknowledgements. */ - public acknowledgements: boolean; - - /** - * Creates a new QueryUnrelayedPacketsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryUnrelayedPacketsRequest instance - */ - public static create( - properties?: ibc.channel.IQueryUnrelayedPacketsRequest, - ): ibc.channel.QueryUnrelayedPacketsRequest; - - /** - * Encodes the specified QueryUnrelayedPacketsRequest message. Does not implicitly {@link ibc.channel.QueryUnrelayedPacketsRequest.verify|verify} messages. - * @param m QueryUnrelayedPacketsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryUnrelayedPacketsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryUnrelayedPacketsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryUnrelayedPacketsRequest - * @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, - ): ibc.channel.QueryUnrelayedPacketsRequest; - } - - /** Properties of a QueryUnrelayedPacketsResponse. */ - interface IQueryUnrelayedPacketsResponse { - /** QueryUnrelayedPacketsResponse sequences */ - sequences?: Long[] | null; - - /** QueryUnrelayedPacketsResponse height */ - height?: Long | null; - } - - /** Represents a QueryUnrelayedPacketsResponse. */ - class QueryUnrelayedPacketsResponse implements IQueryUnrelayedPacketsResponse { - /** - * Constructs a new QueryUnrelayedPacketsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryUnrelayedPacketsResponse); - - /** QueryUnrelayedPacketsResponse sequences. */ - public sequences: Long[]; - - /** QueryUnrelayedPacketsResponse height. */ - public height: Long; - - /** - * Creates a new QueryUnrelayedPacketsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryUnrelayedPacketsResponse instance - */ - public static create( - properties?: ibc.channel.IQueryUnrelayedPacketsResponse, - ): ibc.channel.QueryUnrelayedPacketsResponse; - - /** - * Encodes the specified QueryUnrelayedPacketsResponse message. Does not implicitly {@link ibc.channel.QueryUnrelayedPacketsResponse.verify|verify} messages. - * @param m QueryUnrelayedPacketsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryUnrelayedPacketsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryUnrelayedPacketsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryUnrelayedPacketsResponse - * @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, - ): ibc.channel.QueryUnrelayedPacketsResponse; - } - - /** Properties of a QueryNextSequenceReceiveRequest. */ - interface IQueryNextSequenceReceiveRequest { - /** QueryNextSequenceReceiveRequest portId */ - portId?: string | null; - - /** QueryNextSequenceReceiveRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryNextSequenceReceiveRequest. */ - class QueryNextSequenceReceiveRequest implements IQueryNextSequenceReceiveRequest { - /** - * Constructs a new QueryNextSequenceReceiveRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryNextSequenceReceiveRequest); - - /** QueryNextSequenceReceiveRequest portId. */ - public portId: string; - - /** QueryNextSequenceReceiveRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryNextSequenceReceiveRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryNextSequenceReceiveRequest instance - */ - public static create( - properties?: ibc.channel.IQueryNextSequenceReceiveRequest, - ): ibc.channel.QueryNextSequenceReceiveRequest; - - /** - * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.channel.QueryNextSequenceReceiveRequest.verify|verify} messages. - * @param m QueryNextSequenceReceiveRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryNextSequenceReceiveRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryNextSequenceReceiveRequest - * @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, - ): ibc.channel.QueryNextSequenceReceiveRequest; - } - - /** Properties of a QueryNextSequenceReceiveResponse. */ - interface IQueryNextSequenceReceiveResponse { - /** QueryNextSequenceReceiveResponse nextSequenceReceive */ - nextSequenceReceive?: Long | null; - - /** QueryNextSequenceReceiveResponse proof */ - proof?: Uint8Array | null; - - /** QueryNextSequenceReceiveResponse proofPath */ - proofPath?: string | null; - - /** QueryNextSequenceReceiveResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryNextSequenceReceiveResponse. */ - class QueryNextSequenceReceiveResponse implements IQueryNextSequenceReceiveResponse { - /** - * Constructs a new QueryNextSequenceReceiveResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryNextSequenceReceiveResponse); - - /** QueryNextSequenceReceiveResponse nextSequenceReceive. */ - public nextSequenceReceive: Long; - - /** QueryNextSequenceReceiveResponse proof. */ - public proof: Uint8Array; - - /** QueryNextSequenceReceiveResponse proofPath. */ - public proofPath: string; - - /** QueryNextSequenceReceiveResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryNextSequenceReceiveResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryNextSequenceReceiveResponse instance - */ - public static create( - properties?: ibc.channel.IQueryNextSequenceReceiveResponse, - ): ibc.channel.QueryNextSequenceReceiveResponse; - - /** - * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.channel.QueryNextSequenceReceiveResponse.verify|verify} messages. - * @param m QueryNextSequenceReceiveResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryNextSequenceReceiveResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryNextSequenceReceiveResponse - * @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, - ): ibc.channel.QueryNextSequenceReceiveResponse; - } - - /** Properties of a QueryChannelClientStateRequest. */ - interface IQueryChannelClientStateRequest { - /** QueryChannelClientStateRequest portId */ - portId?: string | null; - - /** QueryChannelClientStateRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryChannelClientStateRequest. */ - class QueryChannelClientStateRequest implements IQueryChannelClientStateRequest { - /** - * Constructs a new QueryChannelClientStateRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelClientStateRequest); - - /** QueryChannelClientStateRequest portId. */ - public portId: string; - - /** QueryChannelClientStateRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryChannelClientStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelClientStateRequest instance - */ - public static create( - properties?: ibc.channel.IQueryChannelClientStateRequest, - ): ibc.channel.QueryChannelClientStateRequest; - - /** - * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.channel.QueryChannelClientStateRequest.verify|verify} messages. - * @param m QueryChannelClientStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryChannelClientStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelClientStateRequest - * @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, - ): ibc.channel.QueryChannelClientStateRequest; - } - - /** Properties of a QueryChannelConsensusStateRequest. */ - interface IQueryChannelConsensusStateRequest { - /** QueryChannelConsensusStateRequest portId */ - portId?: string | null; - - /** QueryChannelConsensusStateRequest channelId */ - channelId?: string | null; - } - - /** Represents a QueryChannelConsensusStateRequest. */ - class QueryChannelConsensusStateRequest implements IQueryChannelConsensusStateRequest { - /** - * Constructs a new QueryChannelConsensusStateRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.channel.IQueryChannelConsensusStateRequest); - - /** QueryChannelConsensusStateRequest portId. */ - public portId: string; - - /** QueryChannelConsensusStateRequest channelId. */ - public channelId: string; - - /** - * Creates a new QueryChannelConsensusStateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryChannelConsensusStateRequest instance - */ - public static create( - properties?: ibc.channel.IQueryChannelConsensusStateRequest, - ): ibc.channel.QueryChannelConsensusStateRequest; - - /** - * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.channel.QueryChannelConsensusStateRequest.verify|verify} messages. - * @param m QueryChannelConsensusStateRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.channel.IQueryChannelConsensusStateRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryChannelConsensusStateRequest - * @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, - ): ibc.channel.QueryChannelConsensusStateRequest; - } - } - - /** Namespace commitment. */ - namespace commitment { - /** 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?: ibc.commitment.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?: ibc.commitment.IMerkleRoot): ibc.commitment.MerkleRoot; - - /** - * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.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?: ibc.commitment.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?: ibc.commitment.IMerklePrefix): ibc.commitment.MerklePrefix; - - /** - * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.MerklePrefix; - } - - /** Properties of a MerklePath. */ - interface IMerklePath { - /** MerklePath keyPath */ - keyPath?: ibc.commitment.IKeyPath | null; - } - - /** Represents a MerklePath. */ - class MerklePath implements IMerklePath { - /** - * Constructs a new MerklePath. - * @param [p] Properties to set - */ - constructor(p?: ibc.commitment.IMerklePath); - - /** MerklePath keyPath. */ - public keyPath?: ibc.commitment.IKeyPath | null; - - /** - * Creates a new MerklePath instance using the specified properties. - * @param [properties] Properties to set - * @returns MerklePath instance - */ - public static create(properties?: ibc.commitment.IMerklePath): ibc.commitment.MerklePath; - - /** - * Encodes the specified MerklePath message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.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?: ibc.commitment.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?: ibc.commitment.IMerkleProof): ibc.commitment.MerkleProof; - - /** - * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.MerkleProof; - } - - /** Properties of a KeyPath. */ - interface IKeyPath { - /** KeyPath keys */ - keys?: ibc.commitment.IKey[] | null; - } - - /** Represents a KeyPath. */ - class KeyPath implements IKeyPath { - /** - * Constructs a new KeyPath. - * @param [p] Properties to set - */ - constructor(p?: ibc.commitment.IKeyPath); - - /** KeyPath keys. */ - public keys: ibc.commitment.IKey[]; - - /** - * Creates a new KeyPath instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyPath instance - */ - public static create(properties?: ibc.commitment.IKeyPath): ibc.commitment.KeyPath; - - /** - * Encodes the specified KeyPath message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.KeyPath; - } - - /** Properties of a Key. */ - interface IKey { - /** Key name */ - name?: Uint8Array | null; - - /** Key enc */ - enc?: ibc.commitment.KeyEncoding | null; - } - - /** Represents a Key. */ - class Key implements IKey { - /** - * Constructs a new Key. - * @param [p] Properties to set - */ - constructor(p?: ibc.commitment.IKey); - - /** Key name. */ - public name: Uint8Array; - - /** Key enc. */ - public enc: ibc.commitment.KeyEncoding; - - /** - * Creates a new Key instance using the specified properties. - * @param [properties] Properties to set - * @returns Key instance - */ - public static create(properties?: ibc.commitment.IKey): ibc.commitment.Key; - - /** - * Encodes the specified Key message. Does not implicitly {@link ibc.commitment.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: ibc.commitment.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): ibc.commitment.Key; - } - - /** KeyEncoding enum. */ - enum KeyEncoding { - KEY_ENCODING_URL_UNSPECIFIED = 0, - KEY_ENCODING_HEX = 1, - } - } - - /** Namespace connection. */ - namespace connection { - /** Properties of a MsgConnectionOpenInit. */ - interface IMsgConnectionOpenInit { - /** MsgConnectionOpenInit clientId */ - clientId?: string | null; - - /** MsgConnectionOpenInit connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenInit counterparty */ - counterparty?: ibc.connection.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?: ibc.connection.IMsgConnectionOpenInit); - - /** MsgConnectionOpenInit clientId. */ - public clientId: string; - - /** MsgConnectionOpenInit connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenInit counterparty. */ - public counterparty?: ibc.connection.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?: ibc.connection.IMsgConnectionOpenInit, - ): ibc.connection.MsgConnectionOpenInit; - - /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.connection.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: ibc.connection.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, - ): ibc.connection.MsgConnectionOpenInit; - } - - /** Properties of a MsgConnectionOpenTry. */ - interface IMsgConnectionOpenTry { - /** MsgConnectionOpenTry clientId */ - clientId?: string | null; - - /** MsgConnectionOpenTry connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenTry counterparty */ - counterparty?: ibc.connection.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions */ - counterpartyVersions?: string[] | null; - - /** MsgConnectionOpenTry proofInit */ - proofInit?: Uint8Array | null; - - /** MsgConnectionOpenTry proofHeight */ - proofHeight?: Long | null; - - /** MsgConnectionOpenTry proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenTry consensusHeight */ - consensusHeight?: 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?: ibc.connection.IMsgConnectionOpenTry); - - /** MsgConnectionOpenTry clientId. */ - public clientId: string; - - /** MsgConnectionOpenTry connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenTry counterparty. */ - public counterparty?: ibc.connection.ICounterparty | null; - - /** MsgConnectionOpenTry counterpartyVersions. */ - public counterpartyVersions: string[]; - - /** MsgConnectionOpenTry proofInit. */ - public proofInit: Uint8Array; - - /** MsgConnectionOpenTry proofHeight. */ - public proofHeight: Long; - - /** MsgConnectionOpenTry proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenTry consensusHeight. */ - public consensusHeight: 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?: ibc.connection.IMsgConnectionOpenTry, - ): ibc.connection.MsgConnectionOpenTry; - - /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.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?: Long | null; - - /** MsgConnectionOpenAck proofConsensus */ - proofConsensus?: Uint8Array | null; - - /** MsgConnectionOpenAck consensusHeight */ - consensusHeight?: 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?: ibc.connection.IMsgConnectionOpenAck); - - /** MsgConnectionOpenAck connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenAck version. */ - public version: string; - - /** MsgConnectionOpenAck proofTry. */ - public proofTry: Uint8Array; - - /** MsgConnectionOpenAck proofHeight. */ - public proofHeight: Long; - - /** MsgConnectionOpenAck proofConsensus. */ - public proofConsensus: Uint8Array; - - /** MsgConnectionOpenAck consensusHeight. */ - public consensusHeight: 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?: ibc.connection.IMsgConnectionOpenAck, - ): ibc.connection.MsgConnectionOpenAck; - - /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.MsgConnectionOpenAck; - } - - /** Properties of a MsgConnectionOpenConfirm. */ - interface IMsgConnectionOpenConfirm { - /** MsgConnectionOpenConfirm connectionId */ - connectionId?: string | null; - - /** MsgConnectionOpenConfirm proofAck */ - proofAck?: Uint8Array | null; - - /** MsgConnectionOpenConfirm proofHeight */ - proofHeight?: 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?: ibc.connection.IMsgConnectionOpenConfirm); - - /** MsgConnectionOpenConfirm connectionId. */ - public connectionId: string; - - /** MsgConnectionOpenConfirm proofAck. */ - public proofAck: Uint8Array; - - /** MsgConnectionOpenConfirm proofHeight. */ - public proofHeight: 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?: ibc.connection.IMsgConnectionOpenConfirm, - ): ibc.connection.MsgConnectionOpenConfirm; - - /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.connection.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: ibc.connection.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, - ): ibc.connection.MsgConnectionOpenConfirm; - } - - /** Properties of a ConnectionEnd. */ - interface IConnectionEnd { - /** ConnectionEnd clientId */ - clientId?: string | null; - - /** ConnectionEnd versions */ - versions?: string[] | null; - - /** ConnectionEnd state */ - state?: ibc.connection.State | null; - - /** ConnectionEnd counterparty */ - counterparty?: ibc.connection.ICounterparty | null; - } - - /** Represents a ConnectionEnd. */ - class ConnectionEnd implements IConnectionEnd { - /** - * Constructs a new ConnectionEnd. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IConnectionEnd); - - /** ConnectionEnd clientId. */ - public clientId: string; - - /** ConnectionEnd versions. */ - public versions: string[]; - - /** ConnectionEnd state. */ - public state: ibc.connection.State; - - /** ConnectionEnd counterparty. */ - public counterparty?: ibc.connection.ICounterparty | null; - - /** - * Creates a new ConnectionEnd instance using the specified properties. - * @param [properties] Properties to set - * @returns ConnectionEnd instance - */ - public static create(properties?: ibc.connection.IConnectionEnd): ibc.connection.ConnectionEnd; - - /** - * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.ConnectionEnd; - } - - /** Properties of an IdentifiedConnection. */ - interface IIdentifiedConnection { - /** IdentifiedConnection id */ - id?: string | null; - - /** IdentifiedConnection clientId */ - clientId?: string | null; - - /** IdentifiedConnection versions */ - versions?: string[] | null; - - /** IdentifiedConnection state */ - state?: ibc.connection.State | null; - - /** IdentifiedConnection counterparty */ - counterparty?: ibc.connection.ICounterparty | null; - } - - /** Represents an IdentifiedConnection. */ - class IdentifiedConnection implements IIdentifiedConnection { - /** - * Constructs a new IdentifiedConnection. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IIdentifiedConnection); - - /** IdentifiedConnection id. */ - public id: string; - - /** IdentifiedConnection clientId. */ - public clientId: string; - - /** IdentifiedConnection versions. */ - public versions: string[]; - - /** IdentifiedConnection state. */ - public state: ibc.connection.State; - - /** IdentifiedConnection counterparty. */ - public counterparty?: ibc.connection.ICounterparty | null; - - /** - * Creates a new IdentifiedConnection instance using the specified properties. - * @param [properties] Properties to set - * @returns IdentifiedConnection instance - */ - public static create( - properties?: ibc.connection.IIdentifiedConnection, - ): ibc.connection.IdentifiedConnection; - - /** - * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.connection.IdentifiedConnection.verify|verify} messages. - * @param m IdentifiedConnection message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IIdentifiedConnection, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IdentifiedConnection message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns IdentifiedConnection - * @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): ibc.connection.IdentifiedConnection; - } - - /** 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?: ibc.commitment.IMerklePrefix | null; - } - - /** Represents a Counterparty. */ - class Counterparty implements ICounterparty { - /** - * Constructs a new Counterparty. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.ICounterparty); - - /** Counterparty clientId. */ - public clientId: string; - - /** Counterparty connectionId. */ - public connectionId: string; - - /** Counterparty prefix. */ - public prefix?: ibc.commitment.IMerklePrefix | null; - - /** - * Creates a new Counterparty instance using the specified properties. - * @param [properties] Properties to set - * @returns Counterparty instance - */ - public static create(properties?: ibc.connection.ICounterparty): ibc.connection.Counterparty; - - /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.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?: ibc.connection.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?: ibc.connection.IClientPaths): ibc.connection.ClientPaths; - - /** - * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.connection.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: ibc.connection.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): ibc.connection.ClientPaths; - } - - /** Properties of a ConnectionPaths. */ - interface IConnectionPaths { - /** ConnectionPaths clientId */ - clientId?: string | null; - - /** ConnectionPaths paths */ - paths?: string[] | null; - } - - /** Represents a ConnectionPaths. */ - class ConnectionPaths implements IConnectionPaths { - /** - * Constructs a new ConnectionPaths. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IConnectionPaths); - - /** ConnectionPaths clientId. */ - public clientId: string; - - /** ConnectionPaths paths. */ - public paths: string[]; - - /** - * Creates a new ConnectionPaths instance using the specified properties. - * @param [properties] Properties to set - * @returns ConnectionPaths instance - */ - public static create(properties?: ibc.connection.IConnectionPaths): ibc.connection.ConnectionPaths; - - /** - * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.connection.ConnectionPaths.verify|verify} messages. - * @param m ConnectionPaths message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IConnectionPaths, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConnectionPaths message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns ConnectionPaths - * @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): ibc.connection.ConnectionPaths; - } - - /** Properties of a Version. */ - interface IVersion { - /** Version identifier */ - identifier?: string | null; - - /** Version features */ - features?: string[] | null; - } - - /** Represents a Version. */ - class Version implements IVersion { - /** - * Constructs a new Version. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IVersion); - - /** Version identifier. */ - public identifier: string; - - /** Version features. */ - public features: string[]; - - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: ibc.connection.IVersion): ibc.connection.Version; - - /** - * Encodes the specified Version message. Does not implicitly {@link ibc.connection.Version.verify|verify} messages. - * @param m Version message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IVersion, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Version message from the specified reader or buffer. - * @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(r: $protobuf.Reader | Uint8Array, l?: number): ibc.connection.Version; - } - - /** 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 Connection. - * @param request QueryConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionResponse - */ - public connection( - request: ibc.connection.IQueryConnectionRequest, - callback: ibc.connection.Query.ConnectionCallback, - ): void; - - /** - * Calls Connection. - * @param request QueryConnectionRequest message or plain object - * @returns Promise - */ - public connection( - request: ibc.connection.IQueryConnectionRequest, - ): Promise; - - /** - * Calls Connections. - * @param request QueryConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionsResponse - */ - public connections( - request: ibc.connection.IQueryConnectionsRequest, - callback: ibc.connection.Query.ConnectionsCallback, - ): void; - - /** - * Calls Connections. - * @param request QueryConnectionsRequest message or plain object - * @returns Promise - */ - public connections( - request: ibc.connection.IQueryConnectionsRequest, - ): Promise; - - /** - * Calls ClientConnections. - * @param request QueryClientConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse - */ - public clientConnections( - request: ibc.connection.IQueryClientConnectionsRequest, - callback: ibc.connection.Query.ClientConnectionsCallback, - ): void; - - /** - * Calls ClientConnections. - * @param request QueryClientConnectionsRequest message or plain object - * @returns Promise - */ - public clientConnections( - request: ibc.connection.IQueryClientConnectionsRequest, - ): Promise; - } - - namespace Query { - /** - * Callback as used by {@link ibc.connection.Query#connection}. - * @param error Error, if any - * @param [response] QueryConnectionResponse - */ - type ConnectionCallback = ( - error: Error | null, - response?: ibc.connection.QueryConnectionResponse, - ) => void; - - /** - * Callback as used by {@link ibc.connection.Query#connections}. - * @param error Error, if any - * @param [response] QueryConnectionsResponse - */ - type ConnectionsCallback = ( - error: Error | null, - response?: ibc.connection.QueryConnectionsResponse, - ) => void; - - /** - * Callback as used by {@link ibc.connection.Query#clientConnections}. - * @param error Error, if any - * @param [response] QueryClientConnectionsResponse - */ - type ClientConnectionsCallback = ( - error: Error | null, - response?: ibc.connection.QueryClientConnectionsResponse, - ) => void; - } - - /** Properties of a QueryConnectionRequest. */ - interface IQueryConnectionRequest { - /** QueryConnectionRequest connectionId */ - connectionId?: string | null; - } - - /** Represents a QueryConnectionRequest. */ - class QueryConnectionRequest implements IQueryConnectionRequest { - /** - * Constructs a new QueryConnectionRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionRequest); - - /** QueryConnectionRequest connectionId. */ - public connectionId: string; - - /** - * Creates a new QueryConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionRequest instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionRequest, - ): ibc.connection.QueryConnectionRequest; - - /** - * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.connection.QueryConnectionRequest.verify|verify} messages. - * @param m QueryConnectionRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode(m: ibc.connection.IQueryConnectionRequest, w?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionRequest - * @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, - ): ibc.connection.QueryConnectionRequest; - } - - /** Properties of a QueryConnectionResponse. */ - interface IQueryConnectionResponse { - /** QueryConnectionResponse connection */ - connection?: ibc.connection.IConnectionEnd | null; - - /** QueryConnectionResponse proof */ - proof?: Uint8Array | null; - - /** QueryConnectionResponse proofPath */ - proofPath?: string | null; - - /** QueryConnectionResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryConnectionResponse. */ - class QueryConnectionResponse implements IQueryConnectionResponse { - /** - * Constructs a new QueryConnectionResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionResponse); - - /** QueryConnectionResponse connection. */ - public connection?: ibc.connection.IConnectionEnd | null; - - /** QueryConnectionResponse proof. */ - public proof: Uint8Array; - - /** QueryConnectionResponse proofPath. */ - public proofPath: string; - - /** QueryConnectionResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionResponse instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionResponse, - ): ibc.connection.QueryConnectionResponse; - - /** - * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.connection.QueryConnectionResponse.verify|verify} messages. - * @param m QueryConnectionResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryConnectionResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionResponse - * @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, - ): ibc.connection.QueryConnectionResponse; - } - - /** Properties of a QueryConnectionsRequest. */ - interface IQueryConnectionsRequest { - /** QueryConnectionsRequest pagination */ - pagination?: cosmos.query.IPageRequest | null; - } - - /** Represents a QueryConnectionsRequest. */ - class QueryConnectionsRequest implements IQueryConnectionsRequest { - /** - * Constructs a new QueryConnectionsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionsRequest); - - /** QueryConnectionsRequest pagination. */ - public pagination?: cosmos.query.IPageRequest | null; - - /** - * Creates a new QueryConnectionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionsRequest instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionsRequest, - ): ibc.connection.QueryConnectionsRequest; - - /** - * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.connection.QueryConnectionsRequest.verify|verify} messages. - * @param m QueryConnectionsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryConnectionsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionsRequest - * @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, - ): ibc.connection.QueryConnectionsRequest; - } - - /** Properties of a QueryConnectionsResponse. */ - interface IQueryConnectionsResponse { - /** QueryConnectionsResponse connections */ - connections?: ibc.connection.IIdentifiedConnection[] | null; - - /** QueryConnectionsResponse pagination */ - pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionsResponse height */ - height?: Long | null; - } - - /** Represents a QueryConnectionsResponse. */ - class QueryConnectionsResponse implements IQueryConnectionsResponse { - /** - * Constructs a new QueryConnectionsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryConnectionsResponse); - - /** QueryConnectionsResponse connections. */ - public connections: ibc.connection.IIdentifiedConnection[]; - - /** QueryConnectionsResponse pagination. */ - public pagination?: cosmos.query.IPageResponse | null; - - /** QueryConnectionsResponse height. */ - public height: Long; - - /** - * Creates a new QueryConnectionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryConnectionsResponse instance - */ - public static create( - properties?: ibc.connection.IQueryConnectionsResponse, - ): ibc.connection.QueryConnectionsResponse; - - /** - * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.connection.QueryConnectionsResponse.verify|verify} messages. - * @param m QueryConnectionsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryConnectionsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryConnectionsResponse - * @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, - ): ibc.connection.QueryConnectionsResponse; - } - - /** Properties of a QueryClientConnectionsRequest. */ - interface IQueryClientConnectionsRequest { - /** QueryClientConnectionsRequest clientId */ - clientId?: string | null; - } - - /** Represents a QueryClientConnectionsRequest. */ - class QueryClientConnectionsRequest implements IQueryClientConnectionsRequest { - /** - * Constructs a new QueryClientConnectionsRequest. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryClientConnectionsRequest); - - /** QueryClientConnectionsRequest clientId. */ - public clientId: string; - - /** - * Creates a new QueryClientConnectionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryClientConnectionsRequest instance - */ - public static create( - properties?: ibc.connection.IQueryClientConnectionsRequest, - ): ibc.connection.QueryClientConnectionsRequest; - - /** - * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.connection.QueryClientConnectionsRequest.verify|verify} messages. - * @param m QueryClientConnectionsRequest message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryClientConnectionsRequest, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryClientConnectionsRequest - * @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, - ): ibc.connection.QueryClientConnectionsRequest; - } - - /** Properties of a QueryClientConnectionsResponse. */ - interface IQueryClientConnectionsResponse { - /** QueryClientConnectionsResponse connectionPaths */ - connectionPaths?: string[] | null; - - /** QueryClientConnectionsResponse proof */ - proof?: Uint8Array | null; - - /** QueryClientConnectionsResponse proofPath */ - proofPath?: string | null; - - /** QueryClientConnectionsResponse proofHeight */ - proofHeight?: Long | null; - } - - /** Represents a QueryClientConnectionsResponse. */ - class QueryClientConnectionsResponse implements IQueryClientConnectionsResponse { - /** - * Constructs a new QueryClientConnectionsResponse. - * @param [p] Properties to set - */ - constructor(p?: ibc.connection.IQueryClientConnectionsResponse); - - /** QueryClientConnectionsResponse connectionPaths. */ - public connectionPaths: string[]; - - /** QueryClientConnectionsResponse proof. */ - public proof: Uint8Array; - - /** QueryClientConnectionsResponse proofPath. */ - public proofPath: string; - - /** QueryClientConnectionsResponse proofHeight. */ - public proofHeight: Long; - - /** - * Creates a new QueryClientConnectionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns QueryClientConnectionsResponse instance - */ - public static create( - properties?: ibc.connection.IQueryClientConnectionsResponse, - ): ibc.connection.QueryClientConnectionsResponse; - - /** - * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.connection.QueryClientConnectionsResponse.verify|verify} messages. - * @param m QueryClientConnectionsResponse message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: ibc.connection.IQueryClientConnectionsResponse, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. - * @param r Reader or buffer to decode from - * @param [l] Message length if known beforehand - * @returns QueryClientConnectionsResponse - * @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, - ): ibc.connection.QueryClientConnectionsResponse; - } - } -} - -/** Namespace tendermint. */ -export namespace tendermint { - /** Namespace abci. */ - namespace abci { - /** Namespace types. */ - namespace types { - /** Properties of a Request. */ - interface IRequest { - /** Request echo */ - echo?: tendermint.abci.types.IRequestEcho | null; - - /** Request flush */ - flush?: tendermint.abci.types.IRequestFlush | null; - - /** Request info */ - info?: tendermint.abci.types.IRequestInfo | null; - - /** Request setOption */ - setOption?: tendermint.abci.types.IRequestSetOption | null; - - /** Request initChain */ - initChain?: tendermint.abci.types.IRequestInitChain | null; - - /** Request query */ - query?: tendermint.abci.types.IRequestQuery | null; - - /** Request beginBlock */ - beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; - - /** Request checkTx */ - checkTx?: tendermint.abci.types.IRequestCheckTx | null; - - /** Request deliverTx */ - deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; - - /** Request endBlock */ - endBlock?: tendermint.abci.types.IRequestEndBlock | null; - - /** Request commit */ - commit?: tendermint.abci.types.IRequestCommit | null; - } - - /** Represents a Request. */ - class Request implements IRequest { - /** - * Constructs a new Request. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequest); - - /** Request echo. */ - public echo?: tendermint.abci.types.IRequestEcho | null; - - /** Request flush. */ - public flush?: tendermint.abci.types.IRequestFlush | null; - - /** Request info. */ - public info?: tendermint.abci.types.IRequestInfo | null; - - /** Request setOption. */ - public setOption?: tendermint.abci.types.IRequestSetOption | null; - - /** Request initChain. */ - public initChain?: tendermint.abci.types.IRequestInitChain | null; - - /** Request query. */ - public query?: tendermint.abci.types.IRequestQuery | null; - - /** Request beginBlock. */ - public beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; - - /** Request checkTx. */ - public checkTx?: tendermint.abci.types.IRequestCheckTx | null; - - /** Request deliverTx. */ - public deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; - - /** Request endBlock. */ - public endBlock?: tendermint.abci.types.IRequestEndBlock | null; - - /** Request commit. */ - public commit?: tendermint.abci.types.IRequestCommit | null; - - /** Request value. */ - public value?: - | "echo" - | "flush" - | "info" - | "setOption" - | "initChain" - | "query" - | "beginBlock" - | "checkTx" - | "deliverTx" - | "endBlock" - | "commit"; - - /** - * Creates a new Request instance using the specified properties. - * @param [properties] Properties to set - * @returns Request instance - */ - public static create(properties?: tendermint.abci.types.IRequest): tendermint.abci.types.Request; - - /** - * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.types.Request.verify|verify} messages. - * @param m Request message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Request; - } - - /** Properties of a RequestEcho. */ - interface IRequestEcho { - /** RequestEcho message */ - message?: string | null; - } - - /** Represents a RequestEcho. */ - class RequestEcho implements IRequestEcho { - /** - * Constructs a new RequestEcho. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestEcho); - - /** RequestEcho message. */ - public message: string; - - /** - * Creates a new RequestEcho instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestEcho instance - */ - public static create( - properties?: tendermint.abci.types.IRequestEcho, - ): tendermint.abci.types.RequestEcho; - - /** - * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.types.RequestEcho.verify|verify} messages. - * @param m RequestEcho message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestEcho; - } - - /** Properties of a RequestFlush. */ - interface IRequestFlush {} - - /** Represents a RequestFlush. */ - class RequestFlush implements IRequestFlush { - /** - * Constructs a new RequestFlush. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestFlush); - - /** - * Creates a new RequestFlush instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestFlush instance - */ - public static create( - properties?: tendermint.abci.types.IRequestFlush, - ): tendermint.abci.types.RequestFlush; - - /** - * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.types.RequestFlush.verify|verify} messages. - * @param m RequestFlush message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestFlush; - } - - /** Properties of a RequestInfo. */ - interface IRequestInfo { - /** RequestInfo version */ - version?: string | null; - - /** RequestInfo blockVersion */ - blockVersion?: Long | null; - - /** RequestInfo p2pVersion */ - p2pVersion?: Long | null; - } - - /** Represents a RequestInfo. */ - class RequestInfo implements IRequestInfo { - /** - * Constructs a new RequestInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestInfo); - - /** RequestInfo version. */ - public version: string; - - /** RequestInfo blockVersion. */ - public blockVersion: Long; - - /** RequestInfo p2pVersion. */ - public p2pVersion: Long; - - /** - * Creates a new RequestInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestInfo instance - */ - public static create( - properties?: tendermint.abci.types.IRequestInfo, - ): tendermint.abci.types.RequestInfo; - - /** - * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.types.RequestInfo.verify|verify} messages. - * @param m RequestInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestInfo; - } - - /** Properties of a RequestSetOption. */ - interface IRequestSetOption { - /** RequestSetOption key */ - key?: string | null; - - /** RequestSetOption value */ - value?: string | null; - } - - /** Represents a RequestSetOption. */ - class RequestSetOption implements IRequestSetOption { - /** - * Constructs a new RequestSetOption. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestSetOption); - - /** RequestSetOption key. */ - public key: string; - - /** RequestSetOption value. */ - public value: string; - - /** - * Creates a new RequestSetOption instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestSetOption instance - */ - public static create( - properties?: tendermint.abci.types.IRequestSetOption, - ): tendermint.abci.types.RequestSetOption; - - /** - * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.types.RequestSetOption.verify|verify} messages. - * @param m RequestSetOption message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestSetOption, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestSetOption message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestSetOption; - } - - /** Properties of a RequestInitChain. */ - interface IRequestInitChain { - /** RequestInitChain time */ - time?: google.protobuf.ITimestamp | null; - - /** RequestInitChain chainId */ - chainId?: string | null; - - /** RequestInitChain consensusParams */ - consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** RequestInitChain validators */ - validators?: tendermint.abci.types.IValidatorUpdate[] | null; - - /** RequestInitChain appStateBytes */ - appStateBytes?: Uint8Array | null; - } - - /** Represents a RequestInitChain. */ - class RequestInitChain implements IRequestInitChain { - /** - * Constructs a new RequestInitChain. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestInitChain); - - /** RequestInitChain time. */ - public time?: google.protobuf.ITimestamp | null; - - /** RequestInitChain chainId. */ - public chainId: string; - - /** RequestInitChain consensusParams. */ - public consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** RequestInitChain validators. */ - public validators: tendermint.abci.types.IValidatorUpdate[]; - - /** RequestInitChain appStateBytes. */ - public appStateBytes: Uint8Array; - - /** - * Creates a new RequestInitChain instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestInitChain instance - */ - public static create( - properties?: tendermint.abci.types.IRequestInitChain, - ): tendermint.abci.types.RequestInitChain; - - /** - * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.types.RequestInitChain.verify|verify} messages. - * @param m RequestInitChain message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestInitChain, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestInitChain message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestInitChain; - } - - /** Properties of a RequestQuery. */ - interface IRequestQuery { - /** RequestQuery data */ - data?: Uint8Array | null; - - /** RequestQuery path */ - path?: string | null; - - /** RequestQuery height */ - height?: Long | null; - - /** RequestQuery prove */ - prove?: boolean | null; - } - - /** Represents a RequestQuery. */ - class RequestQuery implements IRequestQuery { - /** - * Constructs a new RequestQuery. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestQuery); - - /** RequestQuery data. */ - public data: Uint8Array; - - /** RequestQuery path. */ - public path: string; - - /** RequestQuery height. */ - public height: Long; - - /** RequestQuery prove. */ - public prove: boolean; - - /** - * Creates a new RequestQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestQuery instance - */ - public static create( - properties?: tendermint.abci.types.IRequestQuery, - ): tendermint.abci.types.RequestQuery; - - /** - * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.types.RequestQuery.verify|verify} messages. - * @param m RequestQuery message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestQuery; - } - - /** Properties of a RequestBeginBlock. */ - interface IRequestBeginBlock { - /** RequestBeginBlock hash */ - hash?: Uint8Array | null; - - /** RequestBeginBlock header */ - header?: tendermint.abci.types.IHeader | null; - - /** RequestBeginBlock lastCommitInfo */ - lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; - - /** RequestBeginBlock byzantineValidators */ - byzantineValidators?: tendermint.abci.types.IEvidence[] | null; - } - - /** Represents a RequestBeginBlock. */ - class RequestBeginBlock implements IRequestBeginBlock { - /** - * Constructs a new RequestBeginBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestBeginBlock); - - /** RequestBeginBlock hash. */ - public hash: Uint8Array; - - /** RequestBeginBlock header. */ - public header?: tendermint.abci.types.IHeader | null; - - /** RequestBeginBlock lastCommitInfo. */ - public lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; - - /** RequestBeginBlock byzantineValidators. */ - public byzantineValidators: tendermint.abci.types.IEvidence[]; - - /** - * Creates a new RequestBeginBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestBeginBlock instance - */ - public static create( - properties?: tendermint.abci.types.IRequestBeginBlock, - ): tendermint.abci.types.RequestBeginBlock; - - /** - * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.types.RequestBeginBlock.verify|verify} messages. - * @param m RequestBeginBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestBeginBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestBeginBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestBeginBlock; - } - - /** CheckTxType enum. */ - enum CheckTxType { - New = 0, - Recheck = 1, - } - - /** Properties of a RequestCheckTx. */ - interface IRequestCheckTx { - /** RequestCheckTx tx */ - tx?: Uint8Array | null; - - /** RequestCheckTx type */ - type?: tendermint.abci.types.CheckTxType | null; - } - - /** Represents a RequestCheckTx. */ - class RequestCheckTx implements IRequestCheckTx { - /** - * Constructs a new RequestCheckTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestCheckTx); - - /** RequestCheckTx tx. */ - public tx: Uint8Array; - - /** RequestCheckTx type. */ - public type: tendermint.abci.types.CheckTxType; - - /** - * Creates a new RequestCheckTx instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestCheckTx instance - */ - public static create( - properties?: tendermint.abci.types.IRequestCheckTx, - ): tendermint.abci.types.RequestCheckTx; - - /** - * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.types.RequestCheckTx.verify|verify} messages. - * @param m RequestCheckTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestCheckTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestCheckTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestCheckTx; - } - - /** Properties of a RequestDeliverTx. */ - interface IRequestDeliverTx { - /** RequestDeliverTx tx */ - tx?: Uint8Array | null; - } - - /** Represents a RequestDeliverTx. */ - class RequestDeliverTx implements IRequestDeliverTx { - /** - * Constructs a new RequestDeliverTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestDeliverTx); - - /** RequestDeliverTx tx. */ - public tx: Uint8Array; - - /** - * Creates a new RequestDeliverTx instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestDeliverTx instance - */ - public static create( - properties?: tendermint.abci.types.IRequestDeliverTx, - ): tendermint.abci.types.RequestDeliverTx; - - /** - * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.types.RequestDeliverTx.verify|verify} messages. - * @param m RequestDeliverTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestDeliverTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestDeliverTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestDeliverTx; - } - - /** Properties of a RequestEndBlock. */ - interface IRequestEndBlock { - /** RequestEndBlock height */ - height?: Long | null; - } - - /** Represents a RequestEndBlock. */ - class RequestEndBlock implements IRequestEndBlock { - /** - * Constructs a new RequestEndBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestEndBlock); - - /** RequestEndBlock height. */ - public height: Long; - - /** - * Creates a new RequestEndBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestEndBlock instance - */ - public static create( - properties?: tendermint.abci.types.IRequestEndBlock, - ): tendermint.abci.types.RequestEndBlock; - - /** - * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.types.RequestEndBlock.verify|verify} messages. - * @param m RequestEndBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IRequestEndBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a RequestEndBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestEndBlock; - } - - /** Properties of a RequestCommit. */ - interface IRequestCommit {} - - /** Represents a RequestCommit. */ - class RequestCommit implements IRequestCommit { - /** - * Constructs a new RequestCommit. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IRequestCommit); - - /** - * Creates a new RequestCommit instance using the specified properties. - * @param [properties] Properties to set - * @returns RequestCommit instance - */ - public static create( - properties?: tendermint.abci.types.IRequestCommit, - ): tendermint.abci.types.RequestCommit; - - /** - * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.types.RequestCommit.verify|verify} messages. - * @param m RequestCommit message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.RequestCommit; - } - - /** Properties of a Response. */ - interface IResponse { - /** Response exception */ - exception?: tendermint.abci.types.IResponseException | null; - - /** Response echo */ - echo?: tendermint.abci.types.IResponseEcho | null; - - /** Response flush */ - flush?: tendermint.abci.types.IResponseFlush | null; - - /** Response info */ - info?: tendermint.abci.types.IResponseInfo | null; - - /** Response setOption */ - setOption?: tendermint.abci.types.IResponseSetOption | null; - - /** Response initChain */ - initChain?: tendermint.abci.types.IResponseInitChain | null; - - /** Response query */ - query?: tendermint.abci.types.IResponseQuery | null; - - /** Response beginBlock */ - beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; - - /** Response checkTx */ - checkTx?: tendermint.abci.types.IResponseCheckTx | null; - - /** Response deliverTx */ - deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; - - /** Response endBlock */ - endBlock?: tendermint.abci.types.IResponseEndBlock | null; - - /** Response commit */ - commit?: tendermint.abci.types.IResponseCommit | null; - } - - /** Represents a Response. */ - class Response implements IResponse { - /** - * Constructs a new Response. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponse); - - /** Response exception. */ - public exception?: tendermint.abci.types.IResponseException | null; - - /** Response echo. */ - public echo?: tendermint.abci.types.IResponseEcho | null; - - /** Response flush. */ - public flush?: tendermint.abci.types.IResponseFlush | null; - - /** Response info. */ - public info?: tendermint.abci.types.IResponseInfo | null; - - /** Response setOption. */ - public setOption?: tendermint.abci.types.IResponseSetOption | null; - - /** Response initChain. */ - public initChain?: tendermint.abci.types.IResponseInitChain | null; - - /** Response query. */ - public query?: tendermint.abci.types.IResponseQuery | null; - - /** Response beginBlock. */ - public beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; - - /** Response checkTx. */ - public checkTx?: tendermint.abci.types.IResponseCheckTx | null; - - /** Response deliverTx. */ - public deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; - - /** Response endBlock. */ - public endBlock?: tendermint.abci.types.IResponseEndBlock | null; - - /** Response commit. */ - public commit?: tendermint.abci.types.IResponseCommit | null; - - /** Response value. */ - public value?: - | "exception" - | "echo" - | "flush" - | "info" - | "setOption" - | "initChain" - | "query" - | "beginBlock" - | "checkTx" - | "deliverTx" - | "endBlock" - | "commit"; - - /** - * Creates a new Response instance using the specified properties. - * @param [properties] Properties to set - * @returns Response instance - */ - public static create(properties?: tendermint.abci.types.IResponse): tendermint.abci.types.Response; - - /** - * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.types.Response.verify|verify} messages. - * @param m Response message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Response; - } - - /** Properties of a ResponseException. */ - interface IResponseException { - /** ResponseException error */ - error?: string | null; - } - - /** Represents a ResponseException. */ - class ResponseException implements IResponseException { - /** - * Constructs a new ResponseException. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseException); - - /** ResponseException error. */ - public error: string; - - /** - * Creates a new ResponseException instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseException instance - */ - public static create( - properties?: tendermint.abci.types.IResponseException, - ): tendermint.abci.types.ResponseException; - - /** - * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.types.ResponseException.verify|verify} messages. - * @param m ResponseException message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseException, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseException message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseException; - } - - /** Properties of a ResponseEcho. */ - interface IResponseEcho { - /** ResponseEcho message */ - message?: string | null; - } - - /** Represents a ResponseEcho. */ - class ResponseEcho implements IResponseEcho { - /** - * Constructs a new ResponseEcho. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseEcho); - - /** ResponseEcho message. */ - public message: string; - - /** - * Creates a new ResponseEcho instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseEcho instance - */ - public static create( - properties?: tendermint.abci.types.IResponseEcho, - ): tendermint.abci.types.ResponseEcho; - - /** - * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.types.ResponseEcho.verify|verify} messages. - * @param m ResponseEcho message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseEcho; - } - - /** Properties of a ResponseFlush. */ - interface IResponseFlush {} - - /** Represents a ResponseFlush. */ - class ResponseFlush implements IResponseFlush { - /** - * Constructs a new ResponseFlush. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseFlush); - - /** - * Creates a new ResponseFlush instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseFlush instance - */ - public static create( - properties?: tendermint.abci.types.IResponseFlush, - ): tendermint.abci.types.ResponseFlush; - - /** - * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.types.ResponseFlush.verify|verify} messages. - * @param m ResponseFlush message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseFlush; - } - - /** Properties of a ResponseInfo. */ - interface IResponseInfo { - /** ResponseInfo data */ - data?: string | null; - - /** ResponseInfo version */ - version?: string | null; - - /** ResponseInfo appVersion */ - appVersion?: Long | null; - - /** ResponseInfo lastBlockHeight */ - lastBlockHeight?: Long | null; - - /** ResponseInfo lastBlockAppHash */ - lastBlockAppHash?: Uint8Array | null; - } - - /** Represents a ResponseInfo. */ - class ResponseInfo implements IResponseInfo { - /** - * Constructs a new ResponseInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseInfo); - - /** ResponseInfo data. */ - public data: string; - - /** ResponseInfo version. */ - public version: string; - - /** ResponseInfo appVersion. */ - public appVersion: Long; - - /** ResponseInfo lastBlockHeight. */ - public lastBlockHeight: Long; - - /** ResponseInfo lastBlockAppHash. */ - public lastBlockAppHash: Uint8Array; - - /** - * Creates a new ResponseInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseInfo instance - */ - public static create( - properties?: tendermint.abci.types.IResponseInfo, - ): tendermint.abci.types.ResponseInfo; - - /** - * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.types.ResponseInfo.verify|verify} messages. - * @param m ResponseInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseInfo; - } - - /** Properties of a ResponseSetOption. */ - interface IResponseSetOption { - /** ResponseSetOption code */ - code?: number | null; - - /** ResponseSetOption log */ - log?: string | null; - - /** ResponseSetOption info */ - info?: string | null; - } - - /** Represents a ResponseSetOption. */ - class ResponseSetOption implements IResponseSetOption { - /** - * Constructs a new ResponseSetOption. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseSetOption); - - /** ResponseSetOption code. */ - public code: number; - - /** ResponseSetOption log. */ - public log: string; - - /** ResponseSetOption info. */ - public info: string; - - /** - * Creates a new ResponseSetOption instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseSetOption instance - */ - public static create( - properties?: tendermint.abci.types.IResponseSetOption, - ): tendermint.abci.types.ResponseSetOption; - - /** - * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.types.ResponseSetOption.verify|verify} messages. - * @param m ResponseSetOption message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseSetOption, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseSetOption message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseSetOption; - } - - /** Properties of a ResponseInitChain. */ - interface IResponseInitChain { - /** ResponseInitChain consensusParams */ - consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseInitChain validators */ - validators?: tendermint.abci.types.IValidatorUpdate[] | null; - } - - /** Represents a ResponseInitChain. */ - class ResponseInitChain implements IResponseInitChain { - /** - * Constructs a new ResponseInitChain. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseInitChain); - - /** ResponseInitChain consensusParams. */ - public consensusParams?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseInitChain validators. */ - public validators: tendermint.abci.types.IValidatorUpdate[]; - - /** - * Creates a new ResponseInitChain instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseInitChain instance - */ - public static create( - properties?: tendermint.abci.types.IResponseInitChain, - ): tendermint.abci.types.ResponseInitChain; - - /** - * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.types.ResponseInitChain.verify|verify} messages. - * @param m ResponseInitChain message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseInitChain, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseInitChain message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseInitChain; - } - - /** Properties of a ResponseQuery. */ - interface IResponseQuery { - /** ResponseQuery code */ - code?: number | null; - - /** ResponseQuery log */ - log?: string | null; - - /** ResponseQuery info */ - info?: string | null; - - /** ResponseQuery index */ - index?: Long | null; - - /** ResponseQuery key */ - key?: Uint8Array | null; - - /** ResponseQuery value */ - value?: Uint8Array | null; - - /** ResponseQuery proof */ - proof?: tendermint.crypto.merkle.IProof | null; - - /** ResponseQuery height */ - height?: Long | null; - - /** ResponseQuery codespace */ - codespace?: string | null; - } - - /** Represents a ResponseQuery. */ - class ResponseQuery implements IResponseQuery { - /** - * Constructs a new ResponseQuery. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseQuery); - - /** ResponseQuery code. */ - public code: number; - - /** ResponseQuery log. */ - public log: string; - - /** ResponseQuery info. */ - public info: string; - - /** ResponseQuery index. */ - public index: Long; - - /** ResponseQuery key. */ - public key: Uint8Array; - - /** ResponseQuery value. */ - public value: Uint8Array; - - /** ResponseQuery proof. */ - public proof?: tendermint.crypto.merkle.IProof | null; - - /** ResponseQuery height. */ - public height: Long; - - /** ResponseQuery codespace. */ - public codespace: string; - - /** - * Creates a new ResponseQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseQuery instance - */ - public static create( - properties?: tendermint.abci.types.IResponseQuery, - ): tendermint.abci.types.ResponseQuery; - - /** - * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.types.ResponseQuery.verify|verify} messages. - * @param m ResponseQuery message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseQuery; - } - - /** Properties of a ResponseBeginBlock. */ - interface IResponseBeginBlock { - /** ResponseBeginBlock events */ - events?: tendermint.abci.types.IEvent[] | null; - } - - /** Represents a ResponseBeginBlock. */ - class ResponseBeginBlock implements IResponseBeginBlock { - /** - * Constructs a new ResponseBeginBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseBeginBlock); - - /** ResponseBeginBlock events. */ - public events: tendermint.abci.types.IEvent[]; - - /** - * Creates a new ResponseBeginBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseBeginBlock instance - */ - public static create( - properties?: tendermint.abci.types.IResponseBeginBlock, - ): tendermint.abci.types.ResponseBeginBlock; - - /** - * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.types.ResponseBeginBlock.verify|verify} messages. - * @param m ResponseBeginBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseBeginBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseBeginBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseBeginBlock; - } - - /** Properties of a ResponseCheckTx. */ - interface IResponseCheckTx { - /** ResponseCheckTx code */ - code?: number | null; - - /** ResponseCheckTx data */ - data?: Uint8Array | null; - - /** ResponseCheckTx log */ - log?: string | null; - - /** ResponseCheckTx info */ - info?: string | null; - - /** ResponseCheckTx gasWanted */ - gasWanted?: Long | null; - - /** ResponseCheckTx gasUsed */ - gasUsed?: Long | null; - - /** ResponseCheckTx events */ - events?: tendermint.abci.types.IEvent[] | null; - - /** ResponseCheckTx codespace */ - codespace?: string | null; - } - - /** Represents a ResponseCheckTx. */ - class ResponseCheckTx implements IResponseCheckTx { - /** - * Constructs a new ResponseCheckTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseCheckTx); - - /** ResponseCheckTx code. */ - public code: number; - - /** ResponseCheckTx data. */ - public data: Uint8Array; - - /** ResponseCheckTx log. */ - public log: string; - - /** ResponseCheckTx info. */ - public info: string; - - /** ResponseCheckTx gasWanted. */ - public gasWanted: Long; - - /** ResponseCheckTx gasUsed. */ - public gasUsed: Long; - - /** ResponseCheckTx events. */ - public events: tendermint.abci.types.IEvent[]; - - /** ResponseCheckTx codespace. */ - public codespace: string; - - /** - * Creates a new ResponseCheckTx instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseCheckTx instance - */ - public static create( - properties?: tendermint.abci.types.IResponseCheckTx, - ): tendermint.abci.types.ResponseCheckTx; - - /** - * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.types.ResponseCheckTx.verify|verify} messages. - * @param m ResponseCheckTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseCheckTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseCheckTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseCheckTx; - } - - /** Properties of a ResponseDeliverTx. */ - interface IResponseDeliverTx { - /** ResponseDeliverTx code */ - code?: number | null; - - /** ResponseDeliverTx data */ - data?: Uint8Array | null; - - /** ResponseDeliverTx log */ - log?: string | null; - - /** ResponseDeliverTx info */ - info?: string | null; - - /** ResponseDeliverTx gasWanted */ - gasWanted?: Long | null; - - /** ResponseDeliverTx gasUsed */ - gasUsed?: Long | null; - - /** ResponseDeliverTx events */ - events?: tendermint.abci.types.IEvent[] | null; - - /** ResponseDeliverTx codespace */ - codespace?: string | null; - } - - /** Represents a ResponseDeliverTx. */ - class ResponseDeliverTx implements IResponseDeliverTx { - /** - * Constructs a new ResponseDeliverTx. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseDeliverTx); - - /** ResponseDeliverTx code. */ - public code: number; - - /** ResponseDeliverTx data. */ - public data: Uint8Array; - - /** ResponseDeliverTx log. */ - public log: string; - - /** ResponseDeliverTx info. */ - public info: string; - - /** ResponseDeliverTx gasWanted. */ - public gasWanted: Long; - - /** ResponseDeliverTx gasUsed. */ - public gasUsed: Long; - - /** ResponseDeliverTx events. */ - public events: tendermint.abci.types.IEvent[]; - - /** ResponseDeliverTx codespace. */ - public codespace: string; - - /** - * Creates a new ResponseDeliverTx instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseDeliverTx instance - */ - public static create( - properties?: tendermint.abci.types.IResponseDeliverTx, - ): tendermint.abci.types.ResponseDeliverTx; - - /** - * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.types.ResponseDeliverTx.verify|verify} messages. - * @param m ResponseDeliverTx message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseDeliverTx, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseDeliverTx message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseDeliverTx; - } - - /** Properties of a ResponseEndBlock. */ - interface IResponseEndBlock { - /** ResponseEndBlock validatorUpdates */ - validatorUpdates?: tendermint.abci.types.IValidatorUpdate[] | null; - - /** ResponseEndBlock consensusParamUpdates */ - consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseEndBlock events */ - events?: tendermint.abci.types.IEvent[] | null; - } - - /** Represents a ResponseEndBlock. */ - class ResponseEndBlock implements IResponseEndBlock { - /** - * Constructs a new ResponseEndBlock. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseEndBlock); - - /** ResponseEndBlock validatorUpdates. */ - public validatorUpdates: tendermint.abci.types.IValidatorUpdate[]; - - /** ResponseEndBlock consensusParamUpdates. */ - public consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; - - /** ResponseEndBlock events. */ - public events: tendermint.abci.types.IEvent[]; - - /** - * Creates a new ResponseEndBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseEndBlock instance - */ - public static create( - properties?: tendermint.abci.types.IResponseEndBlock, - ): tendermint.abci.types.ResponseEndBlock; - - /** - * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.types.ResponseEndBlock.verify|verify} messages. - * @param m ResponseEndBlock message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseEndBlock, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseEndBlock message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseEndBlock; - } - - /** Properties of a ResponseCommit. */ - interface IResponseCommit { - /** ResponseCommit data */ - data?: Uint8Array | null; - } - - /** Represents a ResponseCommit. */ - class ResponseCommit implements IResponseCommit { - /** - * Constructs a new ResponseCommit. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IResponseCommit); - - /** ResponseCommit data. */ - public data: Uint8Array; - - /** - * Creates a new ResponseCommit instance using the specified properties. - * @param [properties] Properties to set - * @returns ResponseCommit instance - */ - public static create( - properties?: tendermint.abci.types.IResponseCommit, - ): tendermint.abci.types.ResponseCommit; - - /** - * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.types.ResponseCommit.verify|verify} messages. - * @param m ResponseCommit message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IResponseCommit, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ResponseCommit message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ResponseCommit; - } - - /** Properties of a ConsensusParams. */ - interface IConsensusParams { - /** ConsensusParams block */ - block?: tendermint.abci.types.IBlockParams | null; - - /** ConsensusParams evidence */ - evidence?: tendermint.abci.types.IEvidenceParams | null; - - /** ConsensusParams validator */ - validator?: tendermint.abci.types.IValidatorParams | null; - } - - /** Represents a ConsensusParams. */ - class ConsensusParams implements IConsensusParams { - /** - * Constructs a new ConsensusParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IConsensusParams); - - /** ConsensusParams block. */ - public block?: tendermint.abci.types.IBlockParams | null; - - /** ConsensusParams evidence. */ - public evidence?: tendermint.abci.types.IEvidenceParams | null; - - /** ConsensusParams validator. */ - public validator?: tendermint.abci.types.IValidatorParams | null; - - /** - * Creates a new ConsensusParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ConsensusParams instance - */ - public static create( - properties?: tendermint.abci.types.IConsensusParams, - ): tendermint.abci.types.ConsensusParams; - - /** - * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.types.ConsensusParams.verify|verify} messages. - * @param m ConsensusParams message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IConsensusParams, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ConsensusParams message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ConsensusParams; - } - - /** Properties of a BlockParams. */ - interface IBlockParams { - /** BlockParams maxBytes */ - maxBytes?: Long | null; - - /** BlockParams maxGas */ - maxGas?: Long | null; - } - - /** Represents a BlockParams. */ - class BlockParams implements IBlockParams { - /** - * Constructs a new BlockParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IBlockParams); - - /** BlockParams maxBytes. */ - public maxBytes: Long; - - /** BlockParams maxGas. */ - public maxGas: Long; - - /** - * Creates a new BlockParams instance using the specified properties. - * @param [properties] Properties to set - * @returns BlockParams instance - */ - public static create( - properties?: tendermint.abci.types.IBlockParams, - ): tendermint.abci.types.BlockParams; - - /** - * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.types.BlockParams.verify|verify} messages. - * @param m BlockParams message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockParams; - } - - /** Properties of an EvidenceParams. */ - interface IEvidenceParams { - /** EvidenceParams maxAgeNumBlocks */ - maxAgeNumBlocks?: Long | null; - - /** EvidenceParams maxAgeDuration */ - maxAgeDuration?: google.protobuf.IDuration | null; - } - - /** Represents an EvidenceParams. */ - class EvidenceParams implements IEvidenceParams { - /** - * Constructs a new EvidenceParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IEvidenceParams); - - /** EvidenceParams maxAgeNumBlocks. */ - public maxAgeNumBlocks: Long; - - /** EvidenceParams maxAgeDuration. */ - public maxAgeDuration?: google.protobuf.IDuration | null; - - /** - * Creates a new EvidenceParams instance using the specified properties. - * @param [properties] Properties to set - * @returns EvidenceParams instance - */ - public static create( - properties?: tendermint.abci.types.IEvidenceParams, - ): tendermint.abci.types.EvidenceParams; - - /** - * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.abci.types.EvidenceParams.verify|verify} messages. - * @param m EvidenceParams message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IEvidenceParams, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes an EvidenceParams message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.EvidenceParams; - } - - /** Properties of a ValidatorParams. */ - interface IValidatorParams { - /** ValidatorParams pubKeyTypes */ - pubKeyTypes?: string[] | null; - } - - /** Represents a ValidatorParams. */ - class ValidatorParams implements IValidatorParams { - /** - * Constructs a new ValidatorParams. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IValidatorParams); - - /** ValidatorParams pubKeyTypes. */ - public pubKeyTypes: string[]; - - /** - * Creates a new ValidatorParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidatorParams instance - */ - public static create( - properties?: tendermint.abci.types.IValidatorParams, - ): tendermint.abci.types.ValidatorParams; - - /** - * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.abci.types.ValidatorParams.verify|verify} messages. - * @param m ValidatorParams message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IValidatorParams, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ValidatorParams message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ValidatorParams; - } - - /** Properties of a LastCommitInfo. */ - interface ILastCommitInfo { - /** LastCommitInfo round */ - round?: number | null; - - /** LastCommitInfo votes */ - votes?: tendermint.abci.types.IVoteInfo[] | null; - } - - /** Represents a LastCommitInfo. */ - class LastCommitInfo implements ILastCommitInfo { - /** - * Constructs a new LastCommitInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.ILastCommitInfo); - - /** LastCommitInfo round. */ - public round: number; - - /** LastCommitInfo votes. */ - public votes: tendermint.abci.types.IVoteInfo[]; - - /** - * Creates a new LastCommitInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns LastCommitInfo instance - */ - public static create( - properties?: tendermint.abci.types.ILastCommitInfo, - ): tendermint.abci.types.LastCommitInfo; - - /** - * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.types.LastCommitInfo.verify|verify} messages. - * @param m LastCommitInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.ILastCommitInfo, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a LastCommitInfo message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.LastCommitInfo; - } - - /** Properties of an Event. */ - interface IEvent { - /** Event type */ - type?: string | null; - - /** Event attributes */ - attributes?: tendermint.libs.kv.IPair[] | null; - } - - /** Represents an Event. */ - class Event implements IEvent { - /** - * Constructs a new Event. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IEvent); - - /** Event type. */ - public type: string; - - /** Event attributes. */ - public attributes: tendermint.libs.kv.IPair[]; - - /** - * Creates a new Event instance using the specified properties. - * @param [properties] Properties to set - * @returns Event instance - */ - public static create(properties?: tendermint.abci.types.IEvent): tendermint.abci.types.Event; - - /** - * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.types.Event.verify|verify} messages. - * @param m Event message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Event; - } - - /** Properties of a Header. */ - interface IHeader { - /** Header version */ - version?: tendermint.abci.types.IVersion | null; - - /** Header chainId */ - chainId?: string | null; - - /** Header height */ - height?: Long | null; - - /** Header time */ - time?: google.protobuf.ITimestamp | null; - - /** Header lastBlockId */ - lastBlockId?: tendermint.abci.types.IBlockID | null; - - /** Header lastCommitHash */ - lastCommitHash?: Uint8Array | null; - - /** Header dataHash */ - dataHash?: Uint8Array | null; - - /** Header validatorsHash */ - validatorsHash?: Uint8Array | null; - - /** Header nextValidatorsHash */ - nextValidatorsHash?: Uint8Array | null; - - /** Header consensusHash */ - consensusHash?: Uint8Array | null; - - /** Header appHash */ - appHash?: Uint8Array | null; - - /** Header lastResultsHash */ - lastResultsHash?: Uint8Array | null; - - /** Header evidenceHash */ - evidenceHash?: Uint8Array | null; - - /** Header proposerAddress */ - proposerAddress?: Uint8Array | null; - } - - /** Represents a Header. */ - class Header implements IHeader { - /** - * Constructs a new Header. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IHeader); - - /** Header version. */ - public version?: tendermint.abci.types.IVersion | null; - - /** Header chainId. */ - public chainId: string; - - /** Header height. */ - public height: Long; - - /** Header time. */ - public time?: google.protobuf.ITimestamp | null; - - /** Header lastBlockId. */ - public lastBlockId?: tendermint.abci.types.IBlockID | null; - - /** Header lastCommitHash. */ - public lastCommitHash: Uint8Array; - - /** Header dataHash. */ - public dataHash: Uint8Array; - - /** Header validatorsHash. */ - public validatorsHash: Uint8Array; - - /** Header nextValidatorsHash. */ - public nextValidatorsHash: Uint8Array; - - /** Header consensusHash. */ - public consensusHash: Uint8Array; - - /** Header appHash. */ - public appHash: Uint8Array; - - /** Header lastResultsHash. */ - public lastResultsHash: Uint8Array; - - /** Header evidenceHash. */ - public evidenceHash: Uint8Array; - - /** Header proposerAddress. */ - public proposerAddress: Uint8Array; - - /** - * Creates a new Header instance using the specified properties. - * @param [properties] Properties to set - * @returns Header instance - */ - public static create(properties?: tendermint.abci.types.IHeader): tendermint.abci.types.Header; - - /** - * Encodes the specified Header message. Does not implicitly {@link tendermint.abci.types.Header.verify|verify} messages. - * @param m Header message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Header; - } - - /** Properties of a Version. */ - interface IVersion { - /** Version Block */ - Block?: Long | null; - - /** Version App */ - App?: Long | null; - } - - /** Represents a Version. */ - class Version implements IVersion { - /** - * Constructs a new Version. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IVersion); - - /** Version Block. */ - public Block: Long; - - /** Version App. */ - public App: Long; - - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: tendermint.abci.types.IVersion): tendermint.abci.types.Version; - - /** - * Encodes the specified Version message. Does not implicitly {@link tendermint.abci.types.Version.verify|verify} messages. - * @param m Version message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Version; - } - - /** Properties of a BlockID. */ - interface IBlockID { - /** BlockID hash */ - hash?: Uint8Array | null; - - /** BlockID partsHeader */ - partsHeader?: tendermint.abci.types.IPartSetHeader | null; - } - - /** Represents a BlockID. */ - class BlockID implements IBlockID { - /** - * Constructs a new BlockID. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IBlockID); - - /** BlockID hash. */ - public hash: Uint8Array; - - /** BlockID partsHeader. */ - public partsHeader?: tendermint.abci.types.IPartSetHeader | null; - - /** - * Creates a new BlockID instance using the specified properties. - * @param [properties] Properties to set - * @returns BlockID instance - */ - public static create(properties?: tendermint.abci.types.IBlockID): tendermint.abci.types.BlockID; - - /** - * Encodes the specified BlockID message. Does not implicitly {@link tendermint.abci.types.BlockID.verify|verify} messages. - * @param m BlockID message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockID; - } - - /** Properties of a PartSetHeader. */ - interface IPartSetHeader { - /** PartSetHeader total */ - total?: number | null; - - /** PartSetHeader hash */ - hash?: Uint8Array | null; - } - - /** Represents a PartSetHeader. */ - class PartSetHeader implements IPartSetHeader { - /** - * Constructs a new PartSetHeader. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IPartSetHeader); - - /** PartSetHeader total. */ - public total: number; - - /** PartSetHeader hash. */ - public hash: Uint8Array; - - /** - * Creates a new PartSetHeader instance using the specified properties. - * @param [properties] Properties to set - * @returns PartSetHeader instance - */ - public static create( - properties?: tendermint.abci.types.IPartSetHeader, - ): tendermint.abci.types.PartSetHeader; - - /** - * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.abci.types.PartSetHeader.verify|verify} messages. - * @param m PartSetHeader message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.PartSetHeader; - } - - /** Properties of a Validator. */ - interface IValidator { - /** Validator address */ - address?: Uint8Array | null; - - /** Validator power */ - power?: Long | null; - } - - /** Represents a Validator. */ - class Validator implements IValidator { - /** - * Constructs a new Validator. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IValidator); - - /** Validator address. */ - public address: Uint8Array; - - /** Validator power. */ - public power: Long; - - /** - * Creates a new Validator instance using the specified properties. - * @param [properties] Properties to set - * @returns Validator instance - */ - public static create(properties?: tendermint.abci.types.IValidator): tendermint.abci.types.Validator; - - /** - * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.types.Validator.verify|verify} messages. - * @param m Validator message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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): tendermint.abci.types.Validator; - } - - /** Properties of a ValidatorUpdate. */ - interface IValidatorUpdate { - /** ValidatorUpdate pubKey */ - pubKey?: tendermint.abci.types.IPubKey | null; - - /** ValidatorUpdate power */ - power?: Long | null; - } - - /** Represents a ValidatorUpdate. */ - class ValidatorUpdate implements IValidatorUpdate { - /** - * Constructs a new ValidatorUpdate. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IValidatorUpdate); - - /** ValidatorUpdate pubKey. */ - public pubKey?: tendermint.abci.types.IPubKey | null; - - /** ValidatorUpdate power. */ - public power: Long; - - /** - * Creates a new ValidatorUpdate instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidatorUpdate instance - */ - public static create( - properties?: tendermint.abci.types.IValidatorUpdate, - ): tendermint.abci.types.ValidatorUpdate; - - /** - * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.types.ValidatorUpdate.verify|verify} messages. - * @param m ValidatorUpdate message or plain object to encode - * @param [w] Writer to encode to - * @returns Writer - */ - public static encode( - m: tendermint.abci.types.IValidatorUpdate, - w?: $protobuf.Writer, - ): $protobuf.Writer; - - /** - * Decodes a ValidatorUpdate message from the specified reader or buffer. - * @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( - r: $protobuf.Reader | Uint8Array, - l?: number, - ): tendermint.abci.types.ValidatorUpdate; - } - - /** Properties of a VoteInfo. */ - interface IVoteInfo { - /** VoteInfo validator */ - validator?: tendermint.abci.types.IValidator | null; - - /** VoteInfo signedLastBlock */ - signedLastBlock?: boolean | null; - } - - /** Represents a VoteInfo. */ - class VoteInfo implements IVoteInfo { - /** - * Constructs a new VoteInfo. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IVoteInfo); - - /** VoteInfo validator. */ - public validator?: tendermint.abci.types.IValidator | null; - - /** VoteInfo signedLastBlock. */ - public signedLastBlock: boolean; - - /** - * Creates a new VoteInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns VoteInfo instance - */ - public static create(properties?: tendermint.abci.types.IVoteInfo): tendermint.abci.types.VoteInfo; - - /** - * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.types.VoteInfo.verify|verify} messages. - * @param m VoteInfo message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.VoteInfo; - } - - /** Properties of a PubKey. */ - interface IPubKey { - /** PubKey type */ - type?: string | null; - - /** PubKey data */ - data?: Uint8Array | null; - } - - /** Represents a PubKey. */ - class PubKey implements IPubKey { - /** - * Constructs a new PubKey. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IPubKey); - - /** PubKey type. */ - public type: string; - - /** PubKey data. */ - public data: Uint8Array; - - /** - * Creates a new PubKey instance using the specified properties. - * @param [properties] Properties to set - * @returns PubKey instance - */ - public static create(properties?: tendermint.abci.types.IPubKey): tendermint.abci.types.PubKey; - - /** - * Encodes the specified PubKey message. Does not implicitly {@link tendermint.abci.types.PubKey.verify|verify} messages. - * @param m PubKey message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.PubKey; - } - - /** Properties of an Evidence. */ - interface IEvidence { - /** Evidence type */ - type?: string | null; - - /** Evidence validator */ - validator?: tendermint.abci.types.IValidator | null; - - /** Evidence height */ - height?: Long | null; - - /** Evidence time */ - time?: google.protobuf.ITimestamp | null; - - /** Evidence totalVotingPower */ - totalVotingPower?: Long | null; - } - - /** Represents an Evidence. */ - class Evidence implements IEvidence { - /** - * Constructs a new Evidence. - * @param [p] Properties to set - */ - constructor(p?: tendermint.abci.types.IEvidence); - - /** Evidence type. */ - public type: string; - - /** Evidence validator. */ - public validator?: tendermint.abci.types.IValidator | null; - - /** Evidence height. */ - public height: Long; - - /** Evidence time. */ - public time?: google.protobuf.ITimestamp | null; - - /** Evidence totalVotingPower. */ - public totalVotingPower: Long; - - /** - * Creates a new Evidence instance using the specified properties. - * @param [properties] Properties to set - * @returns Evidence instance - */ - public static create(properties?: tendermint.abci.types.IEvidence): tendermint.abci.types.Evidence; - - /** - * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.types.Evidence.verify|verify} messages. - * @param m Evidence message or plain object to encode - * @param [w] Writer to encode to - * @returns 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 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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Evidence; - } - - /** Represents a ABCIApplication */ - class ABCIApplication extends $protobuf.rpc.Service { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { /** - * Constructs a new ABCIApplication 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 @@ -9512,7 +201,7 @@ export namespace tendermint { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new ABCIApplication service using the specified rpc implementation. + * 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 @@ -9522,519 +211,2357 @@ export namespace tendermint { rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean, - ): ABCIApplication; + ): Query; /** - * Calls Echo. - * @param request RequestEcho message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseEcho + * Calls Account. + * @param request QueryAccountRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAccountResponse */ - public echo( - request: tendermint.abci.types.IRequestEcho, - callback: tendermint.abci.types.ABCIApplication.EchoCallback, + public account( + request: cosmos.auth.v1beta1.IQueryAccountRequest, + callback: cosmos.auth.v1beta1.Query.AccountCallback, ): void; /** - * Calls Echo. - * @param request RequestEcho message or plain object + * Calls Account. + * @param request QueryAccountRequest message or plain object * @returns Promise */ - public echo(request: tendermint.abci.types.IRequestEcho): Promise; + public account( + request: cosmos.auth.v1beta1.IQueryAccountRequest, + ): Promise; /** - * Calls Flush. - * @param request RequestFlush message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseFlush + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse */ - public flush( - request: tendermint.abci.types.IRequestFlush, - callback: tendermint.abci.types.ABCIApplication.FlushCallback, + public params( + request: cosmos.auth.v1beta1.IQueryParamsRequest, + callback: cosmos.auth.v1beta1.Query.ParamsCallback, ): void; /** - * Calls Flush. - * @param request RequestFlush message or plain object + * Calls Params. + * @param request QueryParamsRequest message or plain object * @returns Promise */ - public flush( - request: tendermint.abci.types.IRequestFlush, - ): Promise; - - /** - * Calls Info. - * @param request RequestInfo message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseInfo - */ - public info( - request: tendermint.abci.types.IRequestInfo, - callback: tendermint.abci.types.ABCIApplication.InfoCallback, - ): void; - - /** - * Calls Info. - * @param request RequestInfo message or plain object - * @returns Promise - */ - public info(request: tendermint.abci.types.IRequestInfo): Promise; - - /** - * Calls SetOption. - * @param request RequestSetOption message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseSetOption - */ - public setOption( - request: tendermint.abci.types.IRequestSetOption, - callback: tendermint.abci.types.ABCIApplication.SetOptionCallback, - ): void; - - /** - * Calls SetOption. - * @param request RequestSetOption message or plain object - * @returns Promise - */ - public setOption( - request: tendermint.abci.types.IRequestSetOption, - ): Promise; - - /** - * Calls DeliverTx. - * @param request RequestDeliverTx message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx - */ - public deliverTx( - request: tendermint.abci.types.IRequestDeliverTx, - callback: tendermint.abci.types.ABCIApplication.DeliverTxCallback, - ): void; - - /** - * Calls DeliverTx. - * @param request RequestDeliverTx message or plain object - * @returns Promise - */ - public deliverTx( - request: tendermint.abci.types.IRequestDeliverTx, - ): Promise; - - /** - * Calls CheckTx. - * @param request RequestCheckTx message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseCheckTx - */ - public checkTx( - request: tendermint.abci.types.IRequestCheckTx, - callback: tendermint.abci.types.ABCIApplication.CheckTxCallback, - ): void; - - /** - * Calls CheckTx. - * @param request RequestCheckTx message or plain object - * @returns Promise - */ - public checkTx( - request: tendermint.abci.types.IRequestCheckTx, - ): Promise; - - /** - * Calls Query. - * @param request RequestQuery message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseQuery - */ - public query( - request: tendermint.abci.types.IRequestQuery, - callback: tendermint.abci.types.ABCIApplication.QueryCallback, - ): void; - - /** - * Calls Query. - * @param request RequestQuery message or plain object - * @returns Promise - */ - public query( - request: tendermint.abci.types.IRequestQuery, - ): Promise; - - /** - * Calls Commit. - * @param request RequestCommit message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseCommit - */ - public commit( - request: tendermint.abci.types.IRequestCommit, - callback: tendermint.abci.types.ABCIApplication.CommitCallback, - ): void; - - /** - * Calls Commit. - * @param request RequestCommit message or plain object - * @returns Promise - */ - public commit( - request: tendermint.abci.types.IRequestCommit, - ): Promise; - - /** - * Calls InitChain. - * @param request RequestInitChain message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseInitChain - */ - public initChain( - request: tendermint.abci.types.IRequestInitChain, - callback: tendermint.abci.types.ABCIApplication.InitChainCallback, - ): void; - - /** - * Calls InitChain. - * @param request RequestInitChain message or plain object - * @returns Promise - */ - public initChain( - request: tendermint.abci.types.IRequestInitChain, - ): Promise; - - /** - * Calls BeginBlock. - * @param request RequestBeginBlock message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock - */ - public beginBlock( - request: tendermint.abci.types.IRequestBeginBlock, - callback: tendermint.abci.types.ABCIApplication.BeginBlockCallback, - ): void; - - /** - * Calls BeginBlock. - * @param request RequestBeginBlock message or plain object - * @returns Promise - */ - public beginBlock( - request: tendermint.abci.types.IRequestBeginBlock, - ): Promise; - - /** - * Calls EndBlock. - * @param request RequestEndBlock message or plain object - * @param callback Node-style callback called with the error, if any, and ResponseEndBlock - */ - public endBlock( - request: tendermint.abci.types.IRequestEndBlock, - callback: tendermint.abci.types.ABCIApplication.EndBlockCallback, - ): void; - - /** - * Calls EndBlock. - * @param request RequestEndBlock message or plain object - * @returns Promise - */ - public endBlock( - request: tendermint.abci.types.IRequestEndBlock, - ): Promise; + public params( + request: cosmos.auth.v1beta1.IQueryParamsRequest, + ): Promise; } - namespace ABCIApplication { + namespace Query { /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#echo}. + * Callback as used by {@link cosmos.auth.v1beta1.Query#account}. * @param error Error, if any - * @param [response] ResponseEcho + * @param [response] QueryAccountResponse */ - type EchoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseEcho) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#flush}. - * @param error Error, if any - * @param [response] ResponseFlush - */ - type FlushCallback = (error: Error | null, response?: tendermint.abci.types.ResponseFlush) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#info}. - * @param error Error, if any - * @param [response] ResponseInfo - */ - type InfoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseInfo) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#setOption}. - * @param error Error, if any - * @param [response] ResponseSetOption - */ - type SetOptionCallback = ( + type AccountCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseSetOption, + response?: cosmos.auth.v1beta1.QueryAccountResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#deliverTx}. + * Callback as used by {@link cosmos.auth.v1beta1.Query#params}. * @param error Error, if any - * @param [response] ResponseDeliverTx + * @param [response] QueryParamsResponse */ - type DeliverTxCallback = ( + type ParamsCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseDeliverTx, + response?: cosmos.auth.v1beta1.QueryParamsResponse, + ) => void; + } + + /** Properties of a QueryAccountRequest. */ + interface IQueryAccountRequest { + /** QueryAccountRequest address */ + address?: string | null; + } + + /** Represents a QueryAccountRequest. */ + class QueryAccountRequest implements IQueryAccountRequest { + /** + * Constructs a new QueryAccountRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryAccountRequest); + + /** QueryAccountRequest address. */ + public address: string; + + /** + * Creates a new QueryAccountRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountRequest instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryAccountRequest, + ): cosmos.auth.v1beta1.QueryAccountRequest; + + /** + * Encodes the specified QueryAccountRequest message. Does not implicitly {@link cosmos.auth.v1beta1.QueryAccountRequest.verify|verify} messages. + * @param m QueryAccountRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryAccountRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryAccountRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountRequest + * @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.auth.v1beta1.QueryAccountRequest; + } + + /** Properties of a QueryAccountResponse. */ + interface IQueryAccountResponse { + /** QueryAccountResponse account */ + account?: google.protobuf.IAny | null; + } + + /** Represents a QueryAccountResponse. */ + class QueryAccountResponse implements IQueryAccountResponse { + /** + * Constructs a new QueryAccountResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryAccountResponse); + + /** QueryAccountResponse account. */ + public account?: google.protobuf.IAny | null; + + /** + * Creates a new QueryAccountResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountResponse instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryAccountResponse, + ): cosmos.auth.v1beta1.QueryAccountResponse; + + /** + * Encodes the specified QueryAccountResponse message. Does not implicitly {@link cosmos.auth.v1beta1.QueryAccountResponse.verify|verify} messages. + * @param m QueryAccountResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryAccountResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryAccountResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountResponse + * @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.auth.v1beta1.QueryAccountResponse; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest {} + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + /** + * Constructs a new QueryParamsRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryParamsRequest); + + /** + * Creates a new QueryParamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsRequest instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryParamsRequest, + ): cosmos.auth.v1beta1.QueryParamsRequest; + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.auth.v1beta1.QueryParamsRequest.verify|verify} messages. + * @param m QueryParamsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryParamsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsRequest + * @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.auth.v1beta1.QueryParamsRequest; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + /** QueryParamsResponse params */ + params?: cosmos.auth.v1beta1.IParams | null; + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new QueryParamsResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.v1beta1.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: cosmos.auth.v1beta1.IParams | null; + + /** + * Creates a new QueryParamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsResponse instance + */ + public static create( + properties?: cosmos.auth.v1beta1.IQueryParamsResponse, + ): cosmos.auth.v1beta1.QueryParamsResponse; + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.auth.v1beta1.QueryParamsResponse.verify|verify} messages. + * @param m QueryParamsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.auth.v1beta1.IQueryParamsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsResponse + * @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.auth.v1beta1.QueryParamsResponse; + } + } + } + + /** Namespace bank. */ + namespace bank { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** 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.bank.v1beta1.IQueryBalanceRequest, + callback: cosmos.bank.v1beta1.Query.BalanceCallback, + ): void; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @returns Promise + */ + public balance( + request: cosmos.bank.v1beta1.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.bank.v1beta1.IQueryAllBalancesRequest, + callback: cosmos.bank.v1beta1.Query.AllBalancesCallback, + ): void; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @returns Promise + */ + public allBalances( + request: cosmos.bank.v1beta1.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.bank.v1beta1.IQueryTotalSupplyRequest, + callback: cosmos.bank.v1beta1.Query.TotalSupplyCallback, + ): void; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @returns Promise + */ + public totalSupply( + request: cosmos.bank.v1beta1.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.bank.v1beta1.IQuerySupplyOfRequest, + callback: cosmos.bank.v1beta1.Query.SupplyOfCallback, + ): void; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @returns Promise + */ + public supplyOf( + request: cosmos.bank.v1beta1.IQuerySupplyOfRequest, + ): Promise; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params( + request: cosmos.bank.v1beta1.IQueryParamsRequest, + callback: cosmos.bank.v1beta1.Query.ParamsCallback, + ): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params( + request: cosmos.bank.v1beta1.IQueryParamsRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos.bank.v1beta1.Query#balance}. + * @param error Error, if any + * @param [response] QueryBalanceResponse + */ + type BalanceCallback = ( + error: Error | null, + response?: cosmos.bank.v1beta1.QueryBalanceResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#checkTx}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#allBalances}. * @param error Error, if any - * @param [response] ResponseCheckTx + * @param [response] QueryAllBalancesResponse */ - type CheckTxCallback = ( + type AllBalancesCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseCheckTx, + response?: cosmos.bank.v1beta1.QueryAllBalancesResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#query}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#totalSupply}. * @param error Error, if any - * @param [response] ResponseQuery + * @param [response] QueryTotalSupplyResponse */ - type QueryCallback = (error: Error | null, response?: tendermint.abci.types.ResponseQuery) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#commit}. - * @param error Error, if any - * @param [response] ResponseCommit - */ - type CommitCallback = (error: Error | null, response?: tendermint.abci.types.ResponseCommit) => void; - - /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#initChain}. - * @param error Error, if any - * @param [response] ResponseInitChain - */ - type InitChainCallback = ( + type TotalSupplyCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseInitChain, + response?: cosmos.bank.v1beta1.QueryTotalSupplyResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#beginBlock}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#supplyOf}. * @param error Error, if any - * @param [response] ResponseBeginBlock + * @param [response] QuerySupplyOfResponse */ - type BeginBlockCallback = ( + type SupplyOfCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseBeginBlock, + response?: cosmos.bank.v1beta1.QuerySupplyOfResponse, ) => void; /** - * Callback as used by {@link tendermint.abci.types.ABCIApplication#endBlock}. + * Callback as used by {@link cosmos.bank.v1beta1.Query#params}. * @param error Error, if any - * @param [response] ResponseEndBlock + * @param [response] QueryParamsResponse */ - type EndBlockCallback = ( + type ParamsCallback = ( error: Error | null, - response?: tendermint.abci.types.ResponseEndBlock, + response?: cosmos.bank.v1beta1.QueryParamsResponse, ) => void; } + + /** Properties of a QueryBalanceRequest. */ + interface IQueryBalanceRequest { + /** QueryBalanceRequest address */ + address?: string | 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.bank.v1beta1.IQueryBalanceRequest); + + /** QueryBalanceRequest address. */ + public address: string; + + /** 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.bank.v1beta1.IQueryBalanceRequest, + ): cosmos.bank.v1beta1.QueryBalanceRequest; + + /** + * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryBalanceRequest; + } + + /** Properties of a QueryBalanceResponse. */ + interface IQueryBalanceResponse { + /** QueryBalanceResponse balance */ + balance?: cosmos.base.v1beta1.ICoin | null; + } + + /** Represents a QueryBalanceResponse. */ + class QueryBalanceResponse implements IQueryBalanceResponse { + /** + * Constructs a new QueryBalanceResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryBalanceResponse); + + /** QueryBalanceResponse balance. */ + public balance?: cosmos.base.v1beta1.ICoin | null; + + /** + * Creates a new QueryBalanceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryBalanceResponse, + ): cosmos.bank.v1beta1.QueryBalanceResponse; + + /** + * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryBalanceResponse; + } + + /** Properties of a QueryAllBalancesRequest. */ + interface IQueryAllBalancesRequest { + /** QueryAllBalancesRequest address */ + address?: string | null; + + /** QueryAllBalancesRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryAllBalancesRequest. */ + class QueryAllBalancesRequest implements IQueryAllBalancesRequest { + /** + * Constructs a new QueryAllBalancesRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryAllBalancesRequest); + + /** QueryAllBalancesRequest address. */ + public address: string; + + /** QueryAllBalancesRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryAllBalancesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesRequest instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryAllBalancesRequest, + ): cosmos.bank.v1beta1.QueryAllBalancesRequest; + + /** + * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryAllBalancesRequest; + } + + /** Properties of a QueryAllBalancesResponse. */ + interface IQueryAllBalancesResponse { + /** QueryAllBalancesResponse balances */ + balances?: cosmos.base.v1beta1.ICoin[] | null; + + /** QueryAllBalancesResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + } + + /** Represents a QueryAllBalancesResponse. */ + class QueryAllBalancesResponse implements IQueryAllBalancesResponse { + /** + * Constructs a new QueryAllBalancesResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryAllBalancesResponse); + + /** QueryAllBalancesResponse balances. */ + public balances: cosmos.base.v1beta1.ICoin[]; + + /** QueryAllBalancesResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** + * Creates a new QueryAllBalancesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryAllBalancesResponse, + ): cosmos.bank.v1beta1.QueryAllBalancesResponse; + + /** + * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.IQueryTotalSupplyRequest); + + /** + * Creates a new QueryTotalSupplyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyRequest instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryTotalSupplyRequest, + ): cosmos.bank.v1beta1.QueryTotalSupplyRequest; + + /** + * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QueryTotalSupplyRequest; + } + + /** Properties of a QueryTotalSupplyResponse. */ + interface IQueryTotalSupplyResponse { + /** QueryTotalSupplyResponse supply */ + supply?: cosmos.base.v1beta1.ICoin[] | null; + } + + /** Represents a QueryTotalSupplyResponse. */ + class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { + /** + * Constructs a new QueryTotalSupplyResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryTotalSupplyResponse); + + /** QueryTotalSupplyResponse supply. */ + public supply: cosmos.base.v1beta1.ICoin[]; + + /** + * Creates a new QueryTotalSupplyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryTotalSupplyResponse, + ): cosmos.bank.v1beta1.QueryTotalSupplyResponse; + + /** + * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.IQuerySupplyOfRequest, + ): cosmos.bank.v1beta1.QuerySupplyOfRequest; + + /** + * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QuerySupplyOfRequest; + } + + /** Properties of a QuerySupplyOfResponse. */ + interface IQuerySupplyOfResponse { + /** QuerySupplyOfResponse amount */ + amount?: cosmos.base.v1beta1.ICoin | null; + } + + /** Represents a QuerySupplyOfResponse. */ + class QuerySupplyOfResponse implements IQuerySupplyOfResponse { + /** + * Constructs a new QuerySupplyOfResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQuerySupplyOfResponse); + + /** QuerySupplyOfResponse amount. */ + public amount?: cosmos.base.v1beta1.ICoin | null; + + /** + * Creates a new QuerySupplyOfResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQuerySupplyOfResponse, + ): cosmos.bank.v1beta1.QuerySupplyOfResponse; + + /** + * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos.bank.v1beta1.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.bank.v1beta1.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.bank.v1beta1.QuerySupplyOfResponse; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest {} + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + /** + * Constructs a new QueryParamsRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryParamsRequest); + + /** + * Creates a new QueryParamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsRequest instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryParamsRequest, + ): cosmos.bank.v1beta1.QueryParamsRequest; + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.bank.v1beta1.QueryParamsRequest.verify|verify} messages. + * @param m QueryParamsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IQueryParamsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsRequest + * @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.bank.v1beta1.QueryParamsRequest; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + /** QueryParamsResponse params */ + params?: cosmos.auth.v1beta1.IParams | null; + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new QueryParamsResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.v1beta1.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: cosmos.auth.v1beta1.IParams | null; + + /** + * Creates a new QueryParamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsResponse instance + */ + public static create( + properties?: cosmos.bank.v1beta1.IQueryParamsResponse, + ): cosmos.bank.v1beta1.QueryParamsResponse; + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.bank.v1beta1.QueryParamsResponse.verify|verify} messages. + * @param m QueryParamsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.bank.v1beta1.IQueryParamsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsResponse + * @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.bank.v1beta1.QueryParamsResponse; + } + } + } + + /** Namespace base. */ + namespace base { + /** Namespace query. */ + namespace query { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a PageRequest. */ + interface IPageRequest { + /** PageRequest key */ + key?: Uint8Array | null; + + /** PageRequest offset */ + offset?: Long | null; + + /** PageRequest limit */ + limit?: Long | null; + + /** PageRequest countTotal */ + countTotal?: boolean | null; + } + + /** Represents a PageRequest. */ + class PageRequest implements IPageRequest { + /** + * Constructs a new PageRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.query.v1beta1.IPageRequest); + + /** PageRequest key. */ + public key: Uint8Array; + + /** PageRequest offset. */ + public offset: Long; + + /** PageRequest limit. */ + public limit: Long; + + /** PageRequest countTotal. */ + public countTotal: boolean; + + /** + * Creates a new PageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PageRequest instance + */ + public static create( + properties?: cosmos.base.query.v1beta1.IPageRequest, + ): cosmos.base.query.v1beta1.PageRequest; + + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @param m PageRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.query.v1beta1.IPageRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageRequest + * @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.base.query.v1beta1.PageRequest; + } + + /** Properties of a PageResponse. */ + interface IPageResponse { + /** PageResponse nextKey */ + nextKey?: Uint8Array | null; + + /** PageResponse total */ + total?: Long | null; + } + + /** Represents a PageResponse. */ + class PageResponse implements IPageResponse { + /** + * Constructs a new PageResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.query.v1beta1.IPageResponse); + + /** PageResponse nextKey. */ + public nextKey: Uint8Array; + + /** PageResponse total. */ + public total: Long; + + /** + * Creates a new PageResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PageResponse instance + */ + public static create( + properties?: cosmos.base.query.v1beta1.IPageResponse, + ): cosmos.base.query.v1beta1.PageResponse; + + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @param m PageResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.query.v1beta1.IPageResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageResponse + * @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.base.query.v1beta1.PageResponse; + } + } + } + + /** Namespace v1beta1. */ + namespace v1beta1 { + /** 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.base.v1beta1.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.base.v1beta1.ICoin): cosmos.base.v1beta1.Coin; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.IDecCoin): cosmos.base.v1beta1.DecCoin; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.IIntProto): cosmos.base.v1beta1.IntProto; + + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.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.base.v1beta1.IDecProto): cosmos.base.v1beta1.DecProto; + + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.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.base.v1beta1.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.base.v1beta1.DecProto; + } } } /** Namespace crypto. */ namespace crypto { - /** Namespace merkle. */ - namespace merkle { - /** Properties of a ProofOp. */ - interface IProofOp { - /** ProofOp type */ - type?: string | null; + /** Namespace multisig. */ + namespace multisig { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a MultiSignature. */ + interface IMultiSignature { + /** MultiSignature signatures */ + signatures?: Uint8Array[] | null; + } - /** ProofOp key */ + /** Represents a MultiSignature. */ + class MultiSignature implements IMultiSignature { + /** + * Constructs a new MultiSignature. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.IMultiSignature, + ): cosmos.crypto.multisig.v1beta1.MultiSignature; + + /** + * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.ICompactBitArray, + ): cosmos.crypto.multisig.v1beta1.CompactBitArray; + + /** + * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.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.crypto.multisig.v1beta1.CompactBitArray; + } + } + } + + /** Namespace secp256k1. */ + namespace secp256k1 { + /** Properties of a PubKey. */ + interface IPubKey { + /** PubKey key */ key?: Uint8Array | null; - - /** ProofOp data */ - data?: Uint8Array | null; } - /** Represents a ProofOp. */ - class ProofOp implements IProofOp { + /** Represents a PubKey. */ + class PubKey implements IPubKey { /** - * Constructs a new ProofOp. + * Constructs a new PubKey. * @param [p] Properties to set */ - constructor(p?: tendermint.crypto.merkle.IProofOp); + constructor(p?: cosmos.crypto.secp256k1.IPubKey); - /** ProofOp type. */ - public type: string; - - /** ProofOp key. */ + /** PubKey key. */ public key: Uint8Array; - /** ProofOp data. */ - public data: Uint8Array; - /** - * Creates a new ProofOp instance using the specified properties. + * Creates a new PubKey instance using the specified properties. * @param [properties] Properties to set - * @returns ProofOp instance + * @returns PubKey instance */ - public static create( - properties?: tendermint.crypto.merkle.IProofOp, - ): tendermint.crypto.merkle.ProofOp; + public static create(properties?: cosmos.crypto.secp256k1.IPubKey): cosmos.crypto.secp256k1.PubKey; /** - * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.merkle.ProofOp.verify|verify} messages. - * @param m ProofOp message or plain object to encode + * Encodes the specified PubKey message. Does not implicitly {@link cosmos.crypto.secp256k1.PubKey.verify|verify} messages. + * @param m PubKey message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.crypto.merkle.IProofOp, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.crypto.secp256k1.IPubKey, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProofOp message from the specified reader or buffer. + * Decodes a PubKey message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns ProofOp + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.ProofOp; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.secp256k1.PubKey; } - /** Properties of a Proof. */ - interface IProof { - /** Proof ops */ - ops?: tendermint.crypto.merkle.IProofOp[] | null; + /** Properties of a PrivKey. */ + interface IPrivKey { + /** PrivKey key */ + key?: Uint8Array | null; } - /** Represents a Proof. */ - class Proof implements IProof { + /** Represents a PrivKey. */ + class PrivKey implements IPrivKey { /** - * Constructs a new Proof. + * Constructs a new PrivKey. * @param [p] Properties to set */ - constructor(p?: tendermint.crypto.merkle.IProof); + constructor(p?: cosmos.crypto.secp256k1.IPrivKey); - /** Proof ops. */ - public ops: tendermint.crypto.merkle.IProofOp[]; + /** PrivKey key. */ + public key: Uint8Array; /** - * Creates a new Proof instance using the specified properties. + * Creates a new PrivKey instance using the specified properties. * @param [properties] Properties to set - * @returns Proof instance + * @returns PrivKey instance */ - public static create(properties?: tendermint.crypto.merkle.IProof): tendermint.crypto.merkle.Proof; + public static create(properties?: cosmos.crypto.secp256k1.IPrivKey): cosmos.crypto.secp256k1.PrivKey; /** - * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.merkle.Proof.verify|verify} messages. - * @param m Proof message or plain object to encode + * Encodes the specified PrivKey message. Does not implicitly {@link cosmos.crypto.secp256k1.PrivKey.verify|verify} messages. + * @param m PrivKey message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.crypto.merkle.IProof, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.crypto.secp256k1.IPrivKey, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Proof message from the specified reader or buffer. + * Decodes a PrivKey message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns Proof + * @returns PrivKey * @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): tendermint.crypto.merkle.Proof; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.secp256k1.PrivKey; } } } - /** Namespace libs. */ - namespace libs { - /** Namespace kv. */ - namespace kv { - /** Properties of a Pair. */ - interface IPair { - /** Pair key */ - key?: Uint8Array | null; + /** Namespace tx. */ + namespace tx { + /** Namespace signing. */ + namespace signing { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127, + } - /** Pair value */ - value?: Uint8Array | null; + /** Properties of a SignatureDescriptors. */ + interface ISignatureDescriptors { + /** SignatureDescriptors signatures */ + signatures?: cosmos.tx.signing.v1beta1.ISignatureDescriptor[] | null; + } + + /** Represents a SignatureDescriptors. */ + class SignatureDescriptors implements ISignatureDescriptors { + /** + * Constructs a new SignatureDescriptors. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.ISignatureDescriptors); + + /** SignatureDescriptors signatures. */ + public signatures: cosmos.tx.signing.v1beta1.ISignatureDescriptor[]; + + /** + * Creates a new SignatureDescriptors instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptors instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.ISignatureDescriptors, + ): cosmos.tx.signing.v1beta1.SignatureDescriptors; + + /** + * Encodes the specified SignatureDescriptors message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptors.verify|verify} messages. + * @param m SignatureDescriptors message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.v1beta1.ISignatureDescriptors, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptors message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptors + * @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.tx.signing.v1beta1.SignatureDescriptors; + } + + /** Properties of a SignatureDescriptor. */ + interface ISignatureDescriptor { + /** SignatureDescriptor publicKey */ + publicKey?: google.protobuf.IAny | null; + + /** SignatureDescriptor data */ + data?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData | null; + + /** SignatureDescriptor sequence */ + sequence?: Long | null; + } + + /** Represents a SignatureDescriptor. */ + class SignatureDescriptor implements ISignatureDescriptor { + /** + * Constructs a new SignatureDescriptor. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.ISignatureDescriptor); + + /** SignatureDescriptor publicKey. */ + public publicKey?: google.protobuf.IAny | null; + + /** SignatureDescriptor data. */ + public data?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData | null; + + /** SignatureDescriptor sequence. */ + public sequence: Long; + + /** + * Creates a new SignatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptor instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.ISignatureDescriptor, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor; + + /** + * Encodes the specified SignatureDescriptor message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.verify|verify} messages. + * @param m SignatureDescriptor message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.v1beta1.ISignatureDescriptor, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptor message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptor + * @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.tx.signing.v1beta1.SignatureDescriptor; + } + + namespace SignatureDescriptor { + /** Properties of a Data. */ + interface IData { + /** Data single */ + single?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle | null; + + /** Data multi */ + multi?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti | null; + } + + /** Represents a Data. */ + class Data implements IData { + /** + * Constructs a new Data. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData); + + /** Data single. */ + public single?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle | null; + + /** Data multi. */ + public multi?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti | null; + + /** Data sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.verify|verify} messages. + * @param m Data message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Data + * @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.tx.signing.v1beta1.SignatureDescriptor.Data; + } + + namespace Data { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.v1beta1.SignMode | null; + + /** Single signature */ + signature?: Uint8Array | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.v1beta1.SignMode; + + /** Single signature. */ + public signature: Uint8Array; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.ISingle, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi signatures */ + signatures?: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi signatures. */ + public signatures: cosmos.tx.signing.v1beta1.SignatureDescriptor.IData[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.IMulti, + ): cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.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.tx.signing.v1beta1.SignatureDescriptor.Data.Multi; + } + } + } + } + } + + /** Namespace v1beta1. */ + namespace v1beta1 { + /** Properties of a Tx. */ + interface ITx { + /** Tx body */ + body?: cosmos.tx.v1beta1.ITxBody | null; + + /** Tx authInfo */ + authInfo?: cosmos.tx.v1beta1.IAuthInfo | null; + + /** Tx signatures */ + signatures?: Uint8Array[] | null; } - /** Represents a Pair. */ - class Pair implements IPair { + /** Represents a Tx. */ + class Tx implements ITx { /** - * Constructs a new Pair. + * Constructs a new Tx. * @param [p] Properties to set */ - constructor(p?: tendermint.libs.kv.IPair); + constructor(p?: cosmos.tx.v1beta1.ITx); - /** Pair key. */ - public key: Uint8Array; + /** Tx body. */ + public body?: cosmos.tx.v1beta1.ITxBody | null; - /** Pair value. */ - public value: Uint8Array; + /** Tx authInfo. */ + public authInfo?: cosmos.tx.v1beta1.IAuthInfo | null; + + /** Tx signatures. */ + public signatures: Uint8Array[]; /** - * Creates a new Pair instance using the specified properties. + * Creates a new Tx instance using the specified properties. * @param [properties] Properties to set - * @returns Pair instance + * @returns Tx instance */ - public static create(properties?: tendermint.libs.kv.IPair): tendermint.libs.kv.Pair; + public static create(properties?: cosmos.tx.v1beta1.ITx): cosmos.tx.v1beta1.Tx; /** - * Encodes the specified Pair message. Does not implicitly {@link tendermint.libs.kv.Pair.verify|verify} messages. - * @param m Pair message or plain object to encode + * Encodes the specified Tx message. Does not implicitly {@link cosmos.tx.v1beta1.Tx.verify|verify} messages. + * @param m Tx message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.libs.kv.IPair, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.tx.v1beta1.ITx, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Pair message from the specified reader or buffer. + * 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 Pair + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.Pair; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.Tx; } - /** Properties of a KI64Pair. */ - interface IKI64Pair { - /** KI64Pair key */ - key?: Uint8Array | null; + /** Properties of a TxRaw. */ + interface ITxRaw { + /** TxRaw bodyBytes */ + bodyBytes?: Uint8Array | null; - /** KI64Pair value */ - value?: Long | null; + /** TxRaw authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** TxRaw signatures */ + signatures?: Uint8Array[] | null; } - /** Represents a KI64Pair. */ - class KI64Pair implements IKI64Pair { + /** Represents a TxRaw. */ + class TxRaw implements ITxRaw { /** - * Constructs a new KI64Pair. + * Constructs a new TxRaw. * @param [p] Properties to set */ - constructor(p?: tendermint.libs.kv.IKI64Pair); + constructor(p?: cosmos.tx.v1beta1.ITxRaw); - /** KI64Pair key. */ - public key: Uint8Array; + /** TxRaw bodyBytes. */ + public bodyBytes: Uint8Array; - /** KI64Pair value. */ - public value: Long; + /** TxRaw authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** TxRaw signatures. */ + public signatures: Uint8Array[]; /** - * Creates a new KI64Pair instance using the specified properties. + * Creates a new TxRaw instance using the specified properties. * @param [properties] Properties to set - * @returns KI64Pair instance + * @returns TxRaw instance */ - public static create(properties?: tendermint.libs.kv.IKI64Pair): tendermint.libs.kv.KI64Pair; + public static create(properties?: cosmos.tx.v1beta1.ITxRaw): cosmos.tx.v1beta1.TxRaw; /** - * Encodes the specified KI64Pair message. Does not implicitly {@link tendermint.libs.kv.KI64Pair.verify|verify} messages. - * @param m KI64Pair message or plain object to encode + * Encodes the specified TxRaw message. Does not implicitly {@link cosmos.tx.v1beta1.TxRaw.verify|verify} messages. + * @param m TxRaw message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: tendermint.libs.kv.IKI64Pair, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: cosmos.tx.v1beta1.ITxRaw, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KI64Pair message from the specified reader or buffer. + * Decodes a TxRaw message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns KI64Pair + * @returns TxRaw * @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): tendermint.libs.kv.KI64Pair; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.TxRaw; + } + + /** Properties of a SignDoc. */ + interface ISignDoc { + /** SignDoc bodyBytes */ + bodyBytes?: Uint8Array | null; + + /** SignDoc authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** SignDoc chainId */ + chainId?: string | null; + + /** SignDoc accountNumber */ + accountNumber?: Long | null; + } + + /** Represents a SignDoc. */ + class SignDoc implements ISignDoc { + /** + * Constructs a new SignDoc. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ISignDoc); + + /** SignDoc bodyBytes. */ + public bodyBytes: Uint8Array; + + /** SignDoc authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** SignDoc chainId. */ + public chainId: string; + + /** SignDoc accountNumber. */ + public accountNumber: Long; + + /** + * Creates a new SignDoc instance using the specified properties. + * @param [properties] Properties to set + * @returns SignDoc instance + */ + public static create(properties?: cosmos.tx.v1beta1.ISignDoc): cosmos.tx.v1beta1.SignDoc; + + /** + * Encodes the specified SignDoc message. Does not implicitly {@link cosmos.tx.v1beta1.SignDoc.verify|verify} messages. + * @param m SignDoc message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.ISignDoc, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.SignDoc; + } + + /** Properties of a TxBody. */ + interface ITxBody { + /** TxBody messages */ + messages?: google.protobuf.IAny[] | null; + + /** TxBody memo */ + memo?: string | null; + + /** TxBody timeoutHeight */ + timeoutHeight?: 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 [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ITxBody); + + /** TxBody messages. */ + public messages: google.protobuf.IAny[]; + + /** TxBody memo. */ + public memo: string; + + /** TxBody timeoutHeight. */ + public timeoutHeight: 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.tx.v1beta1.ITxBody): cosmos.tx.v1beta1.TxBody; + + /** + * Encodes the specified TxBody message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.TxBody; + } + + /** Properties of an AuthInfo. */ + interface IAuthInfo { + /** AuthInfo signerInfos */ + signerInfos?: cosmos.tx.v1beta1.ISignerInfo[] | null; + + /** AuthInfo fee */ + fee?: cosmos.tx.v1beta1.IFee | null; + } + + /** Represents an AuthInfo. */ + class AuthInfo implements IAuthInfo { + /** + * Constructs a new AuthInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.IAuthInfo); + + /** AuthInfo signerInfos. */ + public signerInfos: cosmos.tx.v1beta1.ISignerInfo[]; + + /** AuthInfo fee. */ + public fee?: cosmos.tx.v1beta1.IFee | null; + + /** + * Creates a new AuthInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthInfo instance + */ + public static create(properties?: cosmos.tx.v1beta1.IAuthInfo): cosmos.tx.v1beta1.AuthInfo; + + /** + * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos.tx.v1beta1.AuthInfo.verify|verify} messages. + * @param m AuthInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.IAuthInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.AuthInfo; + } + + /** Properties of a SignerInfo. */ + interface ISignerInfo { + /** SignerInfo publicKey */ + publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo */ + modeInfo?: cosmos.tx.v1beta1.IModeInfo | null; + + /** SignerInfo sequence */ + sequence?: Long | null; + } + + /** Represents a SignerInfo. */ + class SignerInfo implements ISignerInfo { + /** + * Constructs a new SignerInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ISignerInfo); + + /** SignerInfo publicKey. */ + public publicKey?: google.protobuf.IAny | null; + + /** SignerInfo modeInfo. */ + public modeInfo?: cosmos.tx.v1beta1.IModeInfo | null; + + /** SignerInfo sequence. */ + public sequence: Long; + + /** + * Creates a new SignerInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SignerInfo instance + */ + public static create(properties?: cosmos.tx.v1beta1.ISignerInfo): cosmos.tx.v1beta1.SignerInfo; + + /** + * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.SignerInfo; + } + + /** Properties of a ModeInfo. */ + interface IModeInfo { + /** ModeInfo single */ + single?: cosmos.tx.v1beta1.ModeInfo.ISingle | null; + + /** ModeInfo multi */ + multi?: cosmos.tx.v1beta1.ModeInfo.IMulti | null; + } + + /** Represents a ModeInfo. */ + class ModeInfo implements IModeInfo { + /** + * Constructs a new ModeInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.IModeInfo); + + /** ModeInfo single. */ + public single?: cosmos.tx.v1beta1.ModeInfo.ISingle | null; + + /** ModeInfo multi. */ + public multi?: cosmos.tx.v1beta1.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.tx.v1beta1.IModeInfo): cosmos.tx.v1beta1.ModeInfo; + + /** + * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos.tx.v1beta1.ModeInfo.verify|verify} messages. + * @param m ModeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.IModeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.ModeInfo; + } + + namespace ModeInfo { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.v1beta1.SignMode | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ModeInfo.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.v1beta1.SignMode; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos.tx.v1beta1.ModeInfo.ISingle, + ): cosmos.tx.v1beta1.ModeInfo.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.ModeInfo.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi modeInfos */ + modeInfos?: cosmos.tx.v1beta1.IModeInfo[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.ModeInfo.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.multisig.v1beta1.ICompactBitArray | null; + + /** Multi modeInfos. */ + public modeInfos: cosmos.tx.v1beta1.IModeInfo[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos.tx.v1beta1.ModeInfo.IMulti, + ): cosmos.tx.v1beta1.ModeInfo.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.v1beta1.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.tx.v1beta1.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.tx.v1beta1.ModeInfo.Multi; + } + } + + /** Properties of a Fee. */ + interface IFee { + /** Fee amount */ + amount?: cosmos.base.v1beta1.ICoin[] | null; + + /** Fee gasLimit */ + gasLimit?: Long | null; + + /** Fee payer */ + payer?: string | null; + + /** Fee granter */ + granter?: string | null; + } + + /** Represents a Fee. */ + class Fee implements IFee { + /** + * Constructs a new Fee. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.v1beta1.IFee); + + /** Fee amount. */ + public amount: cosmos.base.v1beta1.ICoin[]; + + /** Fee gasLimit. */ + public gasLimit: Long; + + /** Fee payer. */ + public payer: string; + + /** Fee granter. */ + public granter: string; + + /** + * Creates a new Fee instance using the specified properties. + * @param [properties] Properties to set + * @returns Fee instance + */ + public static create(properties?: cosmos.tx.v1beta1.IFee): cosmos.tx.v1beta1.Fee; + + /** + * Encodes the specified Fee message. Does not implicitly {@link cosmos.tx.v1beta1.Fee.verify|verify} messages. + * @param m Fee message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.v1beta1.IFee, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.v1beta1.Fee; } } } @@ -10093,102 +2620,7527 @@ export namespace google { public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Any; } - /** Properties of a Timestamp. */ - interface ITimestamp { - /** Timestamp seconds */ - seconds?: Long | null; - - /** Timestamp nanos */ - nanos?: number | null; + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + /** FileDescriptorSet file */ + file?: google.protobuf.IFileDescriptorProto[] | null; } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { /** - * Constructs a new Timestamp. + * Constructs a new FileDescriptorSet. * @param [p] Properties to set */ - constructor(p?: google.protobuf.ITimestamp); + constructor(p?: google.protobuf.IFileDescriptorSet); - /** Timestamp seconds. */ - public seconds: Long; - - /** Timestamp nanos. */ - public nanos: number; + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; /** - * Creates a new Timestamp instance using the specified properties. + * Creates a new FileDescriptorSet instance using the specified properties. * @param [properties] Properties to set - * @returns Timestamp instance + * @returns FileDescriptorSet instance */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + public static create( + properties?: google.protobuf.IFileDescriptorSet, + ): google.protobuf.FileDescriptorSet; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param m Timestamp message or plain object to encode + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param m FileDescriptorSet message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: google.protobuf.IFileDescriptorSet, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns Timestamp + * @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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorSet; } - /** Properties of a Duration. */ - interface IDuration { - /** Duration seconds */ - seconds?: Long | null; + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + /** FileDescriptorProto name */ + name?: string | null; - /** Duration nanos */ - nanos?: number | 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 Duration. */ - class Duration implements IDuration { + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { /** - * Constructs a new Duration. + * Constructs a new FileDescriptorProto. * @param [p] Properties to set */ - constructor(p?: google.protobuf.IDuration); + constructor(p?: google.protobuf.IFileDescriptorProto); - /** Duration seconds. */ - public seconds: Long; + /** FileDescriptorProto name. */ + public name: string; - /** Duration nanos. */ - public nanos: number; + /** 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 Duration instance using the specified properties. + * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns Duration instance + * @returns FileDescriptorProto instance */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + public static create( + properties?: google.protobuf.IFileDescriptorProto, + ): google.protobuf.FileDescriptorProto; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param m Duration message or plain object to encode + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param m FileDescriptorProto message or plain object to encode * @param [w] Writer to encode to * @returns Writer */ - public static encode(m: google.protobuf.IDuration, w?: $protobuf.Writer): $protobuf.Writer; + public static encode(m: google.protobuf.IFileDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @param r Reader or buffer to decode from * @param [l] Message length if known beforehand - * @returns Duration + * @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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.FileDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m DescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.DescriptorProto; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m ExtensionRange message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.DescriptorProto.IExtensionRange, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.DescriptorProto.ExtensionRange; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m ReservedRange message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.DescriptorProto.IReservedRange, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.DescriptorProto.ReservedRange; + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m FieldDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IFieldDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.FieldDescriptorProto; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m OneofDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IOneofDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.OneofDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m EnumDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IEnumDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.EnumDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m EnumValueDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.IEnumValueDescriptorProto, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.EnumValueDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m ServiceDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.IServiceDescriptorProto, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.ServiceDescriptorProto; + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m MethodDescriptorProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IMethodDescriptorProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.MethodDescriptorProto; + } + + /** 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; + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + /** + * Constructs a new FileOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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; + } + + 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; + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + /** + * Constructs a new MessageOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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 { + /** 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; + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + /** + * Constructs a new FieldOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m OneofOptions message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IOneofOptions, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.OneofOptions; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + /** EnumOptions allowAlias */ + allowAlias?: boolean | null; + + /** EnumOptions deprecated */ + deprecated?: boolean | null; + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + /** + * Constructs a new EnumOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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 { + /** EnumValueOptions deprecated */ + deprecated?: boolean | null; + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + /** + * Constructs a new EnumValueOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 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 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 [p] Properties to set + */ + constructor(p?: 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 m ServiceOptions message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IServiceOptions, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.ServiceOptions; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + /** MethodOptions deprecated */ + deprecated?: boolean | null; + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: google.protobuf.IUninterpretedOption[] | null; + + /** MethodOptions .google.api.http */ + ".google.api.http"?: google.api.IHttpRule | null; + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + /** + * Constructs a new MethodOptions. + * @param [p] Properties to set + */ + constructor(p?: 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 m MethodOptions message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IMethodOptions, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.MethodOptions; + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + /** UninterpretedOption name */ + name?: google.protobuf.UninterpretedOption.INamePart[] | null; + + /** UninterpretedOption identifierValue */ + identifierValue?: string | null; + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: Long | null; + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: 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 [p] Properties to set + */ + constructor(p?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: Long; + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: 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 m UninterpretedOption message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IUninterpretedOption, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.UninterpretedOption; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m NamePart message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.UninterpretedOption.INamePart, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.UninterpretedOption.NamePart; + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m SourceCodeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.ISourceCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.SourceCodeInfo; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m Location message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.SourceCodeInfo.ILocation, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.SourceCodeInfo.Location; + } + } + + /** 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 [p] Properties to set + */ + constructor(p?: 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 m GeneratedCodeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IGeneratedCodeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.GeneratedCodeInfo; + } + + 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 [p] Properties to set + */ + constructor(p?: 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 m Annotation message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: google.protobuf.GeneratedCodeInfo.IAnnotation, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] 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( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): google.protobuf.GeneratedCodeInfo.Annotation; + } + } + } + + /** Namespace api. */ + namespace api { + /** Properties of a Http. */ + interface IHttp { + /** Http rules */ + rules?: google.api.IHttpRule[] | null; + } + + /** Represents a Http. */ + class Http implements IHttp { + /** + * Constructs a new Http. + * @param [p] Properties to set + */ + constructor(p?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param m Http message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.api.IHttp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Http + * @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.api.Http; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + /** HttpRule get */ + get?: string | null; + + /** HttpRule put */ + put?: string | null; + + /** HttpRule post */ + post?: string | null; + + /** HttpRule delete */ + delete?: string | null; + + /** HttpRule patch */ + patch?: string | null; + + /** HttpRule custom */ + custom?: google.api.ICustomHttpPattern | null; + + /** HttpRule selector */ + selector?: string | null; + + /** HttpRule body */ + body?: string | null; + + /** HttpRule additionalBindings */ + additionalBindings?: google.api.IHttpRule[] | null; + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + /** + * Constructs a new HttpRule. + * @param [p] Properties to set + */ + constructor(p?: google.api.IHttpRule); + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: google.api.ICustomHttpPattern | null; + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: "get" | "put" | "post" | "delete" | "patch" | "custom"; + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param m HttpRule message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.api.IHttpRule, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + /** CustomHttpPattern kind */ + kind?: string | null; + + /** CustomHttpPattern path */ + path?: string | null; + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + /** + * Constructs a new CustomHttpPattern. + * @param [p] Properties to set + */ + constructor(p?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param m CustomHttpPattern message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.api.ICustomHttpPattern, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + } + } +} + +/** Namespace ibc. */ +export namespace ibc { + /** Namespace core. */ + namespace core { + /** 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?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenInit signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenInit. */ + class MsgChannelOpenInit implements IMsgChannelOpenInit { + /** + * Constructs a new MsgChannelOpenInit. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenInit); + + /** MsgChannelOpenInit portId. */ + public portId: string; + + /** MsgChannelOpenInit channelId. */ + public channelId: string; + + /** MsgChannelOpenInit channel. */ + public channel?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenInit signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenInit instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenInit, + ): ibc.core.channel.v1.MsgChannelOpenInit; + + /** + * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelOpenInit; + } + + /** Properties of a MsgChannelOpenTry. */ + interface IMsgChannelOpenTry { + /** MsgChannelOpenTry portId */ + portId?: string | null; + + /** MsgChannelOpenTry desiredChannelId */ + desiredChannelId?: string | null; + + /** MsgChannelOpenTry counterpartyChosenChannelId */ + counterpartyChosenChannelId?: string | null; + + /** MsgChannelOpenTry channel */ + channel?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenTry counterpartyVersion */ + counterpartyVersion?: string | null; + + /** MsgChannelOpenTry proofInit */ + proofInit?: Uint8Array | null; + + /** MsgChannelOpenTry proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenTry signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenTry. */ + class MsgChannelOpenTry implements IMsgChannelOpenTry { + /** + * Constructs a new MsgChannelOpenTry. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenTry); + + /** MsgChannelOpenTry portId. */ + public portId: string; + + /** MsgChannelOpenTry desiredChannelId. */ + public desiredChannelId: string; + + /** MsgChannelOpenTry counterpartyChosenChannelId. */ + public counterpartyChosenChannelId: string; + + /** MsgChannelOpenTry channel. */ + public channel?: ibc.core.channel.v1.IChannel | null; + + /** MsgChannelOpenTry counterpartyVersion. */ + public counterpartyVersion: string; + + /** MsgChannelOpenTry proofInit. */ + public proofInit: Uint8Array; + + /** MsgChannelOpenTry proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenTry signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenTry instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenTry instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenTry, + ): ibc.core.channel.v1.MsgChannelOpenTry; + + /** + * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelOpenTry; + } + + /** Properties of a MsgChannelOpenAck. */ + interface IMsgChannelOpenAck { + /** MsgChannelOpenAck portId */ + portId?: string | null; + + /** MsgChannelOpenAck channelId */ + channelId?: string | null; + + /** MsgChannelOpenAck counterpartyChannelId */ + counterpartyChannelId?: string | null; + + /** MsgChannelOpenAck counterpartyVersion */ + counterpartyVersion?: string | null; + + /** MsgChannelOpenAck proofTry */ + proofTry?: Uint8Array | null; + + /** MsgChannelOpenAck proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenAck signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenAck. */ + class MsgChannelOpenAck implements IMsgChannelOpenAck { + /** + * Constructs a new MsgChannelOpenAck. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenAck); + + /** MsgChannelOpenAck portId. */ + public portId: string; + + /** MsgChannelOpenAck channelId. */ + public channelId: string; + + /** MsgChannelOpenAck counterpartyChannelId. */ + public counterpartyChannelId: string; + + /** MsgChannelOpenAck counterpartyVersion. */ + public counterpartyVersion: string; + + /** MsgChannelOpenAck proofTry. */ + public proofTry: Uint8Array; + + /** MsgChannelOpenAck proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenAck signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenAck instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenAck instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenAck, + ): ibc.core.channel.v1.MsgChannelOpenAck; + + /** + * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenConfirm signer */ + signer?: string | null; + } + + /** Represents a MsgChannelOpenConfirm. */ + class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { + /** + * Constructs a new MsgChannelOpenConfirm. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelOpenConfirm); + + /** MsgChannelOpenConfirm portId. */ + public portId: string; + + /** MsgChannelOpenConfirm channelId. */ + public channelId: string; + + /** MsgChannelOpenConfirm proofAck. */ + public proofAck: Uint8Array; + + /** MsgChannelOpenConfirm proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelOpenConfirm signer. */ + public signer: string; + + /** + * Creates a new MsgChannelOpenConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelOpenConfirm instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelOpenConfirm, + ): ibc.core.channel.v1.MsgChannelOpenConfirm; + + /** + * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelOpenConfirm; + } + + /** Properties of a MsgChannelCloseInit. */ + interface IMsgChannelCloseInit { + /** MsgChannelCloseInit portId */ + portId?: string | null; + + /** MsgChannelCloseInit channelId */ + channelId?: string | null; + + /** MsgChannelCloseInit signer */ + signer?: string | null; + } + + /** Represents a MsgChannelCloseInit. */ + class MsgChannelCloseInit implements IMsgChannelCloseInit { + /** + * Constructs a new MsgChannelCloseInit. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelCloseInit); + + /** MsgChannelCloseInit portId. */ + public portId: string; + + /** MsgChannelCloseInit channelId. */ + public channelId: string; + + /** MsgChannelCloseInit signer. */ + public signer: string; + + /** + * Creates a new MsgChannelCloseInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelCloseInit instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelCloseInit, + ): ibc.core.channel.v1.MsgChannelCloseInit; + + /** + * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelCloseConfirm signer */ + signer?: string | null; + } + + /** Represents a MsgChannelCloseConfirm. */ + class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { + /** + * Constructs a new MsgChannelCloseConfirm. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgChannelCloseConfirm); + + /** MsgChannelCloseConfirm portId. */ + public portId: string; + + /** MsgChannelCloseConfirm channelId. */ + public channelId: string; + + /** MsgChannelCloseConfirm proofInit. */ + public proofInit: Uint8Array; + + /** MsgChannelCloseConfirm proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgChannelCloseConfirm signer. */ + public signer: string; + + /** + * Creates a new MsgChannelCloseConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgChannelCloseConfirm instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgChannelCloseConfirm, + ): ibc.core.channel.v1.MsgChannelCloseConfirm; + + /** + * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgChannelCloseConfirm; + } + + /** Properties of a MsgRecvPacket. */ + interface IMsgRecvPacket { + /** MsgRecvPacket packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgRecvPacket proof */ + proof?: Uint8Array | null; + + /** MsgRecvPacket proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgRecvPacket signer */ + signer?: string | null; + } + + /** Represents a MsgRecvPacket. */ + class MsgRecvPacket implements IMsgRecvPacket { + /** + * Constructs a new MsgRecvPacket. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgRecvPacket); + + /** MsgRecvPacket packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgRecvPacket proof. */ + public proof: Uint8Array; + + /** MsgRecvPacket proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgRecvPacket signer. */ + public signer: string; + + /** + * Creates a new MsgRecvPacket instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgRecvPacket instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgRecvPacket, + ): ibc.core.channel.v1.MsgRecvPacket; + + /** + * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * @param m MsgRecvPacket message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: ibc.core.channel.v1.IMsgRecvPacket, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgRecvPacket message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgRecvPacket + * @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, + ): ibc.core.channel.v1.MsgRecvPacket; + } + + /** Properties of a MsgTimeout. */ + interface IMsgTimeout { + /** MsgTimeout packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeout proof */ + proof?: Uint8Array | null; + + /** MsgTimeout proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeout nextSequenceRecv */ + nextSequenceRecv?: Long | null; + + /** MsgTimeout signer */ + signer?: string | null; + } + + /** Represents a MsgTimeout. */ + class MsgTimeout implements IMsgTimeout { + /** + * Constructs a new MsgTimeout. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgTimeout); + + /** MsgTimeout packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeout proof. */ + public proof: Uint8Array; + + /** MsgTimeout proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeout nextSequenceRecv. */ + public nextSequenceRecv: Long; + + /** MsgTimeout signer. */ + public signer: string; + + /** + * Creates a new MsgTimeout instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgTimeout instance + */ + public static create(properties?: ibc.core.channel.v1.IMsgTimeout): ibc.core.channel.v1.MsgTimeout; + + /** + * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.channel.v1.MsgTimeout; + } + + /** Properties of a MsgTimeoutOnClose. */ + interface IMsgTimeoutOnClose { + /** MsgTimeoutOnClose packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeoutOnClose proof */ + proof?: Uint8Array | null; + + /** MsgTimeoutOnClose proofClose */ + proofClose?: Uint8Array | null; + + /** MsgTimeoutOnClose proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeoutOnClose nextSequenceRecv */ + nextSequenceRecv?: Long | null; + + /** MsgTimeoutOnClose signer */ + signer?: string | null; + } + + /** Represents a MsgTimeoutOnClose. */ + class MsgTimeoutOnClose implements IMsgTimeoutOnClose { + /** + * Constructs a new MsgTimeoutOnClose. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgTimeoutOnClose); + + /** MsgTimeoutOnClose packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgTimeoutOnClose proof. */ + public proof: Uint8Array; + + /** MsgTimeoutOnClose proofClose. */ + public proofClose: Uint8Array; + + /** MsgTimeoutOnClose proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgTimeoutOnClose nextSequenceRecv. */ + public nextSequenceRecv: Long; + + /** MsgTimeoutOnClose signer. */ + public signer: string; + + /** + * Creates a new MsgTimeoutOnClose instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgTimeoutOnClose instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgTimeoutOnClose, + ): ibc.core.channel.v1.MsgTimeoutOnClose; + + /** + * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * @param m MsgTimeoutOnClose message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IMsgTimeoutOnClose, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgTimeoutOnClose + * @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, + ): ibc.core.channel.v1.MsgTimeoutOnClose; + } + + /** Properties of a MsgAcknowledgement. */ + interface IMsgAcknowledgement { + /** MsgAcknowledgement packet */ + packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgAcknowledgement acknowledgement */ + acknowledgement?: Uint8Array | null; + + /** MsgAcknowledgement proof */ + proof?: Uint8Array | null; + + /** MsgAcknowledgement proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgAcknowledgement signer */ + signer?: string | null; + } + + /** Represents a MsgAcknowledgement. */ + class MsgAcknowledgement implements IMsgAcknowledgement { + /** + * Constructs a new MsgAcknowledgement. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IMsgAcknowledgement); + + /** MsgAcknowledgement packet. */ + public packet?: ibc.core.channel.v1.IPacket | null; + + /** MsgAcknowledgement acknowledgement. */ + public acknowledgement: Uint8Array; + + /** MsgAcknowledgement proof. */ + public proof: Uint8Array; + + /** MsgAcknowledgement proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgAcknowledgement signer. */ + public signer: string; + + /** + * Creates a new MsgAcknowledgement instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgAcknowledgement instance + */ + public static create( + properties?: ibc.core.channel.v1.IMsgAcknowledgement, + ): ibc.core.channel.v1.MsgAcknowledgement; + + /** + * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.MsgAcknowledgement; + } + + /** Properties of a Channel. */ + interface IChannel { + /** Channel state */ + state?: ibc.core.channel.v1.State | null; + + /** Channel ordering */ + ordering?: ibc.core.channel.v1.Order | null; + + /** Channel counterparty */ + counterparty?: ibc.core.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?: ibc.core.channel.v1.IChannel); + + /** Channel state. */ + public state: ibc.core.channel.v1.State; + + /** Channel ordering. */ + public ordering: ibc.core.channel.v1.Order; + + /** Channel counterparty. */ + public counterparty?: ibc.core.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?: ibc.core.channel.v1.IChannel): ibc.core.channel.v1.Channel; + + /** + * Encodes the specified Channel message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.channel.v1.Channel; + } + + /** Properties of an IdentifiedChannel. */ + interface IIdentifiedChannel { + /** IdentifiedChannel state */ + state?: ibc.core.channel.v1.State | null; + + /** IdentifiedChannel ordering */ + ordering?: ibc.core.channel.v1.Order | null; + + /** IdentifiedChannel counterparty */ + counterparty?: ibc.core.channel.v1.ICounterparty | null; + + /** IdentifiedChannel connectionHops */ + connectionHops?: string[] | null; + + /** IdentifiedChannel version */ + version?: string | null; + + /** IdentifiedChannel portId */ + portId?: string | null; + + /** IdentifiedChannel channelId */ + channelId?: string | null; + } + + /** Represents an IdentifiedChannel. */ + class IdentifiedChannel implements IIdentifiedChannel { + /** + * Constructs a new IdentifiedChannel. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IIdentifiedChannel); + + /** IdentifiedChannel state. */ + public state: ibc.core.channel.v1.State; + + /** IdentifiedChannel ordering. */ + public ordering: ibc.core.channel.v1.Order; + + /** IdentifiedChannel counterparty. */ + public counterparty?: ibc.core.channel.v1.ICounterparty | null; + + /** IdentifiedChannel connectionHops. */ + public connectionHops: string[]; + + /** IdentifiedChannel version. */ + public version: string; + + /** IdentifiedChannel portId. */ + public portId: string; + + /** IdentifiedChannel channelId. */ + public channelId: string; + + /** + * Creates a new IdentifiedChannel instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentifiedChannel instance + */ + public static create( + properties?: ibc.core.channel.v1.IIdentifiedChannel, + ): ibc.core.channel.v1.IdentifiedChannel; + + /** + * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * @param m IdentifiedChannel message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IIdentifiedChannel, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IdentifiedChannel message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IdentifiedChannel + * @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, + ): ibc.core.channel.v1.IdentifiedChannel; + } + + /** 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?: ibc.core.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?: ibc.core.channel.v1.ICounterparty, + ): ibc.core.channel.v1.Counterparty; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.channel.v1.Counterparty; + } + + /** Properties of a Packet. */ + interface IPacket { + /** Packet sequence */ + sequence?: 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?: ibc.core.client.v1.IHeight | null; + + /** Packet timeoutTimestamp */ + timeoutTimestamp?: Long | null; + } + + /** Represents a Packet. */ + class Packet implements IPacket { + /** + * Constructs a new Packet. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IPacket); + + /** Packet sequence. */ + public sequence: 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?: ibc.core.client.v1.IHeight | null; + + /** Packet timeoutTimestamp. */ + public timeoutTimestamp: Long; + + /** + * Creates a new Packet instance using the specified properties. + * @param [properties] Properties to set + * @returns Packet instance + */ + public static create(properties?: ibc.core.channel.v1.IPacket): ibc.core.channel.v1.Packet; + + /** + * Encodes the specified Packet message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.channel.v1.Packet; + } + + /** Properties of a PacketAckCommitment. */ + interface IPacketAckCommitment { + /** PacketAckCommitment portId */ + portId?: string | null; + + /** PacketAckCommitment channelId */ + channelId?: string | null; + + /** PacketAckCommitment sequence */ + sequence?: Long | null; + + /** PacketAckCommitment hash */ + hash?: Uint8Array | null; + } + + /** Represents a PacketAckCommitment. */ + class PacketAckCommitment implements IPacketAckCommitment { + /** + * Constructs a new PacketAckCommitment. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IPacketAckCommitment); + + /** PacketAckCommitment portId. */ + public portId: string; + + /** PacketAckCommitment channelId. */ + public channelId: string; + + /** PacketAckCommitment sequence. */ + public sequence: Long; + + /** PacketAckCommitment hash. */ + public hash: Uint8Array; + + /** + * Creates a new PacketAckCommitment instance using the specified properties. + * @param [properties] Properties to set + * @returns PacketAckCommitment instance + */ + public static create( + properties?: ibc.core.channel.v1.IPacketAckCommitment, + ): ibc.core.channel.v1.PacketAckCommitment; + + /** + * Encodes the specified PacketAckCommitment message. Does not implicitly {@link ibc.core.channel.v1.PacketAckCommitment.verify|verify} messages. + * @param m PacketAckCommitment message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IPacketAckCommitment, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a PacketAckCommitment message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PacketAckCommitment + * @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, + ): ibc.core.channel.v1.PacketAckCommitment; + } + + /** Properties of an Acknowledgement. */ + interface IAcknowledgement { + /** Acknowledgement result */ + result?: Uint8Array | null; + + /** Acknowledgement error */ + error?: string | null; + } + + /** Represents an Acknowledgement. */ + class Acknowledgement implements IAcknowledgement { + /** + * Constructs a new Acknowledgement. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IAcknowledgement); + + /** Acknowledgement result. */ + public result: Uint8Array; + + /** Acknowledgement error. */ + public error: string; + + /** Acknowledgement response. */ + public response?: "result" | "error"; + + /** + * Creates a new Acknowledgement instance using the specified properties. + * @param [properties] Properties to set + * @returns Acknowledgement instance + */ + public static create( + properties?: ibc.core.channel.v1.IAcknowledgement, + ): ibc.core.channel.v1.Acknowledgement; + + /** + * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * @param m Acknowledgement message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IAcknowledgement, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an Acknowledgement message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Acknowledgement + * @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, + ): ibc.core.channel.v1.Acknowledgement; + } + + /** 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 Channel. + * @param request QueryChannelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelResponse + */ + public channel( + request: ibc.core.channel.v1.IQueryChannelRequest, + callback: ibc.core.channel.v1.Query.ChannelCallback, + ): void; + + /** + * Calls Channel. + * @param request QueryChannelRequest message or plain object + * @returns Promise + */ + public channel( + request: ibc.core.channel.v1.IQueryChannelRequest, + ): Promise; + + /** + * Calls Channels. + * @param request QueryChannelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelsResponse + */ + public channels( + request: ibc.core.channel.v1.IQueryChannelsRequest, + callback: ibc.core.channel.v1.Query.ChannelsCallback, + ): void; + + /** + * Calls Channels. + * @param request QueryChannelsRequest message or plain object + * @returns Promise + */ + public channels( + request: ibc.core.channel.v1.IQueryChannelsRequest, + ): Promise; + + /** + * Calls ConnectionChannels. + * @param request QueryConnectionChannelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse + */ + public connectionChannels( + request: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + callback: ibc.core.channel.v1.Query.ConnectionChannelsCallback, + ): void; + + /** + * Calls ConnectionChannels. + * @param request QueryConnectionChannelsRequest message or plain object + * @returns Promise + */ + public connectionChannels( + request: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + ): Promise; + + /** + * Calls ChannelClientState. + * @param request QueryChannelClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse + */ + public channelClientState( + request: ibc.core.channel.v1.IQueryChannelClientStateRequest, + callback: ibc.core.channel.v1.Query.ChannelClientStateCallback, + ): void; + + /** + * Calls ChannelClientState. + * @param request QueryChannelClientStateRequest message or plain object + * @returns Promise + */ + public channelClientState( + request: ibc.core.channel.v1.IQueryChannelClientStateRequest, + ): Promise; + + /** + * Calls ChannelConsensusState. + * @param request QueryChannelConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse + */ + public channelConsensusState( + request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + callback: ibc.core.channel.v1.Query.ChannelConsensusStateCallback, + ): void; + + /** + * Calls ChannelConsensusState. + * @param request QueryChannelConsensusStateRequest message or plain object + * @returns Promise + */ + public channelConsensusState( + request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + ): Promise; + + /** + * Calls PacketCommitment. + * @param request QueryPacketCommitmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse + */ + public packetCommitment( + request: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + callback: ibc.core.channel.v1.Query.PacketCommitmentCallback, + ): void; + + /** + * Calls PacketCommitment. + * @param request QueryPacketCommitmentRequest message or plain object + * @returns Promise + */ + public packetCommitment( + request: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + ): Promise; + + /** + * Calls PacketCommitments. + * @param request QueryPacketCommitmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse + */ + public packetCommitments( + request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + callback: ibc.core.channel.v1.Query.PacketCommitmentsCallback, + ): void; + + /** + * Calls PacketCommitments. + * @param request QueryPacketCommitmentsRequest message or plain object + * @returns Promise + */ + public packetCommitments( + request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + ): Promise; + + /** + * Calls PacketAcknowledgement. + * @param request QueryPacketAcknowledgementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse + */ + public packetAcknowledgement( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + callback: ibc.core.channel.v1.Query.PacketAcknowledgementCallback, + ): void; + + /** + * Calls PacketAcknowledgement. + * @param request QueryPacketAcknowledgementRequest message or plain object + * @returns Promise + */ + public packetAcknowledgement( + request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + ): Promise; + + /** + * Calls UnreceivedPackets. + * @param request QueryUnreceivedPacketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse + */ + public unreceivedPackets( + request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + callback: ibc.core.channel.v1.Query.UnreceivedPacketsCallback, + ): void; + + /** + * Calls UnreceivedPackets. + * @param request QueryUnreceivedPacketsRequest message or plain object + * @returns Promise + */ + public unreceivedPackets( + request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + ): Promise; + + /** + * Calls UnrelayedAcks. + * @param request QueryUnrelayedAcksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnrelayedAcksResponse + */ + public unrelayedAcks( + request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + callback: ibc.core.channel.v1.Query.UnrelayedAcksCallback, + ): void; + + /** + * Calls UnrelayedAcks. + * @param request QueryUnrelayedAcksRequest message or plain object + * @returns Promise + */ + public unrelayedAcks( + request: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + ): Promise; + + /** + * Calls NextSequenceReceive. + * @param request QueryNextSequenceReceiveRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse + */ + public nextSequenceReceive( + request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + callback: ibc.core.channel.v1.Query.NextSequenceReceiveCallback, + ): void; + + /** + * Calls NextSequenceReceive. + * @param request QueryNextSequenceReceiveRequest message or plain object + * @returns Promise + */ + public nextSequenceReceive( + request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channel}. + * @param error Error, if any + * @param [response] QueryChannelResponse + */ + type ChannelCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channels}. + * @param error Error, if any + * @param [response] QueryChannelsResponse + */ + type ChannelsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. + * @param error Error, if any + * @param [response] QueryConnectionChannelsResponse + */ + type ConnectionChannelsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryConnectionChannelsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. + * @param error Error, if any + * @param [response] QueryChannelClientStateResponse + */ + type ChannelClientStateCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelClientStateResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. + * @param error Error, if any + * @param [response] QueryChannelConsensusStateResponse + */ + type ChannelConsensusStateCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryChannelConsensusStateResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. + * @param error Error, if any + * @param [response] QueryPacketCommitmentResponse + */ + type PacketCommitmentCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketCommitmentResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. + * @param error Error, if any + * @param [response] QueryPacketCommitmentsResponse + */ + type PacketCommitmentsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketCommitmentsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. + * @param error Error, if any + * @param [response] QueryPacketAcknowledgementResponse + */ + type PacketAcknowledgementCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryPacketAcknowledgementResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. + * @param error Error, if any + * @param [response] QueryUnreceivedPacketsResponse + */ + type UnreceivedPacketsCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryUnreceivedPacketsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#unrelayedAcks}. + * @param error Error, if any + * @param [response] QueryUnrelayedAcksResponse + */ + type UnrelayedAcksCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryUnrelayedAcksResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. + * @param error Error, if any + * @param [response] QueryNextSequenceReceiveResponse + */ + type NextSequenceReceiveCallback = ( + error: Error | null, + response?: ibc.core.channel.v1.QueryNextSequenceReceiveResponse, + ) => void; + } + + /** Properties of a QueryChannelRequest. */ + interface IQueryChannelRequest { + /** QueryChannelRequest portId */ + portId?: string | null; + + /** QueryChannelRequest channelId */ + channelId?: string | null; + } + + /** Represents a QueryChannelRequest. */ + class QueryChannelRequest implements IQueryChannelRequest { + /** + * Constructs a new QueryChannelRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelRequest); + + /** QueryChannelRequest portId. */ + public portId: string; + + /** QueryChannelRequest channelId. */ + public channelId: string; + + /** + * Creates a new QueryChannelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelRequest, + ): ibc.core.channel.v1.QueryChannelRequest; + + /** + * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * @param m QueryChannelRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelRequest + * @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, + ): ibc.core.channel.v1.QueryChannelRequest; + } + + /** Properties of a QueryChannelResponse. */ + interface IQueryChannelResponse { + /** QueryChannelResponse channel */ + channel?: ibc.core.channel.v1.IChannel | null; + + /** QueryChannelResponse proof */ + proof?: Uint8Array | null; + + /** QueryChannelResponse proofPath */ + proofPath?: string | null; + + /** QueryChannelResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelResponse. */ + class QueryChannelResponse implements IQueryChannelResponse { + /** + * Constructs a new QueryChannelResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelResponse); + + /** QueryChannelResponse channel. */ + public channel?: ibc.core.channel.v1.IChannel | null; + + /** QueryChannelResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelResponse proofPath. */ + public proofPath: string; + + /** QueryChannelResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelResponse, + ): ibc.core.channel.v1.QueryChannelResponse; + + /** + * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * @param m QueryChannelResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelResponse + * @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, + ): ibc.core.channel.v1.QueryChannelResponse; + } + + /** Properties of a QueryChannelsRequest. */ + interface IQueryChannelsRequest { + /** QueryChannelsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryChannelsRequest. */ + class QueryChannelsRequest implements IQueryChannelsRequest { + /** + * Constructs a new QueryChannelsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelsRequest); + + /** QueryChannelsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryChannelsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelsRequest, + ): ibc.core.channel.v1.QueryChannelsRequest; + + /** + * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * @param m QueryChannelsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelsRequest + * @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, + ): ibc.core.channel.v1.QueryChannelsRequest; + } + + /** Properties of a QueryChannelsResponse. */ + interface IQueryChannelsResponse { + /** QueryChannelsResponse channels */ + channels?: ibc.core.channel.v1.IIdentifiedChannel[] | null; + + /** QueryChannelsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryChannelsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelsResponse. */ + class QueryChannelsResponse implements IQueryChannelsResponse { + /** + * Constructs a new QueryChannelsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelsResponse); + + /** QueryChannelsResponse channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + + /** QueryChannelsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryChannelsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelsResponse, + ): ibc.core.channel.v1.QueryChannelsResponse; + + /** + * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * @param m QueryChannelsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelsResponse + * @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, + ): ibc.core.channel.v1.QueryChannelsResponse; + } + + /** Properties of a QueryConnectionChannelsRequest. */ + interface IQueryConnectionChannelsRequest { + /** QueryConnectionChannelsRequest connection */ + connection?: string | null; + + /** QueryConnectionChannelsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryConnectionChannelsRequest. */ + class QueryConnectionChannelsRequest implements IQueryConnectionChannelsRequest { + /** + * Constructs a new QueryConnectionChannelsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryConnectionChannelsRequest); + + /** QueryConnectionChannelsRequest connection. */ + public connection: string; + + /** QueryConnectionChannelsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryConnectionChannelsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionChannelsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + ): ibc.core.channel.v1.QueryConnectionChannelsRequest; + + /** + * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * @param m QueryConnectionChannelsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryConnectionChannelsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionChannelsRequest + * @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, + ): ibc.core.channel.v1.QueryConnectionChannelsRequest; + } + + /** Properties of a QueryConnectionChannelsResponse. */ + interface IQueryConnectionChannelsResponse { + /** QueryConnectionChannelsResponse channels */ + channels?: ibc.core.channel.v1.IIdentifiedChannel[] | null; + + /** QueryConnectionChannelsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionChannelsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionChannelsResponse. */ + class QueryConnectionChannelsResponse implements IQueryConnectionChannelsResponse { + /** + * Constructs a new QueryConnectionChannelsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryConnectionChannelsResponse); + + /** QueryConnectionChannelsResponse channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + + /** QueryConnectionChannelsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionChannelsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionChannelsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionChannelsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryConnectionChannelsResponse, + ): ibc.core.channel.v1.QueryConnectionChannelsResponse; + + /** + * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * @param m QueryConnectionChannelsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryConnectionChannelsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionChannelsResponse + * @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, + ): ibc.core.channel.v1.QueryConnectionChannelsResponse; + } + + /** Properties of a QueryChannelClientStateRequest. */ + interface IQueryChannelClientStateRequest { + /** QueryChannelClientStateRequest portId */ + portId?: string | null; + + /** QueryChannelClientStateRequest channelId */ + channelId?: string | null; + } + + /** Represents a QueryChannelClientStateRequest. */ + class QueryChannelClientStateRequest implements IQueryChannelClientStateRequest { + /** + * Constructs a new QueryChannelClientStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelClientStateRequest); + + /** QueryChannelClientStateRequest portId. */ + public portId: string; + + /** QueryChannelClientStateRequest channelId. */ + public channelId: string; + + /** + * Creates a new QueryChannelClientStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelClientStateRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelClientStateRequest, + ): ibc.core.channel.v1.QueryChannelClientStateRequest; + + /** + * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * @param m QueryChannelClientStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelClientStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelClientStateRequest + * @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, + ): ibc.core.channel.v1.QueryChannelClientStateRequest; + } + + /** Properties of a QueryChannelClientStateResponse. */ + interface IQueryChannelClientStateResponse { + /** QueryChannelClientStateResponse identifiedClientState */ + identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryChannelClientStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryChannelClientStateResponse proofPath */ + proofPath?: string | null; + + /** QueryChannelClientStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelClientStateResponse. */ + class QueryChannelClientStateResponse implements IQueryChannelClientStateResponse { + /** + * Constructs a new QueryChannelClientStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelClientStateResponse); + + /** QueryChannelClientStateResponse identifiedClientState. */ + public identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryChannelClientStateResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelClientStateResponse proofPath. */ + public proofPath: string; + + /** QueryChannelClientStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelClientStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelClientStateResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelClientStateResponse, + ): ibc.core.channel.v1.QueryChannelClientStateResponse; + + /** + * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * @param m QueryChannelClientStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelClientStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelClientStateResponse + * @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, + ): ibc.core.channel.v1.QueryChannelClientStateResponse; + } + + /** Properties of a QueryChannelConsensusStateRequest. */ + interface IQueryChannelConsensusStateRequest { + /** QueryChannelConsensusStateRequest portId */ + portId?: string | null; + + /** QueryChannelConsensusStateRequest channelId */ + channelId?: string | null; + + /** QueryChannelConsensusStateRequest versionNumber */ + versionNumber?: Long | null; + + /** QueryChannelConsensusStateRequest versionHeight */ + versionHeight?: Long | null; + } + + /** Represents a QueryChannelConsensusStateRequest. */ + class QueryChannelConsensusStateRequest implements IQueryChannelConsensusStateRequest { + /** + * Constructs a new QueryChannelConsensusStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelConsensusStateRequest); + + /** QueryChannelConsensusStateRequest portId. */ + public portId: string; + + /** QueryChannelConsensusStateRequest channelId. */ + public channelId: string; + + /** QueryChannelConsensusStateRequest versionNumber. */ + public versionNumber: Long; + + /** QueryChannelConsensusStateRequest versionHeight. */ + public versionHeight: Long; + + /** + * Creates a new QueryChannelConsensusStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelConsensusStateRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + ): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + + /** + * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * @param m QueryChannelConsensusStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelConsensusStateRequest + * @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, + ): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + } + + /** Properties of a QueryChannelConsensusStateResponse. */ + interface IQueryChannelConsensusStateResponse { + /** QueryChannelConsensusStateResponse consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** QueryChannelConsensusStateResponse clientId */ + clientId?: string | null; + + /** QueryChannelConsensusStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryChannelConsensusStateResponse proofPath */ + proofPath?: string | null; + + /** QueryChannelConsensusStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryChannelConsensusStateResponse. */ + class QueryChannelConsensusStateResponse implements IQueryChannelConsensusStateResponse { + /** + * Constructs a new QueryChannelConsensusStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryChannelConsensusStateResponse); + + /** QueryChannelConsensusStateResponse consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** QueryChannelConsensusStateResponse clientId. */ + public clientId: string; + + /** QueryChannelConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelConsensusStateResponse proofPath. */ + public proofPath: string; + + /** QueryChannelConsensusStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryChannelConsensusStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryChannelConsensusStateResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, + ): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + + /** + * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * @param m QueryChannelConsensusStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryChannelConsensusStateResponse + * @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, + ): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + } + + /** Properties of a QueryPacketCommitmentRequest. */ + interface IQueryPacketCommitmentRequest { + /** QueryPacketCommitmentRequest portId */ + portId?: string | null; + + /** QueryPacketCommitmentRequest channelId */ + channelId?: string | null; + + /** QueryPacketCommitmentRequest sequence */ + sequence?: Long | null; + } + + /** Represents a QueryPacketCommitmentRequest. */ + class QueryPacketCommitmentRequest implements IQueryPacketCommitmentRequest { + /** + * Constructs a new QueryPacketCommitmentRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentRequest); + + /** QueryPacketCommitmentRequest portId. */ + public portId: string; + + /** QueryPacketCommitmentRequest channelId. */ + public channelId: string; + + /** QueryPacketCommitmentRequest sequence. */ + public sequence: Long; + + /** + * Creates a new QueryPacketCommitmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + ): ibc.core.channel.v1.QueryPacketCommitmentRequest; + + /** + * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * @param m QueryPacketCommitmentRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentRequest + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentRequest; + } + + /** Properties of a QueryPacketCommitmentResponse. */ + interface IQueryPacketCommitmentResponse { + /** QueryPacketCommitmentResponse commitment */ + commitment?: Uint8Array | null; + + /** QueryPacketCommitmentResponse proof */ + proof?: Uint8Array | null; + + /** QueryPacketCommitmentResponse proofPath */ + proofPath?: string | null; + + /** QueryPacketCommitmentResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketCommitmentResponse. */ + class QueryPacketCommitmentResponse implements IQueryPacketCommitmentResponse { + /** + * Constructs a new QueryPacketCommitmentResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentResponse); + + /** QueryPacketCommitmentResponse commitment. */ + public commitment: Uint8Array; + + /** QueryPacketCommitmentResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketCommitmentResponse proofPath. */ + public proofPath: string; + + /** QueryPacketCommitmentResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketCommitmentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentResponse, + ): ibc.core.channel.v1.QueryPacketCommitmentResponse; + + /** + * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * @param m QueryPacketCommitmentResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentResponse + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentResponse; + } + + /** Properties of a QueryPacketCommitmentsRequest. */ + interface IQueryPacketCommitmentsRequest { + /** QueryPacketCommitmentsRequest portId */ + portId?: string | null; + + /** QueryPacketCommitmentsRequest channelId */ + channelId?: string | null; + + /** QueryPacketCommitmentsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryPacketCommitmentsRequest. */ + class QueryPacketCommitmentsRequest implements IQueryPacketCommitmentsRequest { + /** + * Constructs a new QueryPacketCommitmentsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentsRequest); + + /** QueryPacketCommitmentsRequest portId. */ + public portId: string; + + /** QueryPacketCommitmentsRequest channelId. */ + public channelId: string; + + /** QueryPacketCommitmentsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryPacketCommitmentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + ): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + + /** + * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * @param m QueryPacketCommitmentsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentsRequest + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + } + + /** Properties of a QueryPacketCommitmentsResponse. */ + interface IQueryPacketCommitmentsResponse { + /** QueryPacketCommitmentsResponse commitments */ + commitments?: ibc.core.channel.v1.IPacketAckCommitment[] | null; + + /** QueryPacketCommitmentsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketCommitmentsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketCommitmentsResponse. */ + class QueryPacketCommitmentsResponse implements IQueryPacketCommitmentsResponse { + /** + * Constructs a new QueryPacketCommitmentsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse); + + /** QueryPacketCommitmentsResponse commitments. */ + public commitments: ibc.core.channel.v1.IPacketAckCommitment[]; + + /** QueryPacketCommitmentsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryPacketCommitmentsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketCommitmentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketCommitmentsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, + ): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + + /** + * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * @param m QueryPacketCommitmentsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketCommitmentsResponse + * @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, + ): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + } + + /** Properties of a QueryPacketAcknowledgementRequest. */ + interface IQueryPacketAcknowledgementRequest { + /** QueryPacketAcknowledgementRequest portId */ + portId?: string | null; + + /** QueryPacketAcknowledgementRequest channelId */ + channelId?: string | null; + + /** QueryPacketAcknowledgementRequest sequence */ + sequence?: Long | null; + } + + /** Represents a QueryPacketAcknowledgementRequest. */ + class QueryPacketAcknowledgementRequest implements IQueryPacketAcknowledgementRequest { + /** + * Constructs a new QueryPacketAcknowledgementRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest); + + /** QueryPacketAcknowledgementRequest portId. */ + public portId: string; + + /** QueryPacketAcknowledgementRequest channelId. */ + public channelId: string; + + /** QueryPacketAcknowledgementRequest sequence. */ + public sequence: Long; + + /** + * Creates a new QueryPacketAcknowledgementRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + ): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + + /** + * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * @param m QueryPacketAcknowledgementRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementRequest + * @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, + ): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + } + + /** Properties of a QueryPacketAcknowledgementResponse. */ + interface IQueryPacketAcknowledgementResponse { + /** QueryPacketAcknowledgementResponse acknowledgement */ + acknowledgement?: Uint8Array | null; + + /** QueryPacketAcknowledgementResponse proof */ + proof?: Uint8Array | null; + + /** QueryPacketAcknowledgementResponse proofPath */ + proofPath?: string | null; + + /** QueryPacketAcknowledgementResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryPacketAcknowledgementResponse. */ + class QueryPacketAcknowledgementResponse implements IQueryPacketAcknowledgementResponse { + /** + * Constructs a new QueryPacketAcknowledgementResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse); + + /** QueryPacketAcknowledgementResponse acknowledgement. */ + public acknowledgement: Uint8Array; + + /** QueryPacketAcknowledgementResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketAcknowledgementResponse proofPath. */ + public proofPath: string; + + /** QueryPacketAcknowledgementResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryPacketAcknowledgementResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryPacketAcknowledgementResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, + ): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + + /** + * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * @param m QueryPacketAcknowledgementResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryPacketAcknowledgementResponse + * @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, + ): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + } + + /** Properties of a QueryUnreceivedPacketsRequest. */ + interface IQueryUnreceivedPacketsRequest { + /** QueryUnreceivedPacketsRequest portId */ + portId?: string | null; + + /** QueryUnreceivedPacketsRequest channelId */ + channelId?: string | null; + + /** QueryUnreceivedPacketsRequest packetCommitmentSequences */ + packetCommitmentSequences?: Long[] | null; + } + + /** Represents a QueryUnreceivedPacketsRequest. */ + class QueryUnreceivedPacketsRequest implements IQueryUnreceivedPacketsRequest { + /** + * Constructs a new QueryUnreceivedPacketsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest); + + /** QueryUnreceivedPacketsRequest portId. */ + public portId: string; + + /** QueryUnreceivedPacketsRequest channelId. */ + public channelId: string; + + /** QueryUnreceivedPacketsRequest packetCommitmentSequences. */ + public packetCommitmentSequences: Long[]; + + /** + * Creates a new QueryUnreceivedPacketsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnreceivedPacketsRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + ): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + + /** + * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * @param m QueryUnreceivedPacketsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnreceivedPacketsRequest + * @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, + ): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + } + + /** Properties of a QueryUnreceivedPacketsResponse. */ + interface IQueryUnreceivedPacketsResponse { + /** QueryUnreceivedPacketsResponse sequences */ + sequences?: Long[] | null; + + /** QueryUnreceivedPacketsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryUnreceivedPacketsResponse. */ + class QueryUnreceivedPacketsResponse implements IQueryUnreceivedPacketsResponse { + /** + * Constructs a new QueryUnreceivedPacketsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse); + + /** QueryUnreceivedPacketsResponse sequences. */ + public sequences: Long[]; + + /** QueryUnreceivedPacketsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryUnreceivedPacketsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnreceivedPacketsResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, + ): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + + /** + * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * @param m QueryUnreceivedPacketsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnreceivedPacketsResponse + * @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, + ): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + } + + /** Properties of a QueryUnrelayedAcksRequest. */ + interface IQueryUnrelayedAcksRequest { + /** QueryUnrelayedAcksRequest portId */ + portId?: string | null; + + /** QueryUnrelayedAcksRequest channelId */ + channelId?: string | null; + + /** QueryUnrelayedAcksRequest packetCommitmentSequences */ + packetCommitmentSequences?: Long[] | null; + } + + /** Represents a QueryUnrelayedAcksRequest. */ + class QueryUnrelayedAcksRequest implements IQueryUnrelayedAcksRequest { + /** + * Constructs a new QueryUnrelayedAcksRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest); + + /** QueryUnrelayedAcksRequest portId. */ + public portId: string; + + /** QueryUnrelayedAcksRequest channelId. */ + public channelId: string; + + /** QueryUnrelayedAcksRequest packetCommitmentSequences. */ + public packetCommitmentSequences: Long[]; + + /** + * Creates a new QueryUnrelayedAcksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnrelayedAcksRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + + /** + * Encodes the specified QueryUnrelayedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksRequest.verify|verify} messages. + * @param m QueryUnrelayedAcksRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnrelayedAcksRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnrelayedAcksRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnrelayedAcksRequest + * @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, + ): ibc.core.channel.v1.QueryUnrelayedAcksRequest; + } + + /** Properties of a QueryUnrelayedAcksResponse. */ + interface IQueryUnrelayedAcksResponse { + /** QueryUnrelayedAcksResponse sequences */ + sequences?: Long[] | null; + + /** QueryUnrelayedAcksResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryUnrelayedAcksResponse. */ + class QueryUnrelayedAcksResponse implements IQueryUnrelayedAcksResponse { + /** + * Constructs a new QueryUnrelayedAcksResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse); + + /** QueryUnrelayedAcksResponse sequences. */ + public sequences: Long[]; + + /** QueryUnrelayedAcksResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryUnrelayedAcksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryUnrelayedAcksResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, + ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + + /** + * Encodes the specified QueryUnrelayedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnrelayedAcksResponse.verify|verify} messages. + * @param m QueryUnrelayedAcksResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryUnrelayedAcksResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryUnrelayedAcksResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryUnrelayedAcksResponse + * @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, + ): ibc.core.channel.v1.QueryUnrelayedAcksResponse; + } + + /** Properties of a QueryNextSequenceReceiveRequest. */ + interface IQueryNextSequenceReceiveRequest { + /** QueryNextSequenceReceiveRequest portId */ + portId?: string | null; + + /** QueryNextSequenceReceiveRequest channelId */ + channelId?: string | null; + } + + /** Represents a QueryNextSequenceReceiveRequest. */ + class QueryNextSequenceReceiveRequest implements IQueryNextSequenceReceiveRequest { + /** + * Constructs a new QueryNextSequenceReceiveRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest); + + /** QueryNextSequenceReceiveRequest portId. */ + public portId: string; + + /** QueryNextSequenceReceiveRequest channelId. */ + public channelId: string; + + /** + * Creates a new QueryNextSequenceReceiveRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryNextSequenceReceiveRequest instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + ): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + + /** + * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * @param m QueryNextSequenceReceiveRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryNextSequenceReceiveRequest + * @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, + ): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + } + + /** Properties of a QueryNextSequenceReceiveResponse. */ + interface IQueryNextSequenceReceiveResponse { + /** QueryNextSequenceReceiveResponse nextSequenceReceive */ + nextSequenceReceive?: Long | null; + + /** QueryNextSequenceReceiveResponse proof */ + proof?: Uint8Array | null; + + /** QueryNextSequenceReceiveResponse proofPath */ + proofPath?: string | null; + + /** QueryNextSequenceReceiveResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryNextSequenceReceiveResponse. */ + class QueryNextSequenceReceiveResponse implements IQueryNextSequenceReceiveResponse { + /** + * Constructs a new QueryNextSequenceReceiveResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse); + + /** QueryNextSequenceReceiveResponse nextSequenceReceive. */ + public nextSequenceReceive: Long; + + /** QueryNextSequenceReceiveResponse proof. */ + public proof: Uint8Array; + + /** QueryNextSequenceReceiveResponse proofPath. */ + public proofPath: string; + + /** QueryNextSequenceReceiveResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryNextSequenceReceiveResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryNextSequenceReceiveResponse instance + */ + public static create( + properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, + ): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + + /** + * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * @param m QueryNextSequenceReceiveResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryNextSequenceReceiveResponse + * @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, + ): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + } + } + } + + /** Namespace client. */ + namespace client { + /** Namespace v1. */ + namespace v1 { + /** Properties of an IdentifiedClientState. */ + interface IIdentifiedClientState { + /** IdentifiedClientState clientId */ + clientId?: string | null; + + /** IdentifiedClientState clientState */ + clientState?: google.protobuf.IAny | null; + } + + /** Represents an IdentifiedClientState. */ + class IdentifiedClientState implements IIdentifiedClientState { + /** + * Constructs a new IdentifiedClientState. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IIdentifiedClientState); + + /** IdentifiedClientState clientId. */ + public clientId: string; + + /** IdentifiedClientState clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** + * Creates a new IdentifiedClientState instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentifiedClientState instance + */ + public static create( + properties?: ibc.core.client.v1.IIdentifiedClientState, + ): ibc.core.client.v1.IdentifiedClientState; + + /** + * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * @param m IdentifiedClientState message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IIdentifiedClientState, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IdentifiedClientState message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IdentifiedClientState + * @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, + ): ibc.core.client.v1.IdentifiedClientState; + } + + /** Properties of a ConsensusStateWithHeight. */ + interface IConsensusStateWithHeight { + /** ConsensusStateWithHeight height */ + height?: ibc.core.client.v1.IHeight | null; + + /** ConsensusStateWithHeight consensusState */ + consensusState?: google.protobuf.IAny | null; + } + + /** Represents a ConsensusStateWithHeight. */ + class ConsensusStateWithHeight implements IConsensusStateWithHeight { + /** + * Constructs a new ConsensusStateWithHeight. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IConsensusStateWithHeight); + + /** ConsensusStateWithHeight height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** ConsensusStateWithHeight consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** + * Creates a new ConsensusStateWithHeight instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusStateWithHeight instance + */ + public static create( + properties?: ibc.core.client.v1.IConsensusStateWithHeight, + ): ibc.core.client.v1.ConsensusStateWithHeight; + + /** + * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * @param m ConsensusStateWithHeight message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IConsensusStateWithHeight, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ConsensusStateWithHeight + * @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, + ): ibc.core.client.v1.ConsensusStateWithHeight; + } + + /** Properties of a ClientConsensusStates. */ + interface IClientConsensusStates { + /** ClientConsensusStates clientId */ + clientId?: string | null; + + /** ClientConsensusStates consensusStates */ + consensusStates?: ibc.core.client.v1.IConsensusStateWithHeight[] | null; + } + + /** Represents a ClientConsensusStates. */ + class ClientConsensusStates implements IClientConsensusStates { + /** + * Constructs a new ClientConsensusStates. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IClientConsensusStates); + + /** ClientConsensusStates clientId. */ + public clientId: string; + + /** ClientConsensusStates consensusStates. */ + public consensusStates: ibc.core.client.v1.IConsensusStateWithHeight[]; + + /** + * Creates a new ClientConsensusStates instance using the specified properties. + * @param [properties] Properties to set + * @returns ClientConsensusStates instance + */ + public static create( + properties?: ibc.core.client.v1.IClientConsensusStates, + ): ibc.core.client.v1.ClientConsensusStates; + + /** + * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * @param m ClientConsensusStates message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IClientConsensusStates, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ClientConsensusStates message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ClientConsensusStates + * @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, + ): ibc.core.client.v1.ClientConsensusStates; + } + + /** Properties of a ClientUpdateProposal. */ + interface IClientUpdateProposal { + /** ClientUpdateProposal title */ + title?: string | null; + + /** ClientUpdateProposal description */ + description?: string | null; + + /** ClientUpdateProposal clientId */ + clientId?: string | null; + + /** ClientUpdateProposal header */ + header?: google.protobuf.IAny | null; + } + + /** Represents a ClientUpdateProposal. */ + class ClientUpdateProposal implements IClientUpdateProposal { + /** + * Constructs a new ClientUpdateProposal. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IClientUpdateProposal); + + /** ClientUpdateProposal title. */ + public title: string; + + /** ClientUpdateProposal description. */ + public description: string; + + /** ClientUpdateProposal clientId. */ + public clientId: string; + + /** ClientUpdateProposal header. */ + public header?: google.protobuf.IAny | null; + + /** + * Creates a new ClientUpdateProposal instance using the specified properties. + * @param [properties] Properties to set + * @returns ClientUpdateProposal instance + */ + public static create( + properties?: ibc.core.client.v1.IClientUpdateProposal, + ): ibc.core.client.v1.ClientUpdateProposal; + + /** + * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * @param m ClientUpdateProposal message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IClientUpdateProposal, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ClientUpdateProposal message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ClientUpdateProposal + * @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, + ): ibc.core.client.v1.ClientUpdateProposal; + } + + /** Properties of a MsgCreateClient. */ + interface IMsgCreateClient { + /** MsgCreateClient clientId */ + clientId?: string | null; + + /** MsgCreateClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer */ + signer?: string | null; + } + + /** Represents a MsgCreateClient. */ + class MsgCreateClient implements IMsgCreateClient { + /** + * Constructs a new MsgCreateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgCreateClient); + + /** MsgCreateClient clientId. */ + public clientId: string; + + /** MsgCreateClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgCreateClient consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** MsgCreateClient signer. */ + public signer: string; + + /** + * Creates a new MsgCreateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgCreateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgCreateClient, + ): ibc.core.client.v1.MsgCreateClient; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.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: ibc.core.client.v1.IMsgCreateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * 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, + ): ibc.core.client.v1.MsgCreateClient; + } + + /** Properties of a MsgUpdateClient. */ + interface IMsgUpdateClient { + /** MsgUpdateClient clientId */ + clientId?: string | null; + + /** MsgUpdateClient header */ + header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpdateClient. */ + class MsgUpdateClient implements IMsgUpdateClient { + /** + * Constructs a new MsgUpdateClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpdateClient); + + /** MsgUpdateClient clientId. */ + public clientId: string; + + /** MsgUpdateClient header. */ + public header?: google.protobuf.IAny | null; + + /** MsgUpdateClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpdateClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpdateClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpdateClient, + ): ibc.core.client.v1.MsgUpdateClient; + + /** + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * @param m MsgUpdateClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpdateClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpdateClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpdateClient + * @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, + ): ibc.core.client.v1.MsgUpdateClient; + } + + /** Properties of a MsgUpgradeClient. */ + interface IMsgUpgradeClient { + /** MsgUpgradeClient clientId */ + clientId?: string | null; + + /** MsgUpgradeClient clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight */ + upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade */ + proofUpgrade?: Uint8Array | null; + + /** MsgUpgradeClient signer */ + signer?: string | null; + } + + /** Represents a MsgUpgradeClient. */ + class MsgUpgradeClient implements IMsgUpgradeClient { + /** + * Constructs a new MsgUpgradeClient. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgUpgradeClient); + + /** MsgUpgradeClient clientId. */ + public clientId: string; + + /** MsgUpgradeClient clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgUpgradeClient upgradeHeight. */ + public upgradeHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgUpgradeClient proofUpgrade. */ + public proofUpgrade: Uint8Array; + + /** MsgUpgradeClient signer. */ + public signer: string; + + /** + * Creates a new MsgUpgradeClient instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgUpgradeClient instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgUpgradeClient, + ): ibc.core.client.v1.MsgUpgradeClient; + + /** + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * @param m MsgUpgradeClient message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgUpgradeClient, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgUpgradeClient + * @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, + ): ibc.core.client.v1.MsgUpgradeClient; + } + + /** Properties of a MsgSubmitMisbehaviour. */ + interface IMsgSubmitMisbehaviour { + /** MsgSubmitMisbehaviour clientId */ + clientId?: string | null; + + /** MsgSubmitMisbehaviour misbehaviour */ + misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer */ + signer?: string | null; + } + + /** Represents a MsgSubmitMisbehaviour. */ + class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { + /** + * Constructs a new MsgSubmitMisbehaviour. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IMsgSubmitMisbehaviour); + + /** MsgSubmitMisbehaviour clientId. */ + public clientId: string; + + /** MsgSubmitMisbehaviour misbehaviour. */ + public misbehaviour?: google.protobuf.IAny | null; + + /** MsgSubmitMisbehaviour signer. */ + public signer: string; + + /** + * Creates a new MsgSubmitMisbehaviour instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSubmitMisbehaviour instance + */ + public static create( + properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + + /** + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * @param m MsgSubmitMisbehaviour message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.client.v1.IMsgSubmitMisbehaviour, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSubmitMisbehaviour + * @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, + ): ibc.core.client.v1.MsgSubmitMisbehaviour; + } + + /** Properties of an Height. */ + interface IHeight { + /** Height versionNumber */ + versionNumber?: Long | null; + + /** Height versionHeight */ + versionHeight?: Long | null; + } + + /** Represents an Height. */ + class Height implements IHeight { + /** + * Constructs a new Height. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.client.v1.IHeight); + + /** Height versionNumber. */ + public versionNumber: Long; + + /** Height versionHeight. */ + public versionHeight: Long; + + /** + * Creates a new Height instance using the specified properties. + * @param [properties] Properties to set + * @returns Height instance + */ + public static create(properties?: ibc.core.client.v1.IHeight): ibc.core.client.v1.Height; + + /** + * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * @param m Height message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: ibc.core.client.v1.IHeight, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Height message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Height + * @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): ibc.core.client.v1.Height; + } + } + } + + /** 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?: ibc.core.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?: ibc.core.commitment.v1.IMerkleRoot, + ): ibc.core.commitment.v1.MerkleRoot; + + /** + * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.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?: ibc.core.commitment.v1.IMerklePrefix, + ): ibc.core.commitment.v1.MerklePrefix; + + /** + * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.commitment.v1.MerklePrefix; + } + + /** Properties of a MerklePath. */ + interface IMerklePath { + /** MerklePath keyPath */ + keyPath?: ibc.core.commitment.v1.IKeyPath | null; + } + + /** Represents a MerklePath. */ + class MerklePath implements IMerklePath { + /** + * Constructs a new MerklePath. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IMerklePath); + + /** MerklePath keyPath. */ + public keyPath?: ibc.core.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?: ibc.core.commitment.v1.IMerklePath, + ): ibc.core.commitment.v1.MerklePath; + + /** + * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.commitment.v1.MerklePath; + } + + /** Properties of a MerkleProof. */ + interface IMerkleProof { + /** MerkleProof proof */ + proof?: tendermint.crypto.IProofOps | null; + } + + /** Represents a MerkleProof. */ + class MerkleProof implements IMerkleProof { + /** + * Constructs a new MerkleProof. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IMerkleProof); + + /** MerkleProof proof. */ + public proof?: tendermint.crypto.IProofOps | null; + + /** + * Creates a new MerkleProof instance using the specified properties. + * @param [properties] Properties to set + * @returns MerkleProof instance + */ + public static create( + properties?: ibc.core.commitment.v1.IMerkleProof, + ): ibc.core.commitment.v1.MerkleProof; + + /** + * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.commitment.v1.MerkleProof; + } + + /** Properties of a KeyPath. */ + interface IKeyPath { + /** KeyPath keys */ + keys?: ibc.core.commitment.v1.IKey[] | null; + } + + /** Represents a KeyPath. */ + class KeyPath implements IKeyPath { + /** + * Constructs a new KeyPath. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IKeyPath); + + /** KeyPath keys. */ + public keys: ibc.core.commitment.v1.IKey[]; + + /** + * Creates a new KeyPath instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyPath instance + */ + public static create(properties?: ibc.core.commitment.v1.IKeyPath): ibc.core.commitment.v1.KeyPath; + + /** + * Encodes the specified KeyPath message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.commitment.v1.KeyPath; + } + + /** Properties of a Key. */ + interface IKey { + /** Key name */ + name?: Uint8Array | null; + + /** Key enc */ + enc?: ibc.core.commitment.v1.KeyEncoding | null; + } + + /** Represents a Key. */ + class Key implements IKey { + /** + * Constructs a new Key. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.commitment.v1.IKey); + + /** Key name. */ + public name: Uint8Array; + + /** Key enc. */ + public enc: ibc.core.commitment.v1.KeyEncoding; + + /** + * Creates a new Key instance using the specified properties. + * @param [properties] Properties to set + * @returns Key instance + */ + public static create(properties?: ibc.core.commitment.v1.IKey): ibc.core.commitment.v1.Key; + + /** + * Encodes the specified Key message. Does not implicitly {@link ibc.core.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: ibc.core.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): ibc.core.commitment.v1.Key; + } + + /** KeyEncoding enum. */ + enum KeyEncoding { + KEY_ENCODING_URL_UNSPECIFIED = 0, + KEY_ENCODING_HEX = 1, + } + } + } + + /** 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?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenInit version */ + version?: string | null; + + /** MsgConnectionOpenInit signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenInit. */ + class MsgConnectionOpenInit implements IMsgConnectionOpenInit { + /** + * Constructs a new MsgConnectionOpenInit. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenInit); + + /** MsgConnectionOpenInit clientId. */ + public clientId: string; + + /** MsgConnectionOpenInit connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenInit counterparty. */ + public counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenInit version. */ + public version: string; + + /** MsgConnectionOpenInit signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenInit instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenInit instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenInit, + ): ibc.core.connection.v1.MsgConnectionOpenInit; + + /** + * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenInit; + } + + /** Properties of a MsgConnectionOpenTry. */ + interface IMsgConnectionOpenTry { + /** MsgConnectionOpenTry clientId */ + clientId?: string | null; + + /** MsgConnectionOpenTry desiredConnectionId */ + desiredConnectionId?: string | null; + + /** MsgConnectionOpenTry counterpartyChosenConnectionId */ + counterpartyChosenConnectionId?: string | null; + + /** MsgConnectionOpenTry clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenTry counterparty */ + counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenTry counterpartyVersions */ + counterpartyVersions?: string[] | null; + + /** MsgConnectionOpenTry proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry proofInit */ + proofInit?: Uint8Array | null; + + /** MsgConnectionOpenTry proofClient */ + proofClient?: Uint8Array | null; + + /** MsgConnectionOpenTry proofConsensus */ + proofConsensus?: Uint8Array | null; + + /** MsgConnectionOpenTry consensusHeight */ + consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenTry. */ + class MsgConnectionOpenTry implements IMsgConnectionOpenTry { + /** + * Constructs a new MsgConnectionOpenTry. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenTry); + + /** MsgConnectionOpenTry clientId. */ + public clientId: string; + + /** MsgConnectionOpenTry desiredConnectionId. */ + public desiredConnectionId: string; + + /** MsgConnectionOpenTry counterpartyChosenConnectionId. */ + public counterpartyChosenConnectionId: string; + + /** MsgConnectionOpenTry clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenTry counterparty. */ + public counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** MsgConnectionOpenTry counterpartyVersions. */ + public counterpartyVersions: string[]; + + /** MsgConnectionOpenTry proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry proofInit. */ + public proofInit: Uint8Array; + + /** MsgConnectionOpenTry proofClient. */ + public proofClient: Uint8Array; + + /** MsgConnectionOpenTry proofConsensus. */ + public proofConsensus: Uint8Array; + + /** MsgConnectionOpenTry consensusHeight. */ + public consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenTry signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenTry instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenTry instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenTry, + ): ibc.core.connection.v1.MsgConnectionOpenTry; + + /** + * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenTry; + } + + /** Properties of a MsgConnectionOpenAck. */ + interface IMsgConnectionOpenAck { + /** MsgConnectionOpenAck connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenAck counterpartyConnectionId */ + counterpartyConnectionId?: string | null; + + /** MsgConnectionOpenAck version */ + version?: string | null; + + /** MsgConnectionOpenAck clientState */ + clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenAck proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck proofTry */ + proofTry?: Uint8Array | null; + + /** MsgConnectionOpenAck proofClient */ + proofClient?: Uint8Array | null; + + /** MsgConnectionOpenAck proofConsensus */ + proofConsensus?: Uint8Array | null; + + /** MsgConnectionOpenAck consensusHeight */ + consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenAck. */ + class MsgConnectionOpenAck implements IMsgConnectionOpenAck { + /** + * Constructs a new MsgConnectionOpenAck. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenAck); + + /** MsgConnectionOpenAck connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenAck counterpartyConnectionId. */ + public counterpartyConnectionId: string; + + /** MsgConnectionOpenAck version. */ + public version: string; + + /** MsgConnectionOpenAck clientState. */ + public clientState?: google.protobuf.IAny | null; + + /** MsgConnectionOpenAck proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck proofTry. */ + public proofTry: Uint8Array; + + /** MsgConnectionOpenAck proofClient. */ + public proofClient: Uint8Array; + + /** MsgConnectionOpenAck proofConsensus. */ + public proofConsensus: Uint8Array; + + /** MsgConnectionOpenAck consensusHeight. */ + public consensusHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenAck signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenAck instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenAck instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenAck, + ): ibc.core.connection.v1.MsgConnectionOpenAck; + + /** + * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenAck; + } + + /** Properties of a MsgConnectionOpenConfirm. */ + interface IMsgConnectionOpenConfirm { + /** MsgConnectionOpenConfirm connectionId */ + connectionId?: string | null; + + /** MsgConnectionOpenConfirm proofAck */ + proofAck?: Uint8Array | null; + + /** MsgConnectionOpenConfirm proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenConfirm signer */ + signer?: string | null; + } + + /** Represents a MsgConnectionOpenConfirm. */ + class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { + /** + * Constructs a new MsgConnectionOpenConfirm. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IMsgConnectionOpenConfirm); + + /** MsgConnectionOpenConfirm connectionId. */ + public connectionId: string; + + /** MsgConnectionOpenConfirm proofAck. */ + public proofAck: Uint8Array; + + /** MsgConnectionOpenConfirm proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** MsgConnectionOpenConfirm signer. */ + public signer: string; + + /** + * Creates a new MsgConnectionOpenConfirm instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgConnectionOpenConfirm instance + */ + public static create( + properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirm, + ): ibc.core.connection.v1.MsgConnectionOpenConfirm; + + /** + * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.MsgConnectionOpenConfirm; + } + + /** Properties of a ConnectionEnd. */ + interface IConnectionEnd { + /** ConnectionEnd clientId */ + clientId?: string | null; + + /** ConnectionEnd versions */ + versions?: string[] | null; + + /** ConnectionEnd state */ + state?: ibc.core.connection.v1.State | null; + + /** ConnectionEnd counterparty */ + counterparty?: ibc.core.connection.v1.ICounterparty | null; + } + + /** Represents a ConnectionEnd. */ + class ConnectionEnd implements IConnectionEnd { + /** + * Constructs a new ConnectionEnd. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IConnectionEnd); + + /** ConnectionEnd clientId. */ + public clientId: string; + + /** ConnectionEnd versions. */ + public versions: string[]; + + /** ConnectionEnd state. */ + public state: ibc.core.connection.v1.State; + + /** ConnectionEnd counterparty. */ + public counterparty?: ibc.core.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?: ibc.core.connection.v1.IConnectionEnd, + ): ibc.core.connection.v1.ConnectionEnd; + + /** + * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.ConnectionEnd; + } + + /** Properties of an IdentifiedConnection. */ + interface IIdentifiedConnection { + /** IdentifiedConnection id */ + id?: string | null; + + /** IdentifiedConnection clientId */ + clientId?: string | null; + + /** IdentifiedConnection versions */ + versions?: string[] | null; + + /** IdentifiedConnection state */ + state?: ibc.core.connection.v1.State | null; + + /** IdentifiedConnection counterparty */ + counterparty?: ibc.core.connection.v1.ICounterparty | null; + } + + /** Represents an IdentifiedConnection. */ + class IdentifiedConnection implements IIdentifiedConnection { + /** + * Constructs a new IdentifiedConnection. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IIdentifiedConnection); + + /** IdentifiedConnection id. */ + public id: string; + + /** IdentifiedConnection clientId. */ + public clientId: string; + + /** IdentifiedConnection versions. */ + public versions: string[]; + + /** IdentifiedConnection state. */ + public state: ibc.core.connection.v1.State; + + /** IdentifiedConnection counterparty. */ + public counterparty?: ibc.core.connection.v1.ICounterparty | null; + + /** + * Creates a new IdentifiedConnection instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentifiedConnection instance + */ + public static create( + properties?: ibc.core.connection.v1.IIdentifiedConnection, + ): ibc.core.connection.v1.IdentifiedConnection; + + /** + * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * @param m IdentifiedConnection message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IIdentifiedConnection, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an IdentifiedConnection message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IdentifiedConnection + * @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, + ): ibc.core.connection.v1.IdentifiedConnection; + } + + /** 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?: ibc.core.commitment.v1.IMerklePrefix | null; + } + + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { + /** + * Constructs a new Counterparty. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.ICounterparty); + + /** Counterparty clientId. */ + public clientId: string; + + /** Counterparty connectionId. */ + public connectionId: string; + + /** Counterparty prefix. */ + public prefix?: ibc.core.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?: ibc.core.connection.v1.ICounterparty, + ): ibc.core.connection.v1.Counterparty; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.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?: ibc.core.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?: ibc.core.connection.v1.IClientPaths, + ): ibc.core.connection.v1.ClientPaths; + + /** + * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.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: ibc.core.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, + ): ibc.core.connection.v1.ClientPaths; + } + + /** Properties of a ConnectionPaths. */ + interface IConnectionPaths { + /** ConnectionPaths clientId */ + clientId?: string | null; + + /** ConnectionPaths paths */ + paths?: string[] | null; + } + + /** Represents a ConnectionPaths. */ + class ConnectionPaths implements IConnectionPaths { + /** + * Constructs a new ConnectionPaths. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IConnectionPaths); + + /** ConnectionPaths clientId. */ + public clientId: string; + + /** ConnectionPaths paths. */ + public paths: string[]; + + /** + * Creates a new ConnectionPaths instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionPaths instance + */ + public static create( + properties?: ibc.core.connection.v1.IConnectionPaths, + ): ibc.core.connection.v1.ConnectionPaths; + + /** + * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * @param m ConnectionPaths message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IConnectionPaths, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConnectionPaths message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ConnectionPaths + * @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, + ): ibc.core.connection.v1.ConnectionPaths; + } + + /** Properties of a Version. */ + interface IVersion { + /** Version identifier */ + identifier?: string | null; + + /** Version features */ + features?: string[] | null; + } + + /** Represents a Version. */ + class Version implements IVersion { + /** + * Constructs a new Version. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IVersion); + + /** Version identifier. */ + public identifier: string; + + /** Version features. */ + public features: string[]; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: ibc.core.connection.v1.IVersion): ibc.core.connection.v1.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * @param m Version message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: ibc.core.connection.v1.IVersion, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @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(r: $protobuf.Reader | Uint8Array, l?: number): ibc.core.connection.v1.Version; + } + + /** 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 Connection. + * @param request QueryConnectionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionResponse + */ + public connection( + request: ibc.core.connection.v1.IQueryConnectionRequest, + callback: ibc.core.connection.v1.Query.ConnectionCallback, + ): void; + + /** + * Calls Connection. + * @param request QueryConnectionRequest message or plain object + * @returns Promise + */ + public connection( + request: ibc.core.connection.v1.IQueryConnectionRequest, + ): Promise; + + /** + * Calls Connections. + * @param request QueryConnectionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionsResponse + */ + public connections( + request: ibc.core.connection.v1.IQueryConnectionsRequest, + callback: ibc.core.connection.v1.Query.ConnectionsCallback, + ): void; + + /** + * Calls Connections. + * @param request QueryConnectionsRequest message or plain object + * @returns Promise + */ + public connections( + request: ibc.core.connection.v1.IQueryConnectionsRequest, + ): Promise; + + /** + * Calls ClientConnections. + * @param request QueryClientConnectionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse + */ + public clientConnections( + request: ibc.core.connection.v1.IQueryClientConnectionsRequest, + callback: ibc.core.connection.v1.Query.ClientConnectionsCallback, + ): void; + + /** + * Calls ClientConnections. + * @param request QueryClientConnectionsRequest message or plain object + * @returns Promise + */ + public clientConnections( + request: ibc.core.connection.v1.IQueryClientConnectionsRequest, + ): Promise; + + /** + * Calls ConnectionClientState. + * @param request QueryConnectionClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse + */ + public connectionClientState( + request: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + callback: ibc.core.connection.v1.Query.ConnectionClientStateCallback, + ): void; + + /** + * Calls ConnectionClientState. + * @param request QueryConnectionClientStateRequest message or plain object + * @returns Promise + */ + public connectionClientState( + request: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + ): Promise; + + /** + * Calls ConnectionConsensusState. + * @param request QueryConnectionConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse + */ + public connectionConsensusState( + request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + callback: ibc.core.connection.v1.Query.ConnectionConsensusStateCallback, + ): void; + + /** + * Calls ConnectionConsensusState. + * @param request QueryConnectionConsensusStateRequest message or plain object + * @returns Promise + */ + public connectionConsensusState( + request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + ): Promise; + } + + namespace Query { + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connection}. + * @param error Error, if any + * @param [response] QueryConnectionResponse + */ + type ConnectionCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connections}. + * @param error Error, if any + * @param [response] QueryConnectionsResponse + */ + type ConnectionsCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. + * @param error Error, if any + * @param [response] QueryClientConnectionsResponse + */ + type ClientConnectionsCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryClientConnectionsResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. + * @param error Error, if any + * @param [response] QueryConnectionClientStateResponse + */ + type ConnectionClientStateCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionClientStateResponse, + ) => void; + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. + * @param error Error, if any + * @param [response] QueryConnectionConsensusStateResponse + */ + type ConnectionConsensusStateCallback = ( + error: Error | null, + response?: ibc.core.connection.v1.QueryConnectionConsensusStateResponse, + ) => void; + } + + /** Properties of a QueryConnectionRequest. */ + interface IQueryConnectionRequest { + /** QueryConnectionRequest connectionId */ + connectionId?: string | null; + } + + /** Represents a QueryConnectionRequest. */ + class QueryConnectionRequest implements IQueryConnectionRequest { + /** + * Constructs a new QueryConnectionRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionRequest); + + /** QueryConnectionRequest connectionId. */ + public connectionId: string; + + /** + * Creates a new QueryConnectionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionRequest, + ): ibc.core.connection.v1.QueryConnectionRequest; + + /** + * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * @param m QueryConnectionRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionRequest; + } + + /** Properties of a QueryConnectionResponse. */ + interface IQueryConnectionResponse { + /** QueryConnectionResponse connection */ + connection?: ibc.core.connection.v1.IConnectionEnd | null; + + /** QueryConnectionResponse proof */ + proof?: Uint8Array | null; + + /** QueryConnectionResponse proofPath */ + proofPath?: string | null; + + /** QueryConnectionResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionResponse. */ + class QueryConnectionResponse implements IQueryConnectionResponse { + /** + * Constructs a new QueryConnectionResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionResponse); + + /** QueryConnectionResponse connection. */ + public connection?: ibc.core.connection.v1.IConnectionEnd | null; + + /** QueryConnectionResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionResponse proofPath. */ + public proofPath: string; + + /** QueryConnectionResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionResponse, + ): ibc.core.connection.v1.QueryConnectionResponse; + + /** + * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * @param m QueryConnectionResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionResponse; + } + + /** Properties of a QueryConnectionsRequest. */ + interface IQueryConnectionsRequest { + /** QueryConnectionsRequest pagination */ + pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + } + + /** Represents a QueryConnectionsRequest. */ + class QueryConnectionsRequest implements IQueryConnectionsRequest { + /** + * Constructs a new QueryConnectionsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionsRequest); + + /** QueryConnectionsRequest pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageRequest | null; + + /** + * Creates a new QueryConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionsRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionsRequest, + ): ibc.core.connection.v1.QueryConnectionsRequest; + + /** + * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * @param m QueryConnectionsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionsRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionsRequest; + } + + /** Properties of a QueryConnectionsResponse. */ + interface IQueryConnectionsResponse { + /** QueryConnectionsResponse connections */ + connections?: ibc.core.connection.v1.IIdentifiedConnection[] | null; + + /** QueryConnectionsResponse pagination */ + pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionsResponse height */ + height?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionsResponse. */ + class QueryConnectionsResponse implements IQueryConnectionsResponse { + /** + * Constructs a new QueryConnectionsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionsResponse); + + /** QueryConnectionsResponse connections. */ + public connections: ibc.core.connection.v1.IIdentifiedConnection[]; + + /** QueryConnectionsResponse pagination. */ + public pagination?: cosmos.base.query.v1beta1.IPageResponse | null; + + /** QueryConnectionsResponse height. */ + public height?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionsResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionsResponse, + ): ibc.core.connection.v1.QueryConnectionsResponse; + + /** + * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * @param m QueryConnectionsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionsResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionsResponse; + } + + /** Properties of a QueryClientConnectionsRequest. */ + interface IQueryClientConnectionsRequest { + /** QueryClientConnectionsRequest clientId */ + clientId?: string | null; + } + + /** Represents a QueryClientConnectionsRequest. */ + class QueryClientConnectionsRequest implements IQueryClientConnectionsRequest { + /** + * Constructs a new QueryClientConnectionsRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryClientConnectionsRequest); + + /** QueryClientConnectionsRequest clientId. */ + public clientId: string; + + /** + * Creates a new QueryClientConnectionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryClientConnectionsRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryClientConnectionsRequest, + ): ibc.core.connection.v1.QueryClientConnectionsRequest; + + /** + * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * @param m QueryClientConnectionsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryClientConnectionsRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryClientConnectionsRequest + * @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, + ): ibc.core.connection.v1.QueryClientConnectionsRequest; + } + + /** Properties of a QueryClientConnectionsResponse. */ + interface IQueryClientConnectionsResponse { + /** QueryClientConnectionsResponse connectionPaths */ + connectionPaths?: string[] | null; + + /** QueryClientConnectionsResponse proof */ + proof?: Uint8Array | null; + + /** QueryClientConnectionsResponse proofPath */ + proofPath?: string | null; + + /** QueryClientConnectionsResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryClientConnectionsResponse. */ + class QueryClientConnectionsResponse implements IQueryClientConnectionsResponse { + /** + * Constructs a new QueryClientConnectionsResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryClientConnectionsResponse); + + /** QueryClientConnectionsResponse connectionPaths. */ + public connectionPaths: string[]; + + /** QueryClientConnectionsResponse proof. */ + public proof: Uint8Array; + + /** QueryClientConnectionsResponse proofPath. */ + public proofPath: string; + + /** QueryClientConnectionsResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryClientConnectionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryClientConnectionsResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryClientConnectionsResponse, + ): ibc.core.connection.v1.QueryClientConnectionsResponse; + + /** + * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * @param m QueryClientConnectionsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryClientConnectionsResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryClientConnectionsResponse + * @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, + ): ibc.core.connection.v1.QueryClientConnectionsResponse; + } + + /** Properties of a QueryConnectionClientStateRequest. */ + interface IQueryConnectionClientStateRequest { + /** QueryConnectionClientStateRequest connectionId */ + connectionId?: string | null; + } + + /** Represents a QueryConnectionClientStateRequest. */ + class QueryConnectionClientStateRequest implements IQueryConnectionClientStateRequest { + /** + * Constructs a new QueryConnectionClientStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionClientStateRequest); + + /** QueryConnectionClientStateRequest connectionId. */ + public connectionId: string; + + /** + * Creates a new QueryConnectionClientStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionClientStateRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + ): ibc.core.connection.v1.QueryConnectionClientStateRequest; + + /** + * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * @param m QueryConnectionClientStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionClientStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionClientStateRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionClientStateRequest; + } + + /** Properties of a QueryConnectionClientStateResponse. */ + interface IQueryConnectionClientStateResponse { + /** QueryConnectionClientStateResponse identifiedClientState */ + identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryConnectionClientStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryConnectionClientStateResponse proofPath */ + proofPath?: string | null; + + /** QueryConnectionClientStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionClientStateResponse. */ + class QueryConnectionClientStateResponse implements IQueryConnectionClientStateResponse { + /** + * Constructs a new QueryConnectionClientStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionClientStateResponse); + + /** QueryConnectionClientStateResponse identifiedClientState. */ + public identifiedClientState?: ibc.core.client.v1.IIdentifiedClientState | null; + + /** QueryConnectionClientStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionClientStateResponse proofPath. */ + public proofPath: string; + + /** QueryConnectionClientStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionClientStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionClientStateResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionClientStateResponse, + ): ibc.core.connection.v1.QueryConnectionClientStateResponse; + + /** + * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * @param m QueryConnectionClientStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionClientStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionClientStateResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionClientStateResponse; + } + + /** Properties of a QueryConnectionConsensusStateRequest. */ + interface IQueryConnectionConsensusStateRequest { + /** QueryConnectionConsensusStateRequest connectionId */ + connectionId?: string | null; + + /** QueryConnectionConsensusStateRequest versionNumber */ + versionNumber?: Long | null; + + /** QueryConnectionConsensusStateRequest versionHeight */ + versionHeight?: Long | null; + } + + /** Represents a QueryConnectionConsensusStateRequest. */ + class QueryConnectionConsensusStateRequest implements IQueryConnectionConsensusStateRequest { + /** + * Constructs a new QueryConnectionConsensusStateRequest. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest); + + /** QueryConnectionConsensusStateRequest connectionId. */ + public connectionId: string; + + /** QueryConnectionConsensusStateRequest versionNumber. */ + public versionNumber: Long; + + /** QueryConnectionConsensusStateRequest versionHeight. */ + public versionHeight: Long; + + /** + * Creates a new QueryConnectionConsensusStateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionConsensusStateRequest instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + ): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + + /** + * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * @param m QueryConnectionConsensusStateRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionConsensusStateRequest + * @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, + ): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + } + + /** Properties of a QueryConnectionConsensusStateResponse. */ + interface IQueryConnectionConsensusStateResponse { + /** QueryConnectionConsensusStateResponse consensusState */ + consensusState?: google.protobuf.IAny | null; + + /** QueryConnectionConsensusStateResponse clientId */ + clientId?: string | null; + + /** QueryConnectionConsensusStateResponse proof */ + proof?: Uint8Array | null; + + /** QueryConnectionConsensusStateResponse proofPath */ + proofPath?: string | null; + + /** QueryConnectionConsensusStateResponse proofHeight */ + proofHeight?: ibc.core.client.v1.IHeight | null; + } + + /** Represents a QueryConnectionConsensusStateResponse. */ + class QueryConnectionConsensusStateResponse implements IQueryConnectionConsensusStateResponse { + /** + * Constructs a new QueryConnectionConsensusStateResponse. + * @param [p] Properties to set + */ + constructor(p?: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse); + + /** QueryConnectionConsensusStateResponse consensusState. */ + public consensusState?: google.protobuf.IAny | null; + + /** QueryConnectionConsensusStateResponse clientId. */ + public clientId: string; + + /** QueryConnectionConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionConsensusStateResponse proofPath. */ + public proofPath: string; + + /** QueryConnectionConsensusStateResponse proofHeight. */ + public proofHeight?: ibc.core.client.v1.IHeight | null; + + /** + * Creates a new QueryConnectionConsensusStateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryConnectionConsensusStateResponse instance + */ + public static create( + properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, + ): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + + /** + * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * @param m QueryConnectionConsensusStateResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryConnectionConsensusStateResponse + * @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, + ): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + } + } + } + } +} + +/** Namespace tendermint. */ +export namespace tendermint { + /** Namespace crypto. */ + namespace crypto { + /** Properties of a Proof. */ + interface IProof { + /** Proof total */ + total?: Long | null; + + /** Proof index */ + index?: Long | null; + + /** Proof leafHash */ + leafHash?: Uint8Array | null; + + /** Proof aunts */ + aunts?: Uint8Array[] | null; + } + + /** Represents a Proof. */ + class Proof implements IProof { + /** + * Constructs a new Proof. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IProof); + + /** Proof total. */ + public total: Long; + + /** Proof index. */ + public index: Long; + + /** Proof leafHash. */ + public leafHash: Uint8Array; + + /** Proof aunts. */ + public aunts: Uint8Array[]; + + /** + * Creates a new Proof instance using the specified properties. + * @param [properties] Properties to set + * @returns Proof instance + */ + public static create(properties?: tendermint.crypto.IProof): tendermint.crypto.Proof; + + /** + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.Proof.verify|verify} messages. + * @param m Proof message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IProof, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Proof message from the specified reader or buffer. + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.Proof; + } + + /** Properties of a ValueOp. */ + interface IValueOp { + /** ValueOp key */ + key?: Uint8Array | null; + + /** ValueOp proof */ + proof?: tendermint.crypto.IProof | null; + } + + /** Represents a ValueOp. */ + class ValueOp implements IValueOp { + /** + * Constructs a new ValueOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IValueOp); + + /** ValueOp key. */ + public key: Uint8Array; + + /** ValueOp proof. */ + public proof?: tendermint.crypto.IProof | null; + + /** + * Creates a new ValueOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ValueOp instance + */ + public static create(properties?: tendermint.crypto.IValueOp): tendermint.crypto.ValueOp; + + /** + * Encodes the specified ValueOp message. Does not implicitly {@link tendermint.crypto.ValueOp.verify|verify} messages. + * @param m ValueOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IValueOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValueOp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValueOp + * @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): tendermint.crypto.ValueOp; + } + + /** Properties of a DominoOp. */ + interface IDominoOp { + /** DominoOp key */ + key?: string | null; + + /** DominoOp input */ + input?: string | null; + + /** DominoOp output */ + output?: string | null; + } + + /** Represents a DominoOp. */ + class DominoOp implements IDominoOp { + /** + * Constructs a new DominoOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IDominoOp); + + /** DominoOp key. */ + public key: string; + + /** DominoOp input. */ + public input: string; + + /** DominoOp output. */ + public output: string; + + /** + * Creates a new DominoOp instance using the specified properties. + * @param [properties] Properties to set + * @returns DominoOp instance + */ + public static create(properties?: tendermint.crypto.IDominoOp): tendermint.crypto.DominoOp; + + /** + * Encodes the specified DominoOp message. Does not implicitly {@link tendermint.crypto.DominoOp.verify|verify} messages. + * @param m DominoOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IDominoOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DominoOp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DominoOp + * @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): tendermint.crypto.DominoOp; + } + + /** Properties of a ProofOp. */ + interface IProofOp { + /** ProofOp type */ + type?: string | null; + + /** ProofOp key */ + key?: Uint8Array | null; + + /** ProofOp data */ + data?: Uint8Array | null; + } + + /** Represents a ProofOp. */ + class ProofOp implements IProofOp { + /** + * Constructs a new ProofOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IProofOp); + + /** ProofOp type. */ + public type: string; + + /** ProofOp key. */ + public key: Uint8Array; + + /** ProofOp data. */ + public data: Uint8Array; + + /** + * Creates a new ProofOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOp instance + */ + public static create(properties?: tendermint.crypto.IProofOp): tendermint.crypto.ProofOp; + + /** + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.ProofOp.verify|verify} messages. + * @param m ProofOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IProofOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProofOp message from the specified reader or buffer. + * @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(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.ProofOp; + } + + /** Properties of a ProofOps. */ + interface IProofOps { + /** ProofOps ops */ + ops?: tendermint.crypto.IProofOp[] | null; + } + + /** Represents a ProofOps. */ + class ProofOps implements IProofOps { + /** + * Constructs a new ProofOps. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.IProofOps); + + /** ProofOps ops. */ + public ops: tendermint.crypto.IProofOp[]; + + /** + * Creates a new ProofOps instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOps instance + */ + public static create(properties?: tendermint.crypto.IProofOps): tendermint.crypto.ProofOps; + + /** + * Encodes the specified ProofOps message. Does not implicitly {@link tendermint.crypto.ProofOps.verify|verify} messages. + * @param m ProofOps message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.IProofOps, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProofOps message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ProofOps + * @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): tendermint.crypto.ProofOps; } } }