From 17a433646af702f5358d039a234f5ac2abb4352c Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 2 Dec 2020 18:03:15 +0000 Subject: [PATCH 1/6] stargate: Export some types and functions --- packages/stargate/src/index.ts | 15 ++++++++++++++- packages/stargate/src/stargateclient.ts | 4 ++-- packages/stargate/types/index.d.ts | 15 ++++++++++++++- packages/stargate/types/stargateclient.d.ts | 3 +++ 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/packages/stargate/src/index.ts b/packages/stargate/src/index.ts index 78f40b0a..7ded909a 100644 --- a/packages/stargate/src/index.ts +++ b/packages/stargate/src/index.ts @@ -1,4 +1,5 @@ export * as codec from "./codec"; +export { getMsgType, getMsgTypeUrl } from "./encoding"; export { AuthExtension, BankExtension, @@ -8,5 +9,17 @@ export { setupBankExtension, setupIbcExtension, } from "./queries"; -export { assertIsBroadcastTxSuccess, StargateClient } from "./stargateclient"; +export { + Account, + accountFromProto, + assertIsBroadcastTxSuccess, + BroadcastTxFailure, + BroadcastTxResponse, + BroadcastTxSuccess, + coinFromProto, + IndexedTx, + isBroadcastTxFailure, + SequenceResponse, + StargateClient, +} from "./stargateclient"; export { SigningStargateClient } from "./signingstargateclient"; diff --git a/packages/stargate/src/stargateclient.ts b/packages/stargate/src/stargateclient.ts index c4726fd9..dc46a866 100644 --- a/packages/stargate/src/stargateclient.ts +++ b/packages/stargate/src/stargateclient.ts @@ -92,7 +92,7 @@ function uint64FromProto(input: number | Long | null | undefined): Uint64 { return Uint64.fromString(input.toString()); } -function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Account { +export function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Account { const { address, pubKey, accountNumber, sequence } = input; const pubkey = decodePubkey(pubKey); assert(address); @@ -104,7 +104,7 @@ function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Account { }; } -function coinFromProto(input: cosmos.base.v1beta1.ICoin): Coin { +export function coinFromProto(input: cosmos.base.v1beta1.ICoin): Coin { assertDefined(input.amount); assertDefined(input.denom); assert(input.amount !== null); diff --git a/packages/stargate/types/index.d.ts b/packages/stargate/types/index.d.ts index 78f40b0a..7ded909a 100644 --- a/packages/stargate/types/index.d.ts +++ b/packages/stargate/types/index.d.ts @@ -1,4 +1,5 @@ export * as codec from "./codec"; +export { getMsgType, getMsgTypeUrl } from "./encoding"; export { AuthExtension, BankExtension, @@ -8,5 +9,17 @@ export { setupBankExtension, setupIbcExtension, } from "./queries"; -export { assertIsBroadcastTxSuccess, StargateClient } from "./stargateclient"; +export { + Account, + accountFromProto, + assertIsBroadcastTxSuccess, + BroadcastTxFailure, + BroadcastTxResponse, + BroadcastTxSuccess, + coinFromProto, + IndexedTx, + isBroadcastTxFailure, + SequenceResponse, + StargateClient, +} from "./stargateclient"; export { SigningStargateClient } from "./signingstargateclient"; diff --git a/packages/stargate/types/stargateclient.d.ts b/packages/stargate/types/stargateclient.d.ts index c2408b1d..b25996c0 100644 --- a/packages/stargate/types/stargateclient.d.ts +++ b/packages/stargate/types/stargateclient.d.ts @@ -1,5 +1,6 @@ import { Block, Coin, PubKey, SearchTxFilter, SearchTxQuery } from "@cosmjs/launchpad"; import { Client as TendermintClient } from "@cosmjs/tendermint-rpc"; +import { cosmos } from "./codec"; /** A transaction that is indexed as part of the transaction history */ export interface IndexedTx { readonly height: number; @@ -43,6 +44,8 @@ export declare function isBroadcastTxSuccess(result: BroadcastTxResponse): resul export declare function assertIsBroadcastTxSuccess( result: BroadcastTxResponse, ): asserts result is BroadcastTxSuccess; +export declare function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Account; +export declare function coinFromProto(input: cosmos.base.v1beta1.ICoin): Coin; /** Use for testing only */ export interface PrivateStargateClient { readonly tmClient: TendermintClient; From 879a733b5bfa934299a16b7505ece45383695aaa Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 9 Dec 2020 14:51:18 +0000 Subject: [PATCH 2/6] stargate: Fix comparison operator --- packages/stargate/src/queries/queryclient.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stargate/src/queries/queryclient.ts b/packages/stargate/src/queries/queryclient.ts index 8629037f..31cf9ef1 100644 --- a/packages/stargate/src/queries/queryclient.ts +++ b/packages/stargate/src/queries/queryclient.ts @@ -3,7 +3,7 @@ import { iavlSpec, ics23, tendermintSpec, verifyExistence, verifyNonExistence } import { toAscii, toHex } from "@cosmjs/encoding"; import { firstEvent } from "@cosmjs/stream"; import { Client as TendermintClient, Header, NewBlockHeaderEvent, ProofOp } from "@cosmjs/tendermint-rpc"; -import { arrayContentEquals, assert, isNonNullObject, sleep } from "@cosmjs/utils"; +import { arrayContentEquals, assert, assertDefined, isNonNullObject, sleep } from "@cosmjs/utils"; import { Stream } from "xstream"; type QueryExtensionSetup

= (base: QueryClient) => P; @@ -233,8 +233,8 @@ export class QueryClient { // this must return the header for height+1 // throws an error if height is 0 or undefined private async getNextHeader(height?: number): Promise

{ - assert(height); - if (height == 0) { + assertDefined(height); + if (height === 0) { throw new Error("Query returned height 0, cannot prove it"); } From 4b35668981e7d9f92b32a3cdfacb95fda0a16667 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 9 Dec 2020 15:49:37 +0000 Subject: [PATCH 3/6] stargate: Add logs helper --- packages/stargate/src/index.ts | 1 + packages/stargate/src/logs.ts | 11 +++++++++++ packages/stargate/types/index.d.ts | 1 + packages/stargate/types/logs.d.ts | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 packages/stargate/src/logs.ts create mode 100644 packages/stargate/types/logs.d.ts diff --git a/packages/stargate/src/index.ts b/packages/stargate/src/index.ts index 7ded909a..63f8c3a0 100644 --- a/packages/stargate/src/index.ts +++ b/packages/stargate/src/index.ts @@ -1,5 +1,6 @@ export * as codec from "./codec"; export { getMsgType, getMsgTypeUrl } from "./encoding"; +export { parseRawLog } from "./logs"; export { AuthExtension, BankExtension, diff --git a/packages/stargate/src/logs.ts b/packages/stargate/src/logs.ts new file mode 100644 index 00000000..2738b412 --- /dev/null +++ b/packages/stargate/src/logs.ts @@ -0,0 +1,11 @@ +/* eslint-disable @typescript-eslint/naming-convention */ +import { logs } from "@cosmjs/launchpad"; + +export function parseRawLog(input = "[]"): readonly logs.Log[] { + const logsToParse = JSON.parse(input).map(({ events }: { events: readonly unknown[] }, i: number) => ({ + msg_index: i, + events, + log: "", + })); + return logs.parseLogs(logsToParse); +} diff --git a/packages/stargate/types/index.d.ts b/packages/stargate/types/index.d.ts index 7ded909a..63f8c3a0 100644 --- a/packages/stargate/types/index.d.ts +++ b/packages/stargate/types/index.d.ts @@ -1,5 +1,6 @@ export * as codec from "./codec"; export { getMsgType, getMsgTypeUrl } from "./encoding"; +export { parseRawLog } from "./logs"; export { AuthExtension, BankExtension, diff --git a/packages/stargate/types/logs.d.ts b/packages/stargate/types/logs.d.ts new file mode 100644 index 00000000..258dd322 --- /dev/null +++ b/packages/stargate/types/logs.d.ts @@ -0,0 +1,2 @@ +import { logs } from "@cosmjs/launchpad"; +export declare function parseRawLog(input?: string): readonly logs.Log[]; From 6575ebfb3b74b2efa0b4c6aa13ef3234039bb430 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 10 Dec 2020 12:21:12 +0000 Subject: [PATCH 4/6] stargate: Update proto scripts --- packages/stargate/scripts/predefine-proto.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/stargate/scripts/predefine-proto.sh b/packages/stargate/scripts/predefine-proto.sh index d41d1632..84d66503 100755 --- a/packages/stargate/scripts/predefine-proto.sh +++ b/packages/stargate/scripts/predefine-proto.sh @@ -25,6 +25,7 @@ yarn pbjs \ "$COSMOS_PROTO_DIR/bank/v1beta1/bank.proto" \ "$COSMOS_PROTO_DIR/bank/v1beta1/query.proto" \ "$COSMOS_PROTO_DIR/bank/v1beta1/tx.proto" \ + "$COSMOS_PROTO_DIR/base/abci/v1beta1/abci.proto" \ "$COSMOS_PROTO_DIR/base/query/v1beta1/pagination.proto" \ "$COSMOS_PROTO_DIR/base/v1beta1/coin.proto" \ "$COSMOS_PROTO_DIR/crypto/multisig/v1beta1/multisig.proto" \ @@ -39,9 +40,11 @@ yarn pbjs \ "$IBC_PROTO_DIR/core/commitment/v1/commitment.proto" \ "$IBC_PROTO_DIR/core/connection/v1/connection.proto" \ "$IBC_PROTO_DIR/core/connection/v1/query.proto" \ + "$TENDERMINT_PROTO_DIR/abci/types.proto" \ "$TENDERMINT_PROTO_DIR/crypto/keys.proto" \ "$TENDERMINT_PROTO_DIR/crypto/proof.proto" \ "$TENDERMINT_PROTO_DIR/libs/bits/types.proto" \ + "$TENDERMINT_PROTO_DIR/types/params.proto" \ "$TENDERMINT_PROTO_DIR/types/types.proto" \ "$TENDERMINT_PROTO_DIR/types/validator.proto" \ "$TENDERMINT_PROTO_DIR/version/types.proto" From 84aeed43ef1bcb684aa357ed2b2d960e9f548654 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 10 Dec 2020 12:22:01 +0000 Subject: [PATCH 5/6] stargate: Update codec --- .../src/codec/generated/codecimpl.d.ts | 4019 +++++++++++++++++ .../stargate/src/codec/generated/codecimpl.js | 3219 +++++++++++++ .../types/codec/generated/codecimpl.d.ts | 4019 +++++++++++++++++ 3 files changed, 11257 insertions(+) diff --git a/packages/stargate/src/codec/generated/codecimpl.d.ts b/packages/stargate/src/codec/generated/codecimpl.d.ts index 7bc4c814..a77fe446 100644 --- a/packages/stargate/src/codec/generated/codecimpl.d.ts +++ b/packages/stargate/src/codec/generated/codecimpl.d.ts @@ -1796,6 +1796,660 @@ export namespace cosmos { /** Namespace base. */ namespace base { + /** Namespace abci. */ + namespace abci { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** 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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.ITxResponse, + ): cosmos.base.abci.v1beta1.TxResponse; + + /** + * Encodes the specified TxResponse message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.TxResponse; + } + + /** Properties of a ABCIMessageLog. */ + interface IABCIMessageLog { + /** ABCIMessageLog msgIndex */ + msgIndex?: number | null; + + /** ABCIMessageLog log */ + log?: string | null; + + /** ABCIMessageLog events */ + events?: cosmos.base.abci.v1beta1.IStringEvent[] | null; + } + + /** Represents a ABCIMessageLog. */ + class ABCIMessageLog implements IABCIMessageLog { + /** + * Constructs a new ABCIMessageLog. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.IABCIMessageLog); + + /** ABCIMessageLog msgIndex. */ + public msgIndex: number; + + /** ABCIMessageLog log. */ + public log: string; + + /** ABCIMessageLog events. */ + public events: cosmos.base.abci.v1beta1.IStringEvent[]; + + /** + * Creates a new ABCIMessageLog instance using the specified properties. + * @param [properties] Properties to set + * @returns ABCIMessageLog instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.IABCIMessageLog, + ): cosmos.base.abci.v1beta1.ABCIMessageLog; + + /** + * Encodes the specified ABCIMessageLog message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.ABCIMessageLog; + } + + /** Properties of a StringEvent. */ + interface IStringEvent { + /** StringEvent type */ + type?: string | null; + + /** StringEvent attributes */ + attributes?: cosmos.base.abci.v1beta1.IAttribute[] | null; + } + + /** Represents a StringEvent. */ + class StringEvent implements IStringEvent { + /** + * Constructs a new StringEvent. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.IStringEvent); + + /** StringEvent type. */ + public type: string; + + /** StringEvent attributes. */ + public attributes: cosmos.base.abci.v1beta1.IAttribute[]; + + /** + * Creates a new StringEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StringEvent instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.IStringEvent, + ): cosmos.base.abci.v1beta1.StringEvent; + + /** + * Encodes the specified StringEvent message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.IAttribute, + ): cosmos.base.abci.v1beta1.Attribute; + + /** + * Encodes the specified Attribute message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.Attribute; + } + + /** 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.base.abci.v1beta1.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.base.abci.v1beta1.IGasInfo, + ): cosmos.base.abci.v1beta1.GasInfo; + + /** + * Encodes the specified GasInfo message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.GasInfo; + } + + /** Properties of a Result. */ + interface IResult { + /** Result data */ + data?: Uint8Array | null; + + /** Result log */ + log?: string | null; + + /** Result events */ + events?: tendermint.abci.IEvent[] | null; + } + + /** Represents a Result. */ + class Result implements IResult { + /** + * Constructs a new Result. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.IResult); + + /** Result data. */ + public data: Uint8Array; + + /** Result log. */ + public log: string; + + /** Result events. */ + public events: tendermint.abci.IEvent[]; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.IResult, + ): cosmos.base.abci.v1beta1.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.Result; + } + + /** Properties of a SimulationResponse. */ + interface ISimulationResponse { + /** SimulationResponse gasInfo */ + gasInfo?: cosmos.base.abci.v1beta1.IGasInfo | null; + + /** SimulationResponse result */ + result?: cosmos.base.abci.v1beta1.IResult | null; + } + + /** Represents a SimulationResponse. */ + class SimulationResponse implements ISimulationResponse { + /** + * Constructs a new SimulationResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.ISimulationResponse); + + /** SimulationResponse gasInfo. */ + public gasInfo?: cosmos.base.abci.v1beta1.IGasInfo | null; + + /** SimulationResponse result. */ + public result?: cosmos.base.abci.v1beta1.IResult | null; + + /** + * Creates a new SimulationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SimulationResponse instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.ISimulationResponse, + ): cosmos.base.abci.v1beta1.SimulationResponse; + + /** + * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.IMsgData, + ): cosmos.base.abci.v1beta1.MsgData; + + /** + * Encodes the specified MsgData message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.MsgData; + } + + /** Properties of a TxMsgData. */ + interface ITxMsgData { + /** TxMsgData data */ + data?: cosmos.base.abci.v1beta1.IMsgData[] | null; + } + + /** Represents a TxMsgData. */ + class TxMsgData implements ITxMsgData { + /** + * Constructs a new TxMsgData. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.ITxMsgData); + + /** TxMsgData data. */ + public data: cosmos.base.abci.v1beta1.IMsgData[]; + + /** + * Creates a new TxMsgData instance using the specified properties. + * @param [properties] Properties to set + * @returns TxMsgData instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.ITxMsgData, + ): cosmos.base.abci.v1beta1.TxMsgData; + + /** + * Encodes the specified TxMsgData message. Does not implicitly {@link cosmos.base.abci.v1beta1.TxMsgData.verify|verify} messages. + * @param m TxMsgData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.abci.v1beta1.ITxMsgData, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a TxMsgData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxMsgData + * @throws {Error} If the payload is not 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.abci.v1beta1.TxMsgData; + } + + /** Properties of a SearchTxsResult. */ + interface ISearchTxsResult { + /** SearchTxsResult totalCount */ + totalCount?: Long | null; + + /** SearchTxsResult count */ + count?: Long | null; + + /** SearchTxsResult pageNumber */ + pageNumber?: Long | null; + + /** SearchTxsResult pageTotal */ + pageTotal?: Long | null; + + /** SearchTxsResult limit */ + limit?: Long | null; + + /** SearchTxsResult txs */ + txs?: cosmos.base.abci.v1beta1.ITxResponse[] | null; + } + + /** Represents a SearchTxsResult. */ + class SearchTxsResult implements ISearchTxsResult { + /** + * Constructs a new SearchTxsResult. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.ISearchTxsResult); + + /** SearchTxsResult totalCount. */ + public totalCount: Long; + + /** SearchTxsResult count. */ + public count: Long; + + /** SearchTxsResult pageNumber. */ + public pageNumber: Long; + + /** SearchTxsResult pageTotal. */ + public pageTotal: Long; + + /** SearchTxsResult limit. */ + public limit: Long; + + /** SearchTxsResult txs. */ + public txs: cosmos.base.abci.v1beta1.ITxResponse[]; + + /** + * Creates a new SearchTxsResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTxsResult instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.ISearchTxsResult, + ): cosmos.base.abci.v1beta1.SearchTxsResult; + + /** + * Encodes the specified SearchTxsResult message. Does not implicitly {@link cosmos.base.abci.v1beta1.SearchTxsResult.verify|verify} messages. + * @param m SearchTxsResult message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.abci.v1beta1.ISearchTxsResult, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SearchTxsResult message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SearchTxsResult + * @throws {Error} If the payload is not 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.abci.v1beta1.SearchTxsResult; + } + } + } + /** Namespace query. */ namespace query { /** Namespace v1beta1. */ @@ -12026,6 +12680,3065 @@ export namespace ibc { /** Namespace tendermint. */ export namespace tendermint { + /** Namespace abci. */ + namespace abci { + /** Properties of a Request. */ + interface IRequest { + /** Request echo */ + echo?: tendermint.abci.IRequestEcho | null; + + /** Request flush */ + flush?: tendermint.abci.IRequestFlush | null; + + /** Request info */ + info?: tendermint.abci.IRequestInfo | null; + + /** Request setOption */ + setOption?: tendermint.abci.IRequestSetOption | null; + + /** Request initChain */ + initChain?: tendermint.abci.IRequestInitChain | null; + + /** Request query */ + query?: tendermint.abci.IRequestQuery | null; + + /** Request beginBlock */ + beginBlock?: tendermint.abci.IRequestBeginBlock | null; + + /** Request checkTx */ + checkTx?: tendermint.abci.IRequestCheckTx | null; + + /** Request deliverTx */ + deliverTx?: tendermint.abci.IRequestDeliverTx | null; + + /** Request endBlock */ + endBlock?: tendermint.abci.IRequestEndBlock | null; + + /** Request commit */ + commit?: tendermint.abci.IRequestCommit | null; + + /** Request listSnapshots */ + listSnapshots?: tendermint.abci.IRequestListSnapshots | null; + + /** Request offerSnapshot */ + offerSnapshot?: tendermint.abci.IRequestOfferSnapshot | null; + + /** Request loadSnapshotChunk */ + loadSnapshotChunk?: tendermint.abci.IRequestLoadSnapshotChunk | null; + + /** Request applySnapshotChunk */ + applySnapshotChunk?: tendermint.abci.IRequestApplySnapshotChunk | null; + } + + /** Represents a Request. */ + class Request implements IRequest { + /** + * Constructs a new Request. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequest); + + /** Request echo. */ + public echo?: tendermint.abci.IRequestEcho | null; + + /** Request flush. */ + public flush?: tendermint.abci.IRequestFlush | null; + + /** Request info. */ + public info?: tendermint.abci.IRequestInfo | null; + + /** Request setOption. */ + public setOption?: tendermint.abci.IRequestSetOption | null; + + /** Request initChain. */ + public initChain?: tendermint.abci.IRequestInitChain | null; + + /** Request query. */ + public query?: tendermint.abci.IRequestQuery | null; + + /** Request beginBlock. */ + public beginBlock?: tendermint.abci.IRequestBeginBlock | null; + + /** Request checkTx. */ + public checkTx?: tendermint.abci.IRequestCheckTx | null; + + /** Request deliverTx. */ + public deliverTx?: tendermint.abci.IRequestDeliverTx | null; + + /** Request endBlock. */ + public endBlock?: tendermint.abci.IRequestEndBlock | null; + + /** Request commit. */ + public commit?: tendermint.abci.IRequestCommit | null; + + /** Request listSnapshots. */ + public listSnapshots?: tendermint.abci.IRequestListSnapshots | null; + + /** Request offerSnapshot. */ + public offerSnapshot?: tendermint.abci.IRequestOfferSnapshot | null; + + /** Request loadSnapshotChunk. */ + public loadSnapshotChunk?: tendermint.abci.IRequestLoadSnapshotChunk | null; + + /** Request applySnapshotChunk. */ + public applySnapshotChunk?: tendermint.abci.IRequestApplySnapshotChunk | null; + + /** Request value. */ + public value?: + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit" + | "listSnapshots" + | "offerSnapshot" + | "loadSnapshotChunk" + | "applySnapshotChunk"; + + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: tendermint.abci.IRequest): tendermint.abci.Request; + + /** + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestEcho): tendermint.abci.RequestEcho; + + /** + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.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.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.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.IRequestFlush); + + /** + * Creates a new RequestFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestFlush instance + */ + public static create(properties?: tendermint.abci.IRequestFlush): tendermint.abci.RequestFlush; + + /** + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestInfo): tendermint.abci.RequestInfo; + + /** + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestSetOption): tendermint.abci.RequestSetOption; + + /** + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.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.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.RequestSetOption; + } + + /** Properties of a RequestInitChain. */ + interface IRequestInitChain { + /** RequestInitChain time */ + time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId */ + chainId?: string | null; + + /** RequestInitChain consensusParams */ + consensusParams?: tendermint.abci.IConsensusParams | null; + + /** RequestInitChain validators */ + validators?: tendermint.abci.IValidatorUpdate[] | null; + + /** RequestInitChain appStateBytes */ + appStateBytes?: Uint8Array | null; + + /** RequestInitChain initialHeight */ + initialHeight?: Long | null; + } + + /** Represents a RequestInitChain. */ + class RequestInitChain implements IRequestInitChain { + /** + * Constructs a new RequestInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestInitChain); + + /** RequestInitChain time. */ + public time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId. */ + public chainId: string; + + /** RequestInitChain consensusParams. */ + public consensusParams?: tendermint.abci.IConsensusParams | null; + + /** RequestInitChain validators. */ + public validators: tendermint.abci.IValidatorUpdate[]; + + /** RequestInitChain appStateBytes. */ + public appStateBytes: Uint8Array; + + /** RequestInitChain initialHeight. */ + public initialHeight: Long; + + /** + * Creates a new RequestInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInitChain instance + */ + public static create(properties?: tendermint.abci.IRequestInitChain): tendermint.abci.RequestInitChain; + + /** + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestQuery): tendermint.abci.RequestQuery; + + /** + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.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.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.RequestQuery; + } + + /** Properties of a RequestBeginBlock. */ + interface IRequestBeginBlock { + /** RequestBeginBlock hash */ + hash?: Uint8Array | null; + + /** RequestBeginBlock header */ + header?: tendermint.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo */ + lastCommitInfo?: tendermint.abci.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators */ + byzantineValidators?: tendermint.abci.IEvidence[] | null; + } + + /** Represents a RequestBeginBlock. */ + class RequestBeginBlock implements IRequestBeginBlock { + /** + * Constructs a new RequestBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestBeginBlock); + + /** RequestBeginBlock hash. */ + public hash: Uint8Array; + + /** RequestBeginBlock header. */ + public header?: tendermint.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo. */ + public lastCommitInfo?: tendermint.abci.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators. */ + public byzantineValidators: tendermint.abci.IEvidence[]; + + /** + * Creates a new RequestBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestBeginBlock instance + */ + public static create( + properties?: tendermint.abci.IRequestBeginBlock, + ): tendermint.abci.RequestBeginBlock; + + /** + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.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.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.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.CheckTxType | null; + } + + /** Represents a RequestCheckTx. */ + class RequestCheckTx implements IRequestCheckTx { + /** + * Constructs a new RequestCheckTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestCheckTx); + + /** RequestCheckTx tx. */ + public tx: Uint8Array; + + /** RequestCheckTx type. */ + public type: tendermint.abci.CheckTxType; + + /** + * Creates a new RequestCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCheckTx instance + */ + public static create(properties?: tendermint.abci.IRequestCheckTx): tendermint.abci.RequestCheckTx; + + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestDeliverTx): tendermint.abci.RequestDeliverTx; + + /** + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestEndBlock): tendermint.abci.RequestEndBlock; + + /** + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.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.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.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.IRequestCommit); + + /** + * Creates a new RequestCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCommit instance + */ + public static create(properties?: tendermint.abci.IRequestCommit): tendermint.abci.RequestCommit; + + /** + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.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.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.RequestCommit; + } + + /** Properties of a RequestListSnapshots. */ + interface IRequestListSnapshots {} + + /** Represents a RequestListSnapshots. */ + class RequestListSnapshots implements IRequestListSnapshots { + /** + * Constructs a new RequestListSnapshots. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestListSnapshots); + + /** + * Creates a new RequestListSnapshots instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestListSnapshots instance + */ + public static create( + properties?: tendermint.abci.IRequestListSnapshots, + ): tendermint.abci.RequestListSnapshots; + + /** + * Encodes the specified RequestListSnapshots message. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. + * @param m RequestListSnapshots message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IRequestListSnapshots, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestListSnapshots message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestListSnapshots + * @throws {Error} If the payload is 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.RequestListSnapshots; + } + + /** Properties of a RequestOfferSnapshot. */ + interface IRequestOfferSnapshot { + /** RequestOfferSnapshot snapshot */ + snapshot?: tendermint.abci.ISnapshot | null; + + /** RequestOfferSnapshot appHash */ + appHash?: Uint8Array | null; + } + + /** Represents a RequestOfferSnapshot. */ + class RequestOfferSnapshot implements IRequestOfferSnapshot { + /** + * Constructs a new RequestOfferSnapshot. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestOfferSnapshot); + + /** RequestOfferSnapshot snapshot. */ + public snapshot?: tendermint.abci.ISnapshot | null; + + /** RequestOfferSnapshot appHash. */ + public appHash: Uint8Array; + + /** + * Creates a new RequestOfferSnapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestOfferSnapshot instance + */ + public static create( + properties?: tendermint.abci.IRequestOfferSnapshot, + ): tendermint.abci.RequestOfferSnapshot; + + /** + * Encodes the specified RequestOfferSnapshot message. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. + * @param m RequestOfferSnapshot message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IRequestOfferSnapshot, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestOfferSnapshot message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestOfferSnapshot + * @throws {Error} If the payload is 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.RequestOfferSnapshot; + } + + /** Properties of a RequestLoadSnapshotChunk. */ + interface IRequestLoadSnapshotChunk { + /** RequestLoadSnapshotChunk height */ + height?: Long | null; + + /** RequestLoadSnapshotChunk format */ + format?: number | null; + + /** RequestLoadSnapshotChunk chunk */ + chunk?: number | null; + } + + /** Represents a RequestLoadSnapshotChunk. */ + class RequestLoadSnapshotChunk implements IRequestLoadSnapshotChunk { + /** + * Constructs a new RequestLoadSnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestLoadSnapshotChunk); + + /** RequestLoadSnapshotChunk height. */ + public height: Long; + + /** RequestLoadSnapshotChunk format. */ + public format: number; + + /** RequestLoadSnapshotChunk chunk. */ + public chunk: number; + + /** + * Creates a new RequestLoadSnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestLoadSnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IRequestLoadSnapshotChunk, + ): tendermint.abci.RequestLoadSnapshotChunk; + + /** + * Encodes the specified RequestLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. + * @param m RequestLoadSnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IRequestLoadSnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestLoadSnapshotChunk + * @throws {Error} If the payload is 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.RequestLoadSnapshotChunk; + } + + /** Properties of a RequestApplySnapshotChunk. */ + interface IRequestApplySnapshotChunk { + /** RequestApplySnapshotChunk index */ + index?: number | null; + + /** RequestApplySnapshotChunk chunk */ + chunk?: Uint8Array | null; + + /** RequestApplySnapshotChunk sender */ + sender?: string | null; + } + + /** Represents a RequestApplySnapshotChunk. */ + class RequestApplySnapshotChunk implements IRequestApplySnapshotChunk { + /** + * Constructs a new RequestApplySnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestApplySnapshotChunk); + + /** RequestApplySnapshotChunk index. */ + public index: number; + + /** RequestApplySnapshotChunk chunk. */ + public chunk: Uint8Array; + + /** RequestApplySnapshotChunk sender. */ + public sender: string; + + /** + * Creates a new RequestApplySnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestApplySnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IRequestApplySnapshotChunk, + ): tendermint.abci.RequestApplySnapshotChunk; + + /** + * Encodes the specified RequestApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. + * @param m RequestApplySnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IRequestApplySnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestApplySnapshotChunk + * @throws {Error} If the payload is 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.RequestApplySnapshotChunk; + } + + /** Properties of a Response. */ + interface IResponse { + /** Response exception */ + exception?: tendermint.abci.IResponseException | null; + + /** Response echo */ + echo?: tendermint.abci.IResponseEcho | null; + + /** Response flush */ + flush?: tendermint.abci.IResponseFlush | null; + + /** Response info */ + info?: tendermint.abci.IResponseInfo | null; + + /** Response setOption */ + setOption?: tendermint.abci.IResponseSetOption | null; + + /** Response initChain */ + initChain?: tendermint.abci.IResponseInitChain | null; + + /** Response query */ + query?: tendermint.abci.IResponseQuery | null; + + /** Response beginBlock */ + beginBlock?: tendermint.abci.IResponseBeginBlock | null; + + /** Response checkTx */ + checkTx?: tendermint.abci.IResponseCheckTx | null; + + /** Response deliverTx */ + deliverTx?: tendermint.abci.IResponseDeliverTx | null; + + /** Response endBlock */ + endBlock?: tendermint.abci.IResponseEndBlock | null; + + /** Response commit */ + commit?: tendermint.abci.IResponseCommit | null; + + /** Response listSnapshots */ + listSnapshots?: tendermint.abci.IResponseListSnapshots | null; + + /** Response offerSnapshot */ + offerSnapshot?: tendermint.abci.IResponseOfferSnapshot | null; + + /** Response loadSnapshotChunk */ + loadSnapshotChunk?: tendermint.abci.IResponseLoadSnapshotChunk | null; + + /** Response applySnapshotChunk */ + applySnapshotChunk?: tendermint.abci.IResponseApplySnapshotChunk | null; + } + + /** Represents a Response. */ + class Response implements IResponse { + /** + * Constructs a new Response. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponse); + + /** Response exception. */ + public exception?: tendermint.abci.IResponseException | null; + + /** Response echo. */ + public echo?: tendermint.abci.IResponseEcho | null; + + /** Response flush. */ + public flush?: tendermint.abci.IResponseFlush | null; + + /** Response info. */ + public info?: tendermint.abci.IResponseInfo | null; + + /** Response setOption. */ + public setOption?: tendermint.abci.IResponseSetOption | null; + + /** Response initChain. */ + public initChain?: tendermint.abci.IResponseInitChain | null; + + /** Response query. */ + public query?: tendermint.abci.IResponseQuery | null; + + /** Response beginBlock. */ + public beginBlock?: tendermint.abci.IResponseBeginBlock | null; + + /** Response checkTx. */ + public checkTx?: tendermint.abci.IResponseCheckTx | null; + + /** Response deliverTx. */ + public deliverTx?: tendermint.abci.IResponseDeliverTx | null; + + /** Response endBlock. */ + public endBlock?: tendermint.abci.IResponseEndBlock | null; + + /** Response commit. */ + public commit?: tendermint.abci.IResponseCommit | null; + + /** Response listSnapshots. */ + public listSnapshots?: tendermint.abci.IResponseListSnapshots | null; + + /** Response offerSnapshot. */ + public offerSnapshot?: tendermint.abci.IResponseOfferSnapshot | null; + + /** Response loadSnapshotChunk. */ + public loadSnapshotChunk?: tendermint.abci.IResponseLoadSnapshotChunk | null; + + /** Response applySnapshotChunk. */ + public applySnapshotChunk?: tendermint.abci.IResponseApplySnapshotChunk | null; + + /** Response value. */ + public value?: + | "exception" + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit" + | "listSnapshots" + | "offerSnapshot" + | "loadSnapshotChunk" + | "applySnapshotChunk"; + + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: tendermint.abci.IResponse): tendermint.abci.Response; + + /** + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseException, + ): tendermint.abci.ResponseException; + + /** + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseEcho): tendermint.abci.ResponseEcho; + + /** + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.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.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.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.IResponseFlush); + + /** + * Creates a new ResponseFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseFlush instance + */ + public static create(properties?: tendermint.abci.IResponseFlush): tendermint.abci.ResponseFlush; + + /** + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseInfo): tendermint.abci.ResponseInfo; + + /** + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseSetOption, + ): tendermint.abci.ResponseSetOption; + + /** + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.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.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.ResponseSetOption; + } + + /** Properties of a ResponseInitChain. */ + interface IResponseInitChain { + /** ResponseInitChain consensusParams */ + consensusParams?: tendermint.abci.IConsensusParams | null; + + /** ResponseInitChain validators */ + validators?: tendermint.abci.IValidatorUpdate[] | null; + + /** ResponseInitChain appHash */ + appHash?: Uint8Array | null; + } + + /** Represents a ResponseInitChain. */ + class ResponseInitChain implements IResponseInitChain { + /** + * Constructs a new ResponseInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseInitChain); + + /** ResponseInitChain consensusParams. */ + public consensusParams?: tendermint.abci.IConsensusParams | null; + + /** ResponseInitChain validators. */ + public validators: tendermint.abci.IValidatorUpdate[]; + + /** ResponseInitChain appHash. */ + public appHash: Uint8Array; + + /** + * Creates a new ResponseInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInitChain instance + */ + public static create( + properties?: tendermint.abci.IResponseInitChain, + ): tendermint.abci.ResponseInitChain; + + /** + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.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.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.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 proofOps */ + proofOps?: tendermint.crypto.IProofOps | 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.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 proofOps. */ + public proofOps?: tendermint.crypto.IProofOps | 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.IResponseQuery): tendermint.abci.ResponseQuery; + + /** + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.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.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.ResponseQuery; + } + + /** Properties of a ResponseBeginBlock. */ + interface IResponseBeginBlock { + /** ResponseBeginBlock events */ + events?: tendermint.abci.IEvent[] | null; + } + + /** Represents a ResponseBeginBlock. */ + class ResponseBeginBlock implements IResponseBeginBlock { + /** + * Constructs a new ResponseBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseBeginBlock); + + /** ResponseBeginBlock events. */ + public events: tendermint.abci.IEvent[]; + + /** + * Creates a new ResponseBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseBeginBlock instance + */ + public static create( + properties?: tendermint.abci.IResponseBeginBlock, + ): tendermint.abci.ResponseBeginBlock; + + /** + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.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.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.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.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.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.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.IResponseCheckTx): tendermint.abci.ResponseCheckTx; + + /** + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.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.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.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.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.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.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.IResponseDeliverTx, + ): tendermint.abci.ResponseDeliverTx; + + /** + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.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.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.ResponseDeliverTx; + } + + /** Properties of a ResponseEndBlock. */ + interface IResponseEndBlock { + /** ResponseEndBlock validatorUpdates */ + validatorUpdates?: tendermint.abci.IValidatorUpdate[] | null; + + /** ResponseEndBlock consensusParamUpdates */ + consensusParamUpdates?: tendermint.abci.IConsensusParams | null; + + /** ResponseEndBlock events */ + events?: tendermint.abci.IEvent[] | null; + } + + /** Represents a ResponseEndBlock. */ + class ResponseEndBlock implements IResponseEndBlock { + /** + * Constructs a new ResponseEndBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseEndBlock); + + /** ResponseEndBlock validatorUpdates. */ + public validatorUpdates: tendermint.abci.IValidatorUpdate[]; + + /** ResponseEndBlock consensusParamUpdates. */ + public consensusParamUpdates?: tendermint.abci.IConsensusParams | null; + + /** ResponseEndBlock events. */ + public events: tendermint.abci.IEvent[]; + + /** + * Creates a new ResponseEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEndBlock instance + */ + public static create(properties?: tendermint.abci.IResponseEndBlock): tendermint.abci.ResponseEndBlock; + + /** + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.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.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.ResponseEndBlock; + } + + /** Properties of a ResponseCommit. */ + interface IResponseCommit { + /** ResponseCommit data */ + data?: Uint8Array | null; + + /** ResponseCommit retainHeight */ + retainHeight?: Long | null; + } + + /** Represents a ResponseCommit. */ + class ResponseCommit implements IResponseCommit { + /** + * Constructs a new ResponseCommit. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseCommit); + + /** ResponseCommit data. */ + public data: Uint8Array; + + /** ResponseCommit retainHeight. */ + public retainHeight: Long; + + /** + * Creates a new ResponseCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCommit instance + */ + public static create(properties?: tendermint.abci.IResponseCommit): tendermint.abci.ResponseCommit; + + /** + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.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.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.ResponseCommit; + } + + /** Properties of a ResponseListSnapshots. */ + interface IResponseListSnapshots { + /** ResponseListSnapshots snapshots */ + snapshots?: tendermint.abci.ISnapshot[] | null; + } + + /** Represents a ResponseListSnapshots. */ + class ResponseListSnapshots implements IResponseListSnapshots { + /** + * Constructs a new ResponseListSnapshots. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseListSnapshots); + + /** ResponseListSnapshots snapshots. */ + public snapshots: tendermint.abci.ISnapshot[]; + + /** + * Creates a new ResponseListSnapshots instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseListSnapshots instance + */ + public static create( + properties?: tendermint.abci.IResponseListSnapshots, + ): tendermint.abci.ResponseListSnapshots; + + /** + * Encodes the specified ResponseListSnapshots message. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. + * @param m ResponseListSnapshots message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IResponseListSnapshots, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseListSnapshots message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseListSnapshots + * @throws {Error} If the payload is 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.ResponseListSnapshots; + } + + /** Properties of a ResponseOfferSnapshot. */ + interface IResponseOfferSnapshot { + /** ResponseOfferSnapshot result */ + result?: tendermint.abci.ResponseOfferSnapshot.Result | null; + } + + /** Represents a ResponseOfferSnapshot. */ + class ResponseOfferSnapshot implements IResponseOfferSnapshot { + /** + * Constructs a new ResponseOfferSnapshot. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseOfferSnapshot); + + /** ResponseOfferSnapshot result. */ + public result: tendermint.abci.ResponseOfferSnapshot.Result; + + /** + * Creates a new ResponseOfferSnapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseOfferSnapshot instance + */ + public static create( + properties?: tendermint.abci.IResponseOfferSnapshot, + ): tendermint.abci.ResponseOfferSnapshot; + + /** + * Encodes the specified ResponseOfferSnapshot message. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. + * @param m ResponseOfferSnapshot message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IResponseOfferSnapshot, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseOfferSnapshot message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseOfferSnapshot + * @throws {Error} If the payload is 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.ResponseOfferSnapshot; + } + + namespace ResponseOfferSnapshot { + /** Result enum. */ + enum Result { + UNKNOWN = 0, + ACCEPT = 1, + ABORT = 2, + REJECT = 3, + REJECT_FORMAT = 4, + REJECT_SENDER = 5, + } + } + + /** Properties of a ResponseLoadSnapshotChunk. */ + interface IResponseLoadSnapshotChunk { + /** ResponseLoadSnapshotChunk chunk */ + chunk?: Uint8Array | null; + } + + /** Represents a ResponseLoadSnapshotChunk. */ + class ResponseLoadSnapshotChunk implements IResponseLoadSnapshotChunk { + /** + * Constructs a new ResponseLoadSnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseLoadSnapshotChunk); + + /** ResponseLoadSnapshotChunk chunk. */ + public chunk: Uint8Array; + + /** + * Creates a new ResponseLoadSnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseLoadSnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IResponseLoadSnapshotChunk, + ): tendermint.abci.ResponseLoadSnapshotChunk; + + /** + * Encodes the specified ResponseLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. + * @param m ResponseLoadSnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IResponseLoadSnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseLoadSnapshotChunk + * @throws {Error} If the payload is 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.ResponseLoadSnapshotChunk; + } + + /** Properties of a ResponseApplySnapshotChunk. */ + interface IResponseApplySnapshotChunk { + /** ResponseApplySnapshotChunk result */ + result?: tendermint.abci.ResponseApplySnapshotChunk.Result | null; + + /** ResponseApplySnapshotChunk refetchChunks */ + refetchChunks?: number[] | null; + + /** ResponseApplySnapshotChunk rejectSenders */ + rejectSenders?: string[] | null; + } + + /** Represents a ResponseApplySnapshotChunk. */ + class ResponseApplySnapshotChunk implements IResponseApplySnapshotChunk { + /** + * Constructs a new ResponseApplySnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseApplySnapshotChunk); + + /** ResponseApplySnapshotChunk result. */ + public result: tendermint.abci.ResponseApplySnapshotChunk.Result; + + /** ResponseApplySnapshotChunk refetchChunks. */ + public refetchChunks: number[]; + + /** ResponseApplySnapshotChunk rejectSenders. */ + public rejectSenders: string[]; + + /** + * Creates a new ResponseApplySnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseApplySnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IResponseApplySnapshotChunk, + ): tendermint.abci.ResponseApplySnapshotChunk; + + /** + * Encodes the specified ResponseApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. + * @param m ResponseApplySnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IResponseApplySnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseApplySnapshotChunk + * @throws {Error} If the payload is 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.ResponseApplySnapshotChunk; + } + + namespace ResponseApplySnapshotChunk { + /** Result enum. */ + enum Result { + UNKNOWN = 0, + ACCEPT = 1, + ABORT = 2, + RETRY = 3, + RETRY_SNAPSHOT = 4, + REJECT_SNAPSHOT = 5, + } + } + + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.abci.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version */ + version?: tendermint.types.IVersionParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.abci.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version. */ + public version?: tendermint.types.IVersionParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create(properties?: tendermint.abci.IConsensusParams): tendermint.abci.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.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.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.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.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.IBlockParams): tendermint.abci.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.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.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.BlockParams; + } + + /** Properties of a LastCommitInfo. */ + interface ILastCommitInfo { + /** LastCommitInfo round */ + round?: number | null; + + /** LastCommitInfo votes */ + votes?: tendermint.abci.IVoteInfo[] | null; + } + + /** Represents a LastCommitInfo. */ + class LastCommitInfo implements ILastCommitInfo { + /** + * Constructs a new LastCommitInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.ILastCommitInfo); + + /** LastCommitInfo round. */ + public round: number; + + /** LastCommitInfo votes. */ + public votes: tendermint.abci.IVoteInfo[]; + + /** + * Creates a new LastCommitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns LastCommitInfo instance + */ + public static create(properties?: tendermint.abci.ILastCommitInfo): tendermint.abci.LastCommitInfo; + + /** + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.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.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.LastCommitInfo; + } + + /** Properties of an Event. */ + interface IEvent { + /** Event type */ + type?: string | null; + + /** Event attributes */ + attributes?: tendermint.abci.IEventAttribute[] | null; + } + + /** Represents an Event. */ + class Event implements IEvent { + /** + * Constructs a new Event. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IEvent); + + /** Event type. */ + public type: string; + + /** Event attributes. */ + public attributes: tendermint.abci.IEventAttribute[]; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: tendermint.abci.IEvent): tendermint.abci.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.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.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.Event; + } + + /** Properties of an EventAttribute. */ + interface IEventAttribute { + /** EventAttribute key */ + key?: Uint8Array | null; + + /** EventAttribute value */ + value?: Uint8Array | null; + + /** EventAttribute index */ + index?: boolean | null; + } + + /** Represents an EventAttribute. */ + class EventAttribute implements IEventAttribute { + /** + * Constructs a new EventAttribute. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IEventAttribute); + + /** EventAttribute key. */ + public key: Uint8Array; + + /** EventAttribute value. */ + public value: Uint8Array; + + /** EventAttribute index. */ + public index: boolean; + + /** + * Creates a new EventAttribute instance using the specified properties. + * @param [properties] Properties to set + * @returns EventAttribute instance + */ + public static create(properties?: tendermint.abci.IEventAttribute): tendermint.abci.EventAttribute; + + /** + * Encodes the specified EventAttribute message. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. + * @param m EventAttribute message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IEventAttribute, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventAttribute message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns EventAttribute + * @throws {Error} If the payload is 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.EventAttribute; + } + + /** Properties of a TxResult. */ + interface ITxResult { + /** TxResult height */ + height?: Long | null; + + /** TxResult index */ + index?: number | null; + + /** TxResult tx */ + tx?: Uint8Array | null; + + /** TxResult result */ + result?: tendermint.abci.IResponseDeliverTx | null; + } + + /** Represents a TxResult. */ + class TxResult implements ITxResult { + /** + * Constructs a new TxResult. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.ITxResult); + + /** TxResult height. */ + public height: Long; + + /** TxResult index. */ + public index: number; + + /** TxResult tx. */ + public tx: Uint8Array; + + /** TxResult result. */ + public result?: tendermint.abci.IResponseDeliverTx | null; + + /** + * Creates a new TxResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TxResult instance + */ + public static create(properties?: tendermint.abci.ITxResult): tendermint.abci.TxResult; + + /** + * Encodes the specified TxResult message. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. + * @param m TxResult message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.ITxResult, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxResult message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxResult + * @throws {Error} If the payload is 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.TxResult; + } + + /** 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.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.IValidator): tendermint.abci.Validator; + + /** + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.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.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.Validator; + } + + /** Properties of a ValidatorUpdate. */ + interface IValidatorUpdate { + /** ValidatorUpdate pubKey */ + pubKey?: tendermint.crypto.IPublicKey | 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.IValidatorUpdate); + + /** ValidatorUpdate pubKey. */ + public pubKey?: tendermint.crypto.IPublicKey | 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.IValidatorUpdate): tendermint.abci.ValidatorUpdate; + + /** + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.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.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.ValidatorUpdate; + } + + /** Properties of a VoteInfo. */ + interface IVoteInfo { + /** VoteInfo validator */ + validator?: tendermint.abci.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.IVoteInfo); + + /** VoteInfo validator. */ + public validator?: tendermint.abci.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.IVoteInfo): tendermint.abci.VoteInfo; + + /** + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.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.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.VoteInfo; + } + + /** EvidenceType enum. */ + enum EvidenceType { + UNKNOWN = 0, + DUPLICATE_VOTE = 1, + LIGHT_CLIENT_ATTACK = 2, + } + + /** Properties of an Evidence. */ + interface IEvidence { + /** Evidence type */ + type?: tendermint.abci.EvidenceType | null; + + /** Evidence validator */ + validator?: tendermint.abci.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.IEvidence); + + /** Evidence type. */ + public type: tendermint.abci.EvidenceType; + + /** Evidence validator. */ + public validator?: tendermint.abci.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.IEvidence): tendermint.abci.Evidence; + + /** + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.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.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.Evidence; + } + + /** Properties of a Snapshot. */ + interface ISnapshot { + /** Snapshot height */ + height?: Long | null; + + /** Snapshot format */ + format?: number | null; + + /** Snapshot chunks */ + chunks?: number | null; + + /** Snapshot hash */ + hash?: Uint8Array | null; + + /** Snapshot metadata */ + metadata?: Uint8Array | null; + } + + /** Represents a Snapshot. */ + class Snapshot implements ISnapshot { + /** + * Constructs a new Snapshot. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.ISnapshot); + + /** Snapshot height. */ + public height: Long; + + /** Snapshot format. */ + public format: number; + + /** Snapshot chunks. */ + public chunks: number; + + /** Snapshot hash. */ + public hash: Uint8Array; + + /** Snapshot metadata. */ + public metadata: Uint8Array; + + /** + * Creates a new Snapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns Snapshot instance + */ + public static create(properties?: tendermint.abci.ISnapshot): tendermint.abci.Snapshot; + + /** + * Encodes the specified Snapshot message. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. + * @param m Snapshot message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.ISnapshot, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Snapshot message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Snapshot + * @throws {Error} If the payload is 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.Snapshot; + } + + /** Represents a ABCIApplication */ + class ABCIApplication extends $protobuf.rpc.Service { + /** + * Constructs a new ABCIApplication service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ABCIApplication service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): ABCIApplication; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEcho + */ + public echo( + request: tendermint.abci.IRequestEcho, + callback: tendermint.abci.ABCIApplication.EchoCallback, + ): void; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @returns Promise + */ + public echo(request: tendermint.abci.IRequestEcho): Promise; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseFlush + */ + public flush( + request: tendermint.abci.IRequestFlush, + callback: tendermint.abci.ABCIApplication.FlushCallback, + ): void; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @returns Promise + */ + public flush(request: tendermint.abci.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.IRequestInfo, + callback: tendermint.abci.ABCIApplication.InfoCallback, + ): void; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @returns Promise + */ + public info(request: tendermint.abci.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.IRequestSetOption, + callback: tendermint.abci.ABCIApplication.SetOptionCallback, + ): void; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @returns Promise + */ + public setOption( + request: tendermint.abci.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.IRequestDeliverTx, + callback: tendermint.abci.ABCIApplication.DeliverTxCallback, + ): void; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @returns Promise + */ + public deliverTx( + request: tendermint.abci.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.IRequestCheckTx, + callback: tendermint.abci.ABCIApplication.CheckTxCallback, + ): void; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @returns Promise + */ + public checkTx(request: tendermint.abci.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.IRequestQuery, + callback: tendermint.abci.ABCIApplication.QueryCallback, + ): void; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @returns Promise + */ + public query(request: tendermint.abci.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.IRequestCommit, + callback: tendermint.abci.ABCIApplication.CommitCallback, + ): void; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @returns Promise + */ + public commit(request: tendermint.abci.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.IRequestInitChain, + callback: tendermint.abci.ABCIApplication.InitChainCallback, + ): void; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @returns Promise + */ + public initChain( + request: tendermint.abci.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.IRequestBeginBlock, + callback: tendermint.abci.ABCIApplication.BeginBlockCallback, + ): void; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @returns Promise + */ + public beginBlock( + request: tendermint.abci.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.IRequestEndBlock, + callback: tendermint.abci.ABCIApplication.EndBlockCallback, + ): void; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @returns Promise + */ + public endBlock(request: tendermint.abci.IRequestEndBlock): Promise; + + /** + * Calls ListSnapshots. + * @param request RequestListSnapshots message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseListSnapshots + */ + public listSnapshots( + request: tendermint.abci.IRequestListSnapshots, + callback: tendermint.abci.ABCIApplication.ListSnapshotsCallback, + ): void; + + /** + * Calls ListSnapshots. + * @param request RequestListSnapshots message or plain object + * @returns Promise + */ + public listSnapshots( + request: tendermint.abci.IRequestListSnapshots, + ): Promise; + + /** + * Calls OfferSnapshot. + * @param request RequestOfferSnapshot message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseOfferSnapshot + */ + public offerSnapshot( + request: tendermint.abci.IRequestOfferSnapshot, + callback: tendermint.abci.ABCIApplication.OfferSnapshotCallback, + ): void; + + /** + * Calls OfferSnapshot. + * @param request RequestOfferSnapshot message or plain object + * @returns Promise + */ + public offerSnapshot( + request: tendermint.abci.IRequestOfferSnapshot, + ): Promise; + + /** + * Calls LoadSnapshotChunk. + * @param request RequestLoadSnapshotChunk message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseLoadSnapshotChunk + */ + public loadSnapshotChunk( + request: tendermint.abci.IRequestLoadSnapshotChunk, + callback: tendermint.abci.ABCIApplication.LoadSnapshotChunkCallback, + ): void; + + /** + * Calls LoadSnapshotChunk. + * @param request RequestLoadSnapshotChunk message or plain object + * @returns Promise + */ + public loadSnapshotChunk( + request: tendermint.abci.IRequestLoadSnapshotChunk, + ): Promise; + + /** + * Calls ApplySnapshotChunk. + * @param request RequestApplySnapshotChunk message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseApplySnapshotChunk + */ + public applySnapshotChunk( + request: tendermint.abci.IRequestApplySnapshotChunk, + callback: tendermint.abci.ABCIApplication.ApplySnapshotChunkCallback, + ): void; + + /** + * Calls ApplySnapshotChunk. + * @param request RequestApplySnapshotChunk message or plain object + * @returns Promise + */ + public applySnapshotChunk( + request: tendermint.abci.IRequestApplySnapshotChunk, + ): Promise; + } + + namespace ABCIApplication { + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#echo}. + * @param error Error, if any + * @param [response] ResponseEcho + */ + type EchoCallback = (error: Error | null, response?: tendermint.abci.ResponseEcho) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#flush}. + * @param error Error, if any + * @param [response] ResponseFlush + */ + type FlushCallback = (error: Error | null, response?: tendermint.abci.ResponseFlush) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#info}. + * @param error Error, if any + * @param [response] ResponseInfo + */ + type InfoCallback = (error: Error | null, response?: tendermint.abci.ResponseInfo) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#setOption}. + * @param error Error, if any + * @param [response] ResponseSetOption + */ + type SetOptionCallback = (error: Error | null, response?: tendermint.abci.ResponseSetOption) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#deliverTx}. + * @param error Error, if any + * @param [response] ResponseDeliverTx + */ + type DeliverTxCallback = (error: Error | null, response?: tendermint.abci.ResponseDeliverTx) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#checkTx}. + * @param error Error, if any + * @param [response] ResponseCheckTx + */ + type CheckTxCallback = (error: Error | null, response?: tendermint.abci.ResponseCheckTx) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#query}. + * @param error Error, if any + * @param [response] ResponseQuery + */ + type QueryCallback = (error: Error | null, response?: tendermint.abci.ResponseQuery) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#commit}. + * @param error Error, if any + * @param [response] ResponseCommit + */ + type CommitCallback = (error: Error | null, response?: tendermint.abci.ResponseCommit) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#initChain}. + * @param error Error, if any + * @param [response] ResponseInitChain + */ + type InitChainCallback = (error: Error | null, response?: tendermint.abci.ResponseInitChain) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#beginBlock}. + * @param error Error, if any + * @param [response] ResponseBeginBlock + */ + type BeginBlockCallback = (error: Error | null, response?: tendermint.abci.ResponseBeginBlock) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#endBlock}. + * @param error Error, if any + * @param [response] ResponseEndBlock + */ + type EndBlockCallback = (error: Error | null, response?: tendermint.abci.ResponseEndBlock) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#listSnapshots}. + * @param error Error, if any + * @param [response] ResponseListSnapshots + */ + type ListSnapshotsCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseListSnapshots, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#offerSnapshot}. + * @param error Error, if any + * @param [response] ResponseOfferSnapshot + */ + type OfferSnapshotCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseOfferSnapshot, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#loadSnapshotChunk}. + * @param error Error, if any + * @param [response] ResponseLoadSnapshotChunk + */ + type LoadSnapshotChunkCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseLoadSnapshotChunk, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#applySnapshotChunk}. + * @param error Error, if any + * @param [response] ResponseApplySnapshotChunk + */ + type ApplySnapshotChunkCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseApplySnapshotChunk, + ) => void; + } + } + /** Namespace crypto. */ namespace crypto { /** Properties of a PublicKey. */ @@ -12401,6 +16114,312 @@ export namespace tendermint { /** Namespace types. */ namespace types { + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.types.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version */ + version?: tendermint.types.IVersionParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.types.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version. */ + public version?: tendermint.types.IVersionParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create(properties?: tendermint.types.IConsensusParams): tendermint.types.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.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.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.types.ConsensusParams; + } + + /** Properties of a BlockParams. */ + interface IBlockParams { + /** BlockParams maxBytes */ + maxBytes?: Long | null; + + /** BlockParams maxGas */ + maxGas?: Long | null; + + /** BlockParams timeIotaMs */ + timeIotaMs?: Long | null; + } + + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { + /** + * Constructs a new BlockParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IBlockParams); + + /** BlockParams maxBytes. */ + public maxBytes: Long; + + /** BlockParams maxGas. */ + public maxGas: Long; + + /** BlockParams timeIotaMs. */ + public timeIotaMs: Long; + + /** + * Creates a new BlockParams instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockParams instance + */ + public static create(properties?: tendermint.types.IBlockParams): tendermint.types.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.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.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.types.BlockParams; + } + + /** Properties of an EvidenceParams. */ + interface IEvidenceParams { + /** EvidenceParams maxAgeNumBlocks */ + maxAgeNumBlocks?: Long | null; + + /** EvidenceParams maxAgeDuration */ + maxAgeDuration?: google.protobuf.IDuration | null; + + /** EvidenceParams maxBytes */ + maxBytes?: Long | null; + } + + /** Represents an EvidenceParams. */ + class EvidenceParams implements IEvidenceParams { + /** + * Constructs a new EvidenceParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IEvidenceParams); + + /** EvidenceParams maxAgeNumBlocks. */ + public maxAgeNumBlocks: Long; + + /** EvidenceParams maxAgeDuration. */ + public maxAgeDuration?: google.protobuf.IDuration | null; + + /** EvidenceParams maxBytes. */ + public maxBytes: Long; + + /** + * Creates a new EvidenceParams instance using the specified properties. + * @param [properties] Properties to set + * @returns EvidenceParams instance + */ + public static create(properties?: tendermint.types.IEvidenceParams): tendermint.types.EvidenceParams; + + /** + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.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.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.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.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.types.IValidatorParams): tendermint.types.ValidatorParams; + + /** + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.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.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.types.ValidatorParams; + } + + /** Properties of a VersionParams. */ + interface IVersionParams { + /** VersionParams appVersion */ + appVersion?: Long | null; + } + + /** Represents a VersionParams. */ + class VersionParams implements IVersionParams { + /** + * Constructs a new VersionParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IVersionParams); + + /** VersionParams appVersion. */ + public appVersion: Long; + + /** + * Creates a new VersionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionParams instance + */ + public static create(properties?: tendermint.types.IVersionParams): tendermint.types.VersionParams; + + /** + * Encodes the specified VersionParams message. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. + * @param m VersionParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.types.IVersionParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VersionParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns VersionParams + * @throws {Error} If the payload is 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.types.VersionParams; + } + + /** Properties of a HashedParams. */ + interface IHashedParams { + /** HashedParams blockMaxBytes */ + blockMaxBytes?: Long | null; + + /** HashedParams blockMaxGas */ + blockMaxGas?: Long | null; + } + + /** Represents a HashedParams. */ + class HashedParams implements IHashedParams { + /** + * Constructs a new HashedParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IHashedParams); + + /** HashedParams blockMaxBytes. */ + public blockMaxBytes: Long; + + /** HashedParams blockMaxGas. */ + public blockMaxGas: Long; + + /** + * Creates a new HashedParams instance using the specified properties. + * @param [properties] Properties to set + * @returns HashedParams instance + */ + public static create(properties?: tendermint.types.IHashedParams): tendermint.types.HashedParams; + + /** + * Encodes the specified HashedParams message. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. + * @param m HashedParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.types.IHashedParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HashedParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns HashedParams + * @throws {Error} If the payload is 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.types.HashedParams; + } + /** BlockIDFlag enum. */ enum BlockIDFlag { BLOCK_ID_FLAG_UNKNOWN = 0, diff --git a/packages/stargate/src/codec/generated/codecimpl.js b/packages/stargate/src/codec/generated/codecimpl.js index 4f945ddd..4765cdf1 100644 --- a/packages/stargate/src/codec/generated/codecimpl.js +++ b/packages/stargate/src/codec/generated/codecimpl.js @@ -1299,6 +1299,523 @@ exports.cosmos = $root.cosmos = (() => { })(); cosmos.base = (function () { const base = {}; + base.abci = (function () { + const abci = {}; + abci.v1beta1 = (function () { + const v1beta1 = {}; + v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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; + })(); + v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.StringEvent.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ABCIMessageLog; + })(); + v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.Attribute.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return StringEvent; + })(); + v1beta1.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.base.abci.v1beta1.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; + })(); + v1beta1.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.base.abci.v1beta1.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; + })(); + v1beta1.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.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.base.abci.v1beta1.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.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Result; + })(); + v1beta1.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.base.abci.v1beta1.GasInfo.encode(m.gasInfo, w.uint32(10).fork()).ldelim(); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) + $root.cosmos.base.abci.v1beta1.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.base.abci.v1beta1.SimulationResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.gasInfo = $root.cosmos.base.abci.v1beta1.GasInfo.decode(r, r.uint32()); + break; + case 2: + m.result = $root.cosmos.base.abci.v1beta1.Result.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SimulationResponse; + })(); + v1beta1.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.base.abci.v1beta1.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; + })(); + v1beta1.TxMsgData = (function () { + function TxMsgData(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]]; + } + TxMsgData.prototype.data = $util.emptyArray; + TxMsgData.create = function create(properties) { + return new TxMsgData(properties); + }; + TxMsgData.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.base.abci.v1beta1.MsgData.encode(m.data[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + TxMsgData.decode = 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.abci.v1beta1.TxMsgData(); + 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.base.abci.v1beta1.MsgData.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxMsgData; + })(); + v1beta1.SearchTxsResult = (function () { + function SearchTxsResult(p) { + this.txs = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SearchTxsResult.prototype.totalCount = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SearchTxsResult.prototype.count = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SearchTxsResult.prototype.pageNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SearchTxsResult.prototype.pageTotal = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SearchTxsResult.prototype.limit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SearchTxsResult.prototype.txs = $util.emptyArray; + SearchTxsResult.create = function create(properties) { + return new SearchTxsResult(properties); + }; + SearchTxsResult.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.totalCount != null && Object.hasOwnProperty.call(m, "totalCount")) + w.uint32(8).uint64(m.totalCount); + if (m.count != null && Object.hasOwnProperty.call(m, "count")) w.uint32(16).uint64(m.count); + if (m.pageNumber != null && Object.hasOwnProperty.call(m, "pageNumber")) + w.uint32(24).uint64(m.pageNumber); + if (m.pageTotal != null && Object.hasOwnProperty.call(m, "pageTotal")) + w.uint32(32).uint64(m.pageTotal); + if (m.limit != null && Object.hasOwnProperty.call(m, "limit")) w.uint32(40).uint64(m.limit); + if (m.txs != null && m.txs.length) { + for (var i = 0; i < m.txs.length; ++i) + $root.cosmos.base.abci.v1beta1.TxResponse.encode(m.txs[i], w.uint32(50).fork()).ldelim(); + } + return w; + }; + SearchTxsResult.decode = 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.abci.v1beta1.SearchTxsResult(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.totalCount = r.uint64(); + break; + case 2: + m.count = r.uint64(); + break; + case 3: + m.pageNumber = r.uint64(); + break; + case 4: + m.pageTotal = r.uint64(); + break; + case 5: + m.limit = r.uint64(); + break; + case 6: + if (!(m.txs && m.txs.length)) m.txs = []; + m.txs.push($root.cosmos.base.abci.v1beta1.TxResponse.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SearchTxsResult; + })(); + return v1beta1; + })(); + return abci; + })(); base.query = (function () { const query = {}; query.v1beta1 = (function () { @@ -9361,6 +9878,2450 @@ exports.ibc = $root.ibc = (() => { })(); exports.tendermint = $root.tendermint = (() => { const tendermint = {}; + tendermint.abci = (function () { + const abci = {}; + abci.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; + Request.prototype.listSnapshots = null; + Request.prototype.offerSnapshot = null; + Request.prototype.loadSnapshotChunk = null; + Request.prototype.applySnapshotChunk = null; + let $oneOfFields; + Object.defineProperty(Request.prototype, "value", { + get: $util.oneOfGetter( + ($oneOfFields = [ + "echo", + "flush", + "info", + "setOption", + "initChain", + "query", + "beginBlock", + "checkTx", + "deliverTx", + "endBlock", + "commit", + "listSnapshots", + "offerSnapshot", + "loadSnapshotChunk", + "applySnapshotChunk", + ]), + ), + 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.RequestEcho.encode(m.echo, w.uint32(10).fork()).ldelim(); + if (m.flush != null && Object.hasOwnProperty.call(m, "flush")) + $root.tendermint.abci.RequestFlush.encode(m.flush, w.uint32(18).fork()).ldelim(); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) + $root.tendermint.abci.RequestInfo.encode(m.info, w.uint32(26).fork()).ldelim(); + if (m.setOption != null && Object.hasOwnProperty.call(m, "setOption")) + $root.tendermint.abci.RequestSetOption.encode(m.setOption, w.uint32(34).fork()).ldelim(); + if (m.initChain != null && Object.hasOwnProperty.call(m, "initChain")) + $root.tendermint.abci.RequestInitChain.encode(m.initChain, w.uint32(42).fork()).ldelim(); + if (m.query != null && Object.hasOwnProperty.call(m, "query")) + $root.tendermint.abci.RequestQuery.encode(m.query, w.uint32(50).fork()).ldelim(); + if (m.beginBlock != null && Object.hasOwnProperty.call(m, "beginBlock")) + $root.tendermint.abci.RequestBeginBlock.encode(m.beginBlock, w.uint32(58).fork()).ldelim(); + if (m.checkTx != null && Object.hasOwnProperty.call(m, "checkTx")) + $root.tendermint.abci.RequestCheckTx.encode(m.checkTx, w.uint32(66).fork()).ldelim(); + if (m.deliverTx != null && Object.hasOwnProperty.call(m, "deliverTx")) + $root.tendermint.abci.RequestDeliverTx.encode(m.deliverTx, w.uint32(74).fork()).ldelim(); + if (m.endBlock != null && Object.hasOwnProperty.call(m, "endBlock")) + $root.tendermint.abci.RequestEndBlock.encode(m.endBlock, w.uint32(82).fork()).ldelim(); + if (m.commit != null && Object.hasOwnProperty.call(m, "commit")) + $root.tendermint.abci.RequestCommit.encode(m.commit, w.uint32(90).fork()).ldelim(); + if (m.listSnapshots != null && Object.hasOwnProperty.call(m, "listSnapshots")) + $root.tendermint.abci.RequestListSnapshots.encode(m.listSnapshots, w.uint32(98).fork()).ldelim(); + if (m.offerSnapshot != null && Object.hasOwnProperty.call(m, "offerSnapshot")) + $root.tendermint.abci.RequestOfferSnapshot.encode(m.offerSnapshot, w.uint32(106).fork()).ldelim(); + if (m.loadSnapshotChunk != null && Object.hasOwnProperty.call(m, "loadSnapshotChunk")) + $root.tendermint.abci.RequestLoadSnapshotChunk.encode( + m.loadSnapshotChunk, + w.uint32(114).fork(), + ).ldelim(); + if (m.applySnapshotChunk != null && Object.hasOwnProperty.call(m, "applySnapshotChunk")) + $root.tendermint.abci.RequestApplySnapshotChunk.encode( + m.applySnapshotChunk, + w.uint32(122).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.Request(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.echo = $root.tendermint.abci.RequestEcho.decode(r, r.uint32()); + break; + case 2: + m.flush = $root.tendermint.abci.RequestFlush.decode(r, r.uint32()); + break; + case 3: + m.info = $root.tendermint.abci.RequestInfo.decode(r, r.uint32()); + break; + case 4: + m.setOption = $root.tendermint.abci.RequestSetOption.decode(r, r.uint32()); + break; + case 5: + m.initChain = $root.tendermint.abci.RequestInitChain.decode(r, r.uint32()); + break; + case 6: + m.query = $root.tendermint.abci.RequestQuery.decode(r, r.uint32()); + break; + case 7: + m.beginBlock = $root.tendermint.abci.RequestBeginBlock.decode(r, r.uint32()); + break; + case 8: + m.checkTx = $root.tendermint.abci.RequestCheckTx.decode(r, r.uint32()); + break; + case 9: + m.deliverTx = $root.tendermint.abci.RequestDeliverTx.decode(r, r.uint32()); + break; + case 10: + m.endBlock = $root.tendermint.abci.RequestEndBlock.decode(r, r.uint32()); + break; + case 11: + m.commit = $root.tendermint.abci.RequestCommit.decode(r, r.uint32()); + break; + case 12: + m.listSnapshots = $root.tendermint.abci.RequestListSnapshots.decode(r, r.uint32()); + break; + case 13: + m.offerSnapshot = $root.tendermint.abci.RequestOfferSnapshot.decode(r, r.uint32()); + break; + case 14: + m.loadSnapshotChunk = $root.tendermint.abci.RequestLoadSnapshotChunk.decode(r, r.uint32()); + break; + case 15: + m.applySnapshotChunk = $root.tendermint.abci.RequestApplySnapshotChunk.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Request; + })(); + abci.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.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 m; + }; + return RequestEcho; + })(); + abci.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.RequestFlush(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestFlush; + })(); + abci.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.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; + })(); + abci.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.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; + })(); + abci.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.prototype.initialHeight = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + 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.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.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); + if (m.initialHeight != null && Object.hasOwnProperty.call(m, "initialHeight")) + w.uint32(48).int64(m.initialHeight); + 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.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.ConsensusParams.decode(r, r.uint32()); + break; + case 4: + if (!(m.validators && m.validators.length)) m.validators = []; + m.validators.push($root.tendermint.abci.ValidatorUpdate.decode(r, r.uint32())); + break; + case 5: + m.appStateBytes = r.bytes(); + break; + case 6: + m.initialHeight = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestInitChain; + })(); + abci.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.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; + })(); + abci.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.types.Header.encode(m.header, w.uint32(18).fork()).ldelim(); + if (m.lastCommitInfo != null && Object.hasOwnProperty.call(m, "lastCommitInfo")) + $root.tendermint.abci.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.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.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.types.Header.decode(r, r.uint32()); + break; + case 3: + m.lastCommitInfo = $root.tendermint.abci.LastCommitInfo.decode(r, r.uint32()); + break; + case 4: + if (!(m.byzantineValidators && m.byzantineValidators.length)) m.byzantineValidators = []; + m.byzantineValidators.push($root.tendermint.abci.Evidence.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestBeginBlock; + })(); + abci.CheckTxType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "NEW")] = 0; + values[(valuesById[1] = "RECHECK")] = 1; + return values; + })(); + abci.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.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; + })(); + abci.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.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; + })(); + abci.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.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; + })(); + abci.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.RequestCommit(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestCommit; + })(); + abci.RequestListSnapshots = (function () { + function RequestListSnapshots(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestListSnapshots.create = function create(properties) { + return new RequestListSnapshots(properties); + }; + RequestListSnapshots.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + RequestListSnapshots.decode = 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.RequestListSnapshots(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestListSnapshots; + })(); + abci.RequestOfferSnapshot = (function () { + function RequestOfferSnapshot(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestOfferSnapshot.prototype.snapshot = null; + RequestOfferSnapshot.prototype.appHash = $util.newBuffer([]); + RequestOfferSnapshot.create = function create(properties) { + return new RequestOfferSnapshot(properties); + }; + RequestOfferSnapshot.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.snapshot != null && Object.hasOwnProperty.call(m, "snapshot")) + $root.tendermint.abci.Snapshot.encode(m.snapshot, w.uint32(10).fork()).ldelim(); + if (m.appHash != null && Object.hasOwnProperty.call(m, "appHash")) w.uint32(18).bytes(m.appHash); + return w; + }; + RequestOfferSnapshot.decode = 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.RequestOfferSnapshot(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.snapshot = $root.tendermint.abci.Snapshot.decode(r, r.uint32()); + break; + case 2: + m.appHash = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestOfferSnapshot; + })(); + abci.RequestLoadSnapshotChunk = (function () { + function RequestLoadSnapshotChunk(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestLoadSnapshotChunk.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + RequestLoadSnapshotChunk.prototype.format = 0; + RequestLoadSnapshotChunk.prototype.chunk = 0; + RequestLoadSnapshotChunk.create = function create(properties) { + return new RequestLoadSnapshotChunk(properties); + }; + RequestLoadSnapshotChunk.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(8).uint64(m.height); + if (m.format != null && Object.hasOwnProperty.call(m, "format")) w.uint32(16).uint32(m.format); + if (m.chunk != null && Object.hasOwnProperty.call(m, "chunk")) w.uint32(24).uint32(m.chunk); + return w; + }; + RequestLoadSnapshotChunk.decode = 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.RequestLoadSnapshotChunk(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.height = r.uint64(); + break; + case 2: + m.format = r.uint32(); + break; + case 3: + m.chunk = r.uint32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestLoadSnapshotChunk; + })(); + abci.RequestApplySnapshotChunk = (function () { + function RequestApplySnapshotChunk(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestApplySnapshotChunk.prototype.index = 0; + RequestApplySnapshotChunk.prototype.chunk = $util.newBuffer([]); + RequestApplySnapshotChunk.prototype.sender = ""; + RequestApplySnapshotChunk.create = function create(properties) { + return new RequestApplySnapshotChunk(properties); + }; + RequestApplySnapshotChunk.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.index != null && Object.hasOwnProperty.call(m, "index")) w.uint32(8).uint32(m.index); + if (m.chunk != null && Object.hasOwnProperty.call(m, "chunk")) w.uint32(18).bytes(m.chunk); + if (m.sender != null && Object.hasOwnProperty.call(m, "sender")) w.uint32(26).string(m.sender); + return w; + }; + RequestApplySnapshotChunk.decode = 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.RequestApplySnapshotChunk(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.index = r.uint32(); + break; + case 2: + m.chunk = r.bytes(); + break; + case 3: + m.sender = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestApplySnapshotChunk; + })(); + abci.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; + Response.prototype.listSnapshots = null; + Response.prototype.offerSnapshot = null; + Response.prototype.loadSnapshotChunk = null; + Response.prototype.applySnapshotChunk = null; + let $oneOfFields; + Object.defineProperty(Response.prototype, "value", { + get: $util.oneOfGetter( + ($oneOfFields = [ + "exception", + "echo", + "flush", + "info", + "setOption", + "initChain", + "query", + "beginBlock", + "checkTx", + "deliverTx", + "endBlock", + "commit", + "listSnapshots", + "offerSnapshot", + "loadSnapshotChunk", + "applySnapshotChunk", + ]), + ), + 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.ResponseException.encode(m.exception, w.uint32(10).fork()).ldelim(); + if (m.echo != null && Object.hasOwnProperty.call(m, "echo")) + $root.tendermint.abci.ResponseEcho.encode(m.echo, w.uint32(18).fork()).ldelim(); + if (m.flush != null && Object.hasOwnProperty.call(m, "flush")) + $root.tendermint.abci.ResponseFlush.encode(m.flush, w.uint32(26).fork()).ldelim(); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) + $root.tendermint.abci.ResponseInfo.encode(m.info, w.uint32(34).fork()).ldelim(); + if (m.setOption != null && Object.hasOwnProperty.call(m, "setOption")) + $root.tendermint.abci.ResponseSetOption.encode(m.setOption, w.uint32(42).fork()).ldelim(); + if (m.initChain != null && Object.hasOwnProperty.call(m, "initChain")) + $root.tendermint.abci.ResponseInitChain.encode(m.initChain, w.uint32(50).fork()).ldelim(); + if (m.query != null && Object.hasOwnProperty.call(m, "query")) + $root.tendermint.abci.ResponseQuery.encode(m.query, w.uint32(58).fork()).ldelim(); + if (m.beginBlock != null && Object.hasOwnProperty.call(m, "beginBlock")) + $root.tendermint.abci.ResponseBeginBlock.encode(m.beginBlock, w.uint32(66).fork()).ldelim(); + if (m.checkTx != null && Object.hasOwnProperty.call(m, "checkTx")) + $root.tendermint.abci.ResponseCheckTx.encode(m.checkTx, w.uint32(74).fork()).ldelim(); + if (m.deliverTx != null && Object.hasOwnProperty.call(m, "deliverTx")) + $root.tendermint.abci.ResponseDeliverTx.encode(m.deliverTx, w.uint32(82).fork()).ldelim(); + if (m.endBlock != null && Object.hasOwnProperty.call(m, "endBlock")) + $root.tendermint.abci.ResponseEndBlock.encode(m.endBlock, w.uint32(90).fork()).ldelim(); + if (m.commit != null && Object.hasOwnProperty.call(m, "commit")) + $root.tendermint.abci.ResponseCommit.encode(m.commit, w.uint32(98).fork()).ldelim(); + if (m.listSnapshots != null && Object.hasOwnProperty.call(m, "listSnapshots")) + $root.tendermint.abci.ResponseListSnapshots.encode(m.listSnapshots, w.uint32(106).fork()).ldelim(); + if (m.offerSnapshot != null && Object.hasOwnProperty.call(m, "offerSnapshot")) + $root.tendermint.abci.ResponseOfferSnapshot.encode(m.offerSnapshot, w.uint32(114).fork()).ldelim(); + if (m.loadSnapshotChunk != null && Object.hasOwnProperty.call(m, "loadSnapshotChunk")) + $root.tendermint.abci.ResponseLoadSnapshotChunk.encode( + m.loadSnapshotChunk, + w.uint32(122).fork(), + ).ldelim(); + if (m.applySnapshotChunk != null && Object.hasOwnProperty.call(m, "applySnapshotChunk")) + $root.tendermint.abci.ResponseApplySnapshotChunk.encode( + m.applySnapshotChunk, + w.uint32(130).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.Response(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.exception = $root.tendermint.abci.ResponseException.decode(r, r.uint32()); + break; + case 2: + m.echo = $root.tendermint.abci.ResponseEcho.decode(r, r.uint32()); + break; + case 3: + m.flush = $root.tendermint.abci.ResponseFlush.decode(r, r.uint32()); + break; + case 4: + m.info = $root.tendermint.abci.ResponseInfo.decode(r, r.uint32()); + break; + case 5: + m.setOption = $root.tendermint.abci.ResponseSetOption.decode(r, r.uint32()); + break; + case 6: + m.initChain = $root.tendermint.abci.ResponseInitChain.decode(r, r.uint32()); + break; + case 7: + m.query = $root.tendermint.abci.ResponseQuery.decode(r, r.uint32()); + break; + case 8: + m.beginBlock = $root.tendermint.abci.ResponseBeginBlock.decode(r, r.uint32()); + break; + case 9: + m.checkTx = $root.tendermint.abci.ResponseCheckTx.decode(r, r.uint32()); + break; + case 10: + m.deliverTx = $root.tendermint.abci.ResponseDeliverTx.decode(r, r.uint32()); + break; + case 11: + m.endBlock = $root.tendermint.abci.ResponseEndBlock.decode(r, r.uint32()); + break; + case 12: + m.commit = $root.tendermint.abci.ResponseCommit.decode(r, r.uint32()); + break; + case 13: + m.listSnapshots = $root.tendermint.abci.ResponseListSnapshots.decode(r, r.uint32()); + break; + case 14: + m.offerSnapshot = $root.tendermint.abci.ResponseOfferSnapshot.decode(r, r.uint32()); + break; + case 15: + m.loadSnapshotChunk = $root.tendermint.abci.ResponseLoadSnapshotChunk.decode(r, r.uint32()); + break; + case 16: + m.applySnapshotChunk = $root.tendermint.abci.ResponseApplySnapshotChunk.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Response; + })(); + abci.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.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; + })(); + abci.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.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; + })(); + abci.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.ResponseFlush(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseFlush; + })(); + abci.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.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; + })(); + abci.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.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; + })(); + abci.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.prototype.appHash = $util.newBuffer([]); + 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.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.ValidatorUpdate.encode(m.validators[i], w.uint32(18).fork()).ldelim(); + } + if (m.appHash != null && Object.hasOwnProperty.call(m, "appHash")) w.uint32(26).bytes(m.appHash); + 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.ResponseInitChain(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.consensusParams = $root.tendermint.abci.ConsensusParams.decode(r, r.uint32()); + break; + case 2: + if (!(m.validators && m.validators.length)) m.validators = []; + m.validators.push($root.tendermint.abci.ValidatorUpdate.decode(r, r.uint32())); + break; + case 3: + m.appHash = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseInitChain; + })(); + abci.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.proofOps = 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.proofOps != null && Object.hasOwnProperty.call(m, "proofOps")) + $root.tendermint.crypto.ProofOps.encode(m.proofOps, 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.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.proofOps = $root.tendermint.crypto.ProofOps.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; + })(); + abci.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.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.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.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseBeginBlock; + })(); + abci.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.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.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.Event.decode(r, r.uint32())); + break; + case 8: + m.codespace = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseCheckTx; + })(); + abci.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.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.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.Event.decode(r, r.uint32())); + break; + case 8: + m.codespace = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseDeliverTx; + })(); + abci.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.ValidatorUpdate.encode(m.validatorUpdates[i], w.uint32(10).fork()).ldelim(); + } + if (m.consensusParamUpdates != null && Object.hasOwnProperty.call(m, "consensusParamUpdates")) + $root.tendermint.abci.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.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.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.ValidatorUpdate.decode(r, r.uint32())); + break; + case 2: + m.consensusParamUpdates = $root.tendermint.abci.ConsensusParams.decode(r, r.uint32()); + break; + case 3: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.tendermint.abci.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseEndBlock; + })(); + abci.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.prototype.retainHeight = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + 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); + if (m.retainHeight != null && Object.hasOwnProperty.call(m, "retainHeight")) + w.uint32(24).int64(m.retainHeight); + 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.ResponseCommit(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 2: + m.data = r.bytes(); + break; + case 3: + m.retainHeight = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseCommit; + })(); + abci.ResponseListSnapshots = (function () { + function ResponseListSnapshots(p) { + this.snapshots = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseListSnapshots.prototype.snapshots = $util.emptyArray; + ResponseListSnapshots.create = function create(properties) { + return new ResponseListSnapshots(properties); + }; + ResponseListSnapshots.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.snapshots != null && m.snapshots.length) { + for (var i = 0; i < m.snapshots.length; ++i) + $root.tendermint.abci.Snapshot.encode(m.snapshots[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + ResponseListSnapshots.decode = 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.ResponseListSnapshots(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.snapshots && m.snapshots.length)) m.snapshots = []; + m.snapshots.push($root.tendermint.abci.Snapshot.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseListSnapshots; + })(); + abci.ResponseOfferSnapshot = (function () { + function ResponseOfferSnapshot(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseOfferSnapshot.prototype.result = 0; + ResponseOfferSnapshot.create = function create(properties) { + return new ResponseOfferSnapshot(properties); + }; + ResponseOfferSnapshot.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) w.uint32(8).int32(m.result); + return w; + }; + ResponseOfferSnapshot.decode = 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.ResponseOfferSnapshot(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.result = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + ResponseOfferSnapshot.Result = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "UNKNOWN")] = 0; + values[(valuesById[1] = "ACCEPT")] = 1; + values[(valuesById[2] = "ABORT")] = 2; + values[(valuesById[3] = "REJECT")] = 3; + values[(valuesById[4] = "REJECT_FORMAT")] = 4; + values[(valuesById[5] = "REJECT_SENDER")] = 5; + return values; + })(); + return ResponseOfferSnapshot; + })(); + abci.ResponseLoadSnapshotChunk = (function () { + function ResponseLoadSnapshotChunk(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseLoadSnapshotChunk.prototype.chunk = $util.newBuffer([]); + ResponseLoadSnapshotChunk.create = function create(properties) { + return new ResponseLoadSnapshotChunk(properties); + }; + ResponseLoadSnapshotChunk.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.chunk != null && Object.hasOwnProperty.call(m, "chunk")) w.uint32(10).bytes(m.chunk); + return w; + }; + ResponseLoadSnapshotChunk.decode = 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.ResponseLoadSnapshotChunk(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.chunk = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseLoadSnapshotChunk; + })(); + abci.ResponseApplySnapshotChunk = (function () { + function ResponseApplySnapshotChunk(p) { + this.refetchChunks = []; + this.rejectSenders = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseApplySnapshotChunk.prototype.result = 0; + ResponseApplySnapshotChunk.prototype.refetchChunks = $util.emptyArray; + ResponseApplySnapshotChunk.prototype.rejectSenders = $util.emptyArray; + ResponseApplySnapshotChunk.create = function create(properties) { + return new ResponseApplySnapshotChunk(properties); + }; + ResponseApplySnapshotChunk.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) w.uint32(8).int32(m.result); + if (m.refetchChunks != null && m.refetchChunks.length) { + w.uint32(18).fork(); + for (var i = 0; i < m.refetchChunks.length; ++i) w.uint32(m.refetchChunks[i]); + w.ldelim(); + } + if (m.rejectSenders != null && m.rejectSenders.length) { + for (var i = 0; i < m.rejectSenders.length; ++i) w.uint32(26).string(m.rejectSenders[i]); + } + return w; + }; + ResponseApplySnapshotChunk.decode = 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.ResponseApplySnapshotChunk(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.result = r.int32(); + break; + case 2: + if (!(m.refetchChunks && m.refetchChunks.length)) m.refetchChunks = []; + if ((t & 7) === 2) { + var c2 = r.uint32() + r.pos; + while (r.pos < c2) m.refetchChunks.push(r.uint32()); + } else m.refetchChunks.push(r.uint32()); + break; + case 3: + if (!(m.rejectSenders && m.rejectSenders.length)) m.rejectSenders = []; + m.rejectSenders.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + ResponseApplySnapshotChunk.Result = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "UNKNOWN")] = 0; + values[(valuesById[1] = "ACCEPT")] = 1; + values[(valuesById[2] = "ABORT")] = 2; + values[(valuesById[3] = "RETRY")] = 3; + values[(valuesById[4] = "RETRY_SNAPSHOT")] = 4; + values[(valuesById[5] = "REJECT_SNAPSHOT")] = 5; + return values; + })(); + return ResponseApplySnapshotChunk; + })(); + abci.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.prototype.version = 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.BlockParams.encode(m.block, w.uint32(10).fork()).ldelim(); + if (m.evidence != null && Object.hasOwnProperty.call(m, "evidence")) + $root.tendermint.types.EvidenceParams.encode(m.evidence, w.uint32(18).fork()).ldelim(); + if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) + $root.tendermint.types.ValidatorParams.encode(m.validator, w.uint32(26).fork()).ldelim(); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) + $root.tendermint.types.VersionParams.encode(m.version, w.uint32(34).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.ConsensusParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.block = $root.tendermint.abci.BlockParams.decode(r, r.uint32()); + break; + case 2: + m.evidence = $root.tendermint.types.EvidenceParams.decode(r, r.uint32()); + break; + case 3: + m.validator = $root.tendermint.types.ValidatorParams.decode(r, r.uint32()); + break; + case 4: + m.version = $root.tendermint.types.VersionParams.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ConsensusParams; + })(); + abci.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.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; + })(); + abci.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.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.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.VoteInfo.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return LastCommitInfo; + })(); + abci.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.abci.EventAttribute.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.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.abci.EventAttribute.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Event; + })(); + abci.EventAttribute = (function () { + function EventAttribute(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + EventAttribute.prototype.key = $util.newBuffer([]); + EventAttribute.prototype.value = $util.newBuffer([]); + EventAttribute.prototype.index = false; + EventAttribute.create = function create(properties) { + return new EventAttribute(properties); + }; + EventAttribute.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); + if (m.index != null && Object.hasOwnProperty.call(m, "index")) w.uint32(24).bool(m.index); + return w; + }; + EventAttribute.decode = 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.EventAttribute(); + 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; + case 3: + m.index = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return EventAttribute; + })(); + abci.TxResult = (function () { + function TxResult(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + TxResult.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + TxResult.prototype.index = 0; + TxResult.prototype.tx = $util.newBuffer([]); + TxResult.prototype.result = null; + TxResult.create = function create(properties) { + return new TxResult(properties); + }; + TxResult.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.index != null && Object.hasOwnProperty.call(m, "index")) w.uint32(16).uint32(m.index); + if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) w.uint32(26).bytes(m.tx); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) + $root.tendermint.abci.ResponseDeliverTx.encode(m.result, w.uint32(34).fork()).ldelim(); + return w; + }; + TxResult.decode = 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.TxResult(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.height = r.int64(); + break; + case 2: + m.index = r.uint32(); + break; + case 3: + m.tx = r.bytes(); + break; + case 4: + m.result = $root.tendermint.abci.ResponseDeliverTx.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxResult; + })(); + abci.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.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; + })(); + abci.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.crypto.PublicKey.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.ValidatorUpdate(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.pubKey = $root.tendermint.crypto.PublicKey.decode(r, r.uint32()); + break; + case 2: + m.power = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ValidatorUpdate; + })(); + abci.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.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.VoteInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.validator = $root.tendermint.abci.Validator.decode(r, r.uint32()); + break; + case 2: + m.signedLastBlock = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return VoteInfo; + })(); + abci.EvidenceType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "UNKNOWN")] = 0; + values[(valuesById[1] = "DUPLICATE_VOTE")] = 1; + values[(valuesById[2] = "LIGHT_CLIENT_ATTACK")] = 2; + return values; + })(); + abci.Evidence = (function () { + function Evidence(p) { + if (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 = 0; + 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); + }; + Evidence.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(8).int32(m.type); + if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) + $root.tendermint.abci.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); + return w; + }; + Evidence.decode = 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.Evidence(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.int32(); + break; + case 2: + m.validator = $root.tendermint.abci.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; + })(); + abci.Snapshot = (function () { + function Snapshot(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Snapshot.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Snapshot.prototype.format = 0; + Snapshot.prototype.chunks = 0; + Snapshot.prototype.hash = $util.newBuffer([]); + Snapshot.prototype.metadata = $util.newBuffer([]); + Snapshot.create = function create(properties) { + return new Snapshot(properties); + }; + Snapshot.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(8).uint64(m.height); + if (m.format != null && Object.hasOwnProperty.call(m, "format")) w.uint32(16).uint32(m.format); + if (m.chunks != null && Object.hasOwnProperty.call(m, "chunks")) w.uint32(24).uint32(m.chunks); + if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(34).bytes(m.hash); + if (m.metadata != null && Object.hasOwnProperty.call(m, "metadata")) w.uint32(42).bytes(m.metadata); + return w; + }; + Snapshot.decode = 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.Snapshot(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.height = r.uint64(); + break; + case 2: + m.format = r.uint32(); + break; + case 3: + m.chunks = r.uint32(); + break; + case 4: + m.hash = r.bytes(); + break; + case 5: + m.metadata = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Snapshot; + })(); + abci.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.RequestEcho, + $root.tendermint.abci.ResponseEcho, + request, + callback, + ); + }), + "name", + { value: "Echo" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.flush = function flush(request, callback) { + return this.rpcCall( + flush, + $root.tendermint.abci.RequestFlush, + $root.tendermint.abci.ResponseFlush, + request, + callback, + ); + }), + "name", + { value: "Flush" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.info = function info(request, callback) { + return this.rpcCall( + info, + $root.tendermint.abci.RequestInfo, + $root.tendermint.abci.ResponseInfo, + request, + callback, + ); + }), + "name", + { value: "Info" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.setOption = function setOption(request, callback) { + return this.rpcCall( + setOption, + $root.tendermint.abci.RequestSetOption, + $root.tendermint.abci.ResponseSetOption, + request, + callback, + ); + }), + "name", + { value: "SetOption" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.deliverTx = function deliverTx(request, callback) { + return this.rpcCall( + deliverTx, + $root.tendermint.abci.RequestDeliverTx, + $root.tendermint.abci.ResponseDeliverTx, + request, + callback, + ); + }), + "name", + { value: "DeliverTx" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.checkTx = function checkTx(request, callback) { + return this.rpcCall( + checkTx, + $root.tendermint.abci.RequestCheckTx, + $root.tendermint.abci.ResponseCheckTx, + request, + callback, + ); + }), + "name", + { value: "CheckTx" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.query = function query(request, callback) { + return this.rpcCall( + query, + $root.tendermint.abci.RequestQuery, + $root.tendermint.abci.ResponseQuery, + request, + callback, + ); + }), + "name", + { value: "Query" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.commit = function commit(request, callback) { + return this.rpcCall( + commit, + $root.tendermint.abci.RequestCommit, + $root.tendermint.abci.ResponseCommit, + request, + callback, + ); + }), + "name", + { value: "Commit" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.initChain = function initChain(request, callback) { + return this.rpcCall( + initChain, + $root.tendermint.abci.RequestInitChain, + $root.tendermint.abci.ResponseInitChain, + request, + callback, + ); + }), + "name", + { value: "InitChain" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.beginBlock = function beginBlock(request, callback) { + return this.rpcCall( + beginBlock, + $root.tendermint.abci.RequestBeginBlock, + $root.tendermint.abci.ResponseBeginBlock, + request, + callback, + ); + }), + "name", + { value: "BeginBlock" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.endBlock = function endBlock(request, callback) { + return this.rpcCall( + endBlock, + $root.tendermint.abci.RequestEndBlock, + $root.tendermint.abci.ResponseEndBlock, + request, + callback, + ); + }), + "name", + { value: "EndBlock" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.listSnapshots = function listSnapshots(request, callback) { + return this.rpcCall( + listSnapshots, + $root.tendermint.abci.RequestListSnapshots, + $root.tendermint.abci.ResponseListSnapshots, + request, + callback, + ); + }), + "name", + { value: "ListSnapshots" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.offerSnapshot = function offerSnapshot(request, callback) { + return this.rpcCall( + offerSnapshot, + $root.tendermint.abci.RequestOfferSnapshot, + $root.tendermint.abci.ResponseOfferSnapshot, + request, + callback, + ); + }), + "name", + { value: "OfferSnapshot" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.loadSnapshotChunk = function loadSnapshotChunk(request, callback) { + return this.rpcCall( + loadSnapshotChunk, + $root.tendermint.abci.RequestLoadSnapshotChunk, + $root.tendermint.abci.ResponseLoadSnapshotChunk, + request, + callback, + ); + }), + "name", + { value: "LoadSnapshotChunk" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.applySnapshotChunk = function applySnapshotChunk(request, callback) { + return this.rpcCall( + applySnapshotChunk, + $root.tendermint.abci.RequestApplySnapshotChunk, + $root.tendermint.abci.ResponseApplySnapshotChunk, + request, + callback, + ); + }), + "name", + { value: "ApplySnapshotChunk" }, + ); + return ABCIApplication; + })(); + return abci; + })(); tendermint.crypto = (function () { const crypto = {}; crypto.PublicKey = (function () { @@ -9688,6 +12649,264 @@ exports.tendermint = $root.tendermint = (() => { })(); tendermint.types = (function () { const types = {}; + 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.prototype.version = 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.types.BlockParams.encode(m.block, w.uint32(10).fork()).ldelim(); + if (m.evidence != null && Object.hasOwnProperty.call(m, "evidence")) + $root.tendermint.types.EvidenceParams.encode(m.evidence, w.uint32(18).fork()).ldelim(); + if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) + $root.tendermint.types.ValidatorParams.encode(m.validator, w.uint32(26).fork()).ldelim(); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) + $root.tendermint.types.VersionParams.encode(m.version, w.uint32(34).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.types.ConsensusParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.block = $root.tendermint.types.BlockParams.decode(r, r.uint32()); + break; + case 2: + m.evidence = $root.tendermint.types.EvidenceParams.decode(r, r.uint32()); + break; + case 3: + m.validator = $root.tendermint.types.ValidatorParams.decode(r, r.uint32()); + break; + case 4: + m.version = $root.tendermint.types.VersionParams.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.prototype.timeIotaMs = $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); + if (m.timeIotaMs != null && Object.hasOwnProperty.call(m, "timeIotaMs")) + w.uint32(24).int64(m.timeIotaMs); + 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.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; + case 3: + m.timeIotaMs = 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.prototype.maxBytes = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + 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(); + if (m.maxBytes != null && Object.hasOwnProperty.call(m, "maxBytes")) w.uint32(24).int64(m.maxBytes); + 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.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; + case 3: + m.maxBytes = r.int64(); + 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.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.VersionParams = (function () { + function VersionParams(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + VersionParams.prototype.appVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + VersionParams.create = function create(properties) { + return new VersionParams(properties); + }; + VersionParams.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.appVersion != null && Object.hasOwnProperty.call(m, "appVersion")) + w.uint32(8).uint64(m.appVersion); + return w; + }; + VersionParams.decode = 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.types.VersionParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.appVersion = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return VersionParams; + })(); + types.HashedParams = (function () { + function HashedParams(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + HashedParams.prototype.blockMaxBytes = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + HashedParams.prototype.blockMaxGas = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + HashedParams.create = function create(properties) { + return new HashedParams(properties); + }; + HashedParams.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.blockMaxBytes != null && Object.hasOwnProperty.call(m, "blockMaxBytes")) + w.uint32(8).int64(m.blockMaxBytes); + if (m.blockMaxGas != null && Object.hasOwnProperty.call(m, "blockMaxGas")) + w.uint32(16).int64(m.blockMaxGas); + return w; + }; + HashedParams.decode = 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.types.HashedParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.blockMaxBytes = r.int64(); + break; + case 2: + m.blockMaxGas = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return HashedParams; + })(); types.BlockIDFlag = (function () { const valuesById = {}, values = Object.create(valuesById); diff --git a/packages/stargate/types/codec/generated/codecimpl.d.ts b/packages/stargate/types/codec/generated/codecimpl.d.ts index 7bc4c814..a77fe446 100644 --- a/packages/stargate/types/codec/generated/codecimpl.d.ts +++ b/packages/stargate/types/codec/generated/codecimpl.d.ts @@ -1796,6 +1796,660 @@ export namespace cosmos { /** Namespace base. */ namespace base { + /** Namespace abci. */ + namespace abci { + /** Namespace v1beta1. */ + namespace v1beta1 { + /** 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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.ITxResponse, + ): cosmos.base.abci.v1beta1.TxResponse; + + /** + * Encodes the specified TxResponse message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.TxResponse; + } + + /** Properties of a ABCIMessageLog. */ + interface IABCIMessageLog { + /** ABCIMessageLog msgIndex */ + msgIndex?: number | null; + + /** ABCIMessageLog log */ + log?: string | null; + + /** ABCIMessageLog events */ + events?: cosmos.base.abci.v1beta1.IStringEvent[] | null; + } + + /** Represents a ABCIMessageLog. */ + class ABCIMessageLog implements IABCIMessageLog { + /** + * Constructs a new ABCIMessageLog. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.IABCIMessageLog); + + /** ABCIMessageLog msgIndex. */ + public msgIndex: number; + + /** ABCIMessageLog log. */ + public log: string; + + /** ABCIMessageLog events. */ + public events: cosmos.base.abci.v1beta1.IStringEvent[]; + + /** + * Creates a new ABCIMessageLog instance using the specified properties. + * @param [properties] Properties to set + * @returns ABCIMessageLog instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.IABCIMessageLog, + ): cosmos.base.abci.v1beta1.ABCIMessageLog; + + /** + * Encodes the specified ABCIMessageLog message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.ABCIMessageLog; + } + + /** Properties of a StringEvent. */ + interface IStringEvent { + /** StringEvent type */ + type?: string | null; + + /** StringEvent attributes */ + attributes?: cosmos.base.abci.v1beta1.IAttribute[] | null; + } + + /** Represents a StringEvent. */ + class StringEvent implements IStringEvent { + /** + * Constructs a new StringEvent. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.IStringEvent); + + /** StringEvent type. */ + public type: string; + + /** StringEvent attributes. */ + public attributes: cosmos.base.abci.v1beta1.IAttribute[]; + + /** + * Creates a new StringEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StringEvent instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.IStringEvent, + ): cosmos.base.abci.v1beta1.StringEvent; + + /** + * Encodes the specified StringEvent message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.IAttribute, + ): cosmos.base.abci.v1beta1.Attribute; + + /** + * Encodes the specified Attribute message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.Attribute; + } + + /** 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.base.abci.v1beta1.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.base.abci.v1beta1.IGasInfo, + ): cosmos.base.abci.v1beta1.GasInfo; + + /** + * Encodes the specified GasInfo message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.GasInfo; + } + + /** Properties of a Result. */ + interface IResult { + /** Result data */ + data?: Uint8Array | null; + + /** Result log */ + log?: string | null; + + /** Result events */ + events?: tendermint.abci.IEvent[] | null; + } + + /** Represents a Result. */ + class Result implements IResult { + /** + * Constructs a new Result. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.IResult); + + /** Result data. */ + public data: Uint8Array; + + /** Result log. */ + public log: string; + + /** Result events. */ + public events: tendermint.abci.IEvent[]; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.IResult, + ): cosmos.base.abci.v1beta1.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.Result; + } + + /** Properties of a SimulationResponse. */ + interface ISimulationResponse { + /** SimulationResponse gasInfo */ + gasInfo?: cosmos.base.abci.v1beta1.IGasInfo | null; + + /** SimulationResponse result */ + result?: cosmos.base.abci.v1beta1.IResult | null; + } + + /** Represents a SimulationResponse. */ + class SimulationResponse implements ISimulationResponse { + /** + * Constructs a new SimulationResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.ISimulationResponse); + + /** SimulationResponse gasInfo. */ + public gasInfo?: cosmos.base.abci.v1beta1.IGasInfo | null; + + /** SimulationResponse result. */ + public result?: cosmos.base.abci.v1beta1.IResult | null; + + /** + * Creates a new SimulationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SimulationResponse instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.ISimulationResponse, + ): cosmos.base.abci.v1beta1.SimulationResponse; + + /** + * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.IMsgData, + ): cosmos.base.abci.v1beta1.MsgData; + + /** + * Encodes the specified MsgData message. Does not implicitly {@link cosmos.base.abci.v1beta1.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.base.abci.v1beta1.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.base.abci.v1beta1.MsgData; + } + + /** Properties of a TxMsgData. */ + interface ITxMsgData { + /** TxMsgData data */ + data?: cosmos.base.abci.v1beta1.IMsgData[] | null; + } + + /** Represents a TxMsgData. */ + class TxMsgData implements ITxMsgData { + /** + * Constructs a new TxMsgData. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.ITxMsgData); + + /** TxMsgData data. */ + public data: cosmos.base.abci.v1beta1.IMsgData[]; + + /** + * Creates a new TxMsgData instance using the specified properties. + * @param [properties] Properties to set + * @returns TxMsgData instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.ITxMsgData, + ): cosmos.base.abci.v1beta1.TxMsgData; + + /** + * Encodes the specified TxMsgData message. Does not implicitly {@link cosmos.base.abci.v1beta1.TxMsgData.verify|verify} messages. + * @param m TxMsgData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.abci.v1beta1.ITxMsgData, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a TxMsgData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxMsgData + * @throws {Error} If the payload is not 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.abci.v1beta1.TxMsgData; + } + + /** Properties of a SearchTxsResult. */ + interface ISearchTxsResult { + /** SearchTxsResult totalCount */ + totalCount?: Long | null; + + /** SearchTxsResult count */ + count?: Long | null; + + /** SearchTxsResult pageNumber */ + pageNumber?: Long | null; + + /** SearchTxsResult pageTotal */ + pageTotal?: Long | null; + + /** SearchTxsResult limit */ + limit?: Long | null; + + /** SearchTxsResult txs */ + txs?: cosmos.base.abci.v1beta1.ITxResponse[] | null; + } + + /** Represents a SearchTxsResult. */ + class SearchTxsResult implements ISearchTxsResult { + /** + * Constructs a new SearchTxsResult. + * @param [p] Properties to set + */ + constructor(p?: cosmos.base.abci.v1beta1.ISearchTxsResult); + + /** SearchTxsResult totalCount. */ + public totalCount: Long; + + /** SearchTxsResult count. */ + public count: Long; + + /** SearchTxsResult pageNumber. */ + public pageNumber: Long; + + /** SearchTxsResult pageTotal. */ + public pageTotal: Long; + + /** SearchTxsResult limit. */ + public limit: Long; + + /** SearchTxsResult txs. */ + public txs: cosmos.base.abci.v1beta1.ITxResponse[]; + + /** + * Creates a new SearchTxsResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTxsResult instance + */ + public static create( + properties?: cosmos.base.abci.v1beta1.ISearchTxsResult, + ): cosmos.base.abci.v1beta1.SearchTxsResult; + + /** + * Encodes the specified SearchTxsResult message. Does not implicitly {@link cosmos.base.abci.v1beta1.SearchTxsResult.verify|verify} messages. + * @param m SearchTxsResult message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.base.abci.v1beta1.ISearchTxsResult, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SearchTxsResult message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SearchTxsResult + * @throws {Error} If the payload is not 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.abci.v1beta1.SearchTxsResult; + } + } + } + /** Namespace query. */ namespace query { /** Namespace v1beta1. */ @@ -12026,6 +12680,3065 @@ export namespace ibc { /** Namespace tendermint. */ export namespace tendermint { + /** Namespace abci. */ + namespace abci { + /** Properties of a Request. */ + interface IRequest { + /** Request echo */ + echo?: tendermint.abci.IRequestEcho | null; + + /** Request flush */ + flush?: tendermint.abci.IRequestFlush | null; + + /** Request info */ + info?: tendermint.abci.IRequestInfo | null; + + /** Request setOption */ + setOption?: tendermint.abci.IRequestSetOption | null; + + /** Request initChain */ + initChain?: tendermint.abci.IRequestInitChain | null; + + /** Request query */ + query?: tendermint.abci.IRequestQuery | null; + + /** Request beginBlock */ + beginBlock?: tendermint.abci.IRequestBeginBlock | null; + + /** Request checkTx */ + checkTx?: tendermint.abci.IRequestCheckTx | null; + + /** Request deliverTx */ + deliverTx?: tendermint.abci.IRequestDeliverTx | null; + + /** Request endBlock */ + endBlock?: tendermint.abci.IRequestEndBlock | null; + + /** Request commit */ + commit?: tendermint.abci.IRequestCommit | null; + + /** Request listSnapshots */ + listSnapshots?: tendermint.abci.IRequestListSnapshots | null; + + /** Request offerSnapshot */ + offerSnapshot?: tendermint.abci.IRequestOfferSnapshot | null; + + /** Request loadSnapshotChunk */ + loadSnapshotChunk?: tendermint.abci.IRequestLoadSnapshotChunk | null; + + /** Request applySnapshotChunk */ + applySnapshotChunk?: tendermint.abci.IRequestApplySnapshotChunk | null; + } + + /** Represents a Request. */ + class Request implements IRequest { + /** + * Constructs a new Request. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequest); + + /** Request echo. */ + public echo?: tendermint.abci.IRequestEcho | null; + + /** Request flush. */ + public flush?: tendermint.abci.IRequestFlush | null; + + /** Request info. */ + public info?: tendermint.abci.IRequestInfo | null; + + /** Request setOption. */ + public setOption?: tendermint.abci.IRequestSetOption | null; + + /** Request initChain. */ + public initChain?: tendermint.abci.IRequestInitChain | null; + + /** Request query. */ + public query?: tendermint.abci.IRequestQuery | null; + + /** Request beginBlock. */ + public beginBlock?: tendermint.abci.IRequestBeginBlock | null; + + /** Request checkTx. */ + public checkTx?: tendermint.abci.IRequestCheckTx | null; + + /** Request deliverTx. */ + public deliverTx?: tendermint.abci.IRequestDeliverTx | null; + + /** Request endBlock. */ + public endBlock?: tendermint.abci.IRequestEndBlock | null; + + /** Request commit. */ + public commit?: tendermint.abci.IRequestCommit | null; + + /** Request listSnapshots. */ + public listSnapshots?: tendermint.abci.IRequestListSnapshots | null; + + /** Request offerSnapshot. */ + public offerSnapshot?: tendermint.abci.IRequestOfferSnapshot | null; + + /** Request loadSnapshotChunk. */ + public loadSnapshotChunk?: tendermint.abci.IRequestLoadSnapshotChunk | null; + + /** Request applySnapshotChunk. */ + public applySnapshotChunk?: tendermint.abci.IRequestApplySnapshotChunk | null; + + /** Request value. */ + public value?: + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit" + | "listSnapshots" + | "offerSnapshot" + | "loadSnapshotChunk" + | "applySnapshotChunk"; + + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: tendermint.abci.IRequest): tendermint.abci.Request; + + /** + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestEcho): tendermint.abci.RequestEcho; + + /** + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.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.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.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.IRequestFlush); + + /** + * Creates a new RequestFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestFlush instance + */ + public static create(properties?: tendermint.abci.IRequestFlush): tendermint.abci.RequestFlush; + + /** + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestInfo): tendermint.abci.RequestInfo; + + /** + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestSetOption): tendermint.abci.RequestSetOption; + + /** + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.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.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.RequestSetOption; + } + + /** Properties of a RequestInitChain. */ + interface IRequestInitChain { + /** RequestInitChain time */ + time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId */ + chainId?: string | null; + + /** RequestInitChain consensusParams */ + consensusParams?: tendermint.abci.IConsensusParams | null; + + /** RequestInitChain validators */ + validators?: tendermint.abci.IValidatorUpdate[] | null; + + /** RequestInitChain appStateBytes */ + appStateBytes?: Uint8Array | null; + + /** RequestInitChain initialHeight */ + initialHeight?: Long | null; + } + + /** Represents a RequestInitChain. */ + class RequestInitChain implements IRequestInitChain { + /** + * Constructs a new RequestInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestInitChain); + + /** RequestInitChain time. */ + public time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId. */ + public chainId: string; + + /** RequestInitChain consensusParams. */ + public consensusParams?: tendermint.abci.IConsensusParams | null; + + /** RequestInitChain validators. */ + public validators: tendermint.abci.IValidatorUpdate[]; + + /** RequestInitChain appStateBytes. */ + public appStateBytes: Uint8Array; + + /** RequestInitChain initialHeight. */ + public initialHeight: Long; + + /** + * Creates a new RequestInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInitChain instance + */ + public static create(properties?: tendermint.abci.IRequestInitChain): tendermint.abci.RequestInitChain; + + /** + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestQuery): tendermint.abci.RequestQuery; + + /** + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.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.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.RequestQuery; + } + + /** Properties of a RequestBeginBlock. */ + interface IRequestBeginBlock { + /** RequestBeginBlock hash */ + hash?: Uint8Array | null; + + /** RequestBeginBlock header */ + header?: tendermint.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo */ + lastCommitInfo?: tendermint.abci.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators */ + byzantineValidators?: tendermint.abci.IEvidence[] | null; + } + + /** Represents a RequestBeginBlock. */ + class RequestBeginBlock implements IRequestBeginBlock { + /** + * Constructs a new RequestBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestBeginBlock); + + /** RequestBeginBlock hash. */ + public hash: Uint8Array; + + /** RequestBeginBlock header. */ + public header?: tendermint.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo. */ + public lastCommitInfo?: tendermint.abci.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators. */ + public byzantineValidators: tendermint.abci.IEvidence[]; + + /** + * Creates a new RequestBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestBeginBlock instance + */ + public static create( + properties?: tendermint.abci.IRequestBeginBlock, + ): tendermint.abci.RequestBeginBlock; + + /** + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.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.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.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.CheckTxType | null; + } + + /** Represents a RequestCheckTx. */ + class RequestCheckTx implements IRequestCheckTx { + /** + * Constructs a new RequestCheckTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestCheckTx); + + /** RequestCheckTx tx. */ + public tx: Uint8Array; + + /** RequestCheckTx type. */ + public type: tendermint.abci.CheckTxType; + + /** + * Creates a new RequestCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCheckTx instance + */ + public static create(properties?: tendermint.abci.IRequestCheckTx): tendermint.abci.RequestCheckTx; + + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestDeliverTx): tendermint.abci.RequestDeliverTx; + + /** + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.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.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.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.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.IRequestEndBlock): tendermint.abci.RequestEndBlock; + + /** + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.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.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.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.IRequestCommit); + + /** + * Creates a new RequestCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCommit instance + */ + public static create(properties?: tendermint.abci.IRequestCommit): tendermint.abci.RequestCommit; + + /** + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.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.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.RequestCommit; + } + + /** Properties of a RequestListSnapshots. */ + interface IRequestListSnapshots {} + + /** Represents a RequestListSnapshots. */ + class RequestListSnapshots implements IRequestListSnapshots { + /** + * Constructs a new RequestListSnapshots. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestListSnapshots); + + /** + * Creates a new RequestListSnapshots instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestListSnapshots instance + */ + public static create( + properties?: tendermint.abci.IRequestListSnapshots, + ): tendermint.abci.RequestListSnapshots; + + /** + * Encodes the specified RequestListSnapshots message. Does not implicitly {@link tendermint.abci.RequestListSnapshots.verify|verify} messages. + * @param m RequestListSnapshots message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IRequestListSnapshots, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestListSnapshots message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestListSnapshots + * @throws {Error} If the payload is 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.RequestListSnapshots; + } + + /** Properties of a RequestOfferSnapshot. */ + interface IRequestOfferSnapshot { + /** RequestOfferSnapshot snapshot */ + snapshot?: tendermint.abci.ISnapshot | null; + + /** RequestOfferSnapshot appHash */ + appHash?: Uint8Array | null; + } + + /** Represents a RequestOfferSnapshot. */ + class RequestOfferSnapshot implements IRequestOfferSnapshot { + /** + * Constructs a new RequestOfferSnapshot. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestOfferSnapshot); + + /** RequestOfferSnapshot snapshot. */ + public snapshot?: tendermint.abci.ISnapshot | null; + + /** RequestOfferSnapshot appHash. */ + public appHash: Uint8Array; + + /** + * Creates a new RequestOfferSnapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestOfferSnapshot instance + */ + public static create( + properties?: tendermint.abci.IRequestOfferSnapshot, + ): tendermint.abci.RequestOfferSnapshot; + + /** + * Encodes the specified RequestOfferSnapshot message. Does not implicitly {@link tendermint.abci.RequestOfferSnapshot.verify|verify} messages. + * @param m RequestOfferSnapshot message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IRequestOfferSnapshot, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestOfferSnapshot message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestOfferSnapshot + * @throws {Error} If the payload is 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.RequestOfferSnapshot; + } + + /** Properties of a RequestLoadSnapshotChunk. */ + interface IRequestLoadSnapshotChunk { + /** RequestLoadSnapshotChunk height */ + height?: Long | null; + + /** RequestLoadSnapshotChunk format */ + format?: number | null; + + /** RequestLoadSnapshotChunk chunk */ + chunk?: number | null; + } + + /** Represents a RequestLoadSnapshotChunk. */ + class RequestLoadSnapshotChunk implements IRequestLoadSnapshotChunk { + /** + * Constructs a new RequestLoadSnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestLoadSnapshotChunk); + + /** RequestLoadSnapshotChunk height. */ + public height: Long; + + /** RequestLoadSnapshotChunk format. */ + public format: number; + + /** RequestLoadSnapshotChunk chunk. */ + public chunk: number; + + /** + * Creates a new RequestLoadSnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestLoadSnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IRequestLoadSnapshotChunk, + ): tendermint.abci.RequestLoadSnapshotChunk; + + /** + * Encodes the specified RequestLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestLoadSnapshotChunk.verify|verify} messages. + * @param m RequestLoadSnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IRequestLoadSnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestLoadSnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestLoadSnapshotChunk + * @throws {Error} If the payload is 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.RequestLoadSnapshotChunk; + } + + /** Properties of a RequestApplySnapshotChunk. */ + interface IRequestApplySnapshotChunk { + /** RequestApplySnapshotChunk index */ + index?: number | null; + + /** RequestApplySnapshotChunk chunk */ + chunk?: Uint8Array | null; + + /** RequestApplySnapshotChunk sender */ + sender?: string | null; + } + + /** Represents a RequestApplySnapshotChunk. */ + class RequestApplySnapshotChunk implements IRequestApplySnapshotChunk { + /** + * Constructs a new RequestApplySnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IRequestApplySnapshotChunk); + + /** RequestApplySnapshotChunk index. */ + public index: number; + + /** RequestApplySnapshotChunk chunk. */ + public chunk: Uint8Array; + + /** RequestApplySnapshotChunk sender. */ + public sender: string; + + /** + * Creates a new RequestApplySnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestApplySnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IRequestApplySnapshotChunk, + ): tendermint.abci.RequestApplySnapshotChunk; + + /** + * Encodes the specified RequestApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.RequestApplySnapshotChunk.verify|verify} messages. + * @param m RequestApplySnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IRequestApplySnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestApplySnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestApplySnapshotChunk + * @throws {Error} If the payload is 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.RequestApplySnapshotChunk; + } + + /** Properties of a Response. */ + interface IResponse { + /** Response exception */ + exception?: tendermint.abci.IResponseException | null; + + /** Response echo */ + echo?: tendermint.abci.IResponseEcho | null; + + /** Response flush */ + flush?: tendermint.abci.IResponseFlush | null; + + /** Response info */ + info?: tendermint.abci.IResponseInfo | null; + + /** Response setOption */ + setOption?: tendermint.abci.IResponseSetOption | null; + + /** Response initChain */ + initChain?: tendermint.abci.IResponseInitChain | null; + + /** Response query */ + query?: tendermint.abci.IResponseQuery | null; + + /** Response beginBlock */ + beginBlock?: tendermint.abci.IResponseBeginBlock | null; + + /** Response checkTx */ + checkTx?: tendermint.abci.IResponseCheckTx | null; + + /** Response deliverTx */ + deliverTx?: tendermint.abci.IResponseDeliverTx | null; + + /** Response endBlock */ + endBlock?: tendermint.abci.IResponseEndBlock | null; + + /** Response commit */ + commit?: tendermint.abci.IResponseCommit | null; + + /** Response listSnapshots */ + listSnapshots?: tendermint.abci.IResponseListSnapshots | null; + + /** Response offerSnapshot */ + offerSnapshot?: tendermint.abci.IResponseOfferSnapshot | null; + + /** Response loadSnapshotChunk */ + loadSnapshotChunk?: tendermint.abci.IResponseLoadSnapshotChunk | null; + + /** Response applySnapshotChunk */ + applySnapshotChunk?: tendermint.abci.IResponseApplySnapshotChunk | null; + } + + /** Represents a Response. */ + class Response implements IResponse { + /** + * Constructs a new Response. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponse); + + /** Response exception. */ + public exception?: tendermint.abci.IResponseException | null; + + /** Response echo. */ + public echo?: tendermint.abci.IResponseEcho | null; + + /** Response flush. */ + public flush?: tendermint.abci.IResponseFlush | null; + + /** Response info. */ + public info?: tendermint.abci.IResponseInfo | null; + + /** Response setOption. */ + public setOption?: tendermint.abci.IResponseSetOption | null; + + /** Response initChain. */ + public initChain?: tendermint.abci.IResponseInitChain | null; + + /** Response query. */ + public query?: tendermint.abci.IResponseQuery | null; + + /** Response beginBlock. */ + public beginBlock?: tendermint.abci.IResponseBeginBlock | null; + + /** Response checkTx. */ + public checkTx?: tendermint.abci.IResponseCheckTx | null; + + /** Response deliverTx. */ + public deliverTx?: tendermint.abci.IResponseDeliverTx | null; + + /** Response endBlock. */ + public endBlock?: tendermint.abci.IResponseEndBlock | null; + + /** Response commit. */ + public commit?: tendermint.abci.IResponseCommit | null; + + /** Response listSnapshots. */ + public listSnapshots?: tendermint.abci.IResponseListSnapshots | null; + + /** Response offerSnapshot. */ + public offerSnapshot?: tendermint.abci.IResponseOfferSnapshot | null; + + /** Response loadSnapshotChunk. */ + public loadSnapshotChunk?: tendermint.abci.IResponseLoadSnapshotChunk | null; + + /** Response applySnapshotChunk. */ + public applySnapshotChunk?: tendermint.abci.IResponseApplySnapshotChunk | null; + + /** Response value. */ + public value?: + | "exception" + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit" + | "listSnapshots" + | "offerSnapshot" + | "loadSnapshotChunk" + | "applySnapshotChunk"; + + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: tendermint.abci.IResponse): tendermint.abci.Response; + + /** + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseException, + ): tendermint.abci.ResponseException; + + /** + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseEcho): tendermint.abci.ResponseEcho; + + /** + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.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.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.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.IResponseFlush); + + /** + * Creates a new ResponseFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseFlush instance + */ + public static create(properties?: tendermint.abci.IResponseFlush): tendermint.abci.ResponseFlush; + + /** + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseInfo): tendermint.abci.ResponseInfo; + + /** + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.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.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.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.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.IResponseSetOption, + ): tendermint.abci.ResponseSetOption; + + /** + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.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.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.ResponseSetOption; + } + + /** Properties of a ResponseInitChain. */ + interface IResponseInitChain { + /** ResponseInitChain consensusParams */ + consensusParams?: tendermint.abci.IConsensusParams | null; + + /** ResponseInitChain validators */ + validators?: tendermint.abci.IValidatorUpdate[] | null; + + /** ResponseInitChain appHash */ + appHash?: Uint8Array | null; + } + + /** Represents a ResponseInitChain. */ + class ResponseInitChain implements IResponseInitChain { + /** + * Constructs a new ResponseInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseInitChain); + + /** ResponseInitChain consensusParams. */ + public consensusParams?: tendermint.abci.IConsensusParams | null; + + /** ResponseInitChain validators. */ + public validators: tendermint.abci.IValidatorUpdate[]; + + /** ResponseInitChain appHash. */ + public appHash: Uint8Array; + + /** + * Creates a new ResponseInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInitChain instance + */ + public static create( + properties?: tendermint.abci.IResponseInitChain, + ): tendermint.abci.ResponseInitChain; + + /** + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.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.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.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 proofOps */ + proofOps?: tendermint.crypto.IProofOps | 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.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 proofOps. */ + public proofOps?: tendermint.crypto.IProofOps | 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.IResponseQuery): tendermint.abci.ResponseQuery; + + /** + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.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.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.ResponseQuery; + } + + /** Properties of a ResponseBeginBlock. */ + interface IResponseBeginBlock { + /** ResponseBeginBlock events */ + events?: tendermint.abci.IEvent[] | null; + } + + /** Represents a ResponseBeginBlock. */ + class ResponseBeginBlock implements IResponseBeginBlock { + /** + * Constructs a new ResponseBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseBeginBlock); + + /** ResponseBeginBlock events. */ + public events: tendermint.abci.IEvent[]; + + /** + * Creates a new ResponseBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseBeginBlock instance + */ + public static create( + properties?: tendermint.abci.IResponseBeginBlock, + ): tendermint.abci.ResponseBeginBlock; + + /** + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.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.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.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.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.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.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.IResponseCheckTx): tendermint.abci.ResponseCheckTx; + + /** + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.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.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.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.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.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.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.IResponseDeliverTx, + ): tendermint.abci.ResponseDeliverTx; + + /** + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.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.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.ResponseDeliverTx; + } + + /** Properties of a ResponseEndBlock. */ + interface IResponseEndBlock { + /** ResponseEndBlock validatorUpdates */ + validatorUpdates?: tendermint.abci.IValidatorUpdate[] | null; + + /** ResponseEndBlock consensusParamUpdates */ + consensusParamUpdates?: tendermint.abci.IConsensusParams | null; + + /** ResponseEndBlock events */ + events?: tendermint.abci.IEvent[] | null; + } + + /** Represents a ResponseEndBlock. */ + class ResponseEndBlock implements IResponseEndBlock { + /** + * Constructs a new ResponseEndBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseEndBlock); + + /** ResponseEndBlock validatorUpdates. */ + public validatorUpdates: tendermint.abci.IValidatorUpdate[]; + + /** ResponseEndBlock consensusParamUpdates. */ + public consensusParamUpdates?: tendermint.abci.IConsensusParams | null; + + /** ResponseEndBlock events. */ + public events: tendermint.abci.IEvent[]; + + /** + * Creates a new ResponseEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEndBlock instance + */ + public static create(properties?: tendermint.abci.IResponseEndBlock): tendermint.abci.ResponseEndBlock; + + /** + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.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.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.ResponseEndBlock; + } + + /** Properties of a ResponseCommit. */ + interface IResponseCommit { + /** ResponseCommit data */ + data?: Uint8Array | null; + + /** ResponseCommit retainHeight */ + retainHeight?: Long | null; + } + + /** Represents a ResponseCommit. */ + class ResponseCommit implements IResponseCommit { + /** + * Constructs a new ResponseCommit. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseCommit); + + /** ResponseCommit data. */ + public data: Uint8Array; + + /** ResponseCommit retainHeight. */ + public retainHeight: Long; + + /** + * Creates a new ResponseCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCommit instance + */ + public static create(properties?: tendermint.abci.IResponseCommit): tendermint.abci.ResponseCommit; + + /** + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.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.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.ResponseCommit; + } + + /** Properties of a ResponseListSnapshots. */ + interface IResponseListSnapshots { + /** ResponseListSnapshots snapshots */ + snapshots?: tendermint.abci.ISnapshot[] | null; + } + + /** Represents a ResponseListSnapshots. */ + class ResponseListSnapshots implements IResponseListSnapshots { + /** + * Constructs a new ResponseListSnapshots. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseListSnapshots); + + /** ResponseListSnapshots snapshots. */ + public snapshots: tendermint.abci.ISnapshot[]; + + /** + * Creates a new ResponseListSnapshots instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseListSnapshots instance + */ + public static create( + properties?: tendermint.abci.IResponseListSnapshots, + ): tendermint.abci.ResponseListSnapshots; + + /** + * Encodes the specified ResponseListSnapshots message. Does not implicitly {@link tendermint.abci.ResponseListSnapshots.verify|verify} messages. + * @param m ResponseListSnapshots message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IResponseListSnapshots, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseListSnapshots message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseListSnapshots + * @throws {Error} If the payload is 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.ResponseListSnapshots; + } + + /** Properties of a ResponseOfferSnapshot. */ + interface IResponseOfferSnapshot { + /** ResponseOfferSnapshot result */ + result?: tendermint.abci.ResponseOfferSnapshot.Result | null; + } + + /** Represents a ResponseOfferSnapshot. */ + class ResponseOfferSnapshot implements IResponseOfferSnapshot { + /** + * Constructs a new ResponseOfferSnapshot. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseOfferSnapshot); + + /** ResponseOfferSnapshot result. */ + public result: tendermint.abci.ResponseOfferSnapshot.Result; + + /** + * Creates a new ResponseOfferSnapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseOfferSnapshot instance + */ + public static create( + properties?: tendermint.abci.IResponseOfferSnapshot, + ): tendermint.abci.ResponseOfferSnapshot; + + /** + * Encodes the specified ResponseOfferSnapshot message. Does not implicitly {@link tendermint.abci.ResponseOfferSnapshot.verify|verify} messages. + * @param m ResponseOfferSnapshot message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IResponseOfferSnapshot, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseOfferSnapshot message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseOfferSnapshot + * @throws {Error} If the payload is 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.ResponseOfferSnapshot; + } + + namespace ResponseOfferSnapshot { + /** Result enum. */ + enum Result { + UNKNOWN = 0, + ACCEPT = 1, + ABORT = 2, + REJECT = 3, + REJECT_FORMAT = 4, + REJECT_SENDER = 5, + } + } + + /** Properties of a ResponseLoadSnapshotChunk. */ + interface IResponseLoadSnapshotChunk { + /** ResponseLoadSnapshotChunk chunk */ + chunk?: Uint8Array | null; + } + + /** Represents a ResponseLoadSnapshotChunk. */ + class ResponseLoadSnapshotChunk implements IResponseLoadSnapshotChunk { + /** + * Constructs a new ResponseLoadSnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseLoadSnapshotChunk); + + /** ResponseLoadSnapshotChunk chunk. */ + public chunk: Uint8Array; + + /** + * Creates a new ResponseLoadSnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseLoadSnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IResponseLoadSnapshotChunk, + ): tendermint.abci.ResponseLoadSnapshotChunk; + + /** + * Encodes the specified ResponseLoadSnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseLoadSnapshotChunk.verify|verify} messages. + * @param m ResponseLoadSnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IResponseLoadSnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseLoadSnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseLoadSnapshotChunk + * @throws {Error} If the payload is 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.ResponseLoadSnapshotChunk; + } + + /** Properties of a ResponseApplySnapshotChunk. */ + interface IResponseApplySnapshotChunk { + /** ResponseApplySnapshotChunk result */ + result?: tendermint.abci.ResponseApplySnapshotChunk.Result | null; + + /** ResponseApplySnapshotChunk refetchChunks */ + refetchChunks?: number[] | null; + + /** ResponseApplySnapshotChunk rejectSenders */ + rejectSenders?: string[] | null; + } + + /** Represents a ResponseApplySnapshotChunk. */ + class ResponseApplySnapshotChunk implements IResponseApplySnapshotChunk { + /** + * Constructs a new ResponseApplySnapshotChunk. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IResponseApplySnapshotChunk); + + /** ResponseApplySnapshotChunk result. */ + public result: tendermint.abci.ResponseApplySnapshotChunk.Result; + + /** ResponseApplySnapshotChunk refetchChunks. */ + public refetchChunks: number[]; + + /** ResponseApplySnapshotChunk rejectSenders. */ + public rejectSenders: string[]; + + /** + * Creates a new ResponseApplySnapshotChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseApplySnapshotChunk instance + */ + public static create( + properties?: tendermint.abci.IResponseApplySnapshotChunk, + ): tendermint.abci.ResponseApplySnapshotChunk; + + /** + * Encodes the specified ResponseApplySnapshotChunk message. Does not implicitly {@link tendermint.abci.ResponseApplySnapshotChunk.verify|verify} messages. + * @param m ResponseApplySnapshotChunk message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.IResponseApplySnapshotChunk, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseApplySnapshotChunk message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseApplySnapshotChunk + * @throws {Error} If the payload is 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.ResponseApplySnapshotChunk; + } + + namespace ResponseApplySnapshotChunk { + /** Result enum. */ + enum Result { + UNKNOWN = 0, + ACCEPT = 1, + ABORT = 2, + RETRY = 3, + RETRY_SNAPSHOT = 4, + REJECT_SNAPSHOT = 5, + } + } + + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.abci.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version */ + version?: tendermint.types.IVersionParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.abci.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version. */ + public version?: tendermint.types.IVersionParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create(properties?: tendermint.abci.IConsensusParams): tendermint.abci.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.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.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.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.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.IBlockParams): tendermint.abci.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.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.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.BlockParams; + } + + /** Properties of a LastCommitInfo. */ + interface ILastCommitInfo { + /** LastCommitInfo round */ + round?: number | null; + + /** LastCommitInfo votes */ + votes?: tendermint.abci.IVoteInfo[] | null; + } + + /** Represents a LastCommitInfo. */ + class LastCommitInfo implements ILastCommitInfo { + /** + * Constructs a new LastCommitInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.ILastCommitInfo); + + /** LastCommitInfo round. */ + public round: number; + + /** LastCommitInfo votes. */ + public votes: tendermint.abci.IVoteInfo[]; + + /** + * Creates a new LastCommitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns LastCommitInfo instance + */ + public static create(properties?: tendermint.abci.ILastCommitInfo): tendermint.abci.LastCommitInfo; + + /** + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.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.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.LastCommitInfo; + } + + /** Properties of an Event. */ + interface IEvent { + /** Event type */ + type?: string | null; + + /** Event attributes */ + attributes?: tendermint.abci.IEventAttribute[] | null; + } + + /** Represents an Event. */ + class Event implements IEvent { + /** + * Constructs a new Event. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IEvent); + + /** Event type. */ + public type: string; + + /** Event attributes. */ + public attributes: tendermint.abci.IEventAttribute[]; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: tendermint.abci.IEvent): tendermint.abci.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.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.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.Event; + } + + /** Properties of an EventAttribute. */ + interface IEventAttribute { + /** EventAttribute key */ + key?: Uint8Array | null; + + /** EventAttribute value */ + value?: Uint8Array | null; + + /** EventAttribute index */ + index?: boolean | null; + } + + /** Represents an EventAttribute. */ + class EventAttribute implements IEventAttribute { + /** + * Constructs a new EventAttribute. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.IEventAttribute); + + /** EventAttribute key. */ + public key: Uint8Array; + + /** EventAttribute value. */ + public value: Uint8Array; + + /** EventAttribute index. */ + public index: boolean; + + /** + * Creates a new EventAttribute instance using the specified properties. + * @param [properties] Properties to set + * @returns EventAttribute instance + */ + public static create(properties?: tendermint.abci.IEventAttribute): tendermint.abci.EventAttribute; + + /** + * Encodes the specified EventAttribute message. Does not implicitly {@link tendermint.abci.EventAttribute.verify|verify} messages. + * @param m EventAttribute message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.IEventAttribute, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventAttribute message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns EventAttribute + * @throws {Error} If the payload is 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.EventAttribute; + } + + /** Properties of a TxResult. */ + interface ITxResult { + /** TxResult height */ + height?: Long | null; + + /** TxResult index */ + index?: number | null; + + /** TxResult tx */ + tx?: Uint8Array | null; + + /** TxResult result */ + result?: tendermint.abci.IResponseDeliverTx | null; + } + + /** Represents a TxResult. */ + class TxResult implements ITxResult { + /** + * Constructs a new TxResult. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.ITxResult); + + /** TxResult height. */ + public height: Long; + + /** TxResult index. */ + public index: number; + + /** TxResult tx. */ + public tx: Uint8Array; + + /** TxResult result. */ + public result?: tendermint.abci.IResponseDeliverTx | null; + + /** + * Creates a new TxResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TxResult instance + */ + public static create(properties?: tendermint.abci.ITxResult): tendermint.abci.TxResult; + + /** + * Encodes the specified TxResult message. Does not implicitly {@link tendermint.abci.TxResult.verify|verify} messages. + * @param m TxResult message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.ITxResult, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxResult message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxResult + * @throws {Error} If the payload is 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.TxResult; + } + + /** 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.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.IValidator): tendermint.abci.Validator; + + /** + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.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.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.Validator; + } + + /** Properties of a ValidatorUpdate. */ + interface IValidatorUpdate { + /** ValidatorUpdate pubKey */ + pubKey?: tendermint.crypto.IPublicKey | 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.IValidatorUpdate); + + /** ValidatorUpdate pubKey. */ + public pubKey?: tendermint.crypto.IPublicKey | 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.IValidatorUpdate): tendermint.abci.ValidatorUpdate; + + /** + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.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.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.ValidatorUpdate; + } + + /** Properties of a VoteInfo. */ + interface IVoteInfo { + /** VoteInfo validator */ + validator?: tendermint.abci.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.IVoteInfo); + + /** VoteInfo validator. */ + public validator?: tendermint.abci.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.IVoteInfo): tendermint.abci.VoteInfo; + + /** + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.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.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.VoteInfo; + } + + /** EvidenceType enum. */ + enum EvidenceType { + UNKNOWN = 0, + DUPLICATE_VOTE = 1, + LIGHT_CLIENT_ATTACK = 2, + } + + /** Properties of an Evidence. */ + interface IEvidence { + /** Evidence type */ + type?: tendermint.abci.EvidenceType | null; + + /** Evidence validator */ + validator?: tendermint.abci.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.IEvidence); + + /** Evidence type. */ + public type: tendermint.abci.EvidenceType; + + /** Evidence validator. */ + public validator?: tendermint.abci.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.IEvidence): tendermint.abci.Evidence; + + /** + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.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.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.Evidence; + } + + /** Properties of a Snapshot. */ + interface ISnapshot { + /** Snapshot height */ + height?: Long | null; + + /** Snapshot format */ + format?: number | null; + + /** Snapshot chunks */ + chunks?: number | null; + + /** Snapshot hash */ + hash?: Uint8Array | null; + + /** Snapshot metadata */ + metadata?: Uint8Array | null; + } + + /** Represents a Snapshot. */ + class Snapshot implements ISnapshot { + /** + * Constructs a new Snapshot. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.ISnapshot); + + /** Snapshot height. */ + public height: Long; + + /** Snapshot format. */ + public format: number; + + /** Snapshot chunks. */ + public chunks: number; + + /** Snapshot hash. */ + public hash: Uint8Array; + + /** Snapshot metadata. */ + public metadata: Uint8Array; + + /** + * Creates a new Snapshot instance using the specified properties. + * @param [properties] Properties to set + * @returns Snapshot instance + */ + public static create(properties?: tendermint.abci.ISnapshot): tendermint.abci.Snapshot; + + /** + * Encodes the specified Snapshot message. Does not implicitly {@link tendermint.abci.Snapshot.verify|verify} messages. + * @param m Snapshot message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.ISnapshot, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Snapshot message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Snapshot + * @throws {Error} If the payload is 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.Snapshot; + } + + /** Represents a ABCIApplication */ + class ABCIApplication extends $protobuf.rpc.Service { + /** + * Constructs a new ABCIApplication service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ABCIApplication service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): ABCIApplication; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEcho + */ + public echo( + request: tendermint.abci.IRequestEcho, + callback: tendermint.abci.ABCIApplication.EchoCallback, + ): void; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @returns Promise + */ + public echo(request: tendermint.abci.IRequestEcho): Promise; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseFlush + */ + public flush( + request: tendermint.abci.IRequestFlush, + callback: tendermint.abci.ABCIApplication.FlushCallback, + ): void; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @returns Promise + */ + public flush(request: tendermint.abci.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.IRequestInfo, + callback: tendermint.abci.ABCIApplication.InfoCallback, + ): void; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @returns Promise + */ + public info(request: tendermint.abci.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.IRequestSetOption, + callback: tendermint.abci.ABCIApplication.SetOptionCallback, + ): void; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @returns Promise + */ + public setOption( + request: tendermint.abci.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.IRequestDeliverTx, + callback: tendermint.abci.ABCIApplication.DeliverTxCallback, + ): void; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @returns Promise + */ + public deliverTx( + request: tendermint.abci.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.IRequestCheckTx, + callback: tendermint.abci.ABCIApplication.CheckTxCallback, + ): void; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @returns Promise + */ + public checkTx(request: tendermint.abci.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.IRequestQuery, + callback: tendermint.abci.ABCIApplication.QueryCallback, + ): void; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @returns Promise + */ + public query(request: tendermint.abci.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.IRequestCommit, + callback: tendermint.abci.ABCIApplication.CommitCallback, + ): void; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @returns Promise + */ + public commit(request: tendermint.abci.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.IRequestInitChain, + callback: tendermint.abci.ABCIApplication.InitChainCallback, + ): void; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @returns Promise + */ + public initChain( + request: tendermint.abci.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.IRequestBeginBlock, + callback: tendermint.abci.ABCIApplication.BeginBlockCallback, + ): void; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @returns Promise + */ + public beginBlock( + request: tendermint.abci.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.IRequestEndBlock, + callback: tendermint.abci.ABCIApplication.EndBlockCallback, + ): void; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @returns Promise + */ + public endBlock(request: tendermint.abci.IRequestEndBlock): Promise; + + /** + * Calls ListSnapshots. + * @param request RequestListSnapshots message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseListSnapshots + */ + public listSnapshots( + request: tendermint.abci.IRequestListSnapshots, + callback: tendermint.abci.ABCIApplication.ListSnapshotsCallback, + ): void; + + /** + * Calls ListSnapshots. + * @param request RequestListSnapshots message or plain object + * @returns Promise + */ + public listSnapshots( + request: tendermint.abci.IRequestListSnapshots, + ): Promise; + + /** + * Calls OfferSnapshot. + * @param request RequestOfferSnapshot message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseOfferSnapshot + */ + public offerSnapshot( + request: tendermint.abci.IRequestOfferSnapshot, + callback: tendermint.abci.ABCIApplication.OfferSnapshotCallback, + ): void; + + /** + * Calls OfferSnapshot. + * @param request RequestOfferSnapshot message or plain object + * @returns Promise + */ + public offerSnapshot( + request: tendermint.abci.IRequestOfferSnapshot, + ): Promise; + + /** + * Calls LoadSnapshotChunk. + * @param request RequestLoadSnapshotChunk message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseLoadSnapshotChunk + */ + public loadSnapshotChunk( + request: tendermint.abci.IRequestLoadSnapshotChunk, + callback: tendermint.abci.ABCIApplication.LoadSnapshotChunkCallback, + ): void; + + /** + * Calls LoadSnapshotChunk. + * @param request RequestLoadSnapshotChunk message or plain object + * @returns Promise + */ + public loadSnapshotChunk( + request: tendermint.abci.IRequestLoadSnapshotChunk, + ): Promise; + + /** + * Calls ApplySnapshotChunk. + * @param request RequestApplySnapshotChunk message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseApplySnapshotChunk + */ + public applySnapshotChunk( + request: tendermint.abci.IRequestApplySnapshotChunk, + callback: tendermint.abci.ABCIApplication.ApplySnapshotChunkCallback, + ): void; + + /** + * Calls ApplySnapshotChunk. + * @param request RequestApplySnapshotChunk message or plain object + * @returns Promise + */ + public applySnapshotChunk( + request: tendermint.abci.IRequestApplySnapshotChunk, + ): Promise; + } + + namespace ABCIApplication { + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#echo}. + * @param error Error, if any + * @param [response] ResponseEcho + */ + type EchoCallback = (error: Error | null, response?: tendermint.abci.ResponseEcho) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#flush}. + * @param error Error, if any + * @param [response] ResponseFlush + */ + type FlushCallback = (error: Error | null, response?: tendermint.abci.ResponseFlush) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#info}. + * @param error Error, if any + * @param [response] ResponseInfo + */ + type InfoCallback = (error: Error | null, response?: tendermint.abci.ResponseInfo) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#setOption}. + * @param error Error, if any + * @param [response] ResponseSetOption + */ + type SetOptionCallback = (error: Error | null, response?: tendermint.abci.ResponseSetOption) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#deliverTx}. + * @param error Error, if any + * @param [response] ResponseDeliverTx + */ + type DeliverTxCallback = (error: Error | null, response?: tendermint.abci.ResponseDeliverTx) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#checkTx}. + * @param error Error, if any + * @param [response] ResponseCheckTx + */ + type CheckTxCallback = (error: Error | null, response?: tendermint.abci.ResponseCheckTx) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#query}. + * @param error Error, if any + * @param [response] ResponseQuery + */ + type QueryCallback = (error: Error | null, response?: tendermint.abci.ResponseQuery) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#commit}. + * @param error Error, if any + * @param [response] ResponseCommit + */ + type CommitCallback = (error: Error | null, response?: tendermint.abci.ResponseCommit) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#initChain}. + * @param error Error, if any + * @param [response] ResponseInitChain + */ + type InitChainCallback = (error: Error | null, response?: tendermint.abci.ResponseInitChain) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#beginBlock}. + * @param error Error, if any + * @param [response] ResponseBeginBlock + */ + type BeginBlockCallback = (error: Error | null, response?: tendermint.abci.ResponseBeginBlock) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#endBlock}. + * @param error Error, if any + * @param [response] ResponseEndBlock + */ + type EndBlockCallback = (error: Error | null, response?: tendermint.abci.ResponseEndBlock) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#listSnapshots}. + * @param error Error, if any + * @param [response] ResponseListSnapshots + */ + type ListSnapshotsCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseListSnapshots, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#offerSnapshot}. + * @param error Error, if any + * @param [response] ResponseOfferSnapshot + */ + type OfferSnapshotCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseOfferSnapshot, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#loadSnapshotChunk}. + * @param error Error, if any + * @param [response] ResponseLoadSnapshotChunk + */ + type LoadSnapshotChunkCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseLoadSnapshotChunk, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.ABCIApplication#applySnapshotChunk}. + * @param error Error, if any + * @param [response] ResponseApplySnapshotChunk + */ + type ApplySnapshotChunkCallback = ( + error: Error | null, + response?: tendermint.abci.ResponseApplySnapshotChunk, + ) => void; + } + } + /** Namespace crypto. */ namespace crypto { /** Properties of a PublicKey. */ @@ -12401,6 +16114,312 @@ export namespace tendermint { /** Namespace types. */ namespace types { + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.types.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version */ + version?: tendermint.types.IVersionParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.types.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.types.IValidatorParams | null; + + /** ConsensusParams version. */ + public version?: tendermint.types.IVersionParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create(properties?: tendermint.types.IConsensusParams): tendermint.types.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.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.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.types.ConsensusParams; + } + + /** Properties of a BlockParams. */ + interface IBlockParams { + /** BlockParams maxBytes */ + maxBytes?: Long | null; + + /** BlockParams maxGas */ + maxGas?: Long | null; + + /** BlockParams timeIotaMs */ + timeIotaMs?: Long | null; + } + + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { + /** + * Constructs a new BlockParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IBlockParams); + + /** BlockParams maxBytes. */ + public maxBytes: Long; + + /** BlockParams maxGas. */ + public maxGas: Long; + + /** BlockParams timeIotaMs. */ + public timeIotaMs: Long; + + /** + * Creates a new BlockParams instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockParams instance + */ + public static create(properties?: tendermint.types.IBlockParams): tendermint.types.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.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.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.types.BlockParams; + } + + /** Properties of an EvidenceParams. */ + interface IEvidenceParams { + /** EvidenceParams maxAgeNumBlocks */ + maxAgeNumBlocks?: Long | null; + + /** EvidenceParams maxAgeDuration */ + maxAgeDuration?: google.protobuf.IDuration | null; + + /** EvidenceParams maxBytes */ + maxBytes?: Long | null; + } + + /** Represents an EvidenceParams. */ + class EvidenceParams implements IEvidenceParams { + /** + * Constructs a new EvidenceParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IEvidenceParams); + + /** EvidenceParams maxAgeNumBlocks. */ + public maxAgeNumBlocks: Long; + + /** EvidenceParams maxAgeDuration. */ + public maxAgeDuration?: google.protobuf.IDuration | null; + + /** EvidenceParams maxBytes. */ + public maxBytes: Long; + + /** + * Creates a new EvidenceParams instance using the specified properties. + * @param [properties] Properties to set + * @returns EvidenceParams instance + */ + public static create(properties?: tendermint.types.IEvidenceParams): tendermint.types.EvidenceParams; + + /** + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.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.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.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.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.types.IValidatorParams): tendermint.types.ValidatorParams; + + /** + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.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.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.types.ValidatorParams; + } + + /** Properties of a VersionParams. */ + interface IVersionParams { + /** VersionParams appVersion */ + appVersion?: Long | null; + } + + /** Represents a VersionParams. */ + class VersionParams implements IVersionParams { + /** + * Constructs a new VersionParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IVersionParams); + + /** VersionParams appVersion. */ + public appVersion: Long; + + /** + * Creates a new VersionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionParams instance + */ + public static create(properties?: tendermint.types.IVersionParams): tendermint.types.VersionParams; + + /** + * Encodes the specified VersionParams message. Does not implicitly {@link tendermint.types.VersionParams.verify|verify} messages. + * @param m VersionParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.types.IVersionParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VersionParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns VersionParams + * @throws {Error} If the payload is 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.types.VersionParams; + } + + /** Properties of a HashedParams. */ + interface IHashedParams { + /** HashedParams blockMaxBytes */ + blockMaxBytes?: Long | null; + + /** HashedParams blockMaxGas */ + blockMaxGas?: Long | null; + } + + /** Represents a HashedParams. */ + class HashedParams implements IHashedParams { + /** + * Constructs a new HashedParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.types.IHashedParams); + + /** HashedParams blockMaxBytes. */ + public blockMaxBytes: Long; + + /** HashedParams blockMaxGas. */ + public blockMaxGas: Long; + + /** + * Creates a new HashedParams instance using the specified properties. + * @param [properties] Properties to set + * @returns HashedParams instance + */ + public static create(properties?: tendermint.types.IHashedParams): tendermint.types.HashedParams; + + /** + * Encodes the specified HashedParams message. Does not implicitly {@link tendermint.types.HashedParams.verify|verify} messages. + * @param m HashedParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.types.IHashedParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HashedParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns HashedParams + * @throws {Error} If the payload is 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.types.HashedParams; + } + /** BlockIDFlag enum. */ enum BlockIDFlag { BLOCK_ID_FLAG_UNKNOWN = 0, From 8f91640f437aff478382eb6391f496f86380dc12 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 10 Dec 2020 12:56:48 +0000 Subject: [PATCH 6/6] stargate: Parse TxMsgData --- packages/stargate/src/stargateclient.ts | 20 +++++++++++++------- packages/stargate/types/stargateclient.d.ts | 12 ++++++++---- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/packages/stargate/src/stargateclient.ts b/packages/stargate/src/stargateclient.ts index dc46a866..195b8851 100644 --- a/packages/stargate/src/stargateclient.ts +++ b/packages/stargate/src/stargateclient.ts @@ -25,6 +25,12 @@ import Long from "long"; import { cosmos } from "./codec"; import { AuthExtension, BankExtension, QueryClient, setupAuthExtension, setupBankExtension } from "./queries"; +type IBaseAccount = cosmos.auth.v1beta1.IBaseAccount; +type IMsgData = cosmos.base.abci.v1beta1.IMsgData; +type ICoin = cosmos.base.v1beta1.ICoin; + +const { TxMsgData } = cosmos.base.abci.v1beta1; + /** A transaction that is indexed as part of the transaction history */ export interface IndexedTx { readonly height: number; @@ -54,14 +60,14 @@ export interface BroadcastTxFailure { readonly code: number; readonly transactionHash: string; readonly rawLog?: string; - readonly data?: Uint8Array; + readonly data?: readonly IMsgData[]; } export interface BroadcastTxSuccess { readonly height: number; readonly transactionHash: string; readonly rawLog?: string; - readonly data?: Uint8Array; + readonly data?: readonly IMsgData[]; } export type BroadcastTxResponse = BroadcastTxSuccess | BroadcastTxFailure; @@ -92,7 +98,7 @@ function uint64FromProto(input: number | Long | null | undefined): Uint64 { return Uint64.fromString(input.toString()); } -export function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Account { +export function accountFromProto(input: IBaseAccount): Account { const { address, pubKey, accountNumber, sequence } = input; const pubkey = decodePubkey(pubKey); assert(address); @@ -104,7 +110,7 @@ export function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Accou }; } -export function coinFromProto(input: cosmos.base.v1beta1.ICoin): Coin { +export function coinFromProto(input: ICoin): Coin { assertDefined(input.amount); assertDefined(input.denom); assert(input.amount !== null); @@ -243,7 +249,7 @@ export class StargateClient { height: response.height, transactionHash: toHex(response.hash).toUpperCase(), rawLog: response.deliverTx?.log, - data: response.deliverTx?.data, + data: response.deliverTx?.data ? TxMsgData.decode(response.deliverTx?.data).data : undefined, }; } return response.checkTx.code !== 0 @@ -252,14 +258,14 @@ export class StargateClient { code: response.checkTx.code, transactionHash: toHex(response.hash).toUpperCase(), rawLog: response.checkTx.log, - data: response.checkTx.data, + data: response.checkTx.data ? TxMsgData.decode(response.checkTx.data).data : undefined, } : { height: response.height, code: response.deliverTx?.code, transactionHash: toHex(response.hash).toUpperCase(), rawLog: response.deliverTx?.log, - data: response.deliverTx?.data, + data: response.deliverTx?.data ? TxMsgData.decode(response.deliverTx?.data).data : undefined, }; } diff --git a/packages/stargate/types/stargateclient.d.ts b/packages/stargate/types/stargateclient.d.ts index b25996c0..3fc30e70 100644 --- a/packages/stargate/types/stargateclient.d.ts +++ b/packages/stargate/types/stargateclient.d.ts @@ -1,6 +1,9 @@ import { Block, Coin, PubKey, SearchTxFilter, SearchTxQuery } from "@cosmjs/launchpad"; import { Client as TendermintClient } from "@cosmjs/tendermint-rpc"; import { cosmos } from "./codec"; +declare type IBaseAccount = cosmos.auth.v1beta1.IBaseAccount; +declare type IMsgData = cosmos.base.abci.v1beta1.IMsgData; +declare type ICoin = cosmos.base.v1beta1.ICoin; /** A transaction that is indexed as part of the transaction history */ export interface IndexedTx { readonly height: number; @@ -27,13 +30,13 @@ export interface BroadcastTxFailure { readonly code: number; readonly transactionHash: string; readonly rawLog?: string; - readonly data?: Uint8Array; + readonly data?: readonly IMsgData[]; } export interface BroadcastTxSuccess { readonly height: number; readonly transactionHash: string; readonly rawLog?: string; - readonly data?: Uint8Array; + readonly data?: readonly IMsgData[]; } export declare type BroadcastTxResponse = BroadcastTxSuccess | BroadcastTxFailure; export declare function isBroadcastTxFailure(result: BroadcastTxResponse): result is BroadcastTxFailure; @@ -44,8 +47,8 @@ export declare function isBroadcastTxSuccess(result: BroadcastTxResponse): resul export declare function assertIsBroadcastTxSuccess( result: BroadcastTxResponse, ): asserts result is BroadcastTxSuccess; -export declare function accountFromProto(input: cosmos.auth.v1beta1.IBaseAccount): Account; -export declare function coinFromProto(input: cosmos.base.v1beta1.ICoin): Coin; +export declare function accountFromProto(input: IBaseAccount): Account; +export declare function coinFromProto(input: ICoin): Coin; /** Use for testing only */ export interface PrivateStargateClient { readonly tmClient: TendermintClient; @@ -74,3 +77,4 @@ export declare class StargateClient { broadcastTx(tx: Uint8Array): Promise; private txsQuery; } +export {};