diff --git a/packages/proto-signing/.gitignore b/packages/proto-signing/.gitignore index e3cc4341..5d19789f 100644 --- a/packages/proto-signing/.gitignore +++ b/packages/proto-signing/.gitignore @@ -1,5 +1,7 @@ build/ dist/ docs/ + +# protobuf code generation proto/ tmp/ diff --git a/packages/proto-signing/scripts/define-proto.sh b/packages/proto-signing/scripts/define-proto.sh index 3c9ae8e7..7053d578 100755 --- a/packages/proto-signing/scripts/define-proto.sh +++ b/packages/proto-signing/scripts/define-proto.sh @@ -8,7 +8,7 @@ DEFINITIONS_FILE="$TMP_DIR/codecimpl.d.ts" OUTPUT_DIR="./src/generated/" -pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE" -tsc --removeComments --outDir "$OUTPUT_DIR" --allowJs "$JS_SOURCE_FILE" +yarn pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE" +yarn tsc --removeComments --outDir "$OUTPUT_DIR" --allowJs "$JS_SOURCE_FILE" cp "$DEFINITIONS_FILE" "$OUTPUT_DIR" rm "$DEFINITIONS_FILE" "$JS_SOURCE_FILE" diff --git a/packages/proto-signing/scripts/get-proto.sh b/packages/proto-signing/scripts/get-proto.sh index 00766542..dc9a4931 100755 --- a/packages/proto-signing/scripts/get-proto.sh +++ b/packages/proto-signing/scripts/get-proto.sh @@ -13,7 +13,7 @@ SUFFIX=${REF} mkdir -p "$COSMOS_DIR" -wget -qO "$ZIP_FILE" "https://github.com/cosmos/cosmos-sdk/archive/$REF.zip" \ - && unzip "$ZIP_FILE" "*.proto" -d "$COSMOS_DIR" \ - && mv "$COSMOS_SDK_DIR-$SUFFIX" "$COSMOS_SDK_DIR" \ - && rm "$ZIP_FILE" +wget -qO "$ZIP_FILE" "https://github.com/cosmos/cosmos-sdk/archive/$REF.zip" +unzip "$ZIP_FILE" "*.proto" -d "$COSMOS_DIR" +mv "$COSMOS_SDK_DIR-$SUFFIX" "$COSMOS_SDK_DIR" +rm "$ZIP_FILE" diff --git a/packages/proto-signing/scripts/predefine-proto.sh b/packages/proto-signing/scripts/predefine-proto.sh index 7d4814cd..bf6c8062 100755 --- a/packages/proto-signing/scripts/predefine-proto.sh +++ b/packages/proto-signing/scripts/predefine-proto.sh @@ -9,7 +9,7 @@ TENDERMINT_PROTO_DIR="$ROOT_PROTO_DIR/third_party/proto/tendermint" GOOGLE_PROTO_DIR="$ROOT_PROTO_DIR/third_party/proto/google" mkdir -p "$GENERATED_DIR" -pbjs \ +yarn pbjs \ -t static-module \ --es6 \ -w commonjs \ diff --git a/packages/stargate/.gitignore b/packages/stargate/.gitignore index 68bf3735..5d19789f 100644 --- a/packages/stargate/.gitignore +++ b/packages/stargate/.gitignore @@ -1,3 +1,7 @@ build/ dist/ docs/ + +# protobuf code generation +proto/ +tmp/ diff --git a/packages/stargate/package.json b/packages/stargate/package.json index 0617276f..edc84595 100644 --- a/packages/stargate/package.json +++ b/packages/stargate/package.json @@ -28,14 +28,19 @@ "lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix", "move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -f ./types/*.spec.d.ts", "format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"", - "build": "shx rm -rf ./build && tsc && yarn move-types && yarn format-types", + "build": "shx rm -rf ./build && tsc && shx mkdir -p build/generated && shx cp ./src/generated/*.js ./build/generated && shx mkdir -p ./build/types/generated && shx cp ./src/generated/*.d.ts ./build/types/generated && yarn move-types && yarn format-types", "build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build", "test-node": "node jasmine-testrunner.js", "test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox", "test-chrome": "yarn pack-web && karma start --single-run --browsers ChromeHeadless", "test": "yarn build-or-skip && yarn test-node", "coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet", - "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js" + "pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js", + "preget-proto": "rm -rf proto", + "get-proto": "REF=master ./scripts/get-proto.sh", + "predefine-proto": "./scripts/predefine-proto.sh", + "define-proto": "./scripts/define-proto.sh", + "postdefine-proto": "prettier --write \"src/generated/codecimpl.*\"" }, "dependencies": { "@cosmjs/encoding": "^0.22.0", @@ -43,6 +48,7 @@ "@cosmjs/math": "^0.22.0", "@cosmjs/proto-signing": "^0.22.0", "@cosmjs/tendermint-rpc": "^0.22.0", - "@cosmjs/utils": "^0.22.0" + "@cosmjs/utils": "^0.22.0", + "protobufjs": "~6.10.0" } } diff --git a/packages/stargate/scripts/define-proto.sh b/packages/stargate/scripts/define-proto.sh new file mode 100755 index 00000000..7053d578 --- /dev/null +++ b/packages/stargate/scripts/define-proto.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -o errexit -o nounset -o pipefail +command -v shellcheck > /dev/null && shellcheck "$0" + +TMP_DIR="./tmp" +JS_SOURCE_FILE="$TMP_DIR/codecimpl.js" +DEFINITIONS_FILE="$TMP_DIR/codecimpl.d.ts" +OUTPUT_DIR="./src/generated/" + + +yarn pbts "$JS_SOURCE_FILE" -o "$DEFINITIONS_FILE" +yarn tsc --removeComments --outDir "$OUTPUT_DIR" --allowJs "$JS_SOURCE_FILE" +cp "$DEFINITIONS_FILE" "$OUTPUT_DIR" +rm "$DEFINITIONS_FILE" "$JS_SOURCE_FILE" diff --git a/packages/stargate/scripts/get-proto.sh b/packages/stargate/scripts/get-proto.sh new file mode 100755 index 00000000..dc9a4931 --- /dev/null +++ b/packages/stargate/scripts/get-proto.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -o errexit -o nounset -o pipefail +command -v shellcheck > /dev/null && shellcheck "$0" + +PROTO_DIR="./proto" +COSMOS_DIR="$PROTO_DIR/cosmos" +COSMOS_SDK_DIR="$COSMOS_DIR/cosmos-sdk" +ZIP_FILE="$COSMOS_DIR/tmp.zip" +REF=${REF:-"master"} +SUFFIX=${REF} + +[[ $SUFFIX =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && SUFFIX=${SUFFIX#v} + +mkdir -p "$COSMOS_DIR" + +wget -qO "$ZIP_FILE" "https://github.com/cosmos/cosmos-sdk/archive/$REF.zip" +unzip "$ZIP_FILE" "*.proto" -d "$COSMOS_DIR" +mv "$COSMOS_SDK_DIR-$SUFFIX" "$COSMOS_SDK_DIR" +rm "$ZIP_FILE" diff --git a/packages/stargate/scripts/predefine-proto.sh b/packages/stargate/scripts/predefine-proto.sh new file mode 100755 index 00000000..32121ee2 --- /dev/null +++ b/packages/stargate/scripts/predefine-proto.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -o errexit -o nounset -o pipefail +command -v shellcheck > /dev/null && shellcheck "$0" + +GENERATED_DIR="./tmp" +ROOT_PROTO_DIR="./proto/cosmos/cosmos-sdk" +COSMOS_PROTO_DIR="$ROOT_PROTO_DIR/proto/cosmos" +TENDERMINT_PROTO_DIR="$ROOT_PROTO_DIR/third_party/proto/tendermint" +GOOGLE_PROTO_DIR="$ROOT_PROTO_DIR/third_party/proto/google" + +mkdir -p "$GENERATED_DIR" +yarn pbjs \ + -t static-module \ + --es6 \ + -w commonjs \ + -o "$GENERATED_DIR/codecimpl.js" \ + --sparse \ + --no-beautify \ + --no-delimited \ + --no-verify \ + --no-convert \ + "$COSMOS_PROTO_DIR/cosmos.proto" \ + "$COSMOS_PROTO_DIR/auth/{auth,query}.proto" \ + "$COSMOS_PROTO_DIR/bank/{bank,query}.proto" \ + "$COSMOS_PROTO_DIR/crypto/crypto.proto" \ + "$COSMOS_PROTO_DIR/query/pagination.proto" \ + "$COSMOS_PROTO_DIR/tx/tx.proto" \ + "$COSMOS_PROTO_DIR/tx/signing/signing.proto" \ + "$TENDERMINT_PROTO_DIR/abci/types/types.proto" \ + "$TENDERMINT_PROTO_DIR/crypto/merkle/merkle.proto" \ + "$TENDERMINT_PROTO_DIR/libs/kv/types.proto" \ + "$GOOGLE_PROTO_DIR/protobuf/any.proto" diff --git a/packages/stargate/src/generated/codecimpl.d.ts b/packages/stargate/src/generated/codecimpl.d.ts new file mode 100644 index 00000000..627c179e --- /dev/null +++ b/packages/stargate/src/generated/codecimpl.d.ts @@ -0,0 +1,6513 @@ +import * as $protobuf from "protobufjs"; +/** Namespace cosmos. */ +export namespace cosmos { + /** Properties of a Coin. */ + interface ICoin { + /** Coin denom */ + denom?: string | null; + + /** Coin amount */ + amount?: string | null; + } + + /** Represents a Coin. */ + class Coin implements ICoin { + /** + * Constructs a new Coin. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ICoin); + + /** Coin denom. */ + public denom: string; + + /** Coin amount. */ + public amount: string; + + /** + * Creates a new Coin instance using the specified properties. + * @param [properties] Properties to set + * @returns Coin instance + */ + public static create(properties?: cosmos.ICoin): cosmos.Coin; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos.Coin.verify|verify} messages. + * @param m Coin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ICoin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Coin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Coin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.Coin; + } + + /** Properties of a DecCoin. */ + interface IDecCoin { + /** DecCoin denom */ + denom?: string | null; + + /** DecCoin amount */ + amount?: string | null; + } + + /** Represents a DecCoin. */ + class DecCoin implements IDecCoin { + /** + * Constructs a new DecCoin. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IDecCoin); + + /** DecCoin denom. */ + public denom: string; + + /** DecCoin amount. */ + public amount: string; + + /** + * Creates a new DecCoin instance using the specified properties. + * @param [properties] Properties to set + * @returns DecCoin instance + */ + public static create(properties?: cosmos.IDecCoin): cosmos.DecCoin; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.DecCoin.verify|verify} messages. + * @param m DecCoin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DecCoin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.DecCoin; + } + + /** Properties of an IntProto. */ + interface IIntProto { + /** IntProto int */ + int?: string | null; + } + + /** Represents an IntProto. */ + class IntProto implements IIntProto { + /** + * Constructs a new IntProto. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IIntProto); + + /** IntProto int. */ + public int: string; + + /** + * Creates a new IntProto instance using the specified properties. + * @param [properties] Properties to set + * @returns IntProto instance + */ + public static create(properties?: cosmos.IIntProto): cosmos.IntProto; + + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.IntProto.verify|verify} messages. + * @param m IntProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.IntProto; + } + + /** Properties of a DecProto. */ + interface IDecProto { + /** DecProto dec */ + dec?: string | null; + } + + /** Represents a DecProto. */ + class DecProto implements IDecProto { + /** + * Constructs a new DecProto. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IDecProto); + + /** DecProto dec. */ + public dec: string; + + /** + * Creates a new DecProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DecProto instance + */ + public static create(properties?: cosmos.IDecProto): cosmos.DecProto; + + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.DecProto.verify|verify} messages. + * @param m DecProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.DecProto; + } + + /** Properties of a ValAddresses. */ + interface IValAddresses { + /** ValAddresses addresses */ + addresses?: Uint8Array[] | null; + } + + /** Represents a ValAddresses. */ + class ValAddresses implements IValAddresses { + /** + * Constructs a new ValAddresses. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IValAddresses); + + /** ValAddresses addresses. */ + public addresses: Uint8Array[]; + + /** + * Creates a new ValAddresses instance using the specified properties. + * @param [properties] Properties to set + * @returns ValAddresses instance + */ + public static create(properties?: cosmos.IValAddresses): cosmos.ValAddresses; + + /** + * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos.ValAddresses.verify|verify} messages. + * @param m ValAddresses message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IValAddresses, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValAddresses message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValAddresses + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.ValAddresses; + } + + /** Properties of a GasInfo. */ + interface IGasInfo { + /** GasInfo gasWanted */ + gasWanted?: number | Long | null; + + /** GasInfo gasUsed */ + gasUsed?: number | Long | null; + } + + /** Represents a GasInfo. */ + class GasInfo implements IGasInfo { + /** + * Constructs a new GasInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IGasInfo); + + /** GasInfo gasWanted. */ + public gasWanted: number | Long; + + /** GasInfo gasUsed. */ + public gasUsed: number | Long; + + /** + * Creates a new GasInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GasInfo instance + */ + public static create(properties?: cosmos.IGasInfo): cosmos.GasInfo; + + /** + * Encodes the specified GasInfo message. Does not implicitly {@link cosmos.GasInfo.verify|verify} messages. + * @param m GasInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IGasInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GasInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns GasInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.GasInfo; + } + + /** Properties of a Result. */ + interface IResult { + /** Result data */ + data?: Uint8Array | null; + + /** Result log */ + log?: string | null; + + /** Result events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a Result. */ + class Result implements IResult { + /** + * Constructs a new Result. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IResult); + + /** Result data. */ + public data: Uint8Array; + + /** Result log. */ + public log: string; + + /** Result events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: cosmos.IResult): cosmos.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link cosmos.Result.verify|verify} messages. + * @param m Result message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IResult, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.Result; + } + + /** Properties of a SimulationResponse. */ + interface ISimulationResponse { + /** SimulationResponse gasInfo */ + gasInfo?: cosmos.IGasInfo | null; + + /** SimulationResponse result */ + result?: cosmos.IResult | null; + } + + /** Represents a SimulationResponse. */ + class SimulationResponse implements ISimulationResponse { + /** + * Constructs a new SimulationResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ISimulationResponse); + + /** SimulationResponse gasInfo. */ + public gasInfo?: cosmos.IGasInfo | null; + + /** SimulationResponse result. */ + public result?: cosmos.IResult | null; + + /** + * Creates a new SimulationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SimulationResponse instance + */ + public static create(properties?: cosmos.ISimulationResponse): cosmos.SimulationResponse; + + /** + * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos.SimulationResponse.verify|verify} messages. + * @param m SimulationResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ISimulationResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SimulationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.SimulationResponse; + } + + /** Properties of a MsgData. */ + interface IMsgData { + /** MsgData msgType */ + msgType?: string | null; + + /** MsgData data */ + data?: Uint8Array | null; + } + + /** Represents a MsgData. */ + class MsgData implements IMsgData { + /** + * Constructs a new MsgData. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IMsgData); + + /** MsgData msgType. */ + public msgType: string; + + /** MsgData data. */ + public data: Uint8Array; + + /** + * Creates a new MsgData instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgData instance + */ + public static create(properties?: cosmos.IMsgData): cosmos.MsgData; + + /** + * Encodes the specified MsgData message. Does not implicitly {@link cosmos.MsgData.verify|verify} messages. + * @param m MsgData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IMsgData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.MsgData; + } + + /** Properties of a TxData. */ + interface ITxData { + /** TxData data */ + data?: cosmos.IMsgData[] | null; + } + + /** Represents a TxData. */ + class TxData implements ITxData { + /** + * Constructs a new TxData. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ITxData); + + /** TxData data. */ + public data: cosmos.IMsgData[]; + + /** + * Creates a new TxData instance using the specified properties. + * @param [properties] Properties to set + * @returns TxData instance + */ + public static create(properties?: cosmos.ITxData): cosmos.TxData; + + /** + * Encodes the specified TxData message. Does not implicitly {@link cosmos.TxData.verify|verify} messages. + * @param m TxData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ITxData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.TxData; + } + + /** Properties of a TxResponse. */ + interface ITxResponse { + /** TxResponse height */ + height?: number | Long | null; + + /** TxResponse txhash */ + txhash?: string | null; + + /** TxResponse codespace */ + codespace?: string | null; + + /** TxResponse code */ + code?: number | null; + + /** TxResponse data */ + data?: string | null; + + /** TxResponse rawLog */ + rawLog?: string | null; + + /** TxResponse logs */ + logs?: cosmos.IABCIMessageLog[] | null; + + /** TxResponse info */ + info?: string | null; + + /** TxResponse gasWanted */ + gasWanted?: number | Long | null; + + /** TxResponse gasUsed */ + gasUsed?: number | Long | null; + + /** TxResponse tx */ + tx?: google.protobuf.IAny | null; + + /** TxResponse timestamp */ + timestamp?: string | null; + } + + /** Represents a TxResponse. */ + class TxResponse implements ITxResponse { + /** + * Constructs a new TxResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ITxResponse); + + /** TxResponse height. */ + public height: number | Long; + + /** TxResponse txhash. */ + public txhash: string; + + /** TxResponse codespace. */ + public codespace: string; + + /** TxResponse code. */ + public code: number; + + /** TxResponse data. */ + public data: string; + + /** TxResponse rawLog. */ + public rawLog: string; + + /** TxResponse logs. */ + public logs: cosmos.IABCIMessageLog[]; + + /** TxResponse info. */ + public info: string; + + /** TxResponse gasWanted. */ + public gasWanted: number | Long; + + /** TxResponse gasUsed. */ + public gasUsed: number | Long; + + /** TxResponse tx. */ + public tx?: google.protobuf.IAny | null; + + /** TxResponse timestamp. */ + public timestamp: string; + + /** + * Creates a new TxResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TxResponse instance + */ + public static create(properties?: cosmos.ITxResponse): cosmos.TxResponse; + + /** + * Encodes the specified TxResponse message. Does not implicitly {@link cosmos.TxResponse.verify|verify} messages. + * @param m TxResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ITxResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.TxResponse; + } + + /** Properties of a ABCIMessageLog. */ + interface IABCIMessageLog { + /** ABCIMessageLog msgIndex */ + msgIndex?: number | null; + + /** ABCIMessageLog log */ + log?: string | null; + + /** ABCIMessageLog events */ + events?: cosmos.IStringEvent[] | null; + } + + /** Represents a ABCIMessageLog. */ + class ABCIMessageLog implements IABCIMessageLog { + /** + * Constructs a new ABCIMessageLog. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IABCIMessageLog); + + /** ABCIMessageLog msgIndex. */ + public msgIndex: number; + + /** ABCIMessageLog log. */ + public log: string; + + /** ABCIMessageLog events. */ + public events: cosmos.IStringEvent[]; + + /** + * Creates a new ABCIMessageLog instance using the specified properties. + * @param [properties] Properties to set + * @returns ABCIMessageLog instance + */ + public static create(properties?: cosmos.IABCIMessageLog): cosmos.ABCIMessageLog; + + /** + * Encodes the specified ABCIMessageLog message. Does not implicitly {@link cosmos.ABCIMessageLog.verify|verify} messages. + * @param m ABCIMessageLog message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IABCIMessageLog, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ABCIMessageLog message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ABCIMessageLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.ABCIMessageLog; + } + + /** Properties of a StringEvent. */ + interface IStringEvent { + /** StringEvent type */ + type?: string | null; + + /** StringEvent attributes */ + attributes?: cosmos.IAttribute[] | null; + } + + /** Represents a StringEvent. */ + class StringEvent implements IStringEvent { + /** + * Constructs a new StringEvent. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IStringEvent); + + /** StringEvent type. */ + public type: string; + + /** StringEvent attributes. */ + public attributes: cosmos.IAttribute[]; + + /** + * Creates a new StringEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StringEvent instance + */ + public static create(properties?: cosmos.IStringEvent): cosmos.StringEvent; + + /** + * Encodes the specified StringEvent message. Does not implicitly {@link cosmos.StringEvent.verify|verify} messages. + * @param m StringEvent message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IStringEvent, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringEvent message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns StringEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.StringEvent; + } + + /** Properties of an Attribute. */ + interface IAttribute { + /** Attribute key */ + key?: string | null; + + /** Attribute value */ + value?: string | null; + } + + /** Represents an Attribute. */ + class Attribute implements IAttribute { + /** + * Constructs a new Attribute. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IAttribute); + + /** Attribute key. */ + public key: string; + + /** Attribute value. */ + public value: string; + + /** + * Creates a new Attribute instance using the specified properties. + * @param [properties] Properties to set + * @returns Attribute instance + */ + public static create(properties?: cosmos.IAttribute): cosmos.Attribute; + + /** + * Encodes the specified Attribute message. Does not implicitly {@link cosmos.Attribute.verify|verify} messages. + * @param m Attribute message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IAttribute, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Attribute message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Attribute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.Attribute; + } + + /** Namespace auth. */ + namespace auth { + /** Properties of a BaseAccount. */ + interface IBaseAccount { + /** BaseAccount address */ + address?: Uint8Array | null; + + /** BaseAccount pubKey */ + pubKey?: Uint8Array | null; + + /** BaseAccount accountNumber */ + accountNumber?: number | Long | null; + + /** BaseAccount sequence */ + sequence?: number | Long | null; + } + + /** Represents a BaseAccount. */ + class BaseAccount implements IBaseAccount { + /** + * Constructs a new BaseAccount. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IBaseAccount); + + /** BaseAccount address. */ + public address: Uint8Array; + + /** BaseAccount pubKey. */ + public pubKey: Uint8Array; + + /** BaseAccount accountNumber. */ + public accountNumber: number | Long; + + /** BaseAccount sequence. */ + public sequence: number | Long; + + /** + * Creates a new BaseAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns BaseAccount instance + */ + public static create(properties?: cosmos.auth.IBaseAccount): cosmos.auth.BaseAccount; + + /** + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.BaseAccount.verify|verify} messages. + * @param m BaseAccount message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IBaseAccount, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BaseAccount message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.BaseAccount; + } + + /** Properties of a ModuleAccount. */ + interface IModuleAccount { + /** ModuleAccount baseAccount */ + baseAccount?: cosmos.auth.IBaseAccount | null; + + /** ModuleAccount name */ + name?: string | null; + + /** ModuleAccount permissions */ + permissions?: string[] | null; + } + + /** Represents a ModuleAccount. */ + class ModuleAccount implements IModuleAccount { + /** + * Constructs a new ModuleAccount. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IModuleAccount); + + /** ModuleAccount baseAccount. */ + public baseAccount?: cosmos.auth.IBaseAccount | null; + + /** ModuleAccount name. */ + public name: string; + + /** ModuleAccount permissions. */ + public permissions: string[]; + + /** + * Creates a new ModuleAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns ModuleAccount instance + */ + public static create(properties?: cosmos.auth.IModuleAccount): cosmos.auth.ModuleAccount; + + /** + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.ModuleAccount.verify|verify} messages. + * @param m ModuleAccount message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IModuleAccount, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.ModuleAccount; + } + + /** Properties of a Params. */ + interface IParams { + /** Params maxMemoCharacters */ + maxMemoCharacters?: number | Long | null; + + /** Params txSigLimit */ + txSigLimit?: number | Long | null; + + /** Params txSizeCostPerByte */ + txSizeCostPerByte?: number | Long | null; + + /** Params sigVerifyCostEd25519 */ + sigVerifyCostEd25519?: number | Long | null; + + /** Params sigVerifyCostSecp256k1 */ + sigVerifyCostSecp256k1?: number | Long | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IParams); + + /** Params maxMemoCharacters. */ + public maxMemoCharacters: number | Long; + + /** Params txSigLimit. */ + public txSigLimit: number | Long; + + /** Params txSizeCostPerByte. */ + public txSizeCostPerByte: number | Long; + + /** Params sigVerifyCostEd25519. */ + public sigVerifyCostEd25519: number | Long; + + /** Params sigVerifyCostSecp256k1. */ + public sigVerifyCostSecp256k1: number | Long; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos.auth.IParams): cosmos.auth.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.Params.verify|verify} messages. + * @param m Params message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.Params; + } + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Query service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Query; + + /** + * Calls Account. + * @param request QueryAccountRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAccountResponse + */ + public account( + request: cosmos.auth.IQueryAccountRequest, + callback: cosmos.auth.Query.AccountCallback, + ): void; + + /** + * Calls Account. + * @param request QueryAccountRequest message or plain object + * @returns Promise + */ + public account(request: cosmos.auth.IQueryAccountRequest): Promise; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params( + request: cosmos.auth.IQueryParamsRequest, + callback: cosmos.auth.Query.ParamsCallback, + ): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: cosmos.auth.IQueryParamsRequest): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos.auth.Query#account}. + * @param error Error, if any + * @param [response] QueryAccountResponse + */ + type AccountCallback = (error: Error | null, response?: cosmos.auth.QueryAccountResponse) => void; + + /** + * Callback as used by {@link cosmos.auth.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: Error | null, response?: cosmos.auth.QueryParamsResponse) => void; + } + + /** Properties of a QueryAccountRequest. */ + interface IQueryAccountRequest { + /** QueryAccountRequest address */ + address?: Uint8Array | null; + } + + /** Represents a QueryAccountRequest. */ + class QueryAccountRequest implements IQueryAccountRequest { + /** + * Constructs a new QueryAccountRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryAccountRequest); + + /** QueryAccountRequest address. */ + public address: Uint8Array; + + /** + * Creates a new QueryAccountRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountRequest instance + */ + public static create(properties?: cosmos.auth.IQueryAccountRequest): cosmos.auth.QueryAccountRequest; + + /** + * Encodes the specified QueryAccountRequest message. Does not implicitly {@link cosmos.auth.QueryAccountRequest.verify|verify} messages. + * @param m QueryAccountRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryAccountRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAccountRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryAccountRequest; + } + + /** Properties of a QueryAccountResponse. */ + interface IQueryAccountResponse { + /** QueryAccountResponse account */ + account?: google.protobuf.IAny | null; + } + + /** Represents a QueryAccountResponse. */ + class QueryAccountResponse implements IQueryAccountResponse { + /** + * Constructs a new QueryAccountResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryAccountResponse); + + /** QueryAccountResponse account. */ + public account?: google.protobuf.IAny | null; + + /** + * Creates a new QueryAccountResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountResponse instance + */ + public static create(properties?: cosmos.auth.IQueryAccountResponse): cosmos.auth.QueryAccountResponse; + + /** + * Encodes the specified QueryAccountResponse message. Does not implicitly {@link cosmos.auth.QueryAccountResponse.verify|verify} messages. + * @param m QueryAccountResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryAccountResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAccountResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryAccountResponse; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest {} + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + /** + * Constructs a new QueryParamsRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryParamsRequest); + + /** + * Creates a new QueryParamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsRequest instance + */ + public static create(properties?: cosmos.auth.IQueryParamsRequest): cosmos.auth.QueryParamsRequest; + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.auth.QueryParamsRequest.verify|verify} messages. + * @param m QueryParamsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryParamsRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryParamsRequest; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + /** QueryParamsResponse params */ + params?: cosmos.auth.IParams | null; + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new QueryParamsResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: cosmos.auth.IParams | null; + + /** + * Creates a new QueryParamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsResponse instance + */ + public static create(properties?: cosmos.auth.IQueryParamsResponse): cosmos.auth.QueryParamsResponse; + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.auth.QueryParamsResponse.verify|verify} messages. + * @param m QueryParamsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryParamsResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryParamsResponse; + } + } + + /** Namespace bank. */ + namespace bank { + /** Properties of a Params. */ + interface IParams { + /** Params sendEnabled */ + sendEnabled?: cosmos.bank.ISendEnabled[] | null; + + /** Params defaultSendEnabled */ + defaultSendEnabled?: boolean | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IParams); + + /** Params sendEnabled. */ + public sendEnabled: cosmos.bank.ISendEnabled[]; + + /** Params defaultSendEnabled. */ + public defaultSendEnabled: boolean; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos.bank.IParams): cosmos.bank.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.bank.Params.verify|verify} messages. + * @param m Params message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Params; + } + + /** Properties of a SendEnabled. */ + interface ISendEnabled { + /** SendEnabled denom */ + denom?: string | null; + + /** SendEnabled enabled */ + enabled?: boolean | null; + } + + /** Represents a SendEnabled. */ + class SendEnabled implements ISendEnabled { + /** + * Constructs a new SendEnabled. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.ISendEnabled); + + /** SendEnabled denom. */ + public denom: string; + + /** SendEnabled enabled. */ + public enabled: boolean; + + /** + * Creates a new SendEnabled instance using the specified properties. + * @param [properties] Properties to set + * @returns SendEnabled instance + */ + public static create(properties?: cosmos.bank.ISendEnabled): cosmos.bank.SendEnabled; + + /** + * Encodes the specified SendEnabled message. Does not implicitly {@link cosmos.bank.SendEnabled.verify|verify} messages. + * @param m SendEnabled message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.ISendEnabled, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SendEnabled message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SendEnabled + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.SendEnabled; + } + + /** Properties of a MsgSend. */ + interface IMsgSend { + /** MsgSend fromAddress */ + fromAddress?: Uint8Array | null; + + /** MsgSend toAddress */ + toAddress?: Uint8Array | null; + + /** MsgSend amount */ + amount?: cosmos.ICoin[] | null; + } + + /** Represents a MsgSend. */ + class MsgSend implements IMsgSend { + /** + * Constructs a new MsgSend. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IMsgSend); + + /** MsgSend fromAddress. */ + public fromAddress: Uint8Array; + + /** MsgSend toAddress. */ + public toAddress: Uint8Array; + + /** MsgSend amount. */ + public amount: cosmos.ICoin[]; + + /** + * Creates a new MsgSend instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSend instance + */ + public static create(properties?: cosmos.bank.IMsgSend): cosmos.bank.MsgSend; + + /** + * Encodes the specified MsgSend message. Does not implicitly {@link cosmos.bank.MsgSend.verify|verify} messages. + * @param m MsgSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IMsgSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.MsgSend; + } + + /** Properties of an Input. */ + interface IInput { + /** Input address */ + address?: Uint8Array | null; + + /** Input coins */ + coins?: cosmos.ICoin[] | null; + } + + /** Represents an Input. */ + class Input implements IInput { + /** + * Constructs a new Input. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IInput); + + /** Input address. */ + public address: Uint8Array; + + /** Input coins. */ + public coins: cosmos.ICoin[]; + + /** + * Creates a new Input instance using the specified properties. + * @param [properties] Properties to set + * @returns Input instance + */ + public static create(properties?: cosmos.bank.IInput): cosmos.bank.Input; + + /** + * Encodes the specified Input message. Does not implicitly {@link cosmos.bank.Input.verify|verify} messages. + * @param m Input message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IInput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Input message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Input; + } + + /** Properties of an Output. */ + interface IOutput { + /** Output address */ + address?: Uint8Array | null; + + /** Output coins */ + coins?: cosmos.ICoin[] | null; + } + + /** Represents an Output. */ + class Output implements IOutput { + /** + * Constructs a new Output. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IOutput); + + /** Output address. */ + public address: Uint8Array; + + /** Output coins. */ + public coins: cosmos.ICoin[]; + + /** + * Creates a new Output instance using the specified properties. + * @param [properties] Properties to set + * @returns Output instance + */ + public static create(properties?: cosmos.bank.IOutput): cosmos.bank.Output; + + /** + * Encodes the specified Output message. Does not implicitly {@link cosmos.bank.Output.verify|verify} messages. + * @param m Output message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IOutput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Output message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Output; + } + + /** Properties of a MsgMultiSend. */ + interface IMsgMultiSend { + /** MsgMultiSend inputs */ + inputs?: cosmos.bank.IInput[] | null; + + /** MsgMultiSend outputs */ + outputs?: cosmos.bank.IOutput[] | null; + } + + /** Represents a MsgMultiSend. */ + class MsgMultiSend implements IMsgMultiSend { + /** + * Constructs a new MsgMultiSend. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IMsgMultiSend); + + /** MsgMultiSend inputs. */ + public inputs: cosmos.bank.IInput[]; + + /** MsgMultiSend outputs. */ + public outputs: cosmos.bank.IOutput[]; + + /** + * Creates a new MsgMultiSend instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSend instance + */ + public static create(properties?: cosmos.bank.IMsgMultiSend): cosmos.bank.MsgMultiSend; + + /** + * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos.bank.MsgMultiSend.verify|verify} messages. + * @param m MsgMultiSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IMsgMultiSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgMultiSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMultiSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.MsgMultiSend; + } + + /** Properties of a Supply. */ + interface ISupply { + /** Supply total */ + total?: cosmos.ICoin[] | null; + } + + /** Represents a Supply. */ + class Supply implements ISupply { + /** + * Constructs a new Supply. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.ISupply); + + /** Supply total. */ + public total: cosmos.ICoin[]; + + /** + * Creates a new Supply instance using the specified properties. + * @param [properties] Properties to set + * @returns Supply instance + */ + public static create(properties?: cosmos.bank.ISupply): cosmos.bank.Supply; + + /** + * Encodes the specified Supply message. Does not implicitly {@link cosmos.bank.Supply.verify|verify} messages. + * @param m Supply message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.ISupply, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Supply; + } + + /** Properties of a DenomUnits. */ + interface IDenomUnits { + /** DenomUnits denom */ + denom?: string | null; + + /** DenomUnits exponent */ + exponent?: number | null; + + /** DenomUnits aliases */ + aliases?: string[] | null; + } + + /** Represents a DenomUnits. */ + class DenomUnits implements IDenomUnits { + /** + * Constructs a new DenomUnits. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IDenomUnits); + + /** DenomUnits denom. */ + public denom: string; + + /** DenomUnits exponent. */ + public exponent: number; + + /** DenomUnits aliases. */ + public aliases: string[]; + + /** + * Creates a new DenomUnits instance using the specified properties. + * @param [properties] Properties to set + * @returns DenomUnits instance + */ + public static create(properties?: cosmos.bank.IDenomUnits): cosmos.bank.DenomUnits; + + /** + * Encodes the specified DenomUnits message. Does not implicitly {@link cosmos.bank.DenomUnits.verify|verify} messages. + * @param m DenomUnits message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IDenomUnits, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DenomUnits message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DenomUnits + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.DenomUnits; + } + + /** Properties of a Metadata. */ + interface IMetadata { + /** Metadata description */ + description?: string | null; + + /** Metadata denomUnits */ + denomUnits?: cosmos.bank.IDenomUnits[] | null; + + /** Metadata base */ + base?: string | null; + + /** Metadata display */ + display?: string | null; + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + /** + * Constructs a new Metadata. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IMetadata); + + /** Metadata description. */ + public description: string; + + /** Metadata denomUnits. */ + public denomUnits: cosmos.bank.IDenomUnits[]; + + /** Metadata base. */ + public base: string; + + /** Metadata display. */ + public display: string; + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: cosmos.bank.IMetadata): cosmos.bank.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link cosmos.bank.Metadata.verify|verify} messages. + * @param m Metadata message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IMetadata, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Metadata; + } + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Query service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Query; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryBalanceResponse + */ + public balance( + request: cosmos.bank.IQueryBalanceRequest, + callback: cosmos.bank.Query.BalanceCallback, + ): void; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @returns Promise + */ + public balance(request: cosmos.bank.IQueryBalanceRequest): Promise; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAllBalancesResponse + */ + public allBalances( + request: cosmos.bank.IQueryAllBalancesRequest, + callback: cosmos.bank.Query.AllBalancesCallback, + ): void; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @returns Promise + */ + public allBalances( + request: cosmos.bank.IQueryAllBalancesRequest, + ): Promise; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryTotalSupplyResponse + */ + public totalSupply( + request: cosmos.bank.IQueryTotalSupplyRequest, + callback: cosmos.bank.Query.TotalSupplyCallback, + ): void; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @returns Promise + */ + public totalSupply( + request: cosmos.bank.IQueryTotalSupplyRequest, + ): Promise; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QuerySupplyOfResponse + */ + public supplyOf( + request: cosmos.bank.IQuerySupplyOfRequest, + callback: cosmos.bank.Query.SupplyOfCallback, + ): void; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @returns Promise + */ + public supplyOf(request: cosmos.bank.IQuerySupplyOfRequest): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos.bank.Query#balance}. + * @param error Error, if any + * @param [response] QueryBalanceResponse + */ + type BalanceCallback = (error: Error | null, response?: cosmos.bank.QueryBalanceResponse) => void; + + /** + * Callback as used by {@link cosmos.bank.Query#allBalances}. + * @param error Error, if any + * @param [response] QueryAllBalancesResponse + */ + type AllBalancesCallback = ( + error: Error | null, + response?: cosmos.bank.QueryAllBalancesResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.bank.Query#totalSupply}. + * @param error Error, if any + * @param [response] QueryTotalSupplyResponse + */ + type TotalSupplyCallback = ( + error: Error | null, + response?: cosmos.bank.QueryTotalSupplyResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.bank.Query#supplyOf}. + * @param error Error, if any + * @param [response] QuerySupplyOfResponse + */ + type SupplyOfCallback = (error: Error | null, response?: cosmos.bank.QuerySupplyOfResponse) => void; + } + + /** Properties of a QueryBalanceRequest. */ + interface IQueryBalanceRequest { + /** QueryBalanceRequest address */ + address?: Uint8Array | null; + + /** QueryBalanceRequest denom */ + denom?: string | null; + } + + /** Represents a QueryBalanceRequest. */ + class QueryBalanceRequest implements IQueryBalanceRequest { + /** + * Constructs a new QueryBalanceRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryBalanceRequest); + + /** QueryBalanceRequest address. */ + public address: Uint8Array; + + /** QueryBalanceRequest denom. */ + public denom: string; + + /** + * Creates a new QueryBalanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceRequest instance + */ + public static create(properties?: cosmos.bank.IQueryBalanceRequest): cosmos.bank.QueryBalanceRequest; + + /** + * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos.bank.QueryBalanceRequest.verify|verify} messages. + * @param m QueryBalanceRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryBalanceRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryBalanceRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryBalanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryBalanceRequest; + } + + /** Properties of a QueryBalanceResponse. */ + interface IQueryBalanceResponse { + /** QueryBalanceResponse balance */ + balance?: cosmos.ICoin | null; + } + + /** Represents a QueryBalanceResponse. */ + class QueryBalanceResponse implements IQueryBalanceResponse { + /** + * Constructs a new QueryBalanceResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryBalanceResponse); + + /** QueryBalanceResponse balance. */ + public balance?: cosmos.ICoin | null; + + /** + * Creates a new QueryBalanceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceResponse instance + */ + public static create(properties?: cosmos.bank.IQueryBalanceResponse): cosmos.bank.QueryBalanceResponse; + + /** + * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos.bank.QueryBalanceResponse.verify|verify} messages. + * @param m QueryBalanceResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryBalanceResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryBalanceResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryBalanceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryBalanceResponse; + } + + /** Properties of a QueryAllBalancesRequest. */ + interface IQueryAllBalancesRequest { + /** QueryAllBalancesRequest address */ + address?: Uint8Array | null; + + /** QueryAllBalancesRequest pagination */ + pagination?: cosmos.query.IPageRequest | null; + } + + /** Represents a QueryAllBalancesRequest. */ + class QueryAllBalancesRequest implements IQueryAllBalancesRequest { + /** + * Constructs a new QueryAllBalancesRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryAllBalancesRequest); + + /** QueryAllBalancesRequest address. */ + public address: Uint8Array; + + /** QueryAllBalancesRequest pagination. */ + public pagination?: cosmos.query.IPageRequest | null; + + /** + * Creates a new QueryAllBalancesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesRequest instance + */ + public static create( + properties?: cosmos.bank.IQueryAllBalancesRequest, + ): cosmos.bank.QueryAllBalancesRequest; + + /** + * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos.bank.QueryAllBalancesRequest.verify|verify} messages. + * @param m QueryAllBalancesRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryAllBalancesRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAllBalancesRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAllBalancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryAllBalancesRequest; + } + + /** Properties of a QueryAllBalancesResponse. */ + interface IQueryAllBalancesResponse { + /** QueryAllBalancesResponse balances */ + balances?: cosmos.ICoin[] | null; + + /** QueryAllBalancesResponse pagination */ + pagination?: cosmos.query.IPageResponse | null; + } + + /** Represents a QueryAllBalancesResponse. */ + class QueryAllBalancesResponse implements IQueryAllBalancesResponse { + /** + * Constructs a new QueryAllBalancesResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryAllBalancesResponse); + + /** QueryAllBalancesResponse balances. */ + public balances: cosmos.ICoin[]; + + /** QueryAllBalancesResponse pagination. */ + public pagination?: cosmos.query.IPageResponse | null; + + /** + * Creates a new QueryAllBalancesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesResponse instance + */ + public static create( + properties?: cosmos.bank.IQueryAllBalancesResponse, + ): cosmos.bank.QueryAllBalancesResponse; + + /** + * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos.bank.QueryAllBalancesResponse.verify|verify} messages. + * @param m QueryAllBalancesResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryAllBalancesResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAllBalancesResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAllBalancesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.QueryAllBalancesResponse; + } + + /** Properties of a QueryTotalSupplyRequest. */ + interface IQueryTotalSupplyRequest {} + + /** Represents a QueryTotalSupplyRequest. */ + class QueryTotalSupplyRequest implements IQueryTotalSupplyRequest { + /** + * Constructs a new QueryTotalSupplyRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryTotalSupplyRequest); + + /** + * Creates a new QueryTotalSupplyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyRequest instance + */ + public static create( + properties?: cosmos.bank.IQueryTotalSupplyRequest, + ): cosmos.bank.QueryTotalSupplyRequest; + + /** + * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos.bank.QueryTotalSupplyRequest.verify|verify} messages. + * @param m QueryTotalSupplyRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryTotalSupplyRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryTotalSupplyRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryTotalSupplyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryTotalSupplyRequest; + } + + /** Properties of a QueryTotalSupplyResponse. */ + interface IQueryTotalSupplyResponse { + /** QueryTotalSupplyResponse supply */ + supply?: cosmos.ICoin[] | null; + } + + /** Represents a QueryTotalSupplyResponse. */ + class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { + /** + * Constructs a new QueryTotalSupplyResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryTotalSupplyResponse); + + /** QueryTotalSupplyResponse supply. */ + public supply: cosmos.ICoin[]; + + /** + * Creates a new QueryTotalSupplyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyResponse instance + */ + public static create( + properties?: cosmos.bank.IQueryTotalSupplyResponse, + ): cosmos.bank.QueryTotalSupplyResponse; + + /** + * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos.bank.QueryTotalSupplyResponse.verify|verify} messages. + * @param m QueryTotalSupplyResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryTotalSupplyResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryTotalSupplyResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryTotalSupplyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.QueryTotalSupplyResponse; + } + + /** Properties of a QuerySupplyOfRequest. */ + interface IQuerySupplyOfRequest { + /** QuerySupplyOfRequest denom */ + denom?: string | null; + } + + /** Represents a QuerySupplyOfRequest. */ + class QuerySupplyOfRequest implements IQuerySupplyOfRequest { + /** + * Constructs a new QuerySupplyOfRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQuerySupplyOfRequest); + + /** QuerySupplyOfRequest denom. */ + public denom: string; + + /** + * Creates a new QuerySupplyOfRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfRequest instance + */ + public static create(properties?: cosmos.bank.IQuerySupplyOfRequest): cosmos.bank.QuerySupplyOfRequest; + + /** + * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos.bank.QuerySupplyOfRequest.verify|verify} messages. + * @param m QuerySupplyOfRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQuerySupplyOfRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuerySupplyOfRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QuerySupplyOfRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QuerySupplyOfRequest; + } + + /** Properties of a QuerySupplyOfResponse. */ + interface IQuerySupplyOfResponse { + /** QuerySupplyOfResponse amount */ + amount?: cosmos.ICoin | null; + } + + /** Represents a QuerySupplyOfResponse. */ + class QuerySupplyOfResponse implements IQuerySupplyOfResponse { + /** + * Constructs a new QuerySupplyOfResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQuerySupplyOfResponse); + + /** QuerySupplyOfResponse amount. */ + public amount?: cosmos.ICoin | null; + + /** + * Creates a new QuerySupplyOfResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfResponse instance + */ + public static create( + properties?: cosmos.bank.IQuerySupplyOfResponse, + ): cosmos.bank.QuerySupplyOfResponse; + + /** + * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos.bank.QuerySupplyOfResponse.verify|verify} messages. + * @param m QuerySupplyOfResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQuerySupplyOfResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuerySupplyOfResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QuerySupplyOfResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QuerySupplyOfResponse; + } + } + + /** Namespace crypto. */ + namespace crypto { + /** Properties of a PublicKey. */ + interface IPublicKey { + /** PublicKey secp256k1 */ + secp256k1?: Uint8Array | null; + + /** PublicKey ed25519 */ + ed25519?: Uint8Array | null; + + /** PublicKey sr25519 */ + sr25519?: Uint8Array | null; + + /** PublicKey multisig */ + multisig?: cosmos.crypto.IPubKeyMultisigThreshold | null; + + /** PublicKey secp256r1 */ + secp256r1?: Uint8Array | null; + + /** PublicKey anyPubkey */ + anyPubkey?: google.protobuf.IAny | null; + } + + /** Represents a PublicKey. */ + class PublicKey implements IPublicKey { + /** + * Constructs a new PublicKey. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.IPublicKey); + + /** PublicKey secp256k1. */ + public secp256k1: Uint8Array; + + /** PublicKey ed25519. */ + public ed25519: Uint8Array; + + /** PublicKey sr25519. */ + public sr25519: Uint8Array; + + /** PublicKey multisig. */ + public multisig?: cosmos.crypto.IPubKeyMultisigThreshold | null; + + /** PublicKey secp256r1. */ + public secp256r1: Uint8Array; + + /** PublicKey anyPubkey. */ + public anyPubkey?: google.protobuf.IAny | null; + + /** PublicKey sum. */ + public sum?: "secp256k1" | "ed25519" | "sr25519" | "multisig" | "secp256r1" | "anyPubkey"; + + /** + * Creates a new PublicKey instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicKey instance + */ + public static create(properties?: cosmos.crypto.IPublicKey): cosmos.crypto.PublicKey; + + /** + * Encodes the specified PublicKey message. Does not implicitly {@link cosmos.crypto.PublicKey.verify|verify} messages. + * @param m PublicKey message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.IPublicKey, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicKey message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PublicKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.PublicKey; + } + + /** Properties of a PubKeyMultisigThreshold. */ + interface IPubKeyMultisigThreshold { + /** PubKeyMultisigThreshold threshold */ + threshold?: number | null; + + /** PubKeyMultisigThreshold publicKeys */ + publicKeys?: cosmos.crypto.IPublicKey[] | null; + } + + /** Represents a PubKeyMultisigThreshold. */ + class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { + /** + * Constructs a new PubKeyMultisigThreshold. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.IPubKeyMultisigThreshold); + + /** PubKeyMultisigThreshold threshold. */ + public threshold: number; + + /** PubKeyMultisigThreshold publicKeys. */ + public publicKeys: cosmos.crypto.IPublicKey[]; + + /** + * Creates a new PubKeyMultisigThreshold instance using the specified properties. + * @param [properties] Properties to set + * @returns PubKeyMultisigThreshold instance + */ + public static create( + properties?: cosmos.crypto.IPubKeyMultisigThreshold, + ): cosmos.crypto.PubKeyMultisigThreshold; + + /** + * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos.crypto.PubKeyMultisigThreshold.verify|verify} messages. + * @param m PubKeyMultisigThreshold message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.IPubKeyMultisigThreshold, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PubKeyMultisigThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.crypto.PubKeyMultisigThreshold; + } + + /** Properties of a MultiSignature. */ + interface IMultiSignature { + /** MultiSignature signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a MultiSignature. */ + class MultiSignature implements IMultiSignature { + /** + * Constructs a new MultiSignature. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.IMultiSignature); + + /** MultiSignature signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new MultiSignature instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiSignature instance + */ + public static create(properties?: cosmos.crypto.IMultiSignature): cosmos.crypto.MultiSignature; + + /** + * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos.crypto.MultiSignature.verify|verify} messages. + * @param m MultiSignature message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.IMultiSignature, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiSignature message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MultiSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.MultiSignature; + } + + /** Properties of a CompactBitArray. */ + interface ICompactBitArray { + /** CompactBitArray extraBitsStored */ + extraBitsStored?: number | null; + + /** CompactBitArray elems */ + elems?: Uint8Array | null; + } + + /** Represents a CompactBitArray. */ + class CompactBitArray implements ICompactBitArray { + /** + * Constructs a new CompactBitArray. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.ICompactBitArray); + + /** CompactBitArray extraBitsStored. */ + public extraBitsStored: number; + + /** CompactBitArray elems. */ + public elems: Uint8Array; + + /** + * Creates a new CompactBitArray instance using the specified properties. + * @param [properties] Properties to set + * @returns CompactBitArray instance + */ + public static create(properties?: cosmos.crypto.ICompactBitArray): cosmos.crypto.CompactBitArray; + + /** + * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos.crypto.CompactBitArray.verify|verify} messages. + * @param m CompactBitArray message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.ICompactBitArray, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompactBitArray message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns CompactBitArray + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.CompactBitArray; + } + } + + /** Namespace query. */ + namespace query { + /** Properties of a PageRequest. */ + interface IPageRequest { + /** PageRequest key */ + key?: Uint8Array | null; + + /** PageRequest offset */ + offset?: number | Long | null; + + /** PageRequest limit */ + limit?: number | Long | null; + + /** PageRequest countTotal */ + countTotal?: boolean | null; + } + + /** Represents a PageRequest. */ + class PageRequest implements IPageRequest { + /** + * Constructs a new PageRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.query.IPageRequest); + + /** PageRequest key. */ + public key: Uint8Array; + + /** PageRequest offset. */ + public offset: number | Long; + + /** PageRequest limit. */ + public limit: number | Long; + + /** PageRequest countTotal. */ + public countTotal: boolean; + + /** + * Creates a new PageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PageRequest instance + */ + public static create(properties?: cosmos.query.IPageRequest): cosmos.query.PageRequest; + + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.query.PageRequest.verify|verify} messages. + * @param m PageRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.query.IPageRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.query.PageRequest; + } + + /** Properties of a PageResponse. */ + interface IPageResponse { + /** PageResponse nextKey */ + nextKey?: Uint8Array | null; + + /** PageResponse total */ + total?: number | Long | null; + } + + /** Represents a PageResponse. */ + class PageResponse implements IPageResponse { + /** + * Constructs a new PageResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.query.IPageResponse); + + /** PageResponse nextKey. */ + public nextKey: Uint8Array; + + /** PageResponse total. */ + public total: number | Long; + + /** + * Creates a new PageResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PageResponse instance + */ + public static create(properties?: cosmos.query.IPageResponse): cosmos.query.PageResponse; + + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.query.PageResponse.verify|verify} messages. + * @param m PageResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.query.IPageResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.query.PageResponse; + } + } + + /** Namespace tx. */ + namespace tx { + /** Properties of a Tx. */ + interface ITx { + /** Tx body */ + body?: cosmos.tx.ITxBody | null; + + /** Tx authInfo */ + authInfo?: cosmos.tx.IAuthInfo | null; + + /** Tx signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a Tx. */ + class Tx implements ITx { + /** + * Constructs a new Tx. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ITx); + + /** Tx body. */ + public body?: cosmos.tx.ITxBody | null; + + /** Tx authInfo. */ + public authInfo?: cosmos.tx.IAuthInfo | null; + + /** Tx signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new Tx instance using the specified properties. + * @param [properties] Properties to set + * @returns Tx instance + */ + public static create(properties?: cosmos.tx.ITx): cosmos.tx.Tx; + + /** + * Encodes the specified Tx message. Does not implicitly {@link cosmos.tx.Tx.verify|verify} messages. + * @param m Tx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ITx, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Tx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Tx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Tx; + } + + /** Properties of a TxRaw. */ + interface ITxRaw { + /** TxRaw bodyBytes */ + bodyBytes?: Uint8Array | null; + + /** TxRaw authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** TxRaw signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a TxRaw. */ + class TxRaw implements ITxRaw { + /** + * Constructs a new TxRaw. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ITxRaw); + + /** TxRaw bodyBytes. */ + public bodyBytes: Uint8Array; + + /** TxRaw authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** TxRaw signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new TxRaw instance using the specified properties. + * @param [properties] Properties to set + * @returns TxRaw instance + */ + public static create(properties?: cosmos.tx.ITxRaw): cosmos.tx.TxRaw; + + /** + * Encodes the specified TxRaw message. Does not implicitly {@link cosmos.tx.TxRaw.verify|verify} messages. + * @param m TxRaw message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ITxRaw, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxRaw message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxRaw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.TxRaw; + } + + /** Properties of a SignDoc. */ + interface ISignDoc { + /** SignDoc bodyBytes */ + bodyBytes?: Uint8Array | null; + + /** SignDoc authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** SignDoc chainId */ + chainId?: string | null; + + /** SignDoc accountNumber */ + accountNumber?: number | Long | null; + + /** SignDoc accountSequence */ + accountSequence?: number | Long | null; + } + + /** Represents a SignDoc. */ + class SignDoc implements ISignDoc { + /** + * Constructs a new SignDoc. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ISignDoc); + + /** SignDoc bodyBytes. */ + public bodyBytes: Uint8Array; + + /** SignDoc authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** SignDoc chainId. */ + public chainId: string; + + /** SignDoc accountNumber. */ + public accountNumber: number | Long; + + /** SignDoc accountSequence. */ + public accountSequence: number | Long; + + /** + * Creates a new SignDoc instance using the specified properties. + * @param [properties] Properties to set + * @returns SignDoc instance + */ + public static create(properties?: cosmos.tx.ISignDoc): cosmos.tx.SignDoc; + + /** + * Encodes the specified SignDoc message. Does not implicitly {@link cosmos.tx.SignDoc.verify|verify} messages. + * @param m SignDoc message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ISignDoc, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignDoc message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignDoc + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.SignDoc; + } + + /** Properties of a TxBody. */ + interface ITxBody { + /** TxBody messages */ + messages?: google.protobuf.IAny[] | null; + + /** TxBody memo */ + memo?: string | null; + + /** TxBody timeoutHeight */ + timeoutHeight?: number | Long | null; + + /** TxBody extensionOptions */ + extensionOptions?: google.protobuf.IAny[] | null; + + /** TxBody nonCriticalExtensionOptions */ + nonCriticalExtensionOptions?: google.protobuf.IAny[] | null; + } + + /** Represents a TxBody. */ + class TxBody implements ITxBody { + /** + * Constructs a new TxBody. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ITxBody); + + /** TxBody messages. */ + public messages: google.protobuf.IAny[]; + + /** TxBody memo. */ + public memo: string; + + /** TxBody timeoutHeight. */ + public timeoutHeight: number | Long; + + /** TxBody extensionOptions. */ + public extensionOptions: google.protobuf.IAny[]; + + /** TxBody nonCriticalExtensionOptions. */ + public nonCriticalExtensionOptions: google.protobuf.IAny[]; + + /** + * Creates a new TxBody instance using the specified properties. + * @param [properties] Properties to set + * @returns TxBody instance + */ + public static create(properties?: cosmos.tx.ITxBody): cosmos.tx.TxBody; + + /** + * Encodes the specified TxBody message. Does not implicitly {@link cosmos.tx.TxBody.verify|verify} messages. + * @param m TxBody message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ITxBody, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxBody message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.TxBody; + } + + /** Properties of an AuthInfo. */ + interface IAuthInfo { + /** AuthInfo signerInfos */ + signerInfos?: cosmos.tx.ISignerInfo[] | null; + + /** AuthInfo fee */ + fee?: cosmos.tx.IFee | null; + } + + /** Represents an AuthInfo. */ + class AuthInfo implements IAuthInfo { + /** + * Constructs a new AuthInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.IAuthInfo); + + /** AuthInfo signerInfos. */ + public signerInfos: cosmos.tx.ISignerInfo[]; + + /** AuthInfo fee. */ + public fee?: cosmos.tx.IFee | null; + + /** + * Creates a new AuthInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthInfo instance + */ + public static create(properties?: cosmos.tx.IAuthInfo): cosmos.tx.AuthInfo; + + /** + * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos.tx.AuthInfo.verify|verify} messages. + * @param m AuthInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.IAuthInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuthInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns AuthInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.AuthInfo; + } + + /** Properties of a SignerInfo. */ + interface ISignerInfo { + /** SignerInfo publicKey */ + publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignerInfo modeInfo */ + modeInfo?: cosmos.tx.IModeInfo | null; + } + + /** Represents a SignerInfo. */ + class SignerInfo implements ISignerInfo { + /** + * Constructs a new SignerInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ISignerInfo); + + /** SignerInfo publicKey. */ + public publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignerInfo modeInfo. */ + public modeInfo?: cosmos.tx.IModeInfo | null; + + /** + * Creates a new SignerInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SignerInfo instance + */ + public static create(properties?: cosmos.tx.ISignerInfo): cosmos.tx.SignerInfo; + + /** + * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos.tx.SignerInfo.verify|verify} messages. + * @param m SignerInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ISignerInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignerInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignerInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.SignerInfo; + } + + /** Properties of a ModeInfo. */ + interface IModeInfo { + /** ModeInfo single */ + single?: cosmos.tx.ModeInfo.ISingle | null; + + /** ModeInfo multi */ + multi?: cosmos.tx.ModeInfo.IMulti | null; + } + + /** Represents a ModeInfo. */ + class ModeInfo implements IModeInfo { + /** + * Constructs a new ModeInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.IModeInfo); + + /** ModeInfo single. */ + public single?: cosmos.tx.ModeInfo.ISingle | null; + + /** ModeInfo multi. */ + public multi?: cosmos.tx.ModeInfo.IMulti | null; + + /** ModeInfo sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new ModeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ModeInfo instance + */ + public static create(properties?: cosmos.tx.IModeInfo): cosmos.tx.ModeInfo; + + /** + * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos.tx.ModeInfo.verify|verify} messages. + * @param m ModeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.IModeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ModeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo; + } + + namespace ModeInfo { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.SignMode | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ModeInfo.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.SignMode; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create(properties?: cosmos.tx.ModeInfo.ISingle): cosmos.tx.ModeInfo.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.ModeInfo.Single.verify|verify} messages. + * @param m Single message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ModeInfo.ISingle, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Single message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Single + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi modeInfos */ + modeInfos?: cosmos.tx.IModeInfo[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ModeInfo.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi modeInfos. */ + public modeInfos: cosmos.tx.IModeInfo[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create(properties?: cosmos.tx.ModeInfo.IMulti): cosmos.tx.ModeInfo.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.ModeInfo.Multi.verify|verify} messages. + * @param m Multi message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ModeInfo.IMulti, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Multi message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Multi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo.Multi; + } + } + + /** Properties of a Fee. */ + interface IFee { + /** Fee amount */ + amount?: cosmos.ICoin[] | null; + + /** Fee gasLimit */ + gasLimit?: number | Long | null; + } + + /** Represents a Fee. */ + class Fee implements IFee { + /** + * Constructs a new Fee. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.IFee); + + /** Fee amount. */ + public amount: cosmos.ICoin[]; + + /** Fee gasLimit. */ + public gasLimit: number | Long; + + /** + * Creates a new Fee instance using the specified properties. + * @param [properties] Properties to set + * @returns Fee instance + */ + public static create(properties?: cosmos.tx.IFee): cosmos.tx.Fee; + + /** + * Encodes the specified Fee message. Does not implicitly {@link cosmos.tx.Fee.verify|verify} messages. + * @param m Fee message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.IFee, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Fee message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Fee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Fee; + } + + /** Namespace signing. */ + namespace signing { + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127, + } + + /** Properties of a SignatureDescriptors. */ + interface ISignatureDescriptors { + /** SignatureDescriptors signatures */ + signatures?: cosmos.tx.signing.ISignatureDescriptor[] | null; + } + + /** Represents a SignatureDescriptors. */ + class SignatureDescriptors implements ISignatureDescriptors { + /** + * Constructs a new SignatureDescriptors. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.ISignatureDescriptors); + + /** SignatureDescriptors signatures. */ + public signatures: cosmos.tx.signing.ISignatureDescriptor[]; + + /** + * Creates a new SignatureDescriptors instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptors instance + */ + public static create( + properties?: cosmos.tx.signing.ISignatureDescriptors, + ): cosmos.tx.signing.SignatureDescriptors; + + /** + * Encodes the specified SignatureDescriptors message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptors.verify|verify} messages. + * @param m SignatureDescriptors message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.ISignatureDescriptors, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptors message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptors + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptors; + } + + /** Properties of a SignatureDescriptor. */ + interface ISignatureDescriptor { + /** SignatureDescriptor publicKey */ + publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignatureDescriptor data */ + data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + } + + /** Represents a SignatureDescriptor. */ + class SignatureDescriptor implements ISignatureDescriptor { + /** + * Constructs a new SignatureDescriptor. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.ISignatureDescriptor); + + /** SignatureDescriptor publicKey. */ + public publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignatureDescriptor data. */ + public data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + + /** + * Creates a new SignatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptor instance + */ + public static create( + properties?: cosmos.tx.signing.ISignatureDescriptor, + ): cosmos.tx.signing.SignatureDescriptor; + + /** + * Encodes the specified SignatureDescriptor message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.verify|verify} messages. + * @param m SignatureDescriptor message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.ISignatureDescriptor, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptor message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor; + } + + namespace SignatureDescriptor { + /** Properties of a Data. */ + interface IData { + /** Data single */ + single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; + + /** Data multi */ + multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; + } + + /** Represents a Data. */ + class Data implements IData { + /** + * Constructs a new Data. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.SignatureDescriptor.IData); + + /** Data single. */ + public single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; + + /** Data multi. */ + public multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; + + /** Data sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create( + properties?: cosmos.tx.signing.SignatureDescriptor.IData, + ): cosmos.tx.signing.SignatureDescriptor.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.verify|verify} messages. + * @param m Data message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.SignatureDescriptor.IData, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor.Data; + } + + namespace Data { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.SignMode | null; + + /** Single signature */ + signature?: Uint8Array | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.SignMode; + + /** Single signature. */ + public signature: Uint8Array; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle, + ): cosmos.tx.signing.SignatureDescriptor.Data.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.Single.verify|verify} messages. + * @param m Single message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.SignatureDescriptor.Data.ISingle, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Single message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Single + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor.Data.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi signatures */ + signatures?: cosmos.tx.signing.SignatureDescriptor.IData[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi signatures. */ + public signatures: cosmos.tx.signing.SignatureDescriptor.IData[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti, + ): cosmos.tx.signing.SignatureDescriptor.Data.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.Multi.verify|verify} messages. + * @param m Multi message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.SignatureDescriptor.Data.IMulti, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Multi message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Multi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor.Data.Multi; + } + } + } + } + } +} + +/** Namespace tendermint. */ +export namespace tendermint { + /** Namespace abci. */ + namespace abci { + /** Namespace types. */ + namespace types { + /** Properties of a Request. */ + interface IRequest { + /** Request echo */ + echo?: tendermint.abci.types.IRequestEcho | null; + + /** Request flush */ + flush?: tendermint.abci.types.IRequestFlush | null; + + /** Request info */ + info?: tendermint.abci.types.IRequestInfo | null; + + /** Request setOption */ + setOption?: tendermint.abci.types.IRequestSetOption | null; + + /** Request initChain */ + initChain?: tendermint.abci.types.IRequestInitChain | null; + + /** Request query */ + query?: tendermint.abci.types.IRequestQuery | null; + + /** Request beginBlock */ + beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; + + /** Request checkTx */ + checkTx?: tendermint.abci.types.IRequestCheckTx | null; + + /** Request deliverTx */ + deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; + + /** Request endBlock */ + endBlock?: tendermint.abci.types.IRequestEndBlock | null; + + /** Request commit */ + commit?: tendermint.abci.types.IRequestCommit | null; + } + + /** Represents a Request. */ + class Request implements IRequest { + /** + * Constructs a new Request. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequest); + + /** Request echo. */ + public echo?: tendermint.abci.types.IRequestEcho | null; + + /** Request flush. */ + public flush?: tendermint.abci.types.IRequestFlush | null; + + /** Request info. */ + public info?: tendermint.abci.types.IRequestInfo | null; + + /** Request setOption. */ + public setOption?: tendermint.abci.types.IRequestSetOption | null; + + /** Request initChain. */ + public initChain?: tendermint.abci.types.IRequestInitChain | null; + + /** Request query. */ + public query?: tendermint.abci.types.IRequestQuery | null; + + /** Request beginBlock. */ + public beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; + + /** Request checkTx. */ + public checkTx?: tendermint.abci.types.IRequestCheckTx | null; + + /** Request deliverTx. */ + public deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; + + /** Request endBlock. */ + public endBlock?: tendermint.abci.types.IRequestEndBlock | null; + + /** Request commit. */ + public commit?: tendermint.abci.types.IRequestCommit | null; + + /** Request value. */ + public value?: + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit"; + + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: tendermint.abci.types.IRequest): tendermint.abci.types.Request; + + /** + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.types.Request.verify|verify} messages. + * @param m Request message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Request message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Request + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Request; + } + + /** Properties of a RequestEcho. */ + interface IRequestEcho { + /** RequestEcho message */ + message?: string | null; + } + + /** Represents a RequestEcho. */ + class RequestEcho implements IRequestEcho { + /** + * Constructs a new RequestEcho. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestEcho); + + /** RequestEcho message. */ + public message: string; + + /** + * Creates a new RequestEcho instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestEcho instance + */ + public static create( + properties?: tendermint.abci.types.IRequestEcho, + ): tendermint.abci.types.RequestEcho; + + /** + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.types.RequestEcho.verify|verify} messages. + * @param m RequestEcho message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestEcho, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestEcho message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestEcho; + } + + /** Properties of a RequestFlush. */ + interface IRequestFlush {} + + /** Represents a RequestFlush. */ + class RequestFlush implements IRequestFlush { + /** + * Constructs a new RequestFlush. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestFlush); + + /** + * Creates a new RequestFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestFlush instance + */ + public static create( + properties?: tendermint.abci.types.IRequestFlush, + ): tendermint.abci.types.RequestFlush; + + /** + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.types.RequestFlush.verify|verify} messages. + * @param m RequestFlush message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestFlush, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestFlush message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestFlush; + } + + /** Properties of a RequestInfo. */ + interface IRequestInfo { + /** RequestInfo version */ + version?: string | null; + + /** RequestInfo blockVersion */ + blockVersion?: number | Long | null; + + /** RequestInfo p2pVersion */ + p2pVersion?: number | Long | null; + } + + /** Represents a RequestInfo. */ + class RequestInfo implements IRequestInfo { + /** + * Constructs a new RequestInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestInfo); + + /** RequestInfo version. */ + public version: string; + + /** RequestInfo blockVersion. */ + public blockVersion: number | Long; + + /** RequestInfo p2pVersion. */ + public p2pVersion: number | Long; + + /** + * Creates a new RequestInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInfo instance + */ + public static create( + properties?: tendermint.abci.types.IRequestInfo, + ): tendermint.abci.types.RequestInfo; + + /** + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.types.RequestInfo.verify|verify} messages. + * @param m RequestInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestInfo; + } + + /** Properties of a RequestSetOption. */ + interface IRequestSetOption { + /** RequestSetOption key */ + key?: string | null; + + /** RequestSetOption value */ + value?: string | null; + } + + /** Represents a RequestSetOption. */ + class RequestSetOption implements IRequestSetOption { + /** + * Constructs a new RequestSetOption. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestSetOption); + + /** RequestSetOption key. */ + public key: string; + + /** RequestSetOption value. */ + public value: string; + + /** + * Creates a new RequestSetOption instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestSetOption instance + */ + public static create( + properties?: tendermint.abci.types.IRequestSetOption, + ): tendermint.abci.types.RequestSetOption; + + /** + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.types.RequestSetOption.verify|verify} messages. + * @param m RequestSetOption message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestSetOption, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestSetOption message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestSetOption; + } + + /** Properties of a RequestInitChain. */ + interface IRequestInitChain { + /** RequestInitChain time */ + time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId */ + chainId?: string | null; + + /** RequestInitChain consensusParams */ + consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** RequestInitChain validators */ + validators?: tendermint.abci.types.IValidatorUpdate[] | null; + + /** RequestInitChain appStateBytes */ + appStateBytes?: Uint8Array | null; + } + + /** Represents a RequestInitChain. */ + class RequestInitChain implements IRequestInitChain { + /** + * Constructs a new RequestInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestInitChain); + + /** RequestInitChain time. */ + public time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId. */ + public chainId: string; + + /** RequestInitChain consensusParams. */ + public consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** RequestInitChain validators. */ + public validators: tendermint.abci.types.IValidatorUpdate[]; + + /** RequestInitChain appStateBytes. */ + public appStateBytes: Uint8Array; + + /** + * Creates a new RequestInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInitChain instance + */ + public static create( + properties?: tendermint.abci.types.IRequestInitChain, + ): tendermint.abci.types.RequestInitChain; + + /** + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.types.RequestInitChain.verify|verify} messages. + * @param m RequestInitChain message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestInitChain, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestInitChain message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestInitChain; + } + + /** Properties of a RequestQuery. */ + interface IRequestQuery { + /** RequestQuery data */ + data?: Uint8Array | null; + + /** RequestQuery path */ + path?: string | null; + + /** RequestQuery height */ + height?: number | Long | null; + + /** RequestQuery prove */ + prove?: boolean | null; + } + + /** Represents a RequestQuery. */ + class RequestQuery implements IRequestQuery { + /** + * Constructs a new RequestQuery. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestQuery); + + /** RequestQuery data. */ + public data: Uint8Array; + + /** RequestQuery path. */ + public path: string; + + /** RequestQuery height. */ + public height: number | Long; + + /** RequestQuery prove. */ + public prove: boolean; + + /** + * Creates a new RequestQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestQuery instance + */ + public static create( + properties?: tendermint.abci.types.IRequestQuery, + ): tendermint.abci.types.RequestQuery; + + /** + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.types.RequestQuery.verify|verify} messages. + * @param m RequestQuery message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestQuery, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestQuery message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestQuery; + } + + /** Properties of a RequestBeginBlock. */ + interface IRequestBeginBlock { + /** RequestBeginBlock hash */ + hash?: Uint8Array | null; + + /** RequestBeginBlock header */ + header?: tendermint.abci.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo */ + lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators */ + byzantineValidators?: tendermint.abci.types.IEvidence[] | null; + } + + /** Represents a RequestBeginBlock. */ + class RequestBeginBlock implements IRequestBeginBlock { + /** + * Constructs a new RequestBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestBeginBlock); + + /** RequestBeginBlock hash. */ + public hash: Uint8Array; + + /** RequestBeginBlock header. */ + public header?: tendermint.abci.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo. */ + public lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators. */ + public byzantineValidators: tendermint.abci.types.IEvidence[]; + + /** + * Creates a new RequestBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestBeginBlock instance + */ + public static create( + properties?: tendermint.abci.types.IRequestBeginBlock, + ): tendermint.abci.types.RequestBeginBlock; + + /** + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.types.RequestBeginBlock.verify|verify} messages. + * @param m RequestBeginBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestBeginBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestBeginBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestBeginBlock; + } + + /** CheckTxType enum. */ + enum CheckTxType { + New = 0, + Recheck = 1, + } + + /** Properties of a RequestCheckTx. */ + interface IRequestCheckTx { + /** RequestCheckTx tx */ + tx?: Uint8Array | null; + + /** RequestCheckTx type */ + type?: tendermint.abci.types.CheckTxType | null; + } + + /** Represents a RequestCheckTx. */ + class RequestCheckTx implements IRequestCheckTx { + /** + * Constructs a new RequestCheckTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestCheckTx); + + /** RequestCheckTx tx. */ + public tx: Uint8Array; + + /** RequestCheckTx type. */ + public type: tendermint.abci.types.CheckTxType; + + /** + * Creates a new RequestCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCheckTx instance + */ + public static create( + properties?: tendermint.abci.types.IRequestCheckTx, + ): tendermint.abci.types.RequestCheckTx; + + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.types.RequestCheckTx.verify|verify} messages. + * @param m RequestCheckTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestCheckTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestCheckTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestCheckTx; + } + + /** Properties of a RequestDeliverTx. */ + interface IRequestDeliverTx { + /** RequestDeliverTx tx */ + tx?: Uint8Array | null; + } + + /** Represents a RequestDeliverTx. */ + class RequestDeliverTx implements IRequestDeliverTx { + /** + * Constructs a new RequestDeliverTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestDeliverTx); + + /** RequestDeliverTx tx. */ + public tx: Uint8Array; + + /** + * Creates a new RequestDeliverTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestDeliverTx instance + */ + public static create( + properties?: tendermint.abci.types.IRequestDeliverTx, + ): tendermint.abci.types.RequestDeliverTx; + + /** + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.types.RequestDeliverTx.verify|verify} messages. + * @param m RequestDeliverTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestDeliverTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestDeliverTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestDeliverTx; + } + + /** Properties of a RequestEndBlock. */ + interface IRequestEndBlock { + /** RequestEndBlock height */ + height?: number | Long | null; + } + + /** Represents a RequestEndBlock. */ + class RequestEndBlock implements IRequestEndBlock { + /** + * Constructs a new RequestEndBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestEndBlock); + + /** RequestEndBlock height. */ + public height: number | Long; + + /** + * Creates a new RequestEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestEndBlock instance + */ + public static create( + properties?: tendermint.abci.types.IRequestEndBlock, + ): tendermint.abci.types.RequestEndBlock; + + /** + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.types.RequestEndBlock.verify|verify} messages. + * @param m RequestEndBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestEndBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestEndBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestEndBlock; + } + + /** Properties of a RequestCommit. */ + interface IRequestCommit {} + + /** Represents a RequestCommit. */ + class RequestCommit implements IRequestCommit { + /** + * Constructs a new RequestCommit. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestCommit); + + /** + * Creates a new RequestCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCommit instance + */ + public static create( + properties?: tendermint.abci.types.IRequestCommit, + ): tendermint.abci.types.RequestCommit; + + /** + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.types.RequestCommit.verify|verify} messages. + * @param m RequestCommit message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestCommit, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestCommit message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestCommit; + } + + /** Properties of a Response. */ + interface IResponse { + /** Response exception */ + exception?: tendermint.abci.types.IResponseException | null; + + /** Response echo */ + echo?: tendermint.abci.types.IResponseEcho | null; + + /** Response flush */ + flush?: tendermint.abci.types.IResponseFlush | null; + + /** Response info */ + info?: tendermint.abci.types.IResponseInfo | null; + + /** Response setOption */ + setOption?: tendermint.abci.types.IResponseSetOption | null; + + /** Response initChain */ + initChain?: tendermint.abci.types.IResponseInitChain | null; + + /** Response query */ + query?: tendermint.abci.types.IResponseQuery | null; + + /** Response beginBlock */ + beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; + + /** Response checkTx */ + checkTx?: tendermint.abci.types.IResponseCheckTx | null; + + /** Response deliverTx */ + deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; + + /** Response endBlock */ + endBlock?: tendermint.abci.types.IResponseEndBlock | null; + + /** Response commit */ + commit?: tendermint.abci.types.IResponseCommit | null; + } + + /** Represents a Response. */ + class Response implements IResponse { + /** + * Constructs a new Response. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponse); + + /** Response exception. */ + public exception?: tendermint.abci.types.IResponseException | null; + + /** Response echo. */ + public echo?: tendermint.abci.types.IResponseEcho | null; + + /** Response flush. */ + public flush?: tendermint.abci.types.IResponseFlush | null; + + /** Response info. */ + public info?: tendermint.abci.types.IResponseInfo | null; + + /** Response setOption. */ + public setOption?: tendermint.abci.types.IResponseSetOption | null; + + /** Response initChain. */ + public initChain?: tendermint.abci.types.IResponseInitChain | null; + + /** Response query. */ + public query?: tendermint.abci.types.IResponseQuery | null; + + /** Response beginBlock. */ + public beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; + + /** Response checkTx. */ + public checkTx?: tendermint.abci.types.IResponseCheckTx | null; + + /** Response deliverTx. */ + public deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; + + /** Response endBlock. */ + public endBlock?: tendermint.abci.types.IResponseEndBlock | null; + + /** Response commit. */ + public commit?: tendermint.abci.types.IResponseCommit | null; + + /** Response value. */ + public value?: + | "exception" + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit"; + + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: tendermint.abci.types.IResponse): tendermint.abci.types.Response; + + /** + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.types.Response.verify|verify} messages. + * @param m Response message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Response message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Response + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Response; + } + + /** Properties of a ResponseException. */ + interface IResponseException { + /** ResponseException error */ + error?: string | null; + } + + /** Represents a ResponseException. */ + class ResponseException implements IResponseException { + /** + * Constructs a new ResponseException. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseException); + + /** ResponseException error. */ + public error: string; + + /** + * Creates a new ResponseException instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseException instance + */ + public static create( + properties?: tendermint.abci.types.IResponseException, + ): tendermint.abci.types.ResponseException; + + /** + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.types.ResponseException.verify|verify} messages. + * @param m ResponseException message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseException, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseException message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseException + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseException; + } + + /** Properties of a ResponseEcho. */ + interface IResponseEcho { + /** ResponseEcho message */ + message?: string | null; + } + + /** Represents a ResponseEcho. */ + class ResponseEcho implements IResponseEcho { + /** + * Constructs a new ResponseEcho. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseEcho); + + /** ResponseEcho message. */ + public message: string; + + /** + * Creates a new ResponseEcho instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEcho instance + */ + public static create( + properties?: tendermint.abci.types.IResponseEcho, + ): tendermint.abci.types.ResponseEcho; + + /** + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.types.ResponseEcho.verify|verify} messages. + * @param m ResponseEcho message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseEcho, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseEcho message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseEcho; + } + + /** Properties of a ResponseFlush. */ + interface IResponseFlush {} + + /** Represents a ResponseFlush. */ + class ResponseFlush implements IResponseFlush { + /** + * Constructs a new ResponseFlush. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseFlush); + + /** + * Creates a new ResponseFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseFlush instance + */ + public static create( + properties?: tendermint.abci.types.IResponseFlush, + ): tendermint.abci.types.ResponseFlush; + + /** + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.types.ResponseFlush.verify|verify} messages. + * @param m ResponseFlush message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseFlush, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseFlush message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseFlush; + } + + /** Properties of a ResponseInfo. */ + interface IResponseInfo { + /** ResponseInfo data */ + data?: string | null; + + /** ResponseInfo version */ + version?: string | null; + + /** ResponseInfo appVersion */ + appVersion?: number | Long | null; + + /** ResponseInfo lastBlockHeight */ + lastBlockHeight?: number | Long | null; + + /** ResponseInfo lastBlockAppHash */ + lastBlockAppHash?: Uint8Array | null; + } + + /** Represents a ResponseInfo. */ + class ResponseInfo implements IResponseInfo { + /** + * Constructs a new ResponseInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseInfo); + + /** ResponseInfo data. */ + public data: string; + + /** ResponseInfo version. */ + public version: string; + + /** ResponseInfo appVersion. */ + public appVersion: number | Long; + + /** ResponseInfo lastBlockHeight. */ + public lastBlockHeight: number | Long; + + /** ResponseInfo lastBlockAppHash. */ + public lastBlockAppHash: Uint8Array; + + /** + * Creates a new ResponseInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInfo instance + */ + public static create( + properties?: tendermint.abci.types.IResponseInfo, + ): tendermint.abci.types.ResponseInfo; + + /** + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.types.ResponseInfo.verify|verify} messages. + * @param m ResponseInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseInfo; + } + + /** Properties of a ResponseSetOption. */ + interface IResponseSetOption { + /** ResponseSetOption code */ + code?: number | null; + + /** ResponseSetOption log */ + log?: string | null; + + /** ResponseSetOption info */ + info?: string | null; + } + + /** Represents a ResponseSetOption. */ + class ResponseSetOption implements IResponseSetOption { + /** + * Constructs a new ResponseSetOption. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseSetOption); + + /** ResponseSetOption code. */ + public code: number; + + /** ResponseSetOption log. */ + public log: string; + + /** ResponseSetOption info. */ + public info: string; + + /** + * Creates a new ResponseSetOption instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseSetOption instance + */ + public static create( + properties?: tendermint.abci.types.IResponseSetOption, + ): tendermint.abci.types.ResponseSetOption; + + /** + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.types.ResponseSetOption.verify|verify} messages. + * @param m ResponseSetOption message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseSetOption, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseSetOption message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseSetOption; + } + + /** Properties of a ResponseInitChain. */ + interface IResponseInitChain { + /** ResponseInitChain consensusParams */ + consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseInitChain validators */ + validators?: tendermint.abci.types.IValidatorUpdate[] | null; + } + + /** Represents a ResponseInitChain. */ + class ResponseInitChain implements IResponseInitChain { + /** + * Constructs a new ResponseInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseInitChain); + + /** ResponseInitChain consensusParams. */ + public consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseInitChain validators. */ + public validators: tendermint.abci.types.IValidatorUpdate[]; + + /** + * Creates a new ResponseInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInitChain instance + */ + public static create( + properties?: tendermint.abci.types.IResponseInitChain, + ): tendermint.abci.types.ResponseInitChain; + + /** + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.types.ResponseInitChain.verify|verify} messages. + * @param m ResponseInitChain message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseInitChain, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseInitChain message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseInitChain; + } + + /** Properties of a ResponseQuery. */ + interface IResponseQuery { + /** ResponseQuery code */ + code?: number | null; + + /** ResponseQuery log */ + log?: string | null; + + /** ResponseQuery info */ + info?: string | null; + + /** ResponseQuery index */ + index?: number | Long | null; + + /** ResponseQuery key */ + key?: Uint8Array | null; + + /** ResponseQuery value */ + value?: Uint8Array | null; + + /** ResponseQuery proof */ + proof?: tendermint.crypto.merkle.IProof | null; + + /** ResponseQuery height */ + height?: number | Long | null; + + /** ResponseQuery codespace */ + codespace?: string | null; + } + + /** Represents a ResponseQuery. */ + class ResponseQuery implements IResponseQuery { + /** + * Constructs a new ResponseQuery. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseQuery); + + /** ResponseQuery code. */ + public code: number; + + /** ResponseQuery log. */ + public log: string; + + /** ResponseQuery info. */ + public info: string; + + /** ResponseQuery index. */ + public index: number | Long; + + /** ResponseQuery key. */ + public key: Uint8Array; + + /** ResponseQuery value. */ + public value: Uint8Array; + + /** ResponseQuery proof. */ + public proof?: tendermint.crypto.merkle.IProof | null; + + /** ResponseQuery height. */ + public height: number | Long; + + /** ResponseQuery codespace. */ + public codespace: string; + + /** + * Creates a new ResponseQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseQuery instance + */ + public static create( + properties?: tendermint.abci.types.IResponseQuery, + ): tendermint.abci.types.ResponseQuery; + + /** + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.types.ResponseQuery.verify|verify} messages. + * @param m ResponseQuery message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseQuery, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseQuery message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseQuery; + } + + /** Properties of a ResponseBeginBlock. */ + interface IResponseBeginBlock { + /** ResponseBeginBlock events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a ResponseBeginBlock. */ + class ResponseBeginBlock implements IResponseBeginBlock { + /** + * Constructs a new ResponseBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseBeginBlock); + + /** ResponseBeginBlock events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new ResponseBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseBeginBlock instance + */ + public static create( + properties?: tendermint.abci.types.IResponseBeginBlock, + ): tendermint.abci.types.ResponseBeginBlock; + + /** + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.types.ResponseBeginBlock.verify|verify} messages. + * @param m ResponseBeginBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseBeginBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseBeginBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseBeginBlock; + } + + /** Properties of a ResponseCheckTx. */ + interface IResponseCheckTx { + /** ResponseCheckTx code */ + code?: number | null; + + /** ResponseCheckTx data */ + data?: Uint8Array | null; + + /** ResponseCheckTx log */ + log?: string | null; + + /** ResponseCheckTx info */ + info?: string | null; + + /** ResponseCheckTx gasWanted */ + gasWanted?: number | Long | null; + + /** ResponseCheckTx gasUsed */ + gasUsed?: number | Long | null; + + /** ResponseCheckTx events */ + events?: tendermint.abci.types.IEvent[] | null; + + /** ResponseCheckTx codespace */ + codespace?: string | null; + } + + /** Represents a ResponseCheckTx. */ + class ResponseCheckTx implements IResponseCheckTx { + /** + * Constructs a new ResponseCheckTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseCheckTx); + + /** ResponseCheckTx code. */ + public code: number; + + /** ResponseCheckTx data. */ + public data: Uint8Array; + + /** ResponseCheckTx log. */ + public log: string; + + /** ResponseCheckTx info. */ + public info: string; + + /** ResponseCheckTx gasWanted. */ + public gasWanted: number | Long; + + /** ResponseCheckTx gasUsed. */ + public gasUsed: number | Long; + + /** ResponseCheckTx events. */ + public events: tendermint.abci.types.IEvent[]; + + /** ResponseCheckTx codespace. */ + public codespace: string; + + /** + * Creates a new ResponseCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCheckTx instance + */ + public static create( + properties?: tendermint.abci.types.IResponseCheckTx, + ): tendermint.abci.types.ResponseCheckTx; + + /** + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.types.ResponseCheckTx.verify|verify} messages. + * @param m ResponseCheckTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseCheckTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseCheckTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseCheckTx; + } + + /** Properties of a ResponseDeliverTx. */ + interface IResponseDeliverTx { + /** ResponseDeliverTx code */ + code?: number | null; + + /** ResponseDeliverTx data */ + data?: Uint8Array | null; + + /** ResponseDeliverTx log */ + log?: string | null; + + /** ResponseDeliverTx info */ + info?: string | null; + + /** ResponseDeliverTx gasWanted */ + gasWanted?: number | Long | null; + + /** ResponseDeliverTx gasUsed */ + gasUsed?: number | Long | null; + + /** ResponseDeliverTx events */ + events?: tendermint.abci.types.IEvent[] | null; + + /** ResponseDeliverTx codespace */ + codespace?: string | null; + } + + /** Represents a ResponseDeliverTx. */ + class ResponseDeliverTx implements IResponseDeliverTx { + /** + * Constructs a new ResponseDeliverTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseDeliverTx); + + /** ResponseDeliverTx code. */ + public code: number; + + /** ResponseDeliverTx data. */ + public data: Uint8Array; + + /** ResponseDeliverTx log. */ + public log: string; + + /** ResponseDeliverTx info. */ + public info: string; + + /** ResponseDeliverTx gasWanted. */ + public gasWanted: number | Long; + + /** ResponseDeliverTx gasUsed. */ + public gasUsed: number | Long; + + /** ResponseDeliverTx events. */ + public events: tendermint.abci.types.IEvent[]; + + /** ResponseDeliverTx codespace. */ + public codespace: string; + + /** + * Creates a new ResponseDeliverTx instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseDeliverTx instance + */ + public static create( + properties?: tendermint.abci.types.IResponseDeliverTx, + ): tendermint.abci.types.ResponseDeliverTx; + + /** + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.types.ResponseDeliverTx.verify|verify} messages. + * @param m ResponseDeliverTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseDeliverTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseDeliverTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseDeliverTx; + } + + /** Properties of a ResponseEndBlock. */ + interface IResponseEndBlock { + /** ResponseEndBlock validatorUpdates */ + validatorUpdates?: tendermint.abci.types.IValidatorUpdate[] | null; + + /** ResponseEndBlock consensusParamUpdates */ + consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseEndBlock events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a ResponseEndBlock. */ + class ResponseEndBlock implements IResponseEndBlock { + /** + * Constructs a new ResponseEndBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseEndBlock); + + /** ResponseEndBlock validatorUpdates. */ + public validatorUpdates: tendermint.abci.types.IValidatorUpdate[]; + + /** ResponseEndBlock consensusParamUpdates. */ + public consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseEndBlock events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new ResponseEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEndBlock instance + */ + public static create( + properties?: tendermint.abci.types.IResponseEndBlock, + ): tendermint.abci.types.ResponseEndBlock; + + /** + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.types.ResponseEndBlock.verify|verify} messages. + * @param m ResponseEndBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseEndBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseEndBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseEndBlock; + } + + /** Properties of a ResponseCommit. */ + interface IResponseCommit { + /** ResponseCommit data */ + data?: Uint8Array | null; + } + + /** Represents a ResponseCommit. */ + class ResponseCommit implements IResponseCommit { + /** + * Constructs a new ResponseCommit. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseCommit); + + /** ResponseCommit data. */ + public data: Uint8Array; + + /** + * Creates a new ResponseCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCommit instance + */ + public static create( + properties?: tendermint.abci.types.IResponseCommit, + ): tendermint.abci.types.ResponseCommit; + + /** + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.types.ResponseCommit.verify|verify} messages. + * @param m ResponseCommit message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseCommit, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseCommit message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseCommit; + } + + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.abci.types.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.abci.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.abci.types.IValidatorParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.abci.types.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.abci.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.abci.types.IValidatorParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create( + properties?: tendermint.abci.types.IConsensusParams, + ): tendermint.abci.types.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.types.ConsensusParams.verify|verify} messages. + * @param m ConsensusParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IConsensusParams, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConsensusParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ConsensusParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ConsensusParams; + } + + /** Properties of a BlockParams. */ + interface IBlockParams { + /** BlockParams maxBytes */ + maxBytes?: number | Long | null; + + /** BlockParams maxGas */ + maxGas?: number | Long | null; + } + + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { + /** + * Constructs a new BlockParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IBlockParams); + + /** BlockParams maxBytes. */ + public maxBytes: number | Long; + + /** BlockParams maxGas. */ + public maxGas: number | Long; + + /** + * Creates a new BlockParams instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockParams instance + */ + public static create( + properties?: tendermint.abci.types.IBlockParams, + ): tendermint.abci.types.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.types.BlockParams.verify|verify} messages. + * @param m BlockParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IBlockParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlockParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockParams; + } + + /** Properties of an EvidenceParams. */ + interface IEvidenceParams { + /** EvidenceParams maxAgeNumBlocks */ + maxAgeNumBlocks?: number | Long | null; + + /** EvidenceParams maxAgeDuration */ + maxAgeDuration?: google.protobuf.IDuration | null; + } + + /** Represents an EvidenceParams. */ + class EvidenceParams implements IEvidenceParams { + /** + * Constructs a new EvidenceParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IEvidenceParams); + + /** EvidenceParams maxAgeNumBlocks. */ + public maxAgeNumBlocks: number | Long; + + /** EvidenceParams maxAgeDuration. */ + public maxAgeDuration?: google.protobuf.IDuration | null; + + /** + * Creates a new EvidenceParams instance using the specified properties. + * @param [properties] Properties to set + * @returns EvidenceParams instance + */ + public static create( + properties?: tendermint.abci.types.IEvidenceParams, + ): tendermint.abci.types.EvidenceParams; + + /** + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.abci.types.EvidenceParams.verify|verify} messages. + * @param m EvidenceParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IEvidenceParams, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EvidenceParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns EvidenceParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.EvidenceParams; + } + + /** Properties of a ValidatorParams. */ + interface IValidatorParams { + /** ValidatorParams pubKeyTypes */ + pubKeyTypes?: string[] | null; + } + + /** Represents a ValidatorParams. */ + class ValidatorParams implements IValidatorParams { + /** + * Constructs a new ValidatorParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IValidatorParams); + + /** ValidatorParams pubKeyTypes. */ + public pubKeyTypes: string[]; + + /** + * Creates a new ValidatorParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorParams instance + */ + public static create( + properties?: tendermint.abci.types.IValidatorParams, + ): tendermint.abci.types.ValidatorParams; + + /** + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.abci.types.ValidatorParams.verify|verify} messages. + * @param m ValidatorParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IValidatorParams, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValidatorParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ValidatorParams; + } + + /** Properties of a LastCommitInfo. */ + interface ILastCommitInfo { + /** LastCommitInfo round */ + round?: number | null; + + /** LastCommitInfo votes */ + votes?: tendermint.abci.types.IVoteInfo[] | null; + } + + /** Represents a LastCommitInfo. */ + class LastCommitInfo implements ILastCommitInfo { + /** + * Constructs a new LastCommitInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.ILastCommitInfo); + + /** LastCommitInfo round. */ + public round: number; + + /** LastCommitInfo votes. */ + public votes: tendermint.abci.types.IVoteInfo[]; + + /** + * Creates a new LastCommitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns LastCommitInfo instance + */ + public static create( + properties?: tendermint.abci.types.ILastCommitInfo, + ): tendermint.abci.types.LastCommitInfo; + + /** + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.types.LastCommitInfo.verify|verify} messages. + * @param m LastCommitInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.ILastCommitInfo, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a LastCommitInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns LastCommitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.LastCommitInfo; + } + + /** Properties of an Event. */ + interface IEvent { + /** Event type */ + type?: string | null; + + /** Event attributes */ + attributes?: tendermint.libs.kv.IPair[] | null; + } + + /** Represents an Event. */ + class Event implements IEvent { + /** + * Constructs a new Event. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IEvent); + + /** Event type. */ + public type: string; + + /** Event attributes. */ + public attributes: tendermint.libs.kv.IPair[]; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: tendermint.abci.types.IEvent): tendermint.abci.types.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.types.Event.verify|verify} messages. + * @param m Event message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IEvent, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Event message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Event; + } + + /** Properties of a Header. */ + interface IHeader { + /** Header version */ + version?: tendermint.abci.types.IVersion | null; + + /** Header chainId */ + chainId?: string | null; + + /** Header height */ + height?: number | Long | null; + + /** Header time */ + time?: google.protobuf.ITimestamp | null; + + /** Header lastBlockId */ + lastBlockId?: tendermint.abci.types.IBlockID | null; + + /** Header lastCommitHash */ + lastCommitHash?: Uint8Array | null; + + /** Header dataHash */ + dataHash?: Uint8Array | null; + + /** Header validatorsHash */ + validatorsHash?: Uint8Array | null; + + /** Header nextValidatorsHash */ + nextValidatorsHash?: Uint8Array | null; + + /** Header consensusHash */ + consensusHash?: Uint8Array | null; + + /** Header appHash */ + appHash?: Uint8Array | null; + + /** Header lastResultsHash */ + lastResultsHash?: Uint8Array | null; + + /** Header evidenceHash */ + evidenceHash?: Uint8Array | null; + + /** Header proposerAddress */ + proposerAddress?: Uint8Array | null; + } + + /** Represents a Header. */ + class Header implements IHeader { + /** + * Constructs a new Header. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IHeader); + + /** Header version. */ + public version?: tendermint.abci.types.IVersion | null; + + /** Header chainId. */ + public chainId: string; + + /** Header height. */ + public height: number | Long; + + /** Header time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Header lastBlockId. */ + public lastBlockId?: tendermint.abci.types.IBlockID | null; + + /** Header lastCommitHash. */ + public lastCommitHash: Uint8Array; + + /** Header dataHash. */ + public dataHash: Uint8Array; + + /** Header validatorsHash. */ + public validatorsHash: Uint8Array; + + /** Header nextValidatorsHash. */ + public nextValidatorsHash: Uint8Array; + + /** Header consensusHash. */ + public consensusHash: Uint8Array; + + /** Header appHash. */ + public appHash: Uint8Array; + + /** Header lastResultsHash. */ + public lastResultsHash: Uint8Array; + + /** Header evidenceHash. */ + public evidenceHash: Uint8Array; + + /** Header proposerAddress. */ + public proposerAddress: Uint8Array; + + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: tendermint.abci.types.IHeader): tendermint.abci.types.Header; + + /** + * Encodes the specified Header message. Does not implicitly {@link tendermint.abci.types.Header.verify|verify} messages. + * @param m Header message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IHeader, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Header message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Header; + } + + /** Properties of a Version. */ + interface IVersion { + /** Version Block */ + Block?: number | Long | null; + + /** Version App */ + App?: number | Long | null; + } + + /** Represents a Version. */ + class Version implements IVersion { + /** + * Constructs a new Version. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IVersion); + + /** Version Block. */ + public Block: number | Long; + + /** Version App. */ + public App: number | Long; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: tendermint.abci.types.IVersion): tendermint.abci.types.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link tendermint.abci.types.Version.verify|verify} messages. + * @param m Version message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IVersion, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Version; + } + + /** Properties of a BlockID. */ + interface IBlockID { + /** BlockID hash */ + hash?: Uint8Array | null; + + /** BlockID partsHeader */ + partsHeader?: tendermint.abci.types.IPartSetHeader | null; + } + + /** Represents a BlockID. */ + class BlockID implements IBlockID { + /** + * Constructs a new BlockID. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IBlockID); + + /** BlockID hash. */ + public hash: Uint8Array; + + /** BlockID partsHeader. */ + public partsHeader?: tendermint.abci.types.IPartSetHeader | null; + + /** + * Creates a new BlockID instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockID instance + */ + public static create(properties?: tendermint.abci.types.IBlockID): tendermint.abci.types.BlockID; + + /** + * Encodes the specified BlockID message. Does not implicitly {@link tendermint.abci.types.BlockID.verify|verify} messages. + * @param m BlockID message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IBlockID, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlockID message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns BlockID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockID; + } + + /** Properties of a PartSetHeader. */ + interface IPartSetHeader { + /** PartSetHeader total */ + total?: number | null; + + /** PartSetHeader hash */ + hash?: Uint8Array | null; + } + + /** Represents a PartSetHeader. */ + class PartSetHeader implements IPartSetHeader { + /** + * Constructs a new PartSetHeader. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IPartSetHeader); + + /** PartSetHeader total. */ + public total: number; + + /** PartSetHeader hash. */ + public hash: Uint8Array; + + /** + * Creates a new PartSetHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns PartSetHeader instance + */ + public static create( + properties?: tendermint.abci.types.IPartSetHeader, + ): tendermint.abci.types.PartSetHeader; + + /** + * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.abci.types.PartSetHeader.verify|verify} messages. + * @param m PartSetHeader message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IPartSetHeader, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PartSetHeader message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PartSetHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.PartSetHeader; + } + + /** Properties of a Validator. */ + interface IValidator { + /** Validator address */ + address?: Uint8Array | null; + + /** Validator power */ + power?: number | Long | null; + } + + /** Represents a Validator. */ + class Validator implements IValidator { + /** + * Constructs a new Validator. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IValidator); + + /** Validator address. */ + public address: Uint8Array; + + /** Validator power. */ + public power: number | Long; + + /** + * Creates a new Validator instance using the specified properties. + * @param [properties] Properties to set + * @returns Validator instance + */ + public static create(properties?: tendermint.abci.types.IValidator): tendermint.abci.types.Validator; + + /** + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.types.Validator.verify|verify} messages. + * @param m Validator message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IValidator, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Validator message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Validator; + } + + /** Properties of a ValidatorUpdate. */ + interface IValidatorUpdate { + /** ValidatorUpdate pubKey */ + pubKey?: tendermint.abci.types.IPubKey | null; + + /** ValidatorUpdate power */ + power?: number | Long | null; + } + + /** Represents a ValidatorUpdate. */ + class ValidatorUpdate implements IValidatorUpdate { + /** + * Constructs a new ValidatorUpdate. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IValidatorUpdate); + + /** ValidatorUpdate pubKey. */ + public pubKey?: tendermint.abci.types.IPubKey | null; + + /** ValidatorUpdate power. */ + public power: number | Long; + + /** + * Creates a new ValidatorUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorUpdate instance + */ + public static create( + properties?: tendermint.abci.types.IValidatorUpdate, + ): tendermint.abci.types.ValidatorUpdate; + + /** + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.types.ValidatorUpdate.verify|verify} messages. + * @param m ValidatorUpdate message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IValidatorUpdate, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorUpdate message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValidatorUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ValidatorUpdate; + } + + /** Properties of a VoteInfo. */ + interface IVoteInfo { + /** VoteInfo validator */ + validator?: tendermint.abci.types.IValidator | null; + + /** VoteInfo signedLastBlock */ + signedLastBlock?: boolean | null; + } + + /** Represents a VoteInfo. */ + class VoteInfo implements IVoteInfo { + /** + * Constructs a new VoteInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IVoteInfo); + + /** VoteInfo validator. */ + public validator?: tendermint.abci.types.IValidator | null; + + /** VoteInfo signedLastBlock. */ + public signedLastBlock: boolean; + + /** + * Creates a new VoteInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns VoteInfo instance + */ + public static create(properties?: tendermint.abci.types.IVoteInfo): tendermint.abci.types.VoteInfo; + + /** + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.types.VoteInfo.verify|verify} messages. + * @param m VoteInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IVoteInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VoteInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns VoteInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.VoteInfo; + } + + /** Properties of a PubKey. */ + interface IPubKey { + /** PubKey type */ + type?: string | null; + + /** PubKey data */ + data?: Uint8Array | null; + } + + /** Represents a PubKey. */ + class PubKey implements IPubKey { + /** + * Constructs a new PubKey. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IPubKey); + + /** PubKey type. */ + public type: string; + + /** PubKey data. */ + public data: Uint8Array; + + /** + * Creates a new PubKey instance using the specified properties. + * @param [properties] Properties to set + * @returns PubKey instance + */ + public static create(properties?: tendermint.abci.types.IPubKey): tendermint.abci.types.PubKey; + + /** + * Encodes the specified PubKey message. Does not implicitly {@link tendermint.abci.types.PubKey.verify|verify} messages. + * @param m PubKey message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IPubKey, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PubKey message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PubKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.PubKey; + } + + /** Properties of an Evidence. */ + interface IEvidence { + /** Evidence type */ + type?: string | null; + + /** Evidence validator */ + validator?: tendermint.abci.types.IValidator | null; + + /** Evidence height */ + height?: number | Long | null; + + /** Evidence time */ + time?: google.protobuf.ITimestamp | null; + + /** Evidence totalVotingPower */ + totalVotingPower?: number | Long | null; + } + + /** Represents an Evidence. */ + class Evidence implements IEvidence { + /** + * Constructs a new Evidence. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IEvidence); + + /** Evidence type. */ + public type: string; + + /** Evidence validator. */ + public validator?: tendermint.abci.types.IValidator | null; + + /** Evidence height. */ + public height: number | Long; + + /** Evidence time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Evidence totalVotingPower. */ + public totalVotingPower: number | Long; + + /** + * Creates a new Evidence instance using the specified properties. + * @param [properties] Properties to set + * @returns Evidence instance + */ + public static create(properties?: tendermint.abci.types.IEvidence): tendermint.abci.types.Evidence; + + /** + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.types.Evidence.verify|verify} messages. + * @param m Evidence message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IEvidence, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Evidence message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Evidence + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Evidence; + } + + /** Represents a ABCIApplication */ + class ABCIApplication extends $protobuf.rpc.Service { + /** + * Constructs a new ABCIApplication service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ABCIApplication service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): ABCIApplication; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEcho + */ + public echo( + request: tendermint.abci.types.IRequestEcho, + callback: tendermint.abci.types.ABCIApplication.EchoCallback, + ): void; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @returns Promise + */ + public echo(request: tendermint.abci.types.IRequestEcho): Promise; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseFlush + */ + public flush( + request: tendermint.abci.types.IRequestFlush, + callback: tendermint.abci.types.ABCIApplication.FlushCallback, + ): void; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @returns Promise + */ + public flush( + request: tendermint.abci.types.IRequestFlush, + ): Promise; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInfo + */ + public info( + request: tendermint.abci.types.IRequestInfo, + callback: tendermint.abci.types.ABCIApplication.InfoCallback, + ): void; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @returns Promise + */ + public info(request: tendermint.abci.types.IRequestInfo): Promise; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseSetOption + */ + public setOption( + request: tendermint.abci.types.IRequestSetOption, + callback: tendermint.abci.types.ABCIApplication.SetOptionCallback, + ): void; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @returns Promise + */ + public setOption( + request: tendermint.abci.types.IRequestSetOption, + ): Promise; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx + */ + public deliverTx( + request: tendermint.abci.types.IRequestDeliverTx, + callback: tendermint.abci.types.ABCIApplication.DeliverTxCallback, + ): void; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @returns Promise + */ + public deliverTx( + request: tendermint.abci.types.IRequestDeliverTx, + ): Promise; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCheckTx + */ + public checkTx( + request: tendermint.abci.types.IRequestCheckTx, + callback: tendermint.abci.types.ABCIApplication.CheckTxCallback, + ): void; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @returns Promise + */ + public checkTx( + request: tendermint.abci.types.IRequestCheckTx, + ): Promise; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseQuery + */ + public query( + request: tendermint.abci.types.IRequestQuery, + callback: tendermint.abci.types.ABCIApplication.QueryCallback, + ): void; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @returns Promise + */ + public query( + request: tendermint.abci.types.IRequestQuery, + ): Promise; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCommit + */ + public commit( + request: tendermint.abci.types.IRequestCommit, + callback: tendermint.abci.types.ABCIApplication.CommitCallback, + ): void; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @returns Promise + */ + public commit( + request: tendermint.abci.types.IRequestCommit, + ): Promise; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInitChain + */ + public initChain( + request: tendermint.abci.types.IRequestInitChain, + callback: tendermint.abci.types.ABCIApplication.InitChainCallback, + ): void; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @returns Promise + */ + public initChain( + request: tendermint.abci.types.IRequestInitChain, + ): Promise; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock + */ + public beginBlock( + request: tendermint.abci.types.IRequestBeginBlock, + callback: tendermint.abci.types.ABCIApplication.BeginBlockCallback, + ): void; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @returns Promise + */ + public beginBlock( + request: tendermint.abci.types.IRequestBeginBlock, + ): Promise; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEndBlock + */ + public endBlock( + request: tendermint.abci.types.IRequestEndBlock, + callback: tendermint.abci.types.ABCIApplication.EndBlockCallback, + ): void; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @returns Promise + */ + public endBlock( + request: tendermint.abci.types.IRequestEndBlock, + ): Promise; + } + + namespace ABCIApplication { + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#echo}. + * @param error Error, if any + * @param [response] ResponseEcho + */ + type EchoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseEcho) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#flush}. + * @param error Error, if any + * @param [response] ResponseFlush + */ + type FlushCallback = (error: Error | null, response?: tendermint.abci.types.ResponseFlush) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#info}. + * @param error Error, if any + * @param [response] ResponseInfo + */ + type InfoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseInfo) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#setOption}. + * @param error Error, if any + * @param [response] ResponseSetOption + */ + type SetOptionCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseSetOption, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#deliverTx}. + * @param error Error, if any + * @param [response] ResponseDeliverTx + */ + type DeliverTxCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseDeliverTx, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#checkTx}. + * @param error Error, if any + * @param [response] ResponseCheckTx + */ + type CheckTxCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseCheckTx, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#query}. + * @param error Error, if any + * @param [response] ResponseQuery + */ + type QueryCallback = (error: Error | null, response?: tendermint.abci.types.ResponseQuery) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#commit}. + * @param error Error, if any + * @param [response] ResponseCommit + */ + type CommitCallback = (error: Error | null, response?: tendermint.abci.types.ResponseCommit) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#initChain}. + * @param error Error, if any + * @param [response] ResponseInitChain + */ + type InitChainCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseInitChain, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#beginBlock}. + * @param error Error, if any + * @param [response] ResponseBeginBlock + */ + type BeginBlockCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseBeginBlock, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#endBlock}. + * @param error Error, if any + * @param [response] ResponseEndBlock + */ + type EndBlockCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseEndBlock, + ) => void; + } + } + } + + /** Namespace crypto. */ + namespace crypto { + /** Namespace merkle. */ + namespace merkle { + /** Properties of a ProofOp. */ + interface IProofOp { + /** ProofOp type */ + type?: string | null; + + /** ProofOp key */ + key?: Uint8Array | null; + + /** ProofOp data */ + data?: Uint8Array | null; + } + + /** Represents a ProofOp. */ + class ProofOp implements IProofOp { + /** + * Constructs a new ProofOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.merkle.IProofOp); + + /** ProofOp type. */ + public type: string; + + /** ProofOp key. */ + public key: Uint8Array; + + /** ProofOp data. */ + public data: Uint8Array; + + /** + * Creates a new ProofOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOp instance + */ + public static create( + properties?: tendermint.crypto.merkle.IProofOp, + ): tendermint.crypto.merkle.ProofOp; + + /** + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.merkle.ProofOp.verify|verify} messages. + * @param m ProofOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.merkle.IProofOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProofOp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ProofOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.ProofOp; + } + + /** Properties of a Proof. */ + interface IProof { + /** Proof ops */ + ops?: tendermint.crypto.merkle.IProofOp[] | null; + } + + /** Represents a Proof. */ + class Proof implements IProof { + /** + * Constructs a new Proof. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.merkle.IProof); + + /** Proof ops. */ + public ops: tendermint.crypto.merkle.IProofOp[]; + + /** + * Creates a new Proof instance using the specified properties. + * @param [properties] Properties to set + * @returns Proof instance + */ + public static create(properties?: tendermint.crypto.merkle.IProof): tendermint.crypto.merkle.Proof; + + /** + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.merkle.Proof.verify|verify} messages. + * @param m Proof message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.merkle.IProof, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Proof message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Proof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.Proof; + } + } + } + + /** Namespace libs. */ + namespace libs { + /** Namespace kv. */ + namespace kv { + /** Properties of a Pair. */ + interface IPair { + /** Pair key */ + key?: Uint8Array | null; + + /** Pair value */ + value?: Uint8Array | null; + } + + /** Represents a Pair. */ + class Pair implements IPair { + /** + * Constructs a new Pair. + * @param [p] Properties to set + */ + constructor(p?: tendermint.libs.kv.IPair); + + /** Pair key. */ + public key: Uint8Array; + + /** Pair value. */ + public value: Uint8Array; + + /** + * Creates a new Pair instance using the specified properties. + * @param [properties] Properties to set + * @returns Pair instance + */ + public static create(properties?: tendermint.libs.kv.IPair): tendermint.libs.kv.Pair; + + /** + * Encodes the specified Pair message. Does not implicitly {@link tendermint.libs.kv.Pair.verify|verify} messages. + * @param m Pair message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.libs.kv.IPair, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Pair message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.Pair; + } + + /** Properties of a KI64Pair. */ + interface IKI64Pair { + /** KI64Pair key */ + key?: Uint8Array | null; + + /** KI64Pair value */ + value?: number | Long | null; + } + + /** Represents a KI64Pair. */ + class KI64Pair implements IKI64Pair { + /** + * Constructs a new KI64Pair. + * @param [p] Properties to set + */ + constructor(p?: tendermint.libs.kv.IKI64Pair); + + /** KI64Pair key. */ + public key: Uint8Array; + + /** KI64Pair value. */ + public value: number | Long; + + /** + * Creates a new KI64Pair instance using the specified properties. + * @param [properties] Properties to set + * @returns KI64Pair instance + */ + public static create(properties?: tendermint.libs.kv.IKI64Pair): tendermint.libs.kv.KI64Pair; + + /** + * Encodes the specified KI64Pair message. Does not implicitly {@link tendermint.libs.kv.KI64Pair.verify|verify} messages. + * @param m KI64Pair message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.libs.kv.IKI64Pair, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KI64Pair message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns KI64Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.KI64Pair; + } + } + } +} + +/** Namespace google. */ +export namespace google { + /** Namespace protobuf. */ + namespace protobuf { + /** Properties of an Any. */ + interface IAny { + /** Any type_url */ + type_url?: string | null; + + /** Any value */ + value?: Uint8Array | null; + } + + /** Represents an Any. */ + class Any implements IAny { + /** + * Constructs a new Any. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param m Any message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IAny, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Any; + } + + /** Properties of a Timestamp. */ + interface ITimestamp { + /** Timestamp seconds */ + seconds?: number | Long | null; + + /** Timestamp nanos */ + nanos?: number | null; + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + /** + * Constructs a new Timestamp. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: number | Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param m Timestamp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; + } + + /** Properties of a Duration. */ + interface IDuration { + /** Duration seconds */ + seconds?: number | Long | null; + + /** Duration nanos */ + nanos?: number | null; + } + + /** Represents a Duration. */ + class Duration implements IDuration { + /** + * Constructs a new Duration. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: number | Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param m Duration message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IDuration, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; + } + } +} diff --git a/packages/stargate/src/generated/codecimpl.js b/packages/stargate/src/generated/codecimpl.js new file mode 100644 index 00000000..26ed2c5d --- /dev/null +++ b/packages/stargate/src/generated/codecimpl.js @@ -0,0 +1,5219 @@ +"use strict"; +exports.__esModule = true; +exports.google = exports.tendermint = exports.cosmos = void 0; +var $protobuf = require("protobufjs/minimal"); +var $Reader = $protobuf.Reader, + $Writer = $protobuf.Writer, + $util = $protobuf.util; +var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); +exports.cosmos = $root.cosmos = (function () { + var cosmos = {}; + cosmos.Coin = (function () { + function Coin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Coin.prototype.denom = ""; + Coin.prototype.amount = ""; + Coin.create = function create(properties) { + return new Coin(properties); + }; + Coin.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); + if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) w.uint32(18).string(m.amount); + return w; + }; + Coin.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.Coin(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + case 2: + m.amount = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Coin; + })(); + cosmos.DecCoin = (function () { + function DecCoin(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + DecCoin.prototype.denom = ""; + DecCoin.prototype.amount = ""; + DecCoin.create = function create(properties) { + return new DecCoin(properties); + }; + DecCoin.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); + if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) w.uint32(18).string(m.amount); + return w; + }; + DecCoin.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.DecCoin(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + case 2: + m.amount = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return DecCoin; + })(); + cosmos.IntProto = (function () { + function IntProto(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + IntProto.prototype.int = ""; + IntProto.create = function create(properties) { + return new IntProto(properties); + }; + IntProto.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.int != null && Object.hasOwnProperty.call(m, "int")) w.uint32(10).string(m.int); + return w; + }; + IntProto.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.IntProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.int = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return IntProto; + })(); + cosmos.DecProto = (function () { + function DecProto(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + DecProto.prototype.dec = ""; + DecProto.create = function create(properties) { + return new DecProto(properties); + }; + DecProto.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.dec != null && Object.hasOwnProperty.call(m, "dec")) w.uint32(10).string(m.dec); + return w; + }; + DecProto.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.DecProto(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.dec = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return DecProto; + })(); + cosmos.ValAddresses = (function () { + function ValAddresses(p) { + this.addresses = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ValAddresses.prototype.addresses = $util.emptyArray; + ValAddresses.create = function create(properties) { + return new ValAddresses(properties); + }; + ValAddresses.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.addresses != null && m.addresses.length) { + for (var i = 0; i < m.addresses.length; ++i) w.uint32(10).bytes(m.addresses[i]); + } + return w; + }; + ValAddresses.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.ValAddresses(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.addresses && m.addresses.length)) m.addresses = []; + m.addresses.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ValAddresses; + })(); + cosmos.GasInfo = (function () { + function GasInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + GasInfo.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + GasInfo.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + GasInfo.create = function create(properties) { + return new GasInfo(properties); + }; + GasInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) w.uint32(8).uint64(m.gasWanted); + if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(16).uint64(m.gasUsed); + return w; + }; + GasInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.GasInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.gasWanted = r.uint64(); + break; + case 2: + m.gasUsed = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return GasInfo; + })(); + cosmos.Result = (function () { + function Result(p) { + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Result.prototype.data = $util.newBuffer([]); + Result.prototype.log = ""; + Result.prototype.events = $util.emptyArray; + Result.create = function create(properties) { + return new Result(properties); + }; + Result.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(18).string(m.log); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + Result.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.Result(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.data = r.bytes(); + break; + case 2: + m.log = r.string(); + break; + case 3: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Result; + })(); + cosmos.SimulationResponse = (function () { + function SimulationResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SimulationResponse.prototype.gasInfo = null; + SimulationResponse.prototype.result = null; + SimulationResponse.create = function create(properties) { + return new SimulationResponse(properties); + }; + SimulationResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.gasInfo != null && Object.hasOwnProperty.call(m, "gasInfo")) + $root.cosmos.GasInfo.encode(m.gasInfo, w.uint32(10).fork()).ldelim(); + if (m.result != null && Object.hasOwnProperty.call(m, "result")) + $root.cosmos.Result.encode(m.result, w.uint32(18).fork()).ldelim(); + return w; + }; + SimulationResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.SimulationResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.gasInfo = $root.cosmos.GasInfo.decode(r, r.uint32()); + break; + case 2: + m.result = $root.cosmos.Result.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SimulationResponse; + })(); + cosmos.MsgData = (function () { + function MsgData(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgData.prototype.msgType = ""; + MsgData.prototype.data = $util.newBuffer([]); + MsgData.create = function create(properties) { + return new MsgData(properties); + }; + MsgData.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.msgType != null && Object.hasOwnProperty.call(m, "msgType")) w.uint32(10).string(m.msgType); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); + return w; + }; + MsgData.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.MsgData(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.msgType = r.string(); + break; + case 2: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgData; + })(); + cosmos.TxData = (function () { + function TxData(p) { + this.data = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + TxData.prototype.data = $util.emptyArray; + TxData.create = function create(properties) { + return new TxData(properties); + }; + TxData.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && m.data.length) { + for (var i = 0; i < m.data.length; ++i) + $root.cosmos.MsgData.encode(m.data[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + TxData.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.TxData(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.data && m.data.length)) m.data = []; + m.data.push($root.cosmos.MsgData.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxData; + })(); + cosmos.TxResponse = (function () { + function TxResponse(p) { + this.logs = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + TxResponse.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + TxResponse.prototype.txhash = ""; + TxResponse.prototype.codespace = ""; + TxResponse.prototype.code = 0; + TxResponse.prototype.data = ""; + TxResponse.prototype.rawLog = ""; + TxResponse.prototype.logs = $util.emptyArray; + TxResponse.prototype.info = ""; + TxResponse.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + TxResponse.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + TxResponse.prototype.tx = null; + TxResponse.prototype.timestamp = ""; + TxResponse.create = function create(properties) { + return new TxResponse(properties); + }; + TxResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(8).int64(m.height); + if (m.txhash != null && Object.hasOwnProperty.call(m, "txhash")) w.uint32(18).string(m.txhash); + if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) w.uint32(26).string(m.codespace); + if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(32).uint32(m.code); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(42).string(m.data); + if (m.rawLog != null && Object.hasOwnProperty.call(m, "rawLog")) w.uint32(50).string(m.rawLog); + if (m.logs != null && m.logs.length) { + for (var i = 0; i < m.logs.length; ++i) + $root.cosmos.ABCIMessageLog.encode(m.logs[i], w.uint32(58).fork()).ldelim(); + } + if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(66).string(m.info); + if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) w.uint32(72).int64(m.gasWanted); + if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(80).int64(m.gasUsed); + if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) + $root.google.protobuf.Any.encode(m.tx, w.uint32(90).fork()).ldelim(); + if (m.timestamp != null && Object.hasOwnProperty.call(m, "timestamp")) w.uint32(98).string(m.timestamp); + return w; + }; + TxResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.TxResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.height = r.int64(); + break; + case 2: + m.txhash = r.string(); + break; + case 3: + m.codespace = r.string(); + break; + case 4: + m.code = r.uint32(); + break; + case 5: + m.data = r.string(); + break; + case 6: + m.rawLog = r.string(); + break; + case 7: + if (!(m.logs && m.logs.length)) m.logs = []; + m.logs.push($root.cosmos.ABCIMessageLog.decode(r, r.uint32())); + break; + case 8: + m.info = r.string(); + break; + case 9: + m.gasWanted = r.int64(); + break; + case 10: + m.gasUsed = r.int64(); + break; + case 11: + m.tx = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + case 12: + m.timestamp = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxResponse; + })(); + cosmos.ABCIMessageLog = (function () { + function ABCIMessageLog(p) { + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ABCIMessageLog.prototype.msgIndex = 0; + ABCIMessageLog.prototype.log = ""; + ABCIMessageLog.prototype.events = $util.emptyArray; + ABCIMessageLog.create = function create(properties) { + return new ABCIMessageLog(properties); + }; + ABCIMessageLog.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.msgIndex != null && Object.hasOwnProperty.call(m, "msgIndex")) w.uint32(8).uint32(m.msgIndex); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(18).string(m.log); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.cosmos.StringEvent.encode(m.events[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + ABCIMessageLog.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.ABCIMessageLog(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.msgIndex = r.uint32(); + break; + case 2: + m.log = r.string(); + break; + case 3: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.cosmos.StringEvent.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ABCIMessageLog; + })(); + cosmos.StringEvent = (function () { + function StringEvent(p) { + this.attributes = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + StringEvent.prototype.type = ""; + StringEvent.prototype.attributes = $util.emptyArray; + StringEvent.create = function create(properties) { + return new StringEvent(properties); + }; + StringEvent.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); + if (m.attributes != null && m.attributes.length) { + for (var i = 0; i < m.attributes.length; ++i) + $root.cosmos.Attribute.encode(m.attributes[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + StringEvent.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.StringEvent(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.string(); + break; + case 2: + if (!(m.attributes && m.attributes.length)) m.attributes = []; + m.attributes.push($root.cosmos.Attribute.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return StringEvent; + })(); + cosmos.Attribute = (function () { + function Attribute(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Attribute.prototype.key = ""; + Attribute.prototype.value = ""; + Attribute.create = function create(properties) { + return new Attribute(properties); + }; + Attribute.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).string(m.key); + if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).string(m.value); + return w; + }; + Attribute.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.Attribute(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.string(); + break; + case 2: + m.value = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Attribute; + })(); + cosmos.auth = (function () { + var auth = {}; + auth.BaseAccount = (function () { + function BaseAccount(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + BaseAccount.prototype.address = $util.newBuffer([]); + BaseAccount.prototype.pubKey = $util.newBuffer([]); + BaseAccount.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + BaseAccount.create = function create(properties) { + return new BaseAccount(properties); + }; + BaseAccount.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + if (m.pubKey != null && Object.hasOwnProperty.call(m, "pubKey")) w.uint32(18).bytes(m.pubKey); + if (m.accountNumber != null && Object.hasOwnProperty.call(m, "accountNumber")) + w.uint32(24).uint64(m.accountNumber); + if (m.sequence != null && Object.hasOwnProperty.call(m, "sequence")) w.uint32(32).uint64(m.sequence); + return w; + }; + BaseAccount.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.BaseAccount(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + m.pubKey = r.bytes(); + break; + case 3: + m.accountNumber = r.uint64(); + break; + case 4: + m.sequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return BaseAccount; + })(); + auth.ModuleAccount = (function () { + function ModuleAccount(p) { + this.permissions = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ModuleAccount.prototype.baseAccount = null; + ModuleAccount.prototype.name = ""; + ModuleAccount.prototype.permissions = $util.emptyArray; + ModuleAccount.create = function create(properties) { + return new ModuleAccount(properties); + }; + ModuleAccount.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.baseAccount != null && Object.hasOwnProperty.call(m, "baseAccount")) + $root.cosmos.auth.BaseAccount.encode(m.baseAccount, w.uint32(10).fork()).ldelim(); + if (m.name != null && Object.hasOwnProperty.call(m, "name")) w.uint32(18).string(m.name); + if (m.permissions != null && m.permissions.length) { + for (var i = 0; i < m.permissions.length; ++i) w.uint32(26).string(m.permissions[i]); + } + return w; + }; + ModuleAccount.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.ModuleAccount(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.baseAccount = $root.cosmos.auth.BaseAccount.decode(r, r.uint32()); + break; + case 2: + m.name = r.string(); + break; + case 3: + if (!(m.permissions && m.permissions.length)) m.permissions = []; + m.permissions.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ModuleAccount; + })(); + auth.Params = (function () { + function Params(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Params.prototype.maxMemoCharacters = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.txSigLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.txSizeCostPerByte = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.sigVerifyCostEd25519 = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.prototype.sigVerifyCostSecp256k1 = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Params.create = function create(properties) { + return new Params(properties); + }; + Params.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.maxMemoCharacters != null && Object.hasOwnProperty.call(m, "maxMemoCharacters")) + w.uint32(8).uint64(m.maxMemoCharacters); + if (m.txSigLimit != null && Object.hasOwnProperty.call(m, "txSigLimit")) + w.uint32(16).uint64(m.txSigLimit); + if (m.txSizeCostPerByte != null && Object.hasOwnProperty.call(m, "txSizeCostPerByte")) + w.uint32(24).uint64(m.txSizeCostPerByte); + if (m.sigVerifyCostEd25519 != null && Object.hasOwnProperty.call(m, "sigVerifyCostEd25519")) + w.uint32(32).uint64(m.sigVerifyCostEd25519); + if (m.sigVerifyCostSecp256k1 != null && Object.hasOwnProperty.call(m, "sigVerifyCostSecp256k1")) + w.uint32(40).uint64(m.sigVerifyCostSecp256k1); + return w; + }; + Params.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.Params(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.maxMemoCharacters = r.uint64(); + break; + case 2: + m.txSigLimit = r.uint64(); + break; + case 3: + m.txSizeCostPerByte = r.uint64(); + break; + case 4: + m.sigVerifyCostEd25519 = r.uint64(); + break; + case 5: + m.sigVerifyCostSecp256k1 = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Params; + })(); + auth.Query = (function () { + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Query.prototype.account = function account(request, callback) { + return this.rpcCall( + account, + $root.cosmos.auth.QueryAccountRequest, + $root.cosmos.auth.QueryAccountResponse, + request, + callback, + ); + }), + "name", + { value: "Account" }, + ); + Object.defineProperty( + (Query.prototype.params = function params(request, callback) { + return this.rpcCall( + params, + $root.cosmos.auth.QueryParamsRequest, + $root.cosmos.auth.QueryParamsResponse, + request, + callback, + ); + }), + "name", + { value: "Params" }, + ); + return Query; + })(); + auth.QueryAccountRequest = (function () { + function QueryAccountRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryAccountRequest.prototype.address = $util.newBuffer([]); + QueryAccountRequest.create = function create(properties) { + return new QueryAccountRequest(properties); + }; + QueryAccountRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + return w; + }; + QueryAccountRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.QueryAccountRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryAccountRequest; + })(); + auth.QueryAccountResponse = (function () { + function QueryAccountResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryAccountResponse.prototype.account = null; + QueryAccountResponse.create = function create(properties) { + return new QueryAccountResponse(properties); + }; + QueryAccountResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.account != null && Object.hasOwnProperty.call(m, "account")) + $root.google.protobuf.Any.encode(m.account, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryAccountResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.QueryAccountResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.account = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryAccountResponse; + })(); + auth.QueryParamsRequest = (function () { + function QueryParamsRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryParamsRequest.create = function create(properties) { + return new QueryParamsRequest(properties); + }; + QueryParamsRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + QueryParamsRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.QueryParamsRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryParamsRequest; + })(); + auth.QueryParamsResponse = (function () { + function QueryParamsResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryParamsResponse.prototype.params = null; + QueryParamsResponse.create = function create(properties) { + return new QueryParamsResponse(properties); + }; + QueryParamsResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.params != null && Object.hasOwnProperty.call(m, "params")) + $root.cosmos.auth.Params.encode(m.params, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryParamsResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.auth.QueryParamsResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.params = $root.cosmos.auth.Params.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryParamsResponse; + })(); + return auth; + })(); + cosmos.bank = (function () { + var bank = {}; + bank.Params = (function () { + function Params(p) { + this.sendEnabled = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Params.prototype.sendEnabled = $util.emptyArray; + Params.prototype.defaultSendEnabled = false; + Params.create = function create(properties) { + return new Params(properties); + }; + Params.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.sendEnabled != null && m.sendEnabled.length) { + for (var i = 0; i < m.sendEnabled.length; ++i) + $root.cosmos.bank.SendEnabled.encode(m.sendEnabled[i], w.uint32(10).fork()).ldelim(); + } + if (m.defaultSendEnabled != null && Object.hasOwnProperty.call(m, "defaultSendEnabled")) + w.uint32(16).bool(m.defaultSendEnabled); + return w; + }; + Params.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.Params(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.sendEnabled && m.sendEnabled.length)) m.sendEnabled = []; + m.sendEnabled.push($root.cosmos.bank.SendEnabled.decode(r, r.uint32())); + break; + case 2: + m.defaultSendEnabled = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Params; + })(); + bank.SendEnabled = (function () { + function SendEnabled(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SendEnabled.prototype.denom = ""; + SendEnabled.prototype.enabled = false; + SendEnabled.create = function create(properties) { + return new SendEnabled(properties); + }; + SendEnabled.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); + if (m.enabled != null && Object.hasOwnProperty.call(m, "enabled")) w.uint32(16).bool(m.enabled); + return w; + }; + SendEnabled.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.SendEnabled(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + case 2: + m.enabled = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SendEnabled; + })(); + bank.MsgSend = (function () { + function MsgSend(p) { + this.amount = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgSend.prototype.fromAddress = $util.newBuffer([]); + MsgSend.prototype.toAddress = $util.newBuffer([]); + MsgSend.prototype.amount = $util.emptyArray; + MsgSend.create = function create(properties) { + return new MsgSend(properties); + }; + MsgSend.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.fromAddress != null && Object.hasOwnProperty.call(m, "fromAddress")) + w.uint32(10).bytes(m.fromAddress); + if (m.toAddress != null && Object.hasOwnProperty.call(m, "toAddress")) + w.uint32(18).bytes(m.toAddress); + if (m.amount != null && m.amount.length) { + for (var i = 0; i < m.amount.length; ++i) + $root.cosmos.Coin.encode(m.amount[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + MsgSend.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.MsgSend(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.fromAddress = r.bytes(); + break; + case 2: + m.toAddress = r.bytes(); + break; + case 3: + if (!(m.amount && m.amount.length)) m.amount = []; + m.amount.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgSend; + })(); + bank.Input = (function () { + function Input(p) { + this.coins = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Input.prototype.address = $util.newBuffer([]); + Input.prototype.coins = $util.emptyArray; + Input.create = function create(properties) { + return new Input(properties); + }; + Input.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + if (m.coins != null && m.coins.length) { + for (var i = 0; i < m.coins.length; ++i) + $root.cosmos.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + Input.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.Input(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + if (!(m.coins && m.coins.length)) m.coins = []; + m.coins.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Input; + })(); + bank.Output = (function () { + function Output(p) { + this.coins = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Output.prototype.address = $util.newBuffer([]); + Output.prototype.coins = $util.emptyArray; + Output.create = function create(properties) { + return new Output(properties); + }; + Output.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + if (m.coins != null && m.coins.length) { + for (var i = 0; i < m.coins.length; ++i) + $root.cosmos.Coin.encode(m.coins[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + Output.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.Output(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + if (!(m.coins && m.coins.length)) m.coins = []; + m.coins.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Output; + })(); + bank.MsgMultiSend = (function () { + function MsgMultiSend(p) { + this.inputs = []; + this.outputs = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MsgMultiSend.prototype.inputs = $util.emptyArray; + MsgMultiSend.prototype.outputs = $util.emptyArray; + MsgMultiSend.create = function create(properties) { + return new MsgMultiSend(properties); + }; + MsgMultiSend.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.inputs != null && m.inputs.length) { + for (var i = 0; i < m.inputs.length; ++i) + $root.cosmos.bank.Input.encode(m.inputs[i], w.uint32(10).fork()).ldelim(); + } + if (m.outputs != null && m.outputs.length) { + for (var i = 0; i < m.outputs.length; ++i) + $root.cosmos.bank.Output.encode(m.outputs[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + MsgMultiSend.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.MsgMultiSend(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.inputs && m.inputs.length)) m.inputs = []; + m.inputs.push($root.cosmos.bank.Input.decode(r, r.uint32())); + break; + case 2: + if (!(m.outputs && m.outputs.length)) m.outputs = []; + m.outputs.push($root.cosmos.bank.Output.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MsgMultiSend; + })(); + bank.Supply = (function () { + function Supply(p) { + this.total = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Supply.prototype.total = $util.emptyArray; + Supply.create = function create(properties) { + return new Supply(properties); + }; + Supply.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.total != null && m.total.length) { + for (var i = 0; i < m.total.length; ++i) + $root.cosmos.Coin.encode(m.total[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + Supply.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.Supply(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.total && m.total.length)) m.total = []; + m.total.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Supply; + })(); + bank.DenomUnits = (function () { + function DenomUnits(p) { + this.aliases = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + DenomUnits.prototype.denom = ""; + DenomUnits.prototype.exponent = 0; + DenomUnits.prototype.aliases = $util.emptyArray; + DenomUnits.create = function create(properties) { + return new DenomUnits(properties); + }; + DenomUnits.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); + if (m.exponent != null && Object.hasOwnProperty.call(m, "exponent")) w.uint32(16).uint32(m.exponent); + if (m.aliases != null && m.aliases.length) { + for (var i = 0; i < m.aliases.length; ++i) w.uint32(26).string(m.aliases[i]); + } + return w; + }; + DenomUnits.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.DenomUnits(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + case 2: + m.exponent = r.uint32(); + break; + case 3: + if (!(m.aliases && m.aliases.length)) m.aliases = []; + m.aliases.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return DenomUnits; + })(); + bank.Metadata = (function () { + function Metadata(p) { + this.denomUnits = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Metadata.prototype.description = ""; + Metadata.prototype.denomUnits = $util.emptyArray; + Metadata.prototype.base = ""; + Metadata.prototype.display = ""; + Metadata.create = function create(properties) { + return new Metadata(properties); + }; + Metadata.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.description != null && Object.hasOwnProperty.call(m, "description")) + w.uint32(10).string(m.description); + if (m.denomUnits != null && m.denomUnits.length) { + for (var i = 0; i < m.denomUnits.length; ++i) + $root.cosmos.bank.DenomUnits.encode(m.denomUnits[i], w.uint32(18).fork()).ldelim(); + } + if (m.base != null && Object.hasOwnProperty.call(m, "base")) w.uint32(26).string(m.base); + if (m.display != null && Object.hasOwnProperty.call(m, "display")) w.uint32(34).string(m.display); + return w; + }; + Metadata.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.Metadata(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.description = r.string(); + break; + case 2: + if (!(m.denomUnits && m.denomUnits.length)) m.denomUnits = []; + m.denomUnits.push($root.cosmos.bank.DenomUnits.decode(r, r.uint32())); + break; + case 3: + m.base = r.string(); + break; + case 4: + m.display = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Metadata; + })(); + bank.Query = (function () { + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + Query.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (Query.prototype.balance = function balance(request, callback) { + return this.rpcCall( + balance, + $root.cosmos.bank.QueryBalanceRequest, + $root.cosmos.bank.QueryBalanceResponse, + request, + callback, + ); + }), + "name", + { value: "Balance" }, + ); + Object.defineProperty( + (Query.prototype.allBalances = function allBalances(request, callback) { + return this.rpcCall( + allBalances, + $root.cosmos.bank.QueryAllBalancesRequest, + $root.cosmos.bank.QueryAllBalancesResponse, + request, + callback, + ); + }), + "name", + { value: "AllBalances" }, + ); + Object.defineProperty( + (Query.prototype.totalSupply = function totalSupply(request, callback) { + return this.rpcCall( + totalSupply, + $root.cosmos.bank.QueryTotalSupplyRequest, + $root.cosmos.bank.QueryTotalSupplyResponse, + request, + callback, + ); + }), + "name", + { value: "TotalSupply" }, + ); + Object.defineProperty( + (Query.prototype.supplyOf = function supplyOf(request, callback) { + return this.rpcCall( + supplyOf, + $root.cosmos.bank.QuerySupplyOfRequest, + $root.cosmos.bank.QuerySupplyOfResponse, + request, + callback, + ); + }), + "name", + { value: "SupplyOf" }, + ); + return Query; + })(); + bank.QueryBalanceRequest = (function () { + function QueryBalanceRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryBalanceRequest.prototype.address = $util.newBuffer([]); + QueryBalanceRequest.prototype.denom = ""; + QueryBalanceRequest.create = function create(properties) { + return new QueryBalanceRequest(properties); + }; + QueryBalanceRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(18).string(m.denom); + return w; + }; + QueryBalanceRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QueryBalanceRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + m.denom = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryBalanceRequest; + })(); + bank.QueryBalanceResponse = (function () { + function QueryBalanceResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryBalanceResponse.prototype.balance = null; + QueryBalanceResponse.create = function create(properties) { + return new QueryBalanceResponse(properties); + }; + QueryBalanceResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.balance != null && Object.hasOwnProperty.call(m, "balance")) + $root.cosmos.Coin.encode(m.balance, w.uint32(10).fork()).ldelim(); + return w; + }; + QueryBalanceResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QueryBalanceResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.balance = $root.cosmos.Coin.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryBalanceResponse; + })(); + bank.QueryAllBalancesRequest = (function () { + function QueryAllBalancesRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryAllBalancesRequest.prototype.address = $util.newBuffer([]); + QueryAllBalancesRequest.prototype.pagination = null; + QueryAllBalancesRequest.create = function create(properties) { + return new QueryAllBalancesRequest(properties); + }; + QueryAllBalancesRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.query.PageRequest.encode(m.pagination, w.uint32(18).fork()).ldelim(); + return w; + }; + QueryAllBalancesRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QueryAllBalancesRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 2: + m.pagination = $root.cosmos.query.PageRequest.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryAllBalancesRequest; + })(); + bank.QueryAllBalancesResponse = (function () { + function QueryAllBalancesResponse(p) { + this.balances = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryAllBalancesResponse.prototype.balances = $util.emptyArray; + QueryAllBalancesResponse.prototype.pagination = null; + QueryAllBalancesResponse.create = function create(properties) { + return new QueryAllBalancesResponse(properties); + }; + QueryAllBalancesResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.balances != null && m.balances.length) { + for (var i = 0; i < m.balances.length; ++i) + $root.cosmos.Coin.encode(m.balances[i], w.uint32(10).fork()).ldelim(); + } + if (m.pagination != null && Object.hasOwnProperty.call(m, "pagination")) + $root.cosmos.query.PageResponse.encode(m.pagination, w.uint32(18).fork()).ldelim(); + return w; + }; + QueryAllBalancesResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QueryAllBalancesResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.balances && m.balances.length)) m.balances = []; + m.balances.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + case 2: + m.pagination = $root.cosmos.query.PageResponse.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryAllBalancesResponse; + })(); + bank.QueryTotalSupplyRequest = (function () { + function QueryTotalSupplyRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryTotalSupplyRequest.create = function create(properties) { + return new QueryTotalSupplyRequest(properties); + }; + QueryTotalSupplyRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + QueryTotalSupplyRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QueryTotalSupplyRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryTotalSupplyRequest; + })(); + bank.QueryTotalSupplyResponse = (function () { + function QueryTotalSupplyResponse(p) { + this.supply = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QueryTotalSupplyResponse.prototype.supply = $util.emptyArray; + QueryTotalSupplyResponse.create = function create(properties) { + return new QueryTotalSupplyResponse(properties); + }; + QueryTotalSupplyResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.supply != null && m.supply.length) { + for (var i = 0; i < m.supply.length; ++i) + $root.cosmos.Coin.encode(m.supply[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + QueryTotalSupplyResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QueryTotalSupplyResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.supply && m.supply.length)) m.supply = []; + m.supply.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QueryTotalSupplyResponse; + })(); + bank.QuerySupplyOfRequest = (function () { + function QuerySupplyOfRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QuerySupplyOfRequest.prototype.denom = ""; + QuerySupplyOfRequest.create = function create(properties) { + return new QuerySupplyOfRequest(properties); + }; + QuerySupplyOfRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.denom != null && Object.hasOwnProperty.call(m, "denom")) w.uint32(10).string(m.denom); + return w; + }; + QuerySupplyOfRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QuerySupplyOfRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.denom = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QuerySupplyOfRequest; + })(); + bank.QuerySupplyOfResponse = (function () { + function QuerySupplyOfResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + QuerySupplyOfResponse.prototype.amount = null; + QuerySupplyOfResponse.create = function create(properties) { + return new QuerySupplyOfResponse(properties); + }; + QuerySupplyOfResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.amount != null && Object.hasOwnProperty.call(m, "amount")) + $root.cosmos.Coin.encode(m.amount, w.uint32(10).fork()).ldelim(); + return w; + }; + QuerySupplyOfResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.bank.QuerySupplyOfResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.amount = $root.cosmos.Coin.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return QuerySupplyOfResponse; + })(); + return bank; + })(); + cosmos.crypto = (function () { + var crypto = {}; + crypto.PublicKey = (function () { + function PublicKey(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + PublicKey.prototype.secp256k1 = $util.newBuffer([]); + PublicKey.prototype.ed25519 = $util.newBuffer([]); + PublicKey.prototype.sr25519 = $util.newBuffer([]); + PublicKey.prototype.multisig = null; + PublicKey.prototype.secp256r1 = $util.newBuffer([]); + PublicKey.prototype.anyPubkey = null; + var $oneOfFields; + Object.defineProperty(PublicKey.prototype, "sum", { + get: $util.oneOfGetter( + ($oneOfFields = ["secp256k1", "ed25519", "sr25519", "multisig", "secp256r1", "anyPubkey"]), + ), + set: $util.oneOfSetter($oneOfFields), + }); + PublicKey.create = function create(properties) { + return new PublicKey(properties); + }; + PublicKey.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.secp256k1 != null && Object.hasOwnProperty.call(m, "secp256k1")) + w.uint32(10).bytes(m.secp256k1); + if (m.ed25519 != null && Object.hasOwnProperty.call(m, "ed25519")) w.uint32(18).bytes(m.ed25519); + if (m.sr25519 != null && Object.hasOwnProperty.call(m, "sr25519")) w.uint32(26).bytes(m.sr25519); + if (m.multisig != null && Object.hasOwnProperty.call(m, "multisig")) + $root.cosmos.crypto.PubKeyMultisigThreshold.encode(m.multisig, w.uint32(34).fork()).ldelim(); + if (m.secp256r1 != null && Object.hasOwnProperty.call(m, "secp256r1")) + w.uint32(42).bytes(m.secp256r1); + if (m.anyPubkey != null && Object.hasOwnProperty.call(m, "anyPubkey")) + $root.google.protobuf.Any.encode(m.anyPubkey, w.uint32(122).fork()).ldelim(); + return w; + }; + PublicKey.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.crypto.PublicKey(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.secp256k1 = r.bytes(); + break; + case 2: + m.ed25519 = r.bytes(); + break; + case 3: + m.sr25519 = r.bytes(); + break; + case 4: + m.multisig = $root.cosmos.crypto.PubKeyMultisigThreshold.decode(r, r.uint32()); + break; + case 5: + m.secp256r1 = r.bytes(); + break; + case 15: + m.anyPubkey = $root.google.protobuf.Any.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PublicKey; + })(); + crypto.PubKeyMultisigThreshold = (function () { + function PubKeyMultisigThreshold(p) { + this.publicKeys = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + PubKeyMultisigThreshold.prototype.threshold = 0; + PubKeyMultisigThreshold.prototype.publicKeys = $util.emptyArray; + PubKeyMultisigThreshold.create = function create(properties) { + return new PubKeyMultisigThreshold(properties); + }; + PubKeyMultisigThreshold.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.threshold != null && Object.hasOwnProperty.call(m, "threshold")) + w.uint32(8).uint32(m.threshold); + if (m.publicKeys != null && m.publicKeys.length) { + for (var i = 0; i < m.publicKeys.length; ++i) + $root.cosmos.crypto.PublicKey.encode(m.publicKeys[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + PubKeyMultisigThreshold.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.crypto.PubKeyMultisigThreshold(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.threshold = r.uint32(); + break; + case 2: + if (!(m.publicKeys && m.publicKeys.length)) m.publicKeys = []; + m.publicKeys.push($root.cosmos.crypto.PublicKey.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PubKeyMultisigThreshold; + })(); + crypto.MultiSignature = (function () { + function MultiSignature(p) { + this.signatures = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + MultiSignature.prototype.signatures = $util.emptyArray; + MultiSignature.create = function create(properties) { + return new MultiSignature(properties); + }; + MultiSignature.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) w.uint32(10).bytes(m.signatures[i]); + } + return w; + }; + MultiSignature.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.crypto.MultiSignature(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return MultiSignature; + })(); + crypto.CompactBitArray = (function () { + function CompactBitArray(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + CompactBitArray.prototype.extraBitsStored = 0; + CompactBitArray.prototype.elems = $util.newBuffer([]); + CompactBitArray.create = function create(properties) { + return new CompactBitArray(properties); + }; + CompactBitArray.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.extraBitsStored != null && Object.hasOwnProperty.call(m, "extraBitsStored")) + w.uint32(8).uint32(m.extraBitsStored); + if (m.elems != null && Object.hasOwnProperty.call(m, "elems")) w.uint32(18).bytes(m.elems); + return w; + }; + CompactBitArray.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.crypto.CompactBitArray(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.extraBitsStored = r.uint32(); + break; + case 2: + m.elems = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return CompactBitArray; + })(); + return crypto; + })(); + cosmos.query = (function () { + var query = {}; + query.PageRequest = (function () { + function PageRequest(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + PageRequest.prototype.key = $util.newBuffer([]); + PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PageRequest.prototype.countTotal = false; + PageRequest.create = function create(properties) { + return new PageRequest(properties); + }; + PageRequest.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); + if (m.offset != null && Object.hasOwnProperty.call(m, "offset")) w.uint32(16).uint64(m.offset); + if (m.limit != null && Object.hasOwnProperty.call(m, "limit")) w.uint32(24).uint64(m.limit); + if (m.countTotal != null && Object.hasOwnProperty.call(m, "countTotal")) + w.uint32(32).bool(m.countTotal); + return w; + }; + PageRequest.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.query.PageRequest(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.bytes(); + break; + case 2: + m.offset = r.uint64(); + break; + case 3: + m.limit = r.uint64(); + break; + case 4: + m.countTotal = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PageRequest; + })(); + query.PageResponse = (function () { + function PageResponse(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + PageResponse.prototype.nextKey = $util.newBuffer([]); + PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + PageResponse.create = function create(properties) { + return new PageResponse(properties); + }; + PageResponse.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.nextKey != null && Object.hasOwnProperty.call(m, "nextKey")) w.uint32(10).bytes(m.nextKey); + if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(16).uint64(m.total); + return w; + }; + PageResponse.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.query.PageResponse(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.nextKey = r.bytes(); + break; + case 2: + m.total = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PageResponse; + })(); + return query; + })(); + cosmos.tx = (function () { + var tx = {}; + tx.Tx = (function () { + function Tx(p) { + this.signatures = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Tx.prototype.body = null; + Tx.prototype.authInfo = null; + Tx.prototype.signatures = $util.emptyArray; + Tx.create = function create(properties) { + return new Tx(properties); + }; + Tx.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.body != null && Object.hasOwnProperty.call(m, "body")) + $root.cosmos.tx.TxBody.encode(m.body, w.uint32(10).fork()).ldelim(); + if (m.authInfo != null && Object.hasOwnProperty.call(m, "authInfo")) + $root.cosmos.tx.AuthInfo.encode(m.authInfo, w.uint32(18).fork()).ldelim(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) w.uint32(26).bytes(m.signatures[i]); + } + return w; + }; + Tx.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.Tx(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.body = $root.cosmos.tx.TxBody.decode(r, r.uint32()); + break; + case 2: + m.authInfo = $root.cosmos.tx.AuthInfo.decode(r, r.uint32()); + break; + case 3: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Tx; + })(); + tx.TxRaw = (function () { + function TxRaw(p) { + this.signatures = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + TxRaw.prototype.bodyBytes = $util.newBuffer([]); + TxRaw.prototype.authInfoBytes = $util.newBuffer([]); + TxRaw.prototype.signatures = $util.emptyArray; + TxRaw.create = function create(properties) { + return new TxRaw(properties); + }; + TxRaw.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bodyBytes != null && Object.hasOwnProperty.call(m, "bodyBytes")) + w.uint32(10).bytes(m.bodyBytes); + if (m.authInfoBytes != null && Object.hasOwnProperty.call(m, "authInfoBytes")) + w.uint32(18).bytes(m.authInfoBytes); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) w.uint32(26).bytes(m.signatures[i]); + } + return w; + }; + TxRaw.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.TxRaw(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bodyBytes = r.bytes(); + break; + case 2: + m.authInfoBytes = r.bytes(); + break; + case 3: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push(r.bytes()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxRaw; + })(); + tx.SignDoc = (function () { + function SignDoc(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SignDoc.prototype.bodyBytes = $util.newBuffer([]); + SignDoc.prototype.authInfoBytes = $util.newBuffer([]); + SignDoc.prototype.chainId = ""; + SignDoc.prototype.accountNumber = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SignDoc.prototype.accountSequence = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + SignDoc.create = function create(properties) { + return new SignDoc(properties); + }; + SignDoc.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bodyBytes != null && Object.hasOwnProperty.call(m, "bodyBytes")) + w.uint32(10).bytes(m.bodyBytes); + if (m.authInfoBytes != null && Object.hasOwnProperty.call(m, "authInfoBytes")) + w.uint32(18).bytes(m.authInfoBytes); + if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(26).string(m.chainId); + if (m.accountNumber != null && Object.hasOwnProperty.call(m, "accountNumber")) + w.uint32(32).uint64(m.accountNumber); + if (m.accountSequence != null && Object.hasOwnProperty.call(m, "accountSequence")) + w.uint32(40).uint64(m.accountSequence); + return w; + }; + SignDoc.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.SignDoc(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bodyBytes = r.bytes(); + break; + case 2: + m.authInfoBytes = r.bytes(); + break; + case 3: + m.chainId = r.string(); + break; + case 4: + m.accountNumber = r.uint64(); + break; + case 5: + m.accountSequence = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SignDoc; + })(); + tx.TxBody = (function () { + function TxBody(p) { + this.messages = []; + this.extensionOptions = []; + this.nonCriticalExtensionOptions = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + TxBody.prototype.messages = $util.emptyArray; + TxBody.prototype.memo = ""; + TxBody.prototype.timeoutHeight = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + TxBody.prototype.extensionOptions = $util.emptyArray; + TxBody.prototype.nonCriticalExtensionOptions = $util.emptyArray; + TxBody.create = function create(properties) { + return new TxBody(properties); + }; + TxBody.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.messages != null && m.messages.length) { + for (var i = 0; i < m.messages.length; ++i) + $root.google.protobuf.Any.encode(m.messages[i], w.uint32(10).fork()).ldelim(); + } + if (m.memo != null && Object.hasOwnProperty.call(m, "memo")) w.uint32(18).string(m.memo); + if (m.timeoutHeight != null && Object.hasOwnProperty.call(m, "timeoutHeight")) + w.uint32(24).uint64(m.timeoutHeight); + if (m.extensionOptions != null && m.extensionOptions.length) { + for (var i = 0; i < m.extensionOptions.length; ++i) + $root.google.protobuf.Any.encode(m.extensionOptions[i], w.uint32(8186).fork()).ldelim(); + } + if (m.nonCriticalExtensionOptions != null && m.nonCriticalExtensionOptions.length) { + for (var i = 0; i < m.nonCriticalExtensionOptions.length; ++i) + $root.google.protobuf.Any.encode( + m.nonCriticalExtensionOptions[i], + w.uint32(16378).fork(), + ).ldelim(); + } + return w; + }; + TxBody.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.TxBody(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.messages && m.messages.length)) m.messages = []; + m.messages.push($root.google.protobuf.Any.decode(r, r.uint32())); + break; + case 2: + m.memo = r.string(); + break; + case 3: + m.timeoutHeight = r.uint64(); + break; + case 1023: + if (!(m.extensionOptions && m.extensionOptions.length)) m.extensionOptions = []; + m.extensionOptions.push($root.google.protobuf.Any.decode(r, r.uint32())); + break; + case 2047: + if (!(m.nonCriticalExtensionOptions && m.nonCriticalExtensionOptions.length)) + m.nonCriticalExtensionOptions = []; + m.nonCriticalExtensionOptions.push($root.google.protobuf.Any.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return TxBody; + })(); + tx.AuthInfo = (function () { + function AuthInfo(p) { + this.signerInfos = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + AuthInfo.prototype.signerInfos = $util.emptyArray; + AuthInfo.prototype.fee = null; + AuthInfo.create = function create(properties) { + return new AuthInfo(properties); + }; + AuthInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.signerInfos != null && m.signerInfos.length) { + for (var i = 0; i < m.signerInfos.length; ++i) + $root.cosmos.tx.SignerInfo.encode(m.signerInfos[i], w.uint32(10).fork()).ldelim(); + } + if (m.fee != null && Object.hasOwnProperty.call(m, "fee")) + $root.cosmos.tx.Fee.encode(m.fee, w.uint32(18).fork()).ldelim(); + return w; + }; + AuthInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.AuthInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.signerInfos && m.signerInfos.length)) m.signerInfos = []; + m.signerInfos.push($root.cosmos.tx.SignerInfo.decode(r, r.uint32())); + break; + case 2: + m.fee = $root.cosmos.tx.Fee.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return AuthInfo; + })(); + tx.SignerInfo = (function () { + function SignerInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SignerInfo.prototype.publicKey = null; + SignerInfo.prototype.modeInfo = null; + SignerInfo.create = function create(properties) { + return new SignerInfo(properties); + }; + SignerInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.publicKey != null && Object.hasOwnProperty.call(m, "publicKey")) + $root.cosmos.crypto.PublicKey.encode(m.publicKey, w.uint32(10).fork()).ldelim(); + if (m.modeInfo != null && Object.hasOwnProperty.call(m, "modeInfo")) + $root.cosmos.tx.ModeInfo.encode(m.modeInfo, w.uint32(18).fork()).ldelim(); + return w; + }; + SignerInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.SignerInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.publicKey = $root.cosmos.crypto.PublicKey.decode(r, r.uint32()); + break; + case 2: + m.modeInfo = $root.cosmos.tx.ModeInfo.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SignerInfo; + })(); + tx.ModeInfo = (function () { + function ModeInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ModeInfo.prototype.single = null; + ModeInfo.prototype.multi = null; + var $oneOfFields; + Object.defineProperty(ModeInfo.prototype, "sum", { + get: $util.oneOfGetter(($oneOfFields = ["single", "multi"])), + set: $util.oneOfSetter($oneOfFields), + }); + ModeInfo.create = function create(properties) { + return new ModeInfo(properties); + }; + ModeInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.single != null && Object.hasOwnProperty.call(m, "single")) + $root.cosmos.tx.ModeInfo.Single.encode(m.single, w.uint32(10).fork()).ldelim(); + if (m.multi != null && Object.hasOwnProperty.call(m, "multi")) + $root.cosmos.tx.ModeInfo.Multi.encode(m.multi, w.uint32(18).fork()).ldelim(); + return w; + }; + ModeInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.ModeInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.single = $root.cosmos.tx.ModeInfo.Single.decode(r, r.uint32()); + break; + case 2: + m.multi = $root.cosmos.tx.ModeInfo.Multi.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + ModeInfo.Single = (function () { + function Single(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Single.prototype.mode = 0; + Single.create = function create(properties) { + return new Single(properties); + }; + Single.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.mode != null && Object.hasOwnProperty.call(m, "mode")) w.uint32(8).int32(m.mode); + return w; + }; + Single.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.ModeInfo.Single(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.mode = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Single; + })(); + ModeInfo.Multi = (function () { + function Multi(p) { + this.modeInfos = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Multi.prototype.bitarray = null; + Multi.prototype.modeInfos = $util.emptyArray; + Multi.create = function create(properties) { + return new Multi(properties); + }; + Multi.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bitarray != null && Object.hasOwnProperty.call(m, "bitarray")) + $root.cosmos.crypto.CompactBitArray.encode(m.bitarray, w.uint32(10).fork()).ldelim(); + if (m.modeInfos != null && m.modeInfos.length) { + for (var i = 0; i < m.modeInfos.length; ++i) + $root.cosmos.tx.ModeInfo.encode(m.modeInfos[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + Multi.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.ModeInfo.Multi(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bitarray = $root.cosmos.crypto.CompactBitArray.decode(r, r.uint32()); + break; + case 2: + if (!(m.modeInfos && m.modeInfos.length)) m.modeInfos = []; + m.modeInfos.push($root.cosmos.tx.ModeInfo.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Multi; + })(); + return ModeInfo; + })(); + tx.Fee = (function () { + function Fee(p) { + this.amount = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Fee.prototype.amount = $util.emptyArray; + Fee.prototype.gasLimit = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Fee.create = function create(properties) { + return new Fee(properties); + }; + Fee.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.amount != null && m.amount.length) { + for (var i = 0; i < m.amount.length; ++i) + $root.cosmos.Coin.encode(m.amount[i], w.uint32(10).fork()).ldelim(); + } + if (m.gasLimit != null && Object.hasOwnProperty.call(m, "gasLimit")) w.uint32(16).uint64(m.gasLimit); + return w; + }; + Fee.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.Fee(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.amount && m.amount.length)) m.amount = []; + m.amount.push($root.cosmos.Coin.decode(r, r.uint32())); + break; + case 2: + m.gasLimit = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Fee; + })(); + tx.signing = (function () { + var signing = {}; + signing.SignMode = (function () { + var valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "SIGN_MODE_UNSPECIFIED")] = 0; + values[(valuesById[1] = "SIGN_MODE_DIRECT")] = 1; + values[(valuesById[2] = "SIGN_MODE_TEXTUAL")] = 2; + values[(valuesById[127] = "SIGN_MODE_LEGACY_AMINO_JSON")] = 127; + return values; + })(); + signing.SignatureDescriptors = (function () { + function SignatureDescriptors(p) { + this.signatures = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SignatureDescriptors.prototype.signatures = $util.emptyArray; + SignatureDescriptors.create = function create(properties) { + return new SignatureDescriptors(properties); + }; + SignatureDescriptors.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) + $root.cosmos.tx.signing.SignatureDescriptor.encode( + m.signatures[i], + w.uint32(10).fork(), + ).ldelim(); + } + return w; + }; + SignatureDescriptors.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.signing.SignatureDescriptors(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push($root.cosmos.tx.signing.SignatureDescriptor.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return SignatureDescriptors; + })(); + signing.SignatureDescriptor = (function () { + function SignatureDescriptor(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + SignatureDescriptor.prototype.publicKey = null; + SignatureDescriptor.prototype.data = null; + SignatureDescriptor.create = function create(properties) { + return new SignatureDescriptor(properties); + }; + SignatureDescriptor.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.publicKey != null && Object.hasOwnProperty.call(m, "publicKey")) + $root.cosmos.crypto.PublicKey.encode(m.publicKey, w.uint32(10).fork()).ldelim(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) + $root.cosmos.tx.signing.SignatureDescriptor.Data.encode(m.data, w.uint32(18).fork()).ldelim(); + return w; + }; + SignatureDescriptor.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.signing.SignatureDescriptor(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.publicKey = $root.cosmos.crypto.PublicKey.decode(r, r.uint32()); + break; + case 2: + m.data = $root.cosmos.tx.signing.SignatureDescriptor.Data.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + SignatureDescriptor.Data = (function () { + function Data(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Data.prototype.single = null; + Data.prototype.multi = null; + var $oneOfFields; + Object.defineProperty(Data.prototype, "sum", { + get: $util.oneOfGetter(($oneOfFields = ["single", "multi"])), + set: $util.oneOfSetter($oneOfFields), + }); + Data.create = function create(properties) { + return new Data(properties); + }; + Data.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.single != null && Object.hasOwnProperty.call(m, "single")) + $root.cosmos.tx.signing.SignatureDescriptor.Data.Single.encode( + m.single, + w.uint32(10).fork(), + ).ldelim(); + if (m.multi != null && Object.hasOwnProperty.call(m, "multi")) + $root.cosmos.tx.signing.SignatureDescriptor.Data.Multi.encode( + m.multi, + w.uint32(18).fork(), + ).ldelim(); + return w; + }; + Data.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.signing.SignatureDescriptor.Data(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.single = $root.cosmos.tx.signing.SignatureDescriptor.Data.Single.decode(r, r.uint32()); + break; + case 2: + m.multi = $root.cosmos.tx.signing.SignatureDescriptor.Data.Multi.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + Data.Single = (function () { + function Single(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Single.prototype.mode = 0; + Single.prototype.signature = $util.newBuffer([]); + Single.create = function create(properties) { + return new Single(properties); + }; + Single.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.mode != null && Object.hasOwnProperty.call(m, "mode")) w.uint32(8).int32(m.mode); + if (m.signature != null && Object.hasOwnProperty.call(m, "signature")) + w.uint32(18).bytes(m.signature); + return w; + }; + Single.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.signing.SignatureDescriptor.Data.Single(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.mode = r.int32(); + break; + case 2: + m.signature = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Single; + })(); + Data.Multi = (function () { + function Multi(p) { + this.signatures = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Multi.prototype.bitarray = null; + Multi.prototype.signatures = $util.emptyArray; + Multi.create = function create(properties) { + return new Multi(properties); + }; + Multi.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.bitarray != null && Object.hasOwnProperty.call(m, "bitarray")) + $root.cosmos.crypto.CompactBitArray.encode(m.bitarray, w.uint32(10).fork()).ldelim(); + if (m.signatures != null && m.signatures.length) { + for (var i = 0; i < m.signatures.length; ++i) + $root.cosmos.tx.signing.SignatureDescriptor.Data.encode( + m.signatures[i], + w.uint32(18).fork(), + ).ldelim(); + } + return w; + }; + Multi.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.cosmos.tx.signing.SignatureDescriptor.Data.Multi(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.bitarray = $root.cosmos.crypto.CompactBitArray.decode(r, r.uint32()); + break; + case 2: + if (!(m.signatures && m.signatures.length)) m.signatures = []; + m.signatures.push($root.cosmos.tx.signing.SignatureDescriptor.Data.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Multi; + })(); + return Data; + })(); + return SignatureDescriptor; + })(); + return signing; + })(); + return tx; + })(); + return cosmos; +})(); +exports.tendermint = $root.tendermint = (function () { + var tendermint = {}; + tendermint.abci = (function () { + var abci = {}; + abci.types = (function () { + var types = {}; + types.Request = (function () { + function Request(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Request.prototype.echo = null; + Request.prototype.flush = null; + Request.prototype.info = null; + Request.prototype.setOption = null; + Request.prototype.initChain = null; + Request.prototype.query = null; + Request.prototype.beginBlock = null; + Request.prototype.checkTx = null; + Request.prototype.deliverTx = null; + Request.prototype.endBlock = null; + Request.prototype.commit = null; + var $oneOfFields; + Object.defineProperty(Request.prototype, "value", { + get: $util.oneOfGetter( + ($oneOfFields = [ + "echo", + "flush", + "info", + "setOption", + "initChain", + "query", + "beginBlock", + "checkTx", + "deliverTx", + "endBlock", + "commit", + ]), + ), + set: $util.oneOfSetter($oneOfFields), + }); + Request.create = function create(properties) { + return new Request(properties); + }; + Request.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.echo != null && Object.hasOwnProperty.call(m, "echo")) + $root.tendermint.abci.types.RequestEcho.encode(m.echo, w.uint32(18).fork()).ldelim(); + if (m.flush != null && Object.hasOwnProperty.call(m, "flush")) + $root.tendermint.abci.types.RequestFlush.encode(m.flush, w.uint32(26).fork()).ldelim(); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) + $root.tendermint.abci.types.RequestInfo.encode(m.info, w.uint32(34).fork()).ldelim(); + if (m.setOption != null && Object.hasOwnProperty.call(m, "setOption")) + $root.tendermint.abci.types.RequestSetOption.encode(m.setOption, w.uint32(42).fork()).ldelim(); + if (m.initChain != null && Object.hasOwnProperty.call(m, "initChain")) + $root.tendermint.abci.types.RequestInitChain.encode(m.initChain, w.uint32(50).fork()).ldelim(); + if (m.query != null && Object.hasOwnProperty.call(m, "query")) + $root.tendermint.abci.types.RequestQuery.encode(m.query, w.uint32(58).fork()).ldelim(); + if (m.beginBlock != null && Object.hasOwnProperty.call(m, "beginBlock")) + $root.tendermint.abci.types.RequestBeginBlock.encode(m.beginBlock, w.uint32(66).fork()).ldelim(); + if (m.checkTx != null && Object.hasOwnProperty.call(m, "checkTx")) + $root.tendermint.abci.types.RequestCheckTx.encode(m.checkTx, w.uint32(74).fork()).ldelim(); + if (m.endBlock != null && Object.hasOwnProperty.call(m, "endBlock")) + $root.tendermint.abci.types.RequestEndBlock.encode(m.endBlock, w.uint32(90).fork()).ldelim(); + if (m.commit != null && Object.hasOwnProperty.call(m, "commit")) + $root.tendermint.abci.types.RequestCommit.encode(m.commit, w.uint32(98).fork()).ldelim(); + if (m.deliverTx != null && Object.hasOwnProperty.call(m, "deliverTx")) + $root.tendermint.abci.types.RequestDeliverTx.encode(m.deliverTx, w.uint32(154).fork()).ldelim(); + return w; + }; + Request.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.Request(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 2: + m.echo = $root.tendermint.abci.types.RequestEcho.decode(r, r.uint32()); + break; + case 3: + m.flush = $root.tendermint.abci.types.RequestFlush.decode(r, r.uint32()); + break; + case 4: + m.info = $root.tendermint.abci.types.RequestInfo.decode(r, r.uint32()); + break; + case 5: + m.setOption = $root.tendermint.abci.types.RequestSetOption.decode(r, r.uint32()); + break; + case 6: + m.initChain = $root.tendermint.abci.types.RequestInitChain.decode(r, r.uint32()); + break; + case 7: + m.query = $root.tendermint.abci.types.RequestQuery.decode(r, r.uint32()); + break; + case 8: + m.beginBlock = $root.tendermint.abci.types.RequestBeginBlock.decode(r, r.uint32()); + break; + case 9: + m.checkTx = $root.tendermint.abci.types.RequestCheckTx.decode(r, r.uint32()); + break; + case 19: + m.deliverTx = $root.tendermint.abci.types.RequestDeliverTx.decode(r, r.uint32()); + break; + case 11: + m.endBlock = $root.tendermint.abci.types.RequestEndBlock.decode(r, r.uint32()); + break; + case 12: + m.commit = $root.tendermint.abci.types.RequestCommit.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Request; + })(); + types.RequestEcho = (function () { + function RequestEcho(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestEcho.prototype.message = ""; + RequestEcho.create = function create(properties) { + return new RequestEcho(properties); + }; + RequestEcho.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.message != null && Object.hasOwnProperty.call(m, "message")) w.uint32(10).string(m.message); + return w; + }; + RequestEcho.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestEcho(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.message = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestEcho; + })(); + types.RequestFlush = (function () { + function RequestFlush(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestFlush.create = function create(properties) { + return new RequestFlush(properties); + }; + RequestFlush.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + RequestFlush.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestFlush(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestFlush; + })(); + types.RequestInfo = (function () { + function RequestInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestInfo.prototype.version = ""; + RequestInfo.prototype.blockVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + RequestInfo.prototype.p2pVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + RequestInfo.create = function create(properties) { + return new RequestInfo(properties); + }; + RequestInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(10).string(m.version); + if (m.blockVersion != null && Object.hasOwnProperty.call(m, "blockVersion")) + w.uint32(16).uint64(m.blockVersion); + if (m.p2pVersion != null && Object.hasOwnProperty.call(m, "p2pVersion")) + w.uint32(24).uint64(m.p2pVersion); + return w; + }; + RequestInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.version = r.string(); + break; + case 2: + m.blockVersion = r.uint64(); + break; + case 3: + m.p2pVersion = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestInfo; + })(); + types.RequestSetOption = (function () { + function RequestSetOption(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestSetOption.prototype.key = ""; + RequestSetOption.prototype.value = ""; + RequestSetOption.create = function create(properties) { + return new RequestSetOption(properties); + }; + RequestSetOption.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).string(m.key); + if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).string(m.value); + return w; + }; + RequestSetOption.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestSetOption(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.string(); + break; + case 2: + m.value = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestSetOption; + })(); + types.RequestInitChain = (function () { + function RequestInitChain(p) { + this.validators = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestInitChain.prototype.time = null; + RequestInitChain.prototype.chainId = ""; + RequestInitChain.prototype.consensusParams = null; + RequestInitChain.prototype.validators = $util.emptyArray; + RequestInitChain.prototype.appStateBytes = $util.newBuffer([]); + RequestInitChain.create = function create(properties) { + return new RequestInitChain(properties); + }; + RequestInitChain.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.time != null && Object.hasOwnProperty.call(m, "time")) + $root.google.protobuf.Timestamp.encode(m.time, w.uint32(10).fork()).ldelim(); + if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(18).string(m.chainId); + if (m.consensusParams != null && Object.hasOwnProperty.call(m, "consensusParams")) + $root.tendermint.abci.types.ConsensusParams.encode( + m.consensusParams, + w.uint32(26).fork(), + ).ldelim(); + if (m.validators != null && m.validators.length) { + for (var i = 0; i < m.validators.length; ++i) + $root.tendermint.abci.types.ValidatorUpdate.encode( + m.validators[i], + w.uint32(34).fork(), + ).ldelim(); + } + if (m.appStateBytes != null && Object.hasOwnProperty.call(m, "appStateBytes")) + w.uint32(42).bytes(m.appStateBytes); + return w; + }; + RequestInitChain.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestInitChain(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); + break; + case 2: + m.chainId = r.string(); + break; + case 3: + m.consensusParams = $root.tendermint.abci.types.ConsensusParams.decode(r, r.uint32()); + break; + case 4: + if (!(m.validators && m.validators.length)) m.validators = []; + m.validators.push($root.tendermint.abci.types.ValidatorUpdate.decode(r, r.uint32())); + break; + case 5: + m.appStateBytes = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestInitChain; + })(); + types.RequestQuery = (function () { + function RequestQuery(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestQuery.prototype.data = $util.newBuffer([]); + RequestQuery.prototype.path = ""; + RequestQuery.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + RequestQuery.prototype.prove = false; + RequestQuery.create = function create(properties) { + return new RequestQuery(properties); + }; + RequestQuery.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).bytes(m.data); + if (m.path != null && Object.hasOwnProperty.call(m, "path")) w.uint32(18).string(m.path); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); + if (m.prove != null && Object.hasOwnProperty.call(m, "prove")) w.uint32(32).bool(m.prove); + return w; + }; + RequestQuery.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestQuery(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.data = r.bytes(); + break; + case 2: + m.path = r.string(); + break; + case 3: + m.height = r.int64(); + break; + case 4: + m.prove = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestQuery; + })(); + types.RequestBeginBlock = (function () { + function RequestBeginBlock(p) { + this.byzantineValidators = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestBeginBlock.prototype.hash = $util.newBuffer([]); + RequestBeginBlock.prototype.header = null; + RequestBeginBlock.prototype.lastCommitInfo = null; + RequestBeginBlock.prototype.byzantineValidators = $util.emptyArray; + RequestBeginBlock.create = function create(properties) { + return new RequestBeginBlock(properties); + }; + RequestBeginBlock.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(10).bytes(m.hash); + if (m.header != null && Object.hasOwnProperty.call(m, "header")) + $root.tendermint.abci.types.Header.encode(m.header, w.uint32(18).fork()).ldelim(); + if (m.lastCommitInfo != null && Object.hasOwnProperty.call(m, "lastCommitInfo")) + $root.tendermint.abci.types.LastCommitInfo.encode(m.lastCommitInfo, w.uint32(26).fork()).ldelim(); + if (m.byzantineValidators != null && m.byzantineValidators.length) { + for (var i = 0; i < m.byzantineValidators.length; ++i) + $root.tendermint.abci.types.Evidence.encode( + m.byzantineValidators[i], + w.uint32(34).fork(), + ).ldelim(); + } + return w; + }; + RequestBeginBlock.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestBeginBlock(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.hash = r.bytes(); + break; + case 2: + m.header = $root.tendermint.abci.types.Header.decode(r, r.uint32()); + break; + case 3: + m.lastCommitInfo = $root.tendermint.abci.types.LastCommitInfo.decode(r, r.uint32()); + break; + case 4: + if (!(m.byzantineValidators && m.byzantineValidators.length)) m.byzantineValidators = []; + m.byzantineValidators.push($root.tendermint.abci.types.Evidence.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestBeginBlock; + })(); + types.CheckTxType = (function () { + var valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = "New")] = 0; + values[(valuesById[1] = "Recheck")] = 1; + return values; + })(); + types.RequestCheckTx = (function () { + function RequestCheckTx(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestCheckTx.prototype.tx = $util.newBuffer([]); + RequestCheckTx.prototype.type = 0; + RequestCheckTx.create = function create(properties) { + return new RequestCheckTx(properties); + }; + RequestCheckTx.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) w.uint32(10).bytes(m.tx); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(16).int32(m.type); + return w; + }; + RequestCheckTx.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestCheckTx(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.tx = r.bytes(); + break; + case 2: + m.type = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestCheckTx; + })(); + types.RequestDeliverTx = (function () { + function RequestDeliverTx(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestDeliverTx.prototype.tx = $util.newBuffer([]); + RequestDeliverTx.create = function create(properties) { + return new RequestDeliverTx(properties); + }; + RequestDeliverTx.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.tx != null && Object.hasOwnProperty.call(m, "tx")) w.uint32(10).bytes(m.tx); + return w; + }; + RequestDeliverTx.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestDeliverTx(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.tx = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestDeliverTx; + })(); + types.RequestEndBlock = (function () { + function RequestEndBlock(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestEndBlock.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + RequestEndBlock.create = function create(properties) { + return new RequestEndBlock(properties); + }; + RequestEndBlock.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(8).int64(m.height); + return w; + }; + RequestEndBlock.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestEndBlock(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.height = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestEndBlock; + })(); + types.RequestCommit = (function () { + function RequestCommit(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + RequestCommit.create = function create(properties) { + return new RequestCommit(properties); + }; + RequestCommit.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + RequestCommit.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.RequestCommit(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return RequestCommit; + })(); + types.Response = (function () { + function Response(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Response.prototype.exception = null; + Response.prototype.echo = null; + Response.prototype.flush = null; + Response.prototype.info = null; + Response.prototype.setOption = null; + Response.prototype.initChain = null; + Response.prototype.query = null; + Response.prototype.beginBlock = null; + Response.prototype.checkTx = null; + Response.prototype.deliverTx = null; + Response.prototype.endBlock = null; + Response.prototype.commit = null; + var $oneOfFields; + Object.defineProperty(Response.prototype, "value", { + get: $util.oneOfGetter( + ($oneOfFields = [ + "exception", + "echo", + "flush", + "info", + "setOption", + "initChain", + "query", + "beginBlock", + "checkTx", + "deliverTx", + "endBlock", + "commit", + ]), + ), + set: $util.oneOfSetter($oneOfFields), + }); + Response.create = function create(properties) { + return new Response(properties); + }; + Response.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.exception != null && Object.hasOwnProperty.call(m, "exception")) + $root.tendermint.abci.types.ResponseException.encode(m.exception, w.uint32(10).fork()).ldelim(); + if (m.echo != null && Object.hasOwnProperty.call(m, "echo")) + $root.tendermint.abci.types.ResponseEcho.encode(m.echo, w.uint32(18).fork()).ldelim(); + if (m.flush != null && Object.hasOwnProperty.call(m, "flush")) + $root.tendermint.abci.types.ResponseFlush.encode(m.flush, w.uint32(26).fork()).ldelim(); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) + $root.tendermint.abci.types.ResponseInfo.encode(m.info, w.uint32(34).fork()).ldelim(); + if (m.setOption != null && Object.hasOwnProperty.call(m, "setOption")) + $root.tendermint.abci.types.ResponseSetOption.encode(m.setOption, w.uint32(42).fork()).ldelim(); + if (m.initChain != null && Object.hasOwnProperty.call(m, "initChain")) + $root.tendermint.abci.types.ResponseInitChain.encode(m.initChain, w.uint32(50).fork()).ldelim(); + if (m.query != null && Object.hasOwnProperty.call(m, "query")) + $root.tendermint.abci.types.ResponseQuery.encode(m.query, w.uint32(58).fork()).ldelim(); + if (m.beginBlock != null && Object.hasOwnProperty.call(m, "beginBlock")) + $root.tendermint.abci.types.ResponseBeginBlock.encode(m.beginBlock, w.uint32(66).fork()).ldelim(); + if (m.checkTx != null && Object.hasOwnProperty.call(m, "checkTx")) + $root.tendermint.abci.types.ResponseCheckTx.encode(m.checkTx, w.uint32(74).fork()).ldelim(); + if (m.deliverTx != null && Object.hasOwnProperty.call(m, "deliverTx")) + $root.tendermint.abci.types.ResponseDeliverTx.encode(m.deliverTx, w.uint32(82).fork()).ldelim(); + if (m.endBlock != null && Object.hasOwnProperty.call(m, "endBlock")) + $root.tendermint.abci.types.ResponseEndBlock.encode(m.endBlock, w.uint32(90).fork()).ldelim(); + if (m.commit != null && Object.hasOwnProperty.call(m, "commit")) + $root.tendermint.abci.types.ResponseCommit.encode(m.commit, w.uint32(98).fork()).ldelim(); + return w; + }; + Response.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.Response(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.exception = $root.tendermint.abci.types.ResponseException.decode(r, r.uint32()); + break; + case 2: + m.echo = $root.tendermint.abci.types.ResponseEcho.decode(r, r.uint32()); + break; + case 3: + m.flush = $root.tendermint.abci.types.ResponseFlush.decode(r, r.uint32()); + break; + case 4: + m.info = $root.tendermint.abci.types.ResponseInfo.decode(r, r.uint32()); + break; + case 5: + m.setOption = $root.tendermint.abci.types.ResponseSetOption.decode(r, r.uint32()); + break; + case 6: + m.initChain = $root.tendermint.abci.types.ResponseInitChain.decode(r, r.uint32()); + break; + case 7: + m.query = $root.tendermint.abci.types.ResponseQuery.decode(r, r.uint32()); + break; + case 8: + m.beginBlock = $root.tendermint.abci.types.ResponseBeginBlock.decode(r, r.uint32()); + break; + case 9: + m.checkTx = $root.tendermint.abci.types.ResponseCheckTx.decode(r, r.uint32()); + break; + case 10: + m.deliverTx = $root.tendermint.abci.types.ResponseDeliverTx.decode(r, r.uint32()); + break; + case 11: + m.endBlock = $root.tendermint.abci.types.ResponseEndBlock.decode(r, r.uint32()); + break; + case 12: + m.commit = $root.tendermint.abci.types.ResponseCommit.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Response; + })(); + types.ResponseException = (function () { + function ResponseException(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseException.prototype.error = ""; + ResponseException.create = function create(properties) { + return new ResponseException(properties); + }; + ResponseException.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.error != null && Object.hasOwnProperty.call(m, "error")) w.uint32(10).string(m.error); + return w; + }; + ResponseException.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseException(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.error = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseException; + })(); + types.ResponseEcho = (function () { + function ResponseEcho(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseEcho.prototype.message = ""; + ResponseEcho.create = function create(properties) { + return new ResponseEcho(properties); + }; + ResponseEcho.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.message != null && Object.hasOwnProperty.call(m, "message")) w.uint32(10).string(m.message); + return w; + }; + ResponseEcho.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseEcho(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.message = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseEcho; + })(); + types.ResponseFlush = (function () { + function ResponseFlush(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseFlush.create = function create(properties) { + return new ResponseFlush(properties); + }; + ResponseFlush.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + return w; + }; + ResponseFlush.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseFlush(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseFlush; + })(); + types.ResponseInfo = (function () { + function ResponseInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseInfo.prototype.data = ""; + ResponseInfo.prototype.version = ""; + ResponseInfo.prototype.appVersion = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + ResponseInfo.prototype.lastBlockHeight = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseInfo.prototype.lastBlockAppHash = $util.newBuffer([]); + ResponseInfo.create = function create(properties) { + return new ResponseInfo(properties); + }; + ResponseInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(10).string(m.data); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) w.uint32(18).string(m.version); + if (m.appVersion != null && Object.hasOwnProperty.call(m, "appVersion")) + w.uint32(24).uint64(m.appVersion); + if (m.lastBlockHeight != null && Object.hasOwnProperty.call(m, "lastBlockHeight")) + w.uint32(32).int64(m.lastBlockHeight); + if (m.lastBlockAppHash != null && Object.hasOwnProperty.call(m, "lastBlockAppHash")) + w.uint32(42).bytes(m.lastBlockAppHash); + return w; + }; + ResponseInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.data = r.string(); + break; + case 2: + m.version = r.string(); + break; + case 3: + m.appVersion = r.uint64(); + break; + case 4: + m.lastBlockHeight = r.int64(); + break; + case 5: + m.lastBlockAppHash = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseInfo; + })(); + types.ResponseSetOption = (function () { + function ResponseSetOption(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseSetOption.prototype.code = 0; + ResponseSetOption.prototype.log = ""; + ResponseSetOption.prototype.info = ""; + ResponseSetOption.create = function create(properties) { + return new ResponseSetOption(properties); + }; + ResponseSetOption.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); + return w; + }; + ResponseSetOption.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseSetOption(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.code = r.uint32(); + break; + case 3: + m.log = r.string(); + break; + case 4: + m.info = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseSetOption; + })(); + types.ResponseInitChain = (function () { + function ResponseInitChain(p) { + this.validators = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseInitChain.prototype.consensusParams = null; + ResponseInitChain.prototype.validators = $util.emptyArray; + ResponseInitChain.create = function create(properties) { + return new ResponseInitChain(properties); + }; + ResponseInitChain.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.consensusParams != null && Object.hasOwnProperty.call(m, "consensusParams")) + $root.tendermint.abci.types.ConsensusParams.encode( + m.consensusParams, + w.uint32(10).fork(), + ).ldelim(); + if (m.validators != null && m.validators.length) { + for (var i = 0; i < m.validators.length; ++i) + $root.tendermint.abci.types.ValidatorUpdate.encode( + m.validators[i], + w.uint32(18).fork(), + ).ldelim(); + } + return w; + }; + ResponseInitChain.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseInitChain(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.consensusParams = $root.tendermint.abci.types.ConsensusParams.decode(r, r.uint32()); + break; + case 2: + if (!(m.validators && m.validators.length)) m.validators = []; + m.validators.push($root.tendermint.abci.types.ValidatorUpdate.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseInitChain; + })(); + types.ResponseQuery = (function () { + function ResponseQuery(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseQuery.prototype.code = 0; + ResponseQuery.prototype.log = ""; + ResponseQuery.prototype.info = ""; + ResponseQuery.prototype.index = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseQuery.prototype.key = $util.newBuffer([]); + ResponseQuery.prototype.value = $util.newBuffer([]); + ResponseQuery.prototype.proof = null; + ResponseQuery.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseQuery.prototype.codespace = ""; + ResponseQuery.create = function create(properties) { + return new ResponseQuery(properties); + }; + ResponseQuery.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); + if (m.index != null && Object.hasOwnProperty.call(m, "index")) w.uint32(40).int64(m.index); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(50).bytes(m.key); + if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(58).bytes(m.value); + if (m.proof != null && Object.hasOwnProperty.call(m, "proof")) + $root.tendermint.crypto.merkle.Proof.encode(m.proof, w.uint32(66).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(72).int64(m.height); + if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) + w.uint32(82).string(m.codespace); + return w; + }; + ResponseQuery.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseQuery(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.code = r.uint32(); + break; + case 3: + m.log = r.string(); + break; + case 4: + m.info = r.string(); + break; + case 5: + m.index = r.int64(); + break; + case 6: + m.key = r.bytes(); + break; + case 7: + m.value = r.bytes(); + break; + case 8: + m.proof = $root.tendermint.crypto.merkle.Proof.decode(r, r.uint32()); + break; + case 9: + m.height = r.int64(); + break; + case 10: + m.codespace = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseQuery; + })(); + types.ResponseBeginBlock = (function () { + function ResponseBeginBlock(p) { + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseBeginBlock.prototype.events = $util.emptyArray; + ResponseBeginBlock.create = function create(properties) { + return new ResponseBeginBlock(properties); + }; + ResponseBeginBlock.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + ResponseBeginBlock.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseBeginBlock(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseBeginBlock; + })(); + types.ResponseCheckTx = (function () { + function ResponseCheckTx(p) { + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseCheckTx.prototype.code = 0; + ResponseCheckTx.prototype.data = $util.newBuffer([]); + ResponseCheckTx.prototype.log = ""; + ResponseCheckTx.prototype.info = ""; + ResponseCheckTx.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseCheckTx.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseCheckTx.prototype.events = $util.emptyArray; + ResponseCheckTx.prototype.codespace = ""; + ResponseCheckTx.create = function create(properties) { + return new ResponseCheckTx(properties); + }; + ResponseCheckTx.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); + if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) + w.uint32(40).int64(m.gasWanted); + if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(48).int64(m.gasUsed); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(58).fork()).ldelim(); + } + if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) + w.uint32(66).string(m.codespace); + return w; + }; + ResponseCheckTx.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseCheckTx(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.code = r.uint32(); + break; + case 2: + m.data = r.bytes(); + break; + case 3: + m.log = r.string(); + break; + case 4: + m.info = r.string(); + break; + case 5: + m.gasWanted = r.int64(); + break; + case 6: + m.gasUsed = r.int64(); + break; + case 7: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); + break; + case 8: + m.codespace = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseCheckTx; + })(); + types.ResponseDeliverTx = (function () { + function ResponseDeliverTx(p) { + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseDeliverTx.prototype.code = 0; + ResponseDeliverTx.prototype.data = $util.newBuffer([]); + ResponseDeliverTx.prototype.log = ""; + ResponseDeliverTx.prototype.info = ""; + ResponseDeliverTx.prototype.gasWanted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseDeliverTx.prototype.gasUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ResponseDeliverTx.prototype.events = $util.emptyArray; + ResponseDeliverTx.prototype.codespace = ""; + ResponseDeliverTx.create = function create(properties) { + return new ResponseDeliverTx(properties); + }; + ResponseDeliverTx.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.code != null && Object.hasOwnProperty.call(m, "code")) w.uint32(8).uint32(m.code); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); + if (m.log != null && Object.hasOwnProperty.call(m, "log")) w.uint32(26).string(m.log); + if (m.info != null && Object.hasOwnProperty.call(m, "info")) w.uint32(34).string(m.info); + if (m.gasWanted != null && Object.hasOwnProperty.call(m, "gasWanted")) + w.uint32(40).int64(m.gasWanted); + if (m.gasUsed != null && Object.hasOwnProperty.call(m, "gasUsed")) w.uint32(48).int64(m.gasUsed); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(58).fork()).ldelim(); + } + if (m.codespace != null && Object.hasOwnProperty.call(m, "codespace")) + w.uint32(66).string(m.codespace); + return w; + }; + ResponseDeliverTx.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseDeliverTx(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.code = r.uint32(); + break; + case 2: + m.data = r.bytes(); + break; + case 3: + m.log = r.string(); + break; + case 4: + m.info = r.string(); + break; + case 5: + m.gasWanted = r.int64(); + break; + case 6: + m.gasUsed = r.int64(); + break; + case 7: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); + break; + case 8: + m.codespace = r.string(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseDeliverTx; + })(); + types.ResponseEndBlock = (function () { + function ResponseEndBlock(p) { + this.validatorUpdates = []; + this.events = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseEndBlock.prototype.validatorUpdates = $util.emptyArray; + ResponseEndBlock.prototype.consensusParamUpdates = null; + ResponseEndBlock.prototype.events = $util.emptyArray; + ResponseEndBlock.create = function create(properties) { + return new ResponseEndBlock(properties); + }; + ResponseEndBlock.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.validatorUpdates != null && m.validatorUpdates.length) { + for (var i = 0; i < m.validatorUpdates.length; ++i) + $root.tendermint.abci.types.ValidatorUpdate.encode( + m.validatorUpdates[i], + w.uint32(10).fork(), + ).ldelim(); + } + if (m.consensusParamUpdates != null && Object.hasOwnProperty.call(m, "consensusParamUpdates")) + $root.tendermint.abci.types.ConsensusParams.encode( + m.consensusParamUpdates, + w.uint32(18).fork(), + ).ldelim(); + if (m.events != null && m.events.length) { + for (var i = 0; i < m.events.length; ++i) + $root.tendermint.abci.types.Event.encode(m.events[i], w.uint32(26).fork()).ldelim(); + } + return w; + }; + ResponseEndBlock.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseEndBlock(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.validatorUpdates && m.validatorUpdates.length)) m.validatorUpdates = []; + m.validatorUpdates.push($root.tendermint.abci.types.ValidatorUpdate.decode(r, r.uint32())); + break; + case 2: + m.consensusParamUpdates = $root.tendermint.abci.types.ConsensusParams.decode(r, r.uint32()); + break; + case 3: + if (!(m.events && m.events.length)) m.events = []; + m.events.push($root.tendermint.abci.types.Event.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseEndBlock; + })(); + types.ResponseCommit = (function () { + function ResponseCommit(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ResponseCommit.prototype.data = $util.newBuffer([]); + ResponseCommit.create = function create(properties) { + return new ResponseCommit(properties); + }; + ResponseCommit.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); + return w; + }; + ResponseCommit.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ResponseCommit(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 2: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ResponseCommit; + })(); + types.ConsensusParams = (function () { + function ConsensusParams(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ConsensusParams.prototype.block = null; + ConsensusParams.prototype.evidence = null; + ConsensusParams.prototype.validator = null; + ConsensusParams.create = function create(properties) { + return new ConsensusParams(properties); + }; + ConsensusParams.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.block != null && Object.hasOwnProperty.call(m, "block")) + $root.tendermint.abci.types.BlockParams.encode(m.block, w.uint32(10).fork()).ldelim(); + if (m.evidence != null && Object.hasOwnProperty.call(m, "evidence")) + $root.tendermint.abci.types.EvidenceParams.encode(m.evidence, w.uint32(18).fork()).ldelim(); + if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) + $root.tendermint.abci.types.ValidatorParams.encode(m.validator, w.uint32(26).fork()).ldelim(); + return w; + }; + ConsensusParams.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ConsensusParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.block = $root.tendermint.abci.types.BlockParams.decode(r, r.uint32()); + break; + case 2: + m.evidence = $root.tendermint.abci.types.EvidenceParams.decode(r, r.uint32()); + break; + case 3: + m.validator = $root.tendermint.abci.types.ValidatorParams.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ConsensusParams; + })(); + types.BlockParams = (function () { + function BlockParams(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + BlockParams.prototype.maxBytes = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + BlockParams.prototype.maxGas = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + BlockParams.create = function create(properties) { + return new BlockParams(properties); + }; + BlockParams.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.maxBytes != null && Object.hasOwnProperty.call(m, "maxBytes")) w.uint32(8).int64(m.maxBytes); + if (m.maxGas != null && Object.hasOwnProperty.call(m, "maxGas")) w.uint32(16).int64(m.maxGas); + return w; + }; + BlockParams.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.BlockParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.maxBytes = r.int64(); + break; + case 2: + m.maxGas = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return BlockParams; + })(); + types.EvidenceParams = (function () { + function EvidenceParams(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + EvidenceParams.prototype.maxAgeNumBlocks = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + EvidenceParams.prototype.maxAgeDuration = null; + EvidenceParams.create = function create(properties) { + return new EvidenceParams(properties); + }; + EvidenceParams.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.maxAgeNumBlocks != null && Object.hasOwnProperty.call(m, "maxAgeNumBlocks")) + w.uint32(8).int64(m.maxAgeNumBlocks); + if (m.maxAgeDuration != null && Object.hasOwnProperty.call(m, "maxAgeDuration")) + $root.google.protobuf.Duration.encode(m.maxAgeDuration, w.uint32(18).fork()).ldelim(); + return w; + }; + EvidenceParams.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.EvidenceParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.maxAgeNumBlocks = r.int64(); + break; + case 2: + m.maxAgeDuration = $root.google.protobuf.Duration.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return EvidenceParams; + })(); + types.ValidatorParams = (function () { + function ValidatorParams(p) { + this.pubKeyTypes = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ValidatorParams.prototype.pubKeyTypes = $util.emptyArray; + ValidatorParams.create = function create(properties) { + return new ValidatorParams(properties); + }; + ValidatorParams.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.pubKeyTypes != null && m.pubKeyTypes.length) { + for (var i = 0; i < m.pubKeyTypes.length; ++i) w.uint32(10).string(m.pubKeyTypes[i]); + } + return w; + }; + ValidatorParams.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ValidatorParams(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.pubKeyTypes && m.pubKeyTypes.length)) m.pubKeyTypes = []; + m.pubKeyTypes.push(r.string()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ValidatorParams; + })(); + types.LastCommitInfo = (function () { + function LastCommitInfo(p) { + this.votes = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + LastCommitInfo.prototype.round = 0; + LastCommitInfo.prototype.votes = $util.emptyArray; + LastCommitInfo.create = function create(properties) { + return new LastCommitInfo(properties); + }; + LastCommitInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.round != null && Object.hasOwnProperty.call(m, "round")) w.uint32(8).int32(m.round); + if (m.votes != null && m.votes.length) { + for (var i = 0; i < m.votes.length; ++i) + $root.tendermint.abci.types.VoteInfo.encode(m.votes[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + LastCommitInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.LastCommitInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.round = r.int32(); + break; + case 2: + if (!(m.votes && m.votes.length)) m.votes = []; + m.votes.push($root.tendermint.abci.types.VoteInfo.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return LastCommitInfo; + })(); + types.Event = (function () { + function Event(p) { + this.attributes = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Event.prototype.type = ""; + Event.prototype.attributes = $util.emptyArray; + Event.create = function create(properties) { + return new Event(properties); + }; + Event.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); + if (m.attributes != null && m.attributes.length) { + for (var i = 0; i < m.attributes.length; ++i) + $root.tendermint.libs.kv.Pair.encode(m.attributes[i], w.uint32(18).fork()).ldelim(); + } + return w; + }; + Event.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.Event(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.string(); + break; + case 2: + if (!(m.attributes && m.attributes.length)) m.attributes = []; + m.attributes.push($root.tendermint.libs.kv.Pair.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Event; + })(); + types.Header = (function () { + function Header(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Header.prototype.version = null; + Header.prototype.chainId = ""; + Header.prototype.height = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Header.prototype.time = null; + Header.prototype.lastBlockId = null; + Header.prototype.lastCommitHash = $util.newBuffer([]); + Header.prototype.dataHash = $util.newBuffer([]); + Header.prototype.validatorsHash = $util.newBuffer([]); + Header.prototype.nextValidatorsHash = $util.newBuffer([]); + Header.prototype.consensusHash = $util.newBuffer([]); + Header.prototype.appHash = $util.newBuffer([]); + Header.prototype.lastResultsHash = $util.newBuffer([]); + Header.prototype.evidenceHash = $util.newBuffer([]); + Header.prototype.proposerAddress = $util.newBuffer([]); + Header.create = function create(properties) { + return new Header(properties); + }; + Header.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.version != null && Object.hasOwnProperty.call(m, "version")) + $root.tendermint.abci.types.Version.encode(m.version, w.uint32(10).fork()).ldelim(); + if (m.chainId != null && Object.hasOwnProperty.call(m, "chainId")) w.uint32(18).string(m.chainId); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); + if (m.time != null && Object.hasOwnProperty.call(m, "time")) + $root.google.protobuf.Timestamp.encode(m.time, w.uint32(34).fork()).ldelim(); + if (m.lastBlockId != null && Object.hasOwnProperty.call(m, "lastBlockId")) + $root.tendermint.abci.types.BlockID.encode(m.lastBlockId, w.uint32(42).fork()).ldelim(); + if (m.lastCommitHash != null && Object.hasOwnProperty.call(m, "lastCommitHash")) + w.uint32(50).bytes(m.lastCommitHash); + if (m.dataHash != null && Object.hasOwnProperty.call(m, "dataHash")) w.uint32(58).bytes(m.dataHash); + if (m.validatorsHash != null && Object.hasOwnProperty.call(m, "validatorsHash")) + w.uint32(66).bytes(m.validatorsHash); + if (m.nextValidatorsHash != null && Object.hasOwnProperty.call(m, "nextValidatorsHash")) + w.uint32(74).bytes(m.nextValidatorsHash); + if (m.consensusHash != null && Object.hasOwnProperty.call(m, "consensusHash")) + w.uint32(82).bytes(m.consensusHash); + if (m.appHash != null && Object.hasOwnProperty.call(m, "appHash")) w.uint32(90).bytes(m.appHash); + if (m.lastResultsHash != null && Object.hasOwnProperty.call(m, "lastResultsHash")) + w.uint32(98).bytes(m.lastResultsHash); + if (m.evidenceHash != null && Object.hasOwnProperty.call(m, "evidenceHash")) + w.uint32(106).bytes(m.evidenceHash); + if (m.proposerAddress != null && Object.hasOwnProperty.call(m, "proposerAddress")) + w.uint32(114).bytes(m.proposerAddress); + return w; + }; + Header.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.Header(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.version = $root.tendermint.abci.types.Version.decode(r, r.uint32()); + break; + case 2: + m.chainId = r.string(); + break; + case 3: + m.height = r.int64(); + break; + case 4: + m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); + break; + case 5: + m.lastBlockId = $root.tendermint.abci.types.BlockID.decode(r, r.uint32()); + break; + case 6: + m.lastCommitHash = r.bytes(); + break; + case 7: + m.dataHash = r.bytes(); + break; + case 8: + m.validatorsHash = r.bytes(); + break; + case 9: + m.nextValidatorsHash = r.bytes(); + break; + case 10: + m.consensusHash = r.bytes(); + break; + case 11: + m.appHash = r.bytes(); + break; + case 12: + m.lastResultsHash = r.bytes(); + break; + case 13: + m.evidenceHash = r.bytes(); + break; + case 14: + m.proposerAddress = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Header; + })(); + types.Version = (function () { + function Version(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Version.prototype.Block = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Version.prototype.App = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; + Version.create = function create(properties) { + return new Version(properties); + }; + Version.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.Block != null && Object.hasOwnProperty.call(m, "Block")) w.uint32(8).uint64(m.Block); + if (m.App != null && Object.hasOwnProperty.call(m, "App")) w.uint32(16).uint64(m.App); + return w; + }; + Version.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.Version(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.Block = r.uint64(); + break; + case 2: + m.App = r.uint64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Version; + })(); + types.BlockID = (function () { + function BlockID(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + BlockID.prototype.hash = $util.newBuffer([]); + BlockID.prototype.partsHeader = null; + BlockID.create = function create(properties) { + return new BlockID(properties); + }; + BlockID.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(10).bytes(m.hash); + if (m.partsHeader != null && Object.hasOwnProperty.call(m, "partsHeader")) + $root.tendermint.abci.types.PartSetHeader.encode(m.partsHeader, w.uint32(18).fork()).ldelim(); + return w; + }; + BlockID.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.BlockID(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.hash = r.bytes(); + break; + case 2: + m.partsHeader = $root.tendermint.abci.types.PartSetHeader.decode(r, r.uint32()); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return BlockID; + })(); + types.PartSetHeader = (function () { + function PartSetHeader(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + PartSetHeader.prototype.total = 0; + PartSetHeader.prototype.hash = $util.newBuffer([]); + PartSetHeader.create = function create(properties) { + return new PartSetHeader(properties); + }; + PartSetHeader.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.total != null && Object.hasOwnProperty.call(m, "total")) w.uint32(8).int32(m.total); + if (m.hash != null && Object.hasOwnProperty.call(m, "hash")) w.uint32(18).bytes(m.hash); + return w; + }; + PartSetHeader.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.PartSetHeader(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.total = r.int32(); + break; + case 2: + m.hash = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PartSetHeader; + })(); + types.Validator = (function () { + function Validator(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Validator.prototype.address = $util.newBuffer([]); + Validator.prototype.power = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Validator.create = function create(properties) { + return new Validator(properties); + }; + Validator.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.address != null && Object.hasOwnProperty.call(m, "address")) w.uint32(10).bytes(m.address); + if (m.power != null && Object.hasOwnProperty.call(m, "power")) w.uint32(24).int64(m.power); + return w; + }; + Validator.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.Validator(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.address = r.bytes(); + break; + case 3: + m.power = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Validator; + })(); + types.ValidatorUpdate = (function () { + function ValidatorUpdate(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ValidatorUpdate.prototype.pubKey = null; + ValidatorUpdate.prototype.power = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + ValidatorUpdate.create = function create(properties) { + return new ValidatorUpdate(properties); + }; + ValidatorUpdate.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.pubKey != null && Object.hasOwnProperty.call(m, "pubKey")) + $root.tendermint.abci.types.PubKey.encode(m.pubKey, w.uint32(10).fork()).ldelim(); + if (m.power != null && Object.hasOwnProperty.call(m, "power")) w.uint32(16).int64(m.power); + return w; + }; + ValidatorUpdate.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.ValidatorUpdate(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.pubKey = $root.tendermint.abci.types.PubKey.decode(r, r.uint32()); + break; + case 2: + m.power = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ValidatorUpdate; + })(); + types.VoteInfo = (function () { + function VoteInfo(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + VoteInfo.prototype.validator = null; + VoteInfo.prototype.signedLastBlock = false; + VoteInfo.create = function create(properties) { + return new VoteInfo(properties); + }; + VoteInfo.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) + $root.tendermint.abci.types.Validator.encode(m.validator, w.uint32(10).fork()).ldelim(); + if (m.signedLastBlock != null && Object.hasOwnProperty.call(m, "signedLastBlock")) + w.uint32(16).bool(m.signedLastBlock); + return w; + }; + VoteInfo.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.VoteInfo(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.validator = $root.tendermint.abci.types.Validator.decode(r, r.uint32()); + break; + case 2: + m.signedLastBlock = r.bool(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return VoteInfo; + })(); + types.PubKey = (function () { + function PubKey(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + PubKey.prototype.type = ""; + PubKey.prototype.data = $util.newBuffer([]); + PubKey.create = function create(properties) { + return new PubKey(properties); + }; + PubKey.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(18).bytes(m.data); + return w; + }; + PubKey.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.abci.types.PubKey(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.string(); + break; + case 2: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return PubKey; + })(); + types.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 = ""; + 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(10).string(m.type); + if (m.validator != null && Object.hasOwnProperty.call(m, "validator")) + $root.tendermint.abci.types.Validator.encode(m.validator, w.uint32(18).fork()).ldelim(); + if (m.height != null && Object.hasOwnProperty.call(m, "height")) w.uint32(24).int64(m.height); + if (m.time != null && Object.hasOwnProperty.call(m, "time")) + $root.google.protobuf.Timestamp.encode(m.time, w.uint32(34).fork()).ldelim(); + if (m.totalVotingPower != null && Object.hasOwnProperty.call(m, "totalVotingPower")) + w.uint32(40).int64(m.totalVotingPower); + 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.types.Evidence(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.string(); + break; + case 2: + m.validator = $root.tendermint.abci.types.Validator.decode(r, r.uint32()); + break; + case 3: + m.height = r.int64(); + break; + case 4: + m.time = $root.google.protobuf.Timestamp.decode(r, r.uint32()); + break; + case 5: + m.totalVotingPower = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Evidence; + })(); + types.ABCIApplication = (function () { + function ABCIApplication(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + (ABCIApplication.prototype = Object.create( + $protobuf.rpc.Service.prototype, + )).constructor = ABCIApplication; + ABCIApplication.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + Object.defineProperty( + (ABCIApplication.prototype.echo = function echo(request, callback) { + return this.rpcCall( + echo, + $root.tendermint.abci.types.RequestEcho, + $root.tendermint.abci.types.ResponseEcho, + request, + callback, + ); + }), + "name", + { value: "Echo" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.flush = function flush(request, callback) { + return this.rpcCall( + flush, + $root.tendermint.abci.types.RequestFlush, + $root.tendermint.abci.types.ResponseFlush, + request, + callback, + ); + }), + "name", + { value: "Flush" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.info = function info(request, callback) { + return this.rpcCall( + info, + $root.tendermint.abci.types.RequestInfo, + $root.tendermint.abci.types.ResponseInfo, + request, + callback, + ); + }), + "name", + { value: "Info" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.setOption = function setOption(request, callback) { + return this.rpcCall( + setOption, + $root.tendermint.abci.types.RequestSetOption, + $root.tendermint.abci.types.ResponseSetOption, + request, + callback, + ); + }), + "name", + { value: "SetOption" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.deliverTx = function deliverTx(request, callback) { + return this.rpcCall( + deliverTx, + $root.tendermint.abci.types.RequestDeliverTx, + $root.tendermint.abci.types.ResponseDeliverTx, + request, + callback, + ); + }), + "name", + { value: "DeliverTx" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.checkTx = function checkTx(request, callback) { + return this.rpcCall( + checkTx, + $root.tendermint.abci.types.RequestCheckTx, + $root.tendermint.abci.types.ResponseCheckTx, + request, + callback, + ); + }), + "name", + { value: "CheckTx" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.query = function query(request, callback) { + return this.rpcCall( + query, + $root.tendermint.abci.types.RequestQuery, + $root.tendermint.abci.types.ResponseQuery, + request, + callback, + ); + }), + "name", + { value: "Query" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.commit = function commit(request, callback) { + return this.rpcCall( + commit, + $root.tendermint.abci.types.RequestCommit, + $root.tendermint.abci.types.ResponseCommit, + request, + callback, + ); + }), + "name", + { value: "Commit" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.initChain = function initChain(request, callback) { + return this.rpcCall( + initChain, + $root.tendermint.abci.types.RequestInitChain, + $root.tendermint.abci.types.ResponseInitChain, + request, + callback, + ); + }), + "name", + { value: "InitChain" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.beginBlock = function beginBlock(request, callback) { + return this.rpcCall( + beginBlock, + $root.tendermint.abci.types.RequestBeginBlock, + $root.tendermint.abci.types.ResponseBeginBlock, + request, + callback, + ); + }), + "name", + { value: "BeginBlock" }, + ); + Object.defineProperty( + (ABCIApplication.prototype.endBlock = function endBlock(request, callback) { + return this.rpcCall( + endBlock, + $root.tendermint.abci.types.RequestEndBlock, + $root.tendermint.abci.types.ResponseEndBlock, + request, + callback, + ); + }), + "name", + { value: "EndBlock" }, + ); + return ABCIApplication; + })(); + return types; + })(); + return abci; + })(); + tendermint.crypto = (function () { + var crypto = {}; + crypto.merkle = (function () { + var merkle = {}; + merkle.ProofOp = (function () { + function ProofOp(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + ProofOp.prototype.type = ""; + ProofOp.prototype.key = $util.newBuffer([]); + ProofOp.prototype.data = $util.newBuffer([]); + ProofOp.create = function create(properties) { + return new ProofOp(properties); + }; + ProofOp.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type != null && Object.hasOwnProperty.call(m, "type")) w.uint32(10).string(m.type); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(18).bytes(m.key); + if (m.data != null && Object.hasOwnProperty.call(m, "data")) w.uint32(26).bytes(m.data); + return w; + }; + ProofOp.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.crypto.merkle.ProofOp(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type = r.string(); + break; + case 2: + m.key = r.bytes(); + break; + case 3: + m.data = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return ProofOp; + })(); + merkle.Proof = (function () { + function Proof(p) { + this.ops = []; + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Proof.prototype.ops = $util.emptyArray; + Proof.create = function create(properties) { + return new Proof(properties); + }; + Proof.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.ops != null && m.ops.length) { + for (var i = 0; i < m.ops.length; ++i) + $root.tendermint.crypto.merkle.ProofOp.encode(m.ops[i], w.uint32(10).fork()).ldelim(); + } + return w; + }; + Proof.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.crypto.merkle.Proof(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + if (!(m.ops && m.ops.length)) m.ops = []; + m.ops.push($root.tendermint.crypto.merkle.ProofOp.decode(r, r.uint32())); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Proof; + })(); + return merkle; + })(); + return crypto; + })(); + tendermint.libs = (function () { + var libs = {}; + libs.kv = (function () { + var kv = {}; + kv.Pair = (function () { + function Pair(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Pair.prototype.key = $util.newBuffer([]); + Pair.prototype.value = $util.newBuffer([]); + Pair.create = function create(properties) { + return new Pair(properties); + }; + Pair.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); + if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).bytes(m.value); + return w; + }; + Pair.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.libs.kv.Pair(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.bytes(); + break; + case 2: + m.value = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Pair; + })(); + kv.KI64Pair = (function () { + function KI64Pair(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + KI64Pair.prototype.key = $util.newBuffer([]); + KI64Pair.prototype.value = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + KI64Pair.create = function create(properties) { + return new KI64Pair(properties); + }; + KI64Pair.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.key != null && Object.hasOwnProperty.call(m, "key")) w.uint32(10).bytes(m.key); + if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(16).int64(m.value); + return w; + }; + KI64Pair.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.tendermint.libs.kv.KI64Pair(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.key = r.bytes(); + break; + case 2: + m.value = r.int64(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return KI64Pair; + })(); + return kv; + })(); + return libs; + })(); + return tendermint; +})(); +exports.google = $root.google = (function () { + var google = {}; + google.protobuf = (function () { + var protobuf = {}; + protobuf.Any = (function () { + function Any(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Any.prototype.type_url = ""; + Any.prototype.value = $util.newBuffer([]); + Any.create = function create(properties) { + return new Any(properties); + }; + Any.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.type_url != null && Object.hasOwnProperty.call(m, "type_url")) w.uint32(10).string(m.type_url); + if (m.value != null && Object.hasOwnProperty.call(m, "value")) w.uint32(18).bytes(m.value); + return w; + }; + Any.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.google.protobuf.Any(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.type_url = r.string(); + break; + case 2: + m.value = r.bytes(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Any; + })(); + protobuf.Timestamp = (function () { + function Timestamp(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Timestamp.prototype.nanos = 0; + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + Timestamp.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.seconds != null && Object.hasOwnProperty.call(m, "seconds")) w.uint32(8).int64(m.seconds); + if (m.nanos != null && Object.hasOwnProperty.call(m, "nanos")) w.uint32(16).int32(m.nanos); + return w; + }; + Timestamp.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.google.protobuf.Timestamp(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.seconds = r.int64(); + break; + case 2: + m.nanos = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Timestamp; + })(); + protobuf.Duration = (function () { + function Duration(p) { + if (p) + for (var ks = Object.keys(p), i = 0; i < ks.length; ++i) + if (p[ks[i]] != null) this[ks[i]] = p[ks[i]]; + } + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; + Duration.prototype.nanos = 0; + Duration.create = function create(properties) { + return new Duration(properties); + }; + Duration.encode = function encode(m, w) { + if (!w) w = $Writer.create(); + if (m.seconds != null && Object.hasOwnProperty.call(m, "seconds")) w.uint32(8).int64(m.seconds); + if (m.nanos != null && Object.hasOwnProperty.call(m, "nanos")) w.uint32(16).int32(m.nanos); + return w; + }; + Duration.decode = function decode(r, l) { + if (!(r instanceof $Reader)) r = $Reader.create(r); + var c = l === undefined ? r.len : r.pos + l, + m = new $root.google.protobuf.Duration(); + while (r.pos < c) { + var t = r.uint32(); + switch (t >>> 3) { + case 1: + m.seconds = r.int64(); + break; + case 2: + m.nanos = r.int32(); + break; + default: + r.skipType(t & 7); + break; + } + } + return m; + }; + return Duration; + })(); + return protobuf; + })(); + return google; +})(); +module.exports = $root; diff --git a/packages/stargate/src/query/accounts.ts b/packages/stargate/src/query/accounts.ts deleted file mode 100644 index 8c48497b..00000000 --- a/packages/stargate/src/query/accounts.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-disable @typescript-eslint/naming-convention */ -import { cosmosField } from "@cosmjs/proto-signing"; -import { Message } from "protobufjs"; - -export class BaseAccount extends Message { - @cosmosField.bytes(1) - public readonly address?: Uint8Array; - - @cosmosField.bytes(2) - public readonly pub_key?: Uint8Array; - - @cosmosField.uint64(3) - public readonly account_number?: Long | number; - - @cosmosField.uint64(4) - public readonly sequence?: Long | number; -} diff --git a/packages/stargate/src/query/allbalances.ts b/packages/stargate/src/query/allbalances.ts deleted file mode 100644 index 396aeb12..00000000 --- a/packages/stargate/src/query/allbalances.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Coin, cosmosField } from "@cosmjs/proto-signing"; -import { Message } from "protobufjs"; - -import { PageRequest, PageResponse } from "./pagination"; - -// these grpc query types come from: -// https://github.com/cosmos/cosmos-sdk/blob/69bbb8b327c3cfb967d969bcadeb9b0aef144df6/proto/cosmos/bank/query.proto#L40-L55 - -export class QueryAllBalancesRequest extends Message { - @cosmosField.bytes(1) - public readonly address?: Uint8Array; - - @cosmosField.message(2, PageRequest) - public readonly pagination?: PageRequest; -} - -export class QueryAllBalancesResponse extends Message { - @cosmosField.repeatedMessage(1, Coin) - public readonly balances?: readonly Coin[]; - - @cosmosField.message(2, PageResponse) - public readonly pagination?: PageResponse; -} diff --git a/packages/stargate/src/query/pagination.ts b/packages/stargate/src/query/pagination.ts deleted file mode 100644 index 2ffca347..00000000 --- a/packages/stargate/src/query/pagination.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { cosmosField } from "@cosmjs/proto-signing"; -import { Message } from "protobufjs"; - -export class PageRequest extends Message { - // TODO: implement -} - -export class PageResponse extends Message { - // next_key is the key to be passed to PageRequest.key to - // query the next page most efficiently - @cosmosField.bytes(1) - public readonly nextKey?: Uint8Array; - - // total is total number of results available if PageRequest.count_total - // was set, its value is undefined otherwise - @cosmosField.uint64(2) - public readonly total?: Long | number; -} diff --git a/packages/stargate/src/stargateclient.ts b/packages/stargate/src/stargateclient.ts index f4e1c946..70257be2 100644 --- a/packages/stargate/src/stargateclient.ts +++ b/packages/stargate/src/stargateclient.ts @@ -2,13 +2,12 @@ import { Bech32, toAscii, toHex } from "@cosmjs/encoding"; import { Coin } from "@cosmjs/launchpad"; import { Uint64 } from "@cosmjs/math"; -import * as proto from "@cosmjs/proto-signing"; +import { decodeAny } from "@cosmjs/proto-signing"; import { Client as TendermintClient } from "@cosmjs/tendermint-rpc"; -import { arrayContentEquals, assertDefined } from "@cosmjs/utils"; +import { arrayContentEquals, assert, assertDefined } from "@cosmjs/utils"; import Long from "long"; -import { BaseAccount } from "./query/accounts"; -import { QueryAllBalancesRequest, QueryAllBalancesResponse } from "./query/allbalances"; +import { cosmos } from "./generated/codecimpl"; export interface GetSequenceResult { readonly accountNumber: number; @@ -19,9 +18,11 @@ function uint64FromProto(input: number | Long): Uint64 { return Uint64.fromString(input.toString()); } -function coinFromProto(input: proto.Coin): Coin { +function coinFromProto(input: cosmos.ICoin): Coin { assertDefined(input.amount); assertDefined(input.denom); + assert(input.amount !== null); + assert(input.denom !== null); return { amount: input.amount, denom: input.denom, @@ -46,14 +47,12 @@ export class StargateClient { const accountKey = Uint8Array.from([0x01, ...binAddress]); const responseData = await this.queryVerified("acc", accountKey); - const { typeUrl, value } = proto.decodeAny(responseData); + const { typeUrl, value } = decodeAny(responseData); switch (typeUrl) { case "/cosmos.auth.BaseAccount": { - const { account_number, sequence } = BaseAccount.decode(value); - assertDefined(account_number); - assertDefined(sequence); + const { accountNumber, sequence } = cosmos.auth.BaseAccount.decode(value); return { - accountNumber: uint64FromProto(account_number).toNumber(), + accountNumber: uint64FromProto(accountNumber).toNumber(), sequence: uint64FromProto(sequence).toNumber(), }; } @@ -73,10 +72,7 @@ export class StargateClient { const bankKey = Uint8Array.from([...toAscii("balances"), ...binAddress, ...toAscii(searchDenom)]); const responseData = await this.queryVerified("bank", bankKey); - const { amount, denom } = proto.Coin.decode(responseData); - assertDefined(amount); - assertDefined(denom); - + const { amount, denom } = cosmos.Coin.decode(responseData); if (denom === "") { return null; } else { @@ -95,10 +91,12 @@ export class StargateClient { */ public async getAllBalancesUnverified(address: string): Promise { const path = "/cosmos.bank.Query/AllBalances"; - const request = QueryAllBalancesRequest.encode({ address: Bech32.decode(address).data }).finish(); + const request = cosmos.bank.QueryAllBalancesRequest.encode({ + address: Bech32.decode(address).data, + }).finish(); const responseData = await this.queryUnverified(path, request); - const response = QueryAllBalancesResponse.decode(responseData); - return (response.balances || []).map(coinFromProto); + const response = cosmos.bank.QueryAllBalancesResponse.decode(responseData); + return response.balances.map(coinFromProto); } public disconnect(): void { diff --git a/packages/stargate/types/generated/codecimpl.d.ts b/packages/stargate/types/generated/codecimpl.d.ts new file mode 100644 index 00000000..627c179e --- /dev/null +++ b/packages/stargate/types/generated/codecimpl.d.ts @@ -0,0 +1,6513 @@ +import * as $protobuf from "protobufjs"; +/** Namespace cosmos. */ +export namespace cosmos { + /** Properties of a Coin. */ + interface ICoin { + /** Coin denom */ + denom?: string | null; + + /** Coin amount */ + amount?: string | null; + } + + /** Represents a Coin. */ + class Coin implements ICoin { + /** + * Constructs a new Coin. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ICoin); + + /** Coin denom. */ + public denom: string; + + /** Coin amount. */ + public amount: string; + + /** + * Creates a new Coin instance using the specified properties. + * @param [properties] Properties to set + * @returns Coin instance + */ + public static create(properties?: cosmos.ICoin): cosmos.Coin; + + /** + * Encodes the specified Coin message. Does not implicitly {@link cosmos.Coin.verify|verify} messages. + * @param m Coin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ICoin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Coin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Coin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.Coin; + } + + /** Properties of a DecCoin. */ + interface IDecCoin { + /** DecCoin denom */ + denom?: string | null; + + /** DecCoin amount */ + amount?: string | null; + } + + /** Represents a DecCoin. */ + class DecCoin implements IDecCoin { + /** + * Constructs a new DecCoin. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IDecCoin); + + /** DecCoin denom. */ + public denom: string; + + /** DecCoin amount. */ + public amount: string; + + /** + * Creates a new DecCoin instance using the specified properties. + * @param [properties] Properties to set + * @returns DecCoin instance + */ + public static create(properties?: cosmos.IDecCoin): cosmos.DecCoin; + + /** + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.DecCoin.verify|verify} messages. + * @param m DecCoin message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IDecCoin, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecCoin message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DecCoin + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.DecCoin; + } + + /** Properties of an IntProto. */ + interface IIntProto { + /** IntProto int */ + int?: string | null; + } + + /** Represents an IntProto. */ + class IntProto implements IIntProto { + /** + * Constructs a new IntProto. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IIntProto); + + /** IntProto int. */ + public int: string; + + /** + * Creates a new IntProto instance using the specified properties. + * @param [properties] Properties to set + * @returns IntProto instance + */ + public static create(properties?: cosmos.IIntProto): cosmos.IntProto; + + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.IntProto.verify|verify} messages. + * @param m IntProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IIntProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.IntProto; + } + + /** Properties of a DecProto. */ + interface IDecProto { + /** DecProto dec */ + dec?: string | null; + } + + /** Represents a DecProto. */ + class DecProto implements IDecProto { + /** + * Constructs a new DecProto. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IDecProto); + + /** DecProto dec. */ + public dec: string; + + /** + * Creates a new DecProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DecProto instance + */ + public static create(properties?: cosmos.IDecProto): cosmos.DecProto; + + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.DecProto.verify|verify} messages. + * @param m DecProto message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IDecProto, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.DecProto; + } + + /** Properties of a ValAddresses. */ + interface IValAddresses { + /** ValAddresses addresses */ + addresses?: Uint8Array[] | null; + } + + /** Represents a ValAddresses. */ + class ValAddresses implements IValAddresses { + /** + * Constructs a new ValAddresses. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IValAddresses); + + /** ValAddresses addresses. */ + public addresses: Uint8Array[]; + + /** + * Creates a new ValAddresses instance using the specified properties. + * @param [properties] Properties to set + * @returns ValAddresses instance + */ + public static create(properties?: cosmos.IValAddresses): cosmos.ValAddresses; + + /** + * Encodes the specified ValAddresses message. Does not implicitly {@link cosmos.ValAddresses.verify|verify} messages. + * @param m ValAddresses message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IValAddresses, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ValAddresses message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValAddresses + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.ValAddresses; + } + + /** Properties of a GasInfo. */ + interface IGasInfo { + /** GasInfo gasWanted */ + gasWanted?: number | Long | null; + + /** GasInfo gasUsed */ + gasUsed?: number | Long | null; + } + + /** Represents a GasInfo. */ + class GasInfo implements IGasInfo { + /** + * Constructs a new GasInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IGasInfo); + + /** GasInfo gasWanted. */ + public gasWanted: number | Long; + + /** GasInfo gasUsed. */ + public gasUsed: number | Long; + + /** + * Creates a new GasInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GasInfo instance + */ + public static create(properties?: cosmos.IGasInfo): cosmos.GasInfo; + + /** + * Encodes the specified GasInfo message. Does not implicitly {@link cosmos.GasInfo.verify|verify} messages. + * @param m GasInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IGasInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GasInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns GasInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.GasInfo; + } + + /** Properties of a Result. */ + interface IResult { + /** Result data */ + data?: Uint8Array | null; + + /** Result log */ + log?: string | null; + + /** Result events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a Result. */ + class Result implements IResult { + /** + * Constructs a new Result. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IResult); + + /** Result data. */ + public data: Uint8Array; + + /** Result log. */ + public log: string; + + /** Result events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new Result instance using the specified properties. + * @param [properties] Properties to set + * @returns Result instance + */ + public static create(properties?: cosmos.IResult): cosmos.Result; + + /** + * Encodes the specified Result message. Does not implicitly {@link cosmos.Result.verify|verify} messages. + * @param m Result message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IResult, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Result message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.Result; + } + + /** Properties of a SimulationResponse. */ + interface ISimulationResponse { + /** SimulationResponse gasInfo */ + gasInfo?: cosmos.IGasInfo | null; + + /** SimulationResponse result */ + result?: cosmos.IResult | null; + } + + /** Represents a SimulationResponse. */ + class SimulationResponse implements ISimulationResponse { + /** + * Constructs a new SimulationResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ISimulationResponse); + + /** SimulationResponse gasInfo. */ + public gasInfo?: cosmos.IGasInfo | null; + + /** SimulationResponse result. */ + public result?: cosmos.IResult | null; + + /** + * Creates a new SimulationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SimulationResponse instance + */ + public static create(properties?: cosmos.ISimulationResponse): cosmos.SimulationResponse; + + /** + * Encodes the specified SimulationResponse message. Does not implicitly {@link cosmos.SimulationResponse.verify|verify} messages. + * @param m SimulationResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ISimulationResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SimulationResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SimulationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.SimulationResponse; + } + + /** Properties of a MsgData. */ + interface IMsgData { + /** MsgData msgType */ + msgType?: string | null; + + /** MsgData data */ + data?: Uint8Array | null; + } + + /** Represents a MsgData. */ + class MsgData implements IMsgData { + /** + * Constructs a new MsgData. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IMsgData); + + /** MsgData msgType. */ + public msgType: string; + + /** MsgData data. */ + public data: Uint8Array; + + /** + * Creates a new MsgData instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgData instance + */ + public static create(properties?: cosmos.IMsgData): cosmos.MsgData; + + /** + * Encodes the specified MsgData message. Does not implicitly {@link cosmos.MsgData.verify|verify} messages. + * @param m MsgData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IMsgData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.MsgData; + } + + /** Properties of a TxData. */ + interface ITxData { + /** TxData data */ + data?: cosmos.IMsgData[] | null; + } + + /** Represents a TxData. */ + class TxData implements ITxData { + /** + * Constructs a new TxData. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ITxData); + + /** TxData data. */ + public data: cosmos.IMsgData[]; + + /** + * Creates a new TxData instance using the specified properties. + * @param [properties] Properties to set + * @returns TxData instance + */ + public static create(properties?: cosmos.ITxData): cosmos.TxData; + + /** + * Encodes the specified TxData message. Does not implicitly {@link cosmos.TxData.verify|verify} messages. + * @param m TxData message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ITxData, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxData message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.TxData; + } + + /** Properties of a TxResponse. */ + interface ITxResponse { + /** TxResponse height */ + height?: number | Long | null; + + /** TxResponse txhash */ + txhash?: string | null; + + /** TxResponse codespace */ + codespace?: string | null; + + /** TxResponse code */ + code?: number | null; + + /** TxResponse data */ + data?: string | null; + + /** TxResponse rawLog */ + rawLog?: string | null; + + /** TxResponse logs */ + logs?: cosmos.IABCIMessageLog[] | null; + + /** TxResponse info */ + info?: string | null; + + /** TxResponse gasWanted */ + gasWanted?: number | Long | null; + + /** TxResponse gasUsed */ + gasUsed?: number | Long | null; + + /** TxResponse tx */ + tx?: google.protobuf.IAny | null; + + /** TxResponse timestamp */ + timestamp?: string | null; + } + + /** Represents a TxResponse. */ + class TxResponse implements ITxResponse { + /** + * Constructs a new TxResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.ITxResponse); + + /** TxResponse height. */ + public height: number | Long; + + /** TxResponse txhash. */ + public txhash: string; + + /** TxResponse codespace. */ + public codespace: string; + + /** TxResponse code. */ + public code: number; + + /** TxResponse data. */ + public data: string; + + /** TxResponse rawLog. */ + public rawLog: string; + + /** TxResponse logs. */ + public logs: cosmos.IABCIMessageLog[]; + + /** TxResponse info. */ + public info: string; + + /** TxResponse gasWanted. */ + public gasWanted: number | Long; + + /** TxResponse gasUsed. */ + public gasUsed: number | Long; + + /** TxResponse tx. */ + public tx?: google.protobuf.IAny | null; + + /** TxResponse timestamp. */ + public timestamp: string; + + /** + * Creates a new TxResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TxResponse instance + */ + public static create(properties?: cosmos.ITxResponse): cosmos.TxResponse; + + /** + * Encodes the specified TxResponse message. Does not implicitly {@link cosmos.TxResponse.verify|verify} messages. + * @param m TxResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.ITxResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.TxResponse; + } + + /** Properties of a ABCIMessageLog. */ + interface IABCIMessageLog { + /** ABCIMessageLog msgIndex */ + msgIndex?: number | null; + + /** ABCIMessageLog log */ + log?: string | null; + + /** ABCIMessageLog events */ + events?: cosmos.IStringEvent[] | null; + } + + /** Represents a ABCIMessageLog. */ + class ABCIMessageLog implements IABCIMessageLog { + /** + * Constructs a new ABCIMessageLog. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IABCIMessageLog); + + /** ABCIMessageLog msgIndex. */ + public msgIndex: number; + + /** ABCIMessageLog log. */ + public log: string; + + /** ABCIMessageLog events. */ + public events: cosmos.IStringEvent[]; + + /** + * Creates a new ABCIMessageLog instance using the specified properties. + * @param [properties] Properties to set + * @returns ABCIMessageLog instance + */ + public static create(properties?: cosmos.IABCIMessageLog): cosmos.ABCIMessageLog; + + /** + * Encodes the specified ABCIMessageLog message. Does not implicitly {@link cosmos.ABCIMessageLog.verify|verify} messages. + * @param m ABCIMessageLog message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IABCIMessageLog, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ABCIMessageLog message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ABCIMessageLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.ABCIMessageLog; + } + + /** Properties of a StringEvent. */ + interface IStringEvent { + /** StringEvent type */ + type?: string | null; + + /** StringEvent attributes */ + attributes?: cosmos.IAttribute[] | null; + } + + /** Represents a StringEvent. */ + class StringEvent implements IStringEvent { + /** + * Constructs a new StringEvent. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IStringEvent); + + /** StringEvent type. */ + public type: string; + + /** StringEvent attributes. */ + public attributes: cosmos.IAttribute[]; + + /** + * Creates a new StringEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns StringEvent instance + */ + public static create(properties?: cosmos.IStringEvent): cosmos.StringEvent; + + /** + * Encodes the specified StringEvent message. Does not implicitly {@link cosmos.StringEvent.verify|verify} messages. + * @param m StringEvent message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IStringEvent, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringEvent message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns StringEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.StringEvent; + } + + /** Properties of an Attribute. */ + interface IAttribute { + /** Attribute key */ + key?: string | null; + + /** Attribute value */ + value?: string | null; + } + + /** Represents an Attribute. */ + class Attribute implements IAttribute { + /** + * Constructs a new Attribute. + * @param [p] Properties to set + */ + constructor(p?: cosmos.IAttribute); + + /** Attribute key. */ + public key: string; + + /** Attribute value. */ + public value: string; + + /** + * Creates a new Attribute instance using the specified properties. + * @param [properties] Properties to set + * @returns Attribute instance + */ + public static create(properties?: cosmos.IAttribute): cosmos.Attribute; + + /** + * Encodes the specified Attribute message. Does not implicitly {@link cosmos.Attribute.verify|verify} messages. + * @param m Attribute message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.IAttribute, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Attribute message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Attribute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.Attribute; + } + + /** Namespace auth. */ + namespace auth { + /** Properties of a BaseAccount. */ + interface IBaseAccount { + /** BaseAccount address */ + address?: Uint8Array | null; + + /** BaseAccount pubKey */ + pubKey?: Uint8Array | null; + + /** BaseAccount accountNumber */ + accountNumber?: number | Long | null; + + /** BaseAccount sequence */ + sequence?: number | Long | null; + } + + /** Represents a BaseAccount. */ + class BaseAccount implements IBaseAccount { + /** + * Constructs a new BaseAccount. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IBaseAccount); + + /** BaseAccount address. */ + public address: Uint8Array; + + /** BaseAccount pubKey. */ + public pubKey: Uint8Array; + + /** BaseAccount accountNumber. */ + public accountNumber: number | Long; + + /** BaseAccount sequence. */ + public sequence: number | Long; + + /** + * Creates a new BaseAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns BaseAccount instance + */ + public static create(properties?: cosmos.auth.IBaseAccount): cosmos.auth.BaseAccount; + + /** + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.BaseAccount.verify|verify} messages. + * @param m BaseAccount message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IBaseAccount, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BaseAccount message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.BaseAccount; + } + + /** Properties of a ModuleAccount. */ + interface IModuleAccount { + /** ModuleAccount baseAccount */ + baseAccount?: cosmos.auth.IBaseAccount | null; + + /** ModuleAccount name */ + name?: string | null; + + /** ModuleAccount permissions */ + permissions?: string[] | null; + } + + /** Represents a ModuleAccount. */ + class ModuleAccount implements IModuleAccount { + /** + * Constructs a new ModuleAccount. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IModuleAccount); + + /** ModuleAccount baseAccount. */ + public baseAccount?: cosmos.auth.IBaseAccount | null; + + /** ModuleAccount name. */ + public name: string; + + /** ModuleAccount permissions. */ + public permissions: string[]; + + /** + * Creates a new ModuleAccount instance using the specified properties. + * @param [properties] Properties to set + * @returns ModuleAccount instance + */ + public static create(properties?: cosmos.auth.IModuleAccount): cosmos.auth.ModuleAccount; + + /** + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.ModuleAccount.verify|verify} messages. + * @param m ModuleAccount message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IModuleAccount, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.ModuleAccount; + } + + /** Properties of a Params. */ + interface IParams { + /** Params maxMemoCharacters */ + maxMemoCharacters?: number | Long | null; + + /** Params txSigLimit */ + txSigLimit?: number | Long | null; + + /** Params txSizeCostPerByte */ + txSizeCostPerByte?: number | Long | null; + + /** Params sigVerifyCostEd25519 */ + sigVerifyCostEd25519?: number | Long | null; + + /** Params sigVerifyCostSecp256k1 */ + sigVerifyCostSecp256k1?: number | Long | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IParams); + + /** Params maxMemoCharacters. */ + public maxMemoCharacters: number | Long; + + /** Params txSigLimit. */ + public txSigLimit: number | Long; + + /** Params txSizeCostPerByte. */ + public txSizeCostPerByte: number | Long; + + /** Params sigVerifyCostEd25519. */ + public sigVerifyCostEd25519: number | Long; + + /** Params sigVerifyCostSecp256k1. */ + public sigVerifyCostSecp256k1: number | Long; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos.auth.IParams): cosmos.auth.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.Params.verify|verify} messages. + * @param m Params message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.Params; + } + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Query service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Query; + + /** + * Calls Account. + * @param request QueryAccountRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAccountResponse + */ + public account( + request: cosmos.auth.IQueryAccountRequest, + callback: cosmos.auth.Query.AccountCallback, + ): void; + + /** + * Calls Account. + * @param request QueryAccountRequest message or plain object + * @returns Promise + */ + public account(request: cosmos.auth.IQueryAccountRequest): Promise; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params( + request: cosmos.auth.IQueryParamsRequest, + callback: cosmos.auth.Query.ParamsCallback, + ): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: cosmos.auth.IQueryParamsRequest): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos.auth.Query#account}. + * @param error Error, if any + * @param [response] QueryAccountResponse + */ + type AccountCallback = (error: Error | null, response?: cosmos.auth.QueryAccountResponse) => void; + + /** + * Callback as used by {@link cosmos.auth.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: Error | null, response?: cosmos.auth.QueryParamsResponse) => void; + } + + /** Properties of a QueryAccountRequest. */ + interface IQueryAccountRequest { + /** QueryAccountRequest address */ + address?: Uint8Array | null; + } + + /** Represents a QueryAccountRequest. */ + class QueryAccountRequest implements IQueryAccountRequest { + /** + * Constructs a new QueryAccountRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryAccountRequest); + + /** QueryAccountRequest address. */ + public address: Uint8Array; + + /** + * Creates a new QueryAccountRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountRequest instance + */ + public static create(properties?: cosmos.auth.IQueryAccountRequest): cosmos.auth.QueryAccountRequest; + + /** + * Encodes the specified QueryAccountRequest message. Does not implicitly {@link cosmos.auth.QueryAccountRequest.verify|verify} messages. + * @param m QueryAccountRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryAccountRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAccountRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryAccountRequest; + } + + /** Properties of a QueryAccountResponse. */ + interface IQueryAccountResponse { + /** QueryAccountResponse account */ + account?: google.protobuf.IAny | null; + } + + /** Represents a QueryAccountResponse. */ + class QueryAccountResponse implements IQueryAccountResponse { + /** + * Constructs a new QueryAccountResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryAccountResponse); + + /** QueryAccountResponse account. */ + public account?: google.protobuf.IAny | null; + + /** + * Creates a new QueryAccountResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAccountResponse instance + */ + public static create(properties?: cosmos.auth.IQueryAccountResponse): cosmos.auth.QueryAccountResponse; + + /** + * Encodes the specified QueryAccountResponse message. Does not implicitly {@link cosmos.auth.QueryAccountResponse.verify|verify} messages. + * @param m QueryAccountResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryAccountResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAccountResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryAccountResponse; + } + + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest {} + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { + /** + * Constructs a new QueryParamsRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryParamsRequest); + + /** + * Creates a new QueryParamsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsRequest instance + */ + public static create(properties?: cosmos.auth.IQueryParamsRequest): cosmos.auth.QueryParamsRequest; + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link cosmos.auth.QueryParamsRequest.verify|verify} messages. + * @param m QueryParamsRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryParamsRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryParamsRequest; + } + + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + /** QueryParamsResponse params */ + params?: cosmos.auth.IParams | null; + } + + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { + /** + * Constructs a new QueryParamsResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.auth.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: cosmos.auth.IParams | null; + + /** + * Creates a new QueryParamsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryParamsResponse instance + */ + public static create(properties?: cosmos.auth.IQueryParamsResponse): cosmos.auth.QueryParamsResponse; + + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link cosmos.auth.QueryParamsResponse.verify|verify} messages. + * @param m QueryParamsResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.auth.IQueryParamsResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.auth.QueryParamsResponse; + } + } + + /** Namespace bank. */ + namespace bank { + /** Properties of a Params. */ + interface IParams { + /** Params sendEnabled */ + sendEnabled?: cosmos.bank.ISendEnabled[] | null; + + /** Params defaultSendEnabled */ + defaultSendEnabled?: boolean | null; + } + + /** Represents a Params. */ + class Params implements IParams { + /** + * Constructs a new Params. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IParams); + + /** Params sendEnabled. */ + public sendEnabled: cosmos.bank.ISendEnabled[]; + + /** Params defaultSendEnabled. */ + public defaultSendEnabled: boolean; + + /** + * Creates a new Params instance using the specified properties. + * @param [properties] Properties to set + * @returns Params instance + */ + public static create(properties?: cosmos.bank.IParams): cosmos.bank.Params; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.bank.Params.verify|verify} messages. + * @param m Params message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Params message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Params; + } + + /** Properties of a SendEnabled. */ + interface ISendEnabled { + /** SendEnabled denom */ + denom?: string | null; + + /** SendEnabled enabled */ + enabled?: boolean | null; + } + + /** Represents a SendEnabled. */ + class SendEnabled implements ISendEnabled { + /** + * Constructs a new SendEnabled. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.ISendEnabled); + + /** SendEnabled denom. */ + public denom: string; + + /** SendEnabled enabled. */ + public enabled: boolean; + + /** + * Creates a new SendEnabled instance using the specified properties. + * @param [properties] Properties to set + * @returns SendEnabled instance + */ + public static create(properties?: cosmos.bank.ISendEnabled): cosmos.bank.SendEnabled; + + /** + * Encodes the specified SendEnabled message. Does not implicitly {@link cosmos.bank.SendEnabled.verify|verify} messages. + * @param m SendEnabled message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.ISendEnabled, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SendEnabled message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SendEnabled + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.SendEnabled; + } + + /** Properties of a MsgSend. */ + interface IMsgSend { + /** MsgSend fromAddress */ + fromAddress?: Uint8Array | null; + + /** MsgSend toAddress */ + toAddress?: Uint8Array | null; + + /** MsgSend amount */ + amount?: cosmos.ICoin[] | null; + } + + /** Represents a MsgSend. */ + class MsgSend implements IMsgSend { + /** + * Constructs a new MsgSend. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IMsgSend); + + /** MsgSend fromAddress. */ + public fromAddress: Uint8Array; + + /** MsgSend toAddress. */ + public toAddress: Uint8Array; + + /** MsgSend amount. */ + public amount: cosmos.ICoin[]; + + /** + * Creates a new MsgSend instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgSend instance + */ + public static create(properties?: cosmos.bank.IMsgSend): cosmos.bank.MsgSend; + + /** + * Encodes the specified MsgSend message. Does not implicitly {@link cosmos.bank.MsgSend.verify|verify} messages. + * @param m MsgSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IMsgSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.MsgSend; + } + + /** Properties of an Input. */ + interface IInput { + /** Input address */ + address?: Uint8Array | null; + + /** Input coins */ + coins?: cosmos.ICoin[] | null; + } + + /** Represents an Input. */ + class Input implements IInput { + /** + * Constructs a new Input. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IInput); + + /** Input address. */ + public address: Uint8Array; + + /** Input coins. */ + public coins: cosmos.ICoin[]; + + /** + * Creates a new Input instance using the specified properties. + * @param [properties] Properties to set + * @returns Input instance + */ + public static create(properties?: cosmos.bank.IInput): cosmos.bank.Input; + + /** + * Encodes the specified Input message. Does not implicitly {@link cosmos.bank.Input.verify|verify} messages. + * @param m Input message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IInput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Input message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Input + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Input; + } + + /** Properties of an Output. */ + interface IOutput { + /** Output address */ + address?: Uint8Array | null; + + /** Output coins */ + coins?: cosmos.ICoin[] | null; + } + + /** Represents an Output. */ + class Output implements IOutput { + /** + * Constructs a new Output. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IOutput); + + /** Output address. */ + public address: Uint8Array; + + /** Output coins. */ + public coins: cosmos.ICoin[]; + + /** + * Creates a new Output instance using the specified properties. + * @param [properties] Properties to set + * @returns Output instance + */ + public static create(properties?: cosmos.bank.IOutput): cosmos.bank.Output; + + /** + * Encodes the specified Output message. Does not implicitly {@link cosmos.bank.Output.verify|verify} messages. + * @param m Output message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IOutput, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Output message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Output + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Output; + } + + /** Properties of a MsgMultiSend. */ + interface IMsgMultiSend { + /** MsgMultiSend inputs */ + inputs?: cosmos.bank.IInput[] | null; + + /** MsgMultiSend outputs */ + outputs?: cosmos.bank.IOutput[] | null; + } + + /** Represents a MsgMultiSend. */ + class MsgMultiSend implements IMsgMultiSend { + /** + * Constructs a new MsgMultiSend. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IMsgMultiSend); + + /** MsgMultiSend inputs. */ + public inputs: cosmos.bank.IInput[]; + + /** MsgMultiSend outputs. */ + public outputs: cosmos.bank.IOutput[]; + + /** + * Creates a new MsgMultiSend instance using the specified properties. + * @param [properties] Properties to set + * @returns MsgMultiSend instance + */ + public static create(properties?: cosmos.bank.IMsgMultiSend): cosmos.bank.MsgMultiSend; + + /** + * Encodes the specified MsgMultiSend message. Does not implicitly {@link cosmos.bank.MsgMultiSend.verify|verify} messages. + * @param m MsgMultiSend message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IMsgMultiSend, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgMultiSend message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MsgMultiSend + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.MsgMultiSend; + } + + /** Properties of a Supply. */ + interface ISupply { + /** Supply total */ + total?: cosmos.ICoin[] | null; + } + + /** Represents a Supply. */ + class Supply implements ISupply { + /** + * Constructs a new Supply. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.ISupply); + + /** Supply total. */ + public total: cosmos.ICoin[]; + + /** + * Creates a new Supply instance using the specified properties. + * @param [properties] Properties to set + * @returns Supply instance + */ + public static create(properties?: cosmos.bank.ISupply): cosmos.bank.Supply; + + /** + * Encodes the specified Supply message. Does not implicitly {@link cosmos.bank.Supply.verify|verify} messages. + * @param m Supply message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.ISupply, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Supply message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Supply + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Supply; + } + + /** Properties of a DenomUnits. */ + interface IDenomUnits { + /** DenomUnits denom */ + denom?: string | null; + + /** DenomUnits exponent */ + exponent?: number | null; + + /** DenomUnits aliases */ + aliases?: string[] | null; + } + + /** Represents a DenomUnits. */ + class DenomUnits implements IDenomUnits { + /** + * Constructs a new DenomUnits. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IDenomUnits); + + /** DenomUnits denom. */ + public denom: string; + + /** DenomUnits exponent. */ + public exponent: number; + + /** DenomUnits aliases. */ + public aliases: string[]; + + /** + * Creates a new DenomUnits instance using the specified properties. + * @param [properties] Properties to set + * @returns DenomUnits instance + */ + public static create(properties?: cosmos.bank.IDenomUnits): cosmos.bank.DenomUnits; + + /** + * Encodes the specified DenomUnits message. Does not implicitly {@link cosmos.bank.DenomUnits.verify|verify} messages. + * @param m DenomUnits message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IDenomUnits, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DenomUnits message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns DenomUnits + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.DenomUnits; + } + + /** Properties of a Metadata. */ + interface IMetadata { + /** Metadata description */ + description?: string | null; + + /** Metadata denomUnits */ + denomUnits?: cosmos.bank.IDenomUnits[] | null; + + /** Metadata base */ + base?: string | null; + + /** Metadata display */ + display?: string | null; + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + /** + * Constructs a new Metadata. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IMetadata); + + /** Metadata description. */ + public description: string; + + /** Metadata denomUnits. */ + public denomUnits: cosmos.bank.IDenomUnits[]; + + /** Metadata base. */ + public base: string; + + /** Metadata display. */ + public display: string; + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: cosmos.bank.IMetadata): cosmos.bank.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link cosmos.bank.Metadata.verify|verify} messages. + * @param m Metadata message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IMetadata, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.Metadata; + } + + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new Query service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): Query; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryBalanceResponse + */ + public balance( + request: cosmos.bank.IQueryBalanceRequest, + callback: cosmos.bank.Query.BalanceCallback, + ): void; + + /** + * Calls Balance. + * @param request QueryBalanceRequest message or plain object + * @returns Promise + */ + public balance(request: cosmos.bank.IQueryBalanceRequest): Promise; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryAllBalancesResponse + */ + public allBalances( + request: cosmos.bank.IQueryAllBalancesRequest, + callback: cosmos.bank.Query.AllBalancesCallback, + ): void; + + /** + * Calls AllBalances. + * @param request QueryAllBalancesRequest message or plain object + * @returns Promise + */ + public allBalances( + request: cosmos.bank.IQueryAllBalancesRequest, + ): Promise; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryTotalSupplyResponse + */ + public totalSupply( + request: cosmos.bank.IQueryTotalSupplyRequest, + callback: cosmos.bank.Query.TotalSupplyCallback, + ): void; + + /** + * Calls TotalSupply. + * @param request QueryTotalSupplyRequest message or plain object + * @returns Promise + */ + public totalSupply( + request: cosmos.bank.IQueryTotalSupplyRequest, + ): Promise; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QuerySupplyOfResponse + */ + public supplyOf( + request: cosmos.bank.IQuerySupplyOfRequest, + callback: cosmos.bank.Query.SupplyOfCallback, + ): void; + + /** + * Calls SupplyOf. + * @param request QuerySupplyOfRequest message or plain object + * @returns Promise + */ + public supplyOf(request: cosmos.bank.IQuerySupplyOfRequest): Promise; + } + + namespace Query { + /** + * Callback as used by {@link cosmos.bank.Query#balance}. + * @param error Error, if any + * @param [response] QueryBalanceResponse + */ + type BalanceCallback = (error: Error | null, response?: cosmos.bank.QueryBalanceResponse) => void; + + /** + * Callback as used by {@link cosmos.bank.Query#allBalances}. + * @param error Error, if any + * @param [response] QueryAllBalancesResponse + */ + type AllBalancesCallback = ( + error: Error | null, + response?: cosmos.bank.QueryAllBalancesResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.bank.Query#totalSupply}. + * @param error Error, if any + * @param [response] QueryTotalSupplyResponse + */ + type TotalSupplyCallback = ( + error: Error | null, + response?: cosmos.bank.QueryTotalSupplyResponse, + ) => void; + + /** + * Callback as used by {@link cosmos.bank.Query#supplyOf}. + * @param error Error, if any + * @param [response] QuerySupplyOfResponse + */ + type SupplyOfCallback = (error: Error | null, response?: cosmos.bank.QuerySupplyOfResponse) => void; + } + + /** Properties of a QueryBalanceRequest. */ + interface IQueryBalanceRequest { + /** QueryBalanceRequest address */ + address?: Uint8Array | null; + + /** QueryBalanceRequest denom */ + denom?: string | null; + } + + /** Represents a QueryBalanceRequest. */ + class QueryBalanceRequest implements IQueryBalanceRequest { + /** + * Constructs a new QueryBalanceRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryBalanceRequest); + + /** QueryBalanceRequest address. */ + public address: Uint8Array; + + /** QueryBalanceRequest denom. */ + public denom: string; + + /** + * Creates a new QueryBalanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceRequest instance + */ + public static create(properties?: cosmos.bank.IQueryBalanceRequest): cosmos.bank.QueryBalanceRequest; + + /** + * Encodes the specified QueryBalanceRequest message. Does not implicitly {@link cosmos.bank.QueryBalanceRequest.verify|verify} messages. + * @param m QueryBalanceRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryBalanceRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryBalanceRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryBalanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryBalanceRequest; + } + + /** Properties of a QueryBalanceResponse. */ + interface IQueryBalanceResponse { + /** QueryBalanceResponse balance */ + balance?: cosmos.ICoin | null; + } + + /** Represents a QueryBalanceResponse. */ + class QueryBalanceResponse implements IQueryBalanceResponse { + /** + * Constructs a new QueryBalanceResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryBalanceResponse); + + /** QueryBalanceResponse balance. */ + public balance?: cosmos.ICoin | null; + + /** + * Creates a new QueryBalanceResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryBalanceResponse instance + */ + public static create(properties?: cosmos.bank.IQueryBalanceResponse): cosmos.bank.QueryBalanceResponse; + + /** + * Encodes the specified QueryBalanceResponse message. Does not implicitly {@link cosmos.bank.QueryBalanceResponse.verify|verify} messages. + * @param m QueryBalanceResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryBalanceResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryBalanceResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryBalanceResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryBalanceResponse; + } + + /** Properties of a QueryAllBalancesRequest. */ + interface IQueryAllBalancesRequest { + /** QueryAllBalancesRequest address */ + address?: Uint8Array | null; + + /** QueryAllBalancesRequest pagination */ + pagination?: cosmos.query.IPageRequest | null; + } + + /** Represents a QueryAllBalancesRequest. */ + class QueryAllBalancesRequest implements IQueryAllBalancesRequest { + /** + * Constructs a new QueryAllBalancesRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryAllBalancesRequest); + + /** QueryAllBalancesRequest address. */ + public address: Uint8Array; + + /** QueryAllBalancesRequest pagination. */ + public pagination?: cosmos.query.IPageRequest | null; + + /** + * Creates a new QueryAllBalancesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesRequest instance + */ + public static create( + properties?: cosmos.bank.IQueryAllBalancesRequest, + ): cosmos.bank.QueryAllBalancesRequest; + + /** + * Encodes the specified QueryAllBalancesRequest message. Does not implicitly {@link cosmos.bank.QueryAllBalancesRequest.verify|verify} messages. + * @param m QueryAllBalancesRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryAllBalancesRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAllBalancesRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAllBalancesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryAllBalancesRequest; + } + + /** Properties of a QueryAllBalancesResponse. */ + interface IQueryAllBalancesResponse { + /** QueryAllBalancesResponse balances */ + balances?: cosmos.ICoin[] | null; + + /** QueryAllBalancesResponse pagination */ + pagination?: cosmos.query.IPageResponse | null; + } + + /** Represents a QueryAllBalancesResponse. */ + class QueryAllBalancesResponse implements IQueryAllBalancesResponse { + /** + * Constructs a new QueryAllBalancesResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryAllBalancesResponse); + + /** QueryAllBalancesResponse balances. */ + public balances: cosmos.ICoin[]; + + /** QueryAllBalancesResponse pagination. */ + public pagination?: cosmos.query.IPageResponse | null; + + /** + * Creates a new QueryAllBalancesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryAllBalancesResponse instance + */ + public static create( + properties?: cosmos.bank.IQueryAllBalancesResponse, + ): cosmos.bank.QueryAllBalancesResponse; + + /** + * Encodes the specified QueryAllBalancesResponse message. Does not implicitly {@link cosmos.bank.QueryAllBalancesResponse.verify|verify} messages. + * @param m QueryAllBalancesResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryAllBalancesResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryAllBalancesResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryAllBalancesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.QueryAllBalancesResponse; + } + + /** Properties of a QueryTotalSupplyRequest. */ + interface IQueryTotalSupplyRequest {} + + /** Represents a QueryTotalSupplyRequest. */ + class QueryTotalSupplyRequest implements IQueryTotalSupplyRequest { + /** + * Constructs a new QueryTotalSupplyRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryTotalSupplyRequest); + + /** + * Creates a new QueryTotalSupplyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyRequest instance + */ + public static create( + properties?: cosmos.bank.IQueryTotalSupplyRequest, + ): cosmos.bank.QueryTotalSupplyRequest; + + /** + * Encodes the specified QueryTotalSupplyRequest message. Does not implicitly {@link cosmos.bank.QueryTotalSupplyRequest.verify|verify} messages. + * @param m QueryTotalSupplyRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryTotalSupplyRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryTotalSupplyRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryTotalSupplyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QueryTotalSupplyRequest; + } + + /** Properties of a QueryTotalSupplyResponse. */ + interface IQueryTotalSupplyResponse { + /** QueryTotalSupplyResponse supply */ + supply?: cosmos.ICoin[] | null; + } + + /** Represents a QueryTotalSupplyResponse. */ + class QueryTotalSupplyResponse implements IQueryTotalSupplyResponse { + /** + * Constructs a new QueryTotalSupplyResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQueryTotalSupplyResponse); + + /** QueryTotalSupplyResponse supply. */ + public supply: cosmos.ICoin[]; + + /** + * Creates a new QueryTotalSupplyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryTotalSupplyResponse instance + */ + public static create( + properties?: cosmos.bank.IQueryTotalSupplyResponse, + ): cosmos.bank.QueryTotalSupplyResponse; + + /** + * Encodes the specified QueryTotalSupplyResponse message. Does not implicitly {@link cosmos.bank.QueryTotalSupplyResponse.verify|verify} messages. + * @param m QueryTotalSupplyResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQueryTotalSupplyResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryTotalSupplyResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QueryTotalSupplyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.bank.QueryTotalSupplyResponse; + } + + /** Properties of a QuerySupplyOfRequest. */ + interface IQuerySupplyOfRequest { + /** QuerySupplyOfRequest denom */ + denom?: string | null; + } + + /** Represents a QuerySupplyOfRequest. */ + class QuerySupplyOfRequest implements IQuerySupplyOfRequest { + /** + * Constructs a new QuerySupplyOfRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQuerySupplyOfRequest); + + /** QuerySupplyOfRequest denom. */ + public denom: string; + + /** + * Creates a new QuerySupplyOfRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfRequest instance + */ + public static create(properties?: cosmos.bank.IQuerySupplyOfRequest): cosmos.bank.QuerySupplyOfRequest; + + /** + * Encodes the specified QuerySupplyOfRequest message. Does not implicitly {@link cosmos.bank.QuerySupplyOfRequest.verify|verify} messages. + * @param m QuerySupplyOfRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQuerySupplyOfRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuerySupplyOfRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QuerySupplyOfRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QuerySupplyOfRequest; + } + + /** Properties of a QuerySupplyOfResponse. */ + interface IQuerySupplyOfResponse { + /** QuerySupplyOfResponse amount */ + amount?: cosmos.ICoin | null; + } + + /** Represents a QuerySupplyOfResponse. */ + class QuerySupplyOfResponse implements IQuerySupplyOfResponse { + /** + * Constructs a new QuerySupplyOfResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.bank.IQuerySupplyOfResponse); + + /** QuerySupplyOfResponse amount. */ + public amount?: cosmos.ICoin | null; + + /** + * Creates a new QuerySupplyOfResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns QuerySupplyOfResponse instance + */ + public static create( + properties?: cosmos.bank.IQuerySupplyOfResponse, + ): cosmos.bank.QuerySupplyOfResponse; + + /** + * Encodes the specified QuerySupplyOfResponse message. Does not implicitly {@link cosmos.bank.QuerySupplyOfResponse.verify|verify} messages. + * @param m QuerySupplyOfResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.bank.IQuerySupplyOfResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuerySupplyOfResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns QuerySupplyOfResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.bank.QuerySupplyOfResponse; + } + } + + /** Namespace crypto. */ + namespace crypto { + /** Properties of a PublicKey. */ + interface IPublicKey { + /** PublicKey secp256k1 */ + secp256k1?: Uint8Array | null; + + /** PublicKey ed25519 */ + ed25519?: Uint8Array | null; + + /** PublicKey sr25519 */ + sr25519?: Uint8Array | null; + + /** PublicKey multisig */ + multisig?: cosmos.crypto.IPubKeyMultisigThreshold | null; + + /** PublicKey secp256r1 */ + secp256r1?: Uint8Array | null; + + /** PublicKey anyPubkey */ + anyPubkey?: google.protobuf.IAny | null; + } + + /** Represents a PublicKey. */ + class PublicKey implements IPublicKey { + /** + * Constructs a new PublicKey. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.IPublicKey); + + /** PublicKey secp256k1. */ + public secp256k1: Uint8Array; + + /** PublicKey ed25519. */ + public ed25519: Uint8Array; + + /** PublicKey sr25519. */ + public sr25519: Uint8Array; + + /** PublicKey multisig. */ + public multisig?: cosmos.crypto.IPubKeyMultisigThreshold | null; + + /** PublicKey secp256r1. */ + public secp256r1: Uint8Array; + + /** PublicKey anyPubkey. */ + public anyPubkey?: google.protobuf.IAny | null; + + /** PublicKey sum. */ + public sum?: "secp256k1" | "ed25519" | "sr25519" | "multisig" | "secp256r1" | "anyPubkey"; + + /** + * Creates a new PublicKey instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicKey instance + */ + public static create(properties?: cosmos.crypto.IPublicKey): cosmos.crypto.PublicKey; + + /** + * Encodes the specified PublicKey message. Does not implicitly {@link cosmos.crypto.PublicKey.verify|verify} messages. + * @param m PublicKey message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.IPublicKey, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicKey message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PublicKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.PublicKey; + } + + /** Properties of a PubKeyMultisigThreshold. */ + interface IPubKeyMultisigThreshold { + /** PubKeyMultisigThreshold threshold */ + threshold?: number | null; + + /** PubKeyMultisigThreshold publicKeys */ + publicKeys?: cosmos.crypto.IPublicKey[] | null; + } + + /** Represents a PubKeyMultisigThreshold. */ + class PubKeyMultisigThreshold implements IPubKeyMultisigThreshold { + /** + * Constructs a new PubKeyMultisigThreshold. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.IPubKeyMultisigThreshold); + + /** PubKeyMultisigThreshold threshold. */ + public threshold: number; + + /** PubKeyMultisigThreshold publicKeys. */ + public publicKeys: cosmos.crypto.IPublicKey[]; + + /** + * Creates a new PubKeyMultisigThreshold instance using the specified properties. + * @param [properties] Properties to set + * @returns PubKeyMultisigThreshold instance + */ + public static create( + properties?: cosmos.crypto.IPubKeyMultisigThreshold, + ): cosmos.crypto.PubKeyMultisigThreshold; + + /** + * Encodes the specified PubKeyMultisigThreshold message. Does not implicitly {@link cosmos.crypto.PubKeyMultisigThreshold.verify|verify} messages. + * @param m PubKeyMultisigThreshold message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.IPubKeyMultisigThreshold, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PubKeyMultisigThreshold message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PubKeyMultisigThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.crypto.PubKeyMultisigThreshold; + } + + /** Properties of a MultiSignature. */ + interface IMultiSignature { + /** MultiSignature signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a MultiSignature. */ + class MultiSignature implements IMultiSignature { + /** + * Constructs a new MultiSignature. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.IMultiSignature); + + /** MultiSignature signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new MultiSignature instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiSignature instance + */ + public static create(properties?: cosmos.crypto.IMultiSignature): cosmos.crypto.MultiSignature; + + /** + * Encodes the specified MultiSignature message. Does not implicitly {@link cosmos.crypto.MultiSignature.verify|verify} messages. + * @param m MultiSignature message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.IMultiSignature, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiSignature message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns MultiSignature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.MultiSignature; + } + + /** Properties of a CompactBitArray. */ + interface ICompactBitArray { + /** CompactBitArray extraBitsStored */ + extraBitsStored?: number | null; + + /** CompactBitArray elems */ + elems?: Uint8Array | null; + } + + /** Represents a CompactBitArray. */ + class CompactBitArray implements ICompactBitArray { + /** + * Constructs a new CompactBitArray. + * @param [p] Properties to set + */ + constructor(p?: cosmos.crypto.ICompactBitArray); + + /** CompactBitArray extraBitsStored. */ + public extraBitsStored: number; + + /** CompactBitArray elems. */ + public elems: Uint8Array; + + /** + * Creates a new CompactBitArray instance using the specified properties. + * @param [properties] Properties to set + * @returns CompactBitArray instance + */ + public static create(properties?: cosmos.crypto.ICompactBitArray): cosmos.crypto.CompactBitArray; + + /** + * Encodes the specified CompactBitArray message. Does not implicitly {@link cosmos.crypto.CompactBitArray.verify|verify} messages. + * @param m CompactBitArray message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.crypto.ICompactBitArray, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompactBitArray message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns CompactBitArray + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.crypto.CompactBitArray; + } + } + + /** Namespace query. */ + namespace query { + /** Properties of a PageRequest. */ + interface IPageRequest { + /** PageRequest key */ + key?: Uint8Array | null; + + /** PageRequest offset */ + offset?: number | Long | null; + + /** PageRequest limit */ + limit?: number | Long | null; + + /** PageRequest countTotal */ + countTotal?: boolean | null; + } + + /** Represents a PageRequest. */ + class PageRequest implements IPageRequest { + /** + * Constructs a new PageRequest. + * @param [p] Properties to set + */ + constructor(p?: cosmos.query.IPageRequest); + + /** PageRequest key. */ + public key: Uint8Array; + + /** PageRequest offset. */ + public offset: number | Long; + + /** PageRequest limit. */ + public limit: number | Long; + + /** PageRequest countTotal. */ + public countTotal: boolean; + + /** + * Creates a new PageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PageRequest instance + */ + public static create(properties?: cosmos.query.IPageRequest): cosmos.query.PageRequest; + + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.query.PageRequest.verify|verify} messages. + * @param m PageRequest message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.query.IPageRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.query.PageRequest; + } + + /** Properties of a PageResponse. */ + interface IPageResponse { + /** PageResponse nextKey */ + nextKey?: Uint8Array | null; + + /** PageResponse total */ + total?: number | Long | null; + } + + /** Represents a PageResponse. */ + class PageResponse implements IPageResponse { + /** + * Constructs a new PageResponse. + * @param [p] Properties to set + */ + constructor(p?: cosmos.query.IPageResponse); + + /** PageResponse nextKey. */ + public nextKey: Uint8Array; + + /** PageResponse total. */ + public total: number | Long; + + /** + * Creates a new PageResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PageResponse instance + */ + public static create(properties?: cosmos.query.IPageResponse): cosmos.query.PageResponse; + + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.query.PageResponse.verify|verify} messages. + * @param m PageResponse message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.query.IPageResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.query.PageResponse; + } + } + + /** Namespace tx. */ + namespace tx { + /** Properties of a Tx. */ + interface ITx { + /** Tx body */ + body?: cosmos.tx.ITxBody | null; + + /** Tx authInfo */ + authInfo?: cosmos.tx.IAuthInfo | null; + + /** Tx signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a Tx. */ + class Tx implements ITx { + /** + * Constructs a new Tx. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ITx); + + /** Tx body. */ + public body?: cosmos.tx.ITxBody | null; + + /** Tx authInfo. */ + public authInfo?: cosmos.tx.IAuthInfo | null; + + /** Tx signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new Tx instance using the specified properties. + * @param [properties] Properties to set + * @returns Tx instance + */ + public static create(properties?: cosmos.tx.ITx): cosmos.tx.Tx; + + /** + * Encodes the specified Tx message. Does not implicitly {@link cosmos.tx.Tx.verify|verify} messages. + * @param m Tx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ITx, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Tx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Tx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Tx; + } + + /** Properties of a TxRaw. */ + interface ITxRaw { + /** TxRaw bodyBytes */ + bodyBytes?: Uint8Array | null; + + /** TxRaw authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** TxRaw signatures */ + signatures?: Uint8Array[] | null; + } + + /** Represents a TxRaw. */ + class TxRaw implements ITxRaw { + /** + * Constructs a new TxRaw. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ITxRaw); + + /** TxRaw bodyBytes. */ + public bodyBytes: Uint8Array; + + /** TxRaw authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** TxRaw signatures. */ + public signatures: Uint8Array[]; + + /** + * Creates a new TxRaw instance using the specified properties. + * @param [properties] Properties to set + * @returns TxRaw instance + */ + public static create(properties?: cosmos.tx.ITxRaw): cosmos.tx.TxRaw; + + /** + * Encodes the specified TxRaw message. Does not implicitly {@link cosmos.tx.TxRaw.verify|verify} messages. + * @param m TxRaw message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ITxRaw, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxRaw message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxRaw + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.TxRaw; + } + + /** Properties of a SignDoc. */ + interface ISignDoc { + /** SignDoc bodyBytes */ + bodyBytes?: Uint8Array | null; + + /** SignDoc authInfoBytes */ + authInfoBytes?: Uint8Array | null; + + /** SignDoc chainId */ + chainId?: string | null; + + /** SignDoc accountNumber */ + accountNumber?: number | Long | null; + + /** SignDoc accountSequence */ + accountSequence?: number | Long | null; + } + + /** Represents a SignDoc. */ + class SignDoc implements ISignDoc { + /** + * Constructs a new SignDoc. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ISignDoc); + + /** SignDoc bodyBytes. */ + public bodyBytes: Uint8Array; + + /** SignDoc authInfoBytes. */ + public authInfoBytes: Uint8Array; + + /** SignDoc chainId. */ + public chainId: string; + + /** SignDoc accountNumber. */ + public accountNumber: number | Long; + + /** SignDoc accountSequence. */ + public accountSequence: number | Long; + + /** + * Creates a new SignDoc instance using the specified properties. + * @param [properties] Properties to set + * @returns SignDoc instance + */ + public static create(properties?: cosmos.tx.ISignDoc): cosmos.tx.SignDoc; + + /** + * Encodes the specified SignDoc message. Does not implicitly {@link cosmos.tx.SignDoc.verify|verify} messages. + * @param m SignDoc message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ISignDoc, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignDoc message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignDoc + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.SignDoc; + } + + /** Properties of a TxBody. */ + interface ITxBody { + /** TxBody messages */ + messages?: google.protobuf.IAny[] | null; + + /** TxBody memo */ + memo?: string | null; + + /** TxBody timeoutHeight */ + timeoutHeight?: number | Long | null; + + /** TxBody extensionOptions */ + extensionOptions?: google.protobuf.IAny[] | null; + + /** TxBody nonCriticalExtensionOptions */ + nonCriticalExtensionOptions?: google.protobuf.IAny[] | null; + } + + /** Represents a TxBody. */ + class TxBody implements ITxBody { + /** + * Constructs a new TxBody. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ITxBody); + + /** TxBody messages. */ + public messages: google.protobuf.IAny[]; + + /** TxBody memo. */ + public memo: string; + + /** TxBody timeoutHeight. */ + public timeoutHeight: number | Long; + + /** TxBody extensionOptions. */ + public extensionOptions: google.protobuf.IAny[]; + + /** TxBody nonCriticalExtensionOptions. */ + public nonCriticalExtensionOptions: google.protobuf.IAny[]; + + /** + * Creates a new TxBody instance using the specified properties. + * @param [properties] Properties to set + * @returns TxBody instance + */ + public static create(properties?: cosmos.tx.ITxBody): cosmos.tx.TxBody; + + /** + * Encodes the specified TxBody message. Does not implicitly {@link cosmos.tx.TxBody.verify|verify} messages. + * @param m TxBody message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ITxBody, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TxBody message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns TxBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.TxBody; + } + + /** Properties of an AuthInfo. */ + interface IAuthInfo { + /** AuthInfo signerInfos */ + signerInfos?: cosmos.tx.ISignerInfo[] | null; + + /** AuthInfo fee */ + fee?: cosmos.tx.IFee | null; + } + + /** Represents an AuthInfo. */ + class AuthInfo implements IAuthInfo { + /** + * Constructs a new AuthInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.IAuthInfo); + + /** AuthInfo signerInfos. */ + public signerInfos: cosmos.tx.ISignerInfo[]; + + /** AuthInfo fee. */ + public fee?: cosmos.tx.IFee | null; + + /** + * Creates a new AuthInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthInfo instance + */ + public static create(properties?: cosmos.tx.IAuthInfo): cosmos.tx.AuthInfo; + + /** + * Encodes the specified AuthInfo message. Does not implicitly {@link cosmos.tx.AuthInfo.verify|verify} messages. + * @param m AuthInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.IAuthInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuthInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns AuthInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.AuthInfo; + } + + /** Properties of a SignerInfo. */ + interface ISignerInfo { + /** SignerInfo publicKey */ + publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignerInfo modeInfo */ + modeInfo?: cosmos.tx.IModeInfo | null; + } + + /** Represents a SignerInfo. */ + class SignerInfo implements ISignerInfo { + /** + * Constructs a new SignerInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ISignerInfo); + + /** SignerInfo publicKey. */ + public publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignerInfo modeInfo. */ + public modeInfo?: cosmos.tx.IModeInfo | null; + + /** + * Creates a new SignerInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SignerInfo instance + */ + public static create(properties?: cosmos.tx.ISignerInfo): cosmos.tx.SignerInfo; + + /** + * Encodes the specified SignerInfo message. Does not implicitly {@link cosmos.tx.SignerInfo.verify|verify} messages. + * @param m SignerInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ISignerInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignerInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignerInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.SignerInfo; + } + + /** Properties of a ModeInfo. */ + interface IModeInfo { + /** ModeInfo single */ + single?: cosmos.tx.ModeInfo.ISingle | null; + + /** ModeInfo multi */ + multi?: cosmos.tx.ModeInfo.IMulti | null; + } + + /** Represents a ModeInfo. */ + class ModeInfo implements IModeInfo { + /** + * Constructs a new ModeInfo. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.IModeInfo); + + /** ModeInfo single. */ + public single?: cosmos.tx.ModeInfo.ISingle | null; + + /** ModeInfo multi. */ + public multi?: cosmos.tx.ModeInfo.IMulti | null; + + /** ModeInfo sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new ModeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ModeInfo instance + */ + public static create(properties?: cosmos.tx.IModeInfo): cosmos.tx.ModeInfo; + + /** + * Encodes the specified ModeInfo message. Does not implicitly {@link cosmos.tx.ModeInfo.verify|verify} messages. + * @param m ModeInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.IModeInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModeInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ModeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo; + } + + namespace ModeInfo { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.SignMode | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ModeInfo.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.SignMode; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create(properties?: cosmos.tx.ModeInfo.ISingle): cosmos.tx.ModeInfo.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.ModeInfo.Single.verify|verify} messages. + * @param m Single message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ModeInfo.ISingle, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Single message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Single + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi modeInfos */ + modeInfos?: cosmos.tx.IModeInfo[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.ModeInfo.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi modeInfos. */ + public modeInfos: cosmos.tx.IModeInfo[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create(properties?: cosmos.tx.ModeInfo.IMulti): cosmos.tx.ModeInfo.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.ModeInfo.Multi.verify|verify} messages. + * @param m Multi message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.ModeInfo.IMulti, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Multi message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Multi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.ModeInfo.Multi; + } + } + + /** Properties of a Fee. */ + interface IFee { + /** Fee amount */ + amount?: cosmos.ICoin[] | null; + + /** Fee gasLimit */ + gasLimit?: number | Long | null; + } + + /** Represents a Fee. */ + class Fee implements IFee { + /** + * Constructs a new Fee. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.IFee); + + /** Fee amount. */ + public amount: cosmos.ICoin[]; + + /** Fee gasLimit. */ + public gasLimit: number | Long; + + /** + * Creates a new Fee instance using the specified properties. + * @param [properties] Properties to set + * @returns Fee instance + */ + public static create(properties?: cosmos.tx.IFee): cosmos.tx.Fee; + + /** + * Encodes the specified Fee message. Does not implicitly {@link cosmos.tx.Fee.verify|verify} messages. + * @param m Fee message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: cosmos.tx.IFee, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Fee message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Fee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): cosmos.tx.Fee; + } + + /** Namespace signing. */ + namespace signing { + /** SignMode enum. */ + enum SignMode { + SIGN_MODE_UNSPECIFIED = 0, + SIGN_MODE_DIRECT = 1, + SIGN_MODE_TEXTUAL = 2, + SIGN_MODE_LEGACY_AMINO_JSON = 127, + } + + /** Properties of a SignatureDescriptors. */ + interface ISignatureDescriptors { + /** SignatureDescriptors signatures */ + signatures?: cosmos.tx.signing.ISignatureDescriptor[] | null; + } + + /** Represents a SignatureDescriptors. */ + class SignatureDescriptors implements ISignatureDescriptors { + /** + * Constructs a new SignatureDescriptors. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.ISignatureDescriptors); + + /** SignatureDescriptors signatures. */ + public signatures: cosmos.tx.signing.ISignatureDescriptor[]; + + /** + * Creates a new SignatureDescriptors instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptors instance + */ + public static create( + properties?: cosmos.tx.signing.ISignatureDescriptors, + ): cosmos.tx.signing.SignatureDescriptors; + + /** + * Encodes the specified SignatureDescriptors message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptors.verify|verify} messages. + * @param m SignatureDescriptors message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.ISignatureDescriptors, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptors message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptors + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptors; + } + + /** Properties of a SignatureDescriptor. */ + interface ISignatureDescriptor { + /** SignatureDescriptor publicKey */ + publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignatureDescriptor data */ + data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + } + + /** Represents a SignatureDescriptor. */ + class SignatureDescriptor implements ISignatureDescriptor { + /** + * Constructs a new SignatureDescriptor. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.ISignatureDescriptor); + + /** SignatureDescriptor publicKey. */ + public publicKey?: cosmos.crypto.IPublicKey | null; + + /** SignatureDescriptor data. */ + public data?: cosmos.tx.signing.SignatureDescriptor.IData | null; + + /** + * Creates a new SignatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns SignatureDescriptor instance + */ + public static create( + properties?: cosmos.tx.signing.ISignatureDescriptor, + ): cosmos.tx.signing.SignatureDescriptor; + + /** + * Encodes the specified SignatureDescriptor message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.verify|verify} messages. + * @param m SignatureDescriptor message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.ISignatureDescriptor, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a SignatureDescriptor message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns SignatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor; + } + + namespace SignatureDescriptor { + /** Properties of a Data. */ + interface IData { + /** Data single */ + single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; + + /** Data multi */ + multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; + } + + /** Represents a Data. */ + class Data implements IData { + /** + * Constructs a new Data. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.SignatureDescriptor.IData); + + /** Data single. */ + public single?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle | null; + + /** Data multi. */ + public multi?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti | null; + + /** Data sum. */ + public sum?: "single" | "multi"; + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create( + properties?: cosmos.tx.signing.SignatureDescriptor.IData, + ): cosmos.tx.signing.SignatureDescriptor.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.verify|verify} messages. + * @param m Data message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.SignatureDescriptor.IData, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor.Data; + } + + namespace Data { + /** Properties of a Single. */ + interface ISingle { + /** Single mode */ + mode?: cosmos.tx.signing.SignMode | null; + + /** Single signature */ + signature?: Uint8Array | null; + } + + /** Represents a Single. */ + class Single implements ISingle { + /** + * Constructs a new Single. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle); + + /** Single mode. */ + public mode: cosmos.tx.signing.SignMode; + + /** Single signature. */ + public signature: Uint8Array; + + /** + * Creates a new Single instance using the specified properties. + * @param [properties] Properties to set + * @returns Single instance + */ + public static create( + properties?: cosmos.tx.signing.SignatureDescriptor.Data.ISingle, + ): cosmos.tx.signing.SignatureDescriptor.Data.Single; + + /** + * Encodes the specified Single message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.Single.verify|verify} messages. + * @param m Single message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.SignatureDescriptor.Data.ISingle, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Single message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Single + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor.Data.Single; + } + + /** Properties of a Multi. */ + interface IMulti { + /** Multi bitarray */ + bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi signatures */ + signatures?: cosmos.tx.signing.SignatureDescriptor.IData[] | null; + } + + /** Represents a Multi. */ + class Multi implements IMulti { + /** + * Constructs a new Multi. + * @param [p] Properties to set + */ + constructor(p?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti); + + /** Multi bitarray. */ + public bitarray?: cosmos.crypto.ICompactBitArray | null; + + /** Multi signatures. */ + public signatures: cosmos.tx.signing.SignatureDescriptor.IData[]; + + /** + * Creates a new Multi instance using the specified properties. + * @param [properties] Properties to set + * @returns Multi instance + */ + public static create( + properties?: cosmos.tx.signing.SignatureDescriptor.Data.IMulti, + ): cosmos.tx.signing.SignatureDescriptor.Data.Multi; + + /** + * Encodes the specified Multi message. Does not implicitly {@link cosmos.tx.signing.SignatureDescriptor.Data.Multi.verify|verify} messages. + * @param m Multi message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: cosmos.tx.signing.SignatureDescriptor.Data.IMulti, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a Multi message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Multi + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): cosmos.tx.signing.SignatureDescriptor.Data.Multi; + } + } + } + } + } +} + +/** Namespace tendermint. */ +export namespace tendermint { + /** Namespace abci. */ + namespace abci { + /** Namespace types. */ + namespace types { + /** Properties of a Request. */ + interface IRequest { + /** Request echo */ + echo?: tendermint.abci.types.IRequestEcho | null; + + /** Request flush */ + flush?: tendermint.abci.types.IRequestFlush | null; + + /** Request info */ + info?: tendermint.abci.types.IRequestInfo | null; + + /** Request setOption */ + setOption?: tendermint.abci.types.IRequestSetOption | null; + + /** Request initChain */ + initChain?: tendermint.abci.types.IRequestInitChain | null; + + /** Request query */ + query?: tendermint.abci.types.IRequestQuery | null; + + /** Request beginBlock */ + beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; + + /** Request checkTx */ + checkTx?: tendermint.abci.types.IRequestCheckTx | null; + + /** Request deliverTx */ + deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; + + /** Request endBlock */ + endBlock?: tendermint.abci.types.IRequestEndBlock | null; + + /** Request commit */ + commit?: tendermint.abci.types.IRequestCommit | null; + } + + /** Represents a Request. */ + class Request implements IRequest { + /** + * Constructs a new Request. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequest); + + /** Request echo. */ + public echo?: tendermint.abci.types.IRequestEcho | null; + + /** Request flush. */ + public flush?: tendermint.abci.types.IRequestFlush | null; + + /** Request info. */ + public info?: tendermint.abci.types.IRequestInfo | null; + + /** Request setOption. */ + public setOption?: tendermint.abci.types.IRequestSetOption | null; + + /** Request initChain. */ + public initChain?: tendermint.abci.types.IRequestInitChain | null; + + /** Request query. */ + public query?: tendermint.abci.types.IRequestQuery | null; + + /** Request beginBlock. */ + public beginBlock?: tendermint.abci.types.IRequestBeginBlock | null; + + /** Request checkTx. */ + public checkTx?: tendermint.abci.types.IRequestCheckTx | null; + + /** Request deliverTx. */ + public deliverTx?: tendermint.abci.types.IRequestDeliverTx | null; + + /** Request endBlock. */ + public endBlock?: tendermint.abci.types.IRequestEndBlock | null; + + /** Request commit. */ + public commit?: tendermint.abci.types.IRequestCommit | null; + + /** Request value. */ + public value?: + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit"; + + /** + * Creates a new Request instance using the specified properties. + * @param [properties] Properties to set + * @returns Request instance + */ + public static create(properties?: tendermint.abci.types.IRequest): tendermint.abci.types.Request; + + /** + * Encodes the specified Request message. Does not implicitly {@link tendermint.abci.types.Request.verify|verify} messages. + * @param m Request message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequest, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Request message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Request + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Request; + } + + /** Properties of a RequestEcho. */ + interface IRequestEcho { + /** RequestEcho message */ + message?: string | null; + } + + /** Represents a RequestEcho. */ + class RequestEcho implements IRequestEcho { + /** + * Constructs a new RequestEcho. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestEcho); + + /** RequestEcho message. */ + public message: string; + + /** + * Creates a new RequestEcho instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestEcho instance + */ + public static create( + properties?: tendermint.abci.types.IRequestEcho, + ): tendermint.abci.types.RequestEcho; + + /** + * Encodes the specified RequestEcho message. Does not implicitly {@link tendermint.abci.types.RequestEcho.verify|verify} messages. + * @param m RequestEcho message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestEcho, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestEcho message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestEcho; + } + + /** Properties of a RequestFlush. */ + interface IRequestFlush {} + + /** Represents a RequestFlush. */ + class RequestFlush implements IRequestFlush { + /** + * Constructs a new RequestFlush. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestFlush); + + /** + * Creates a new RequestFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestFlush instance + */ + public static create( + properties?: tendermint.abci.types.IRequestFlush, + ): tendermint.abci.types.RequestFlush; + + /** + * Encodes the specified RequestFlush message. Does not implicitly {@link tendermint.abci.types.RequestFlush.verify|verify} messages. + * @param m RequestFlush message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestFlush, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestFlush message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestFlush; + } + + /** Properties of a RequestInfo. */ + interface IRequestInfo { + /** RequestInfo version */ + version?: string | null; + + /** RequestInfo blockVersion */ + blockVersion?: number | Long | null; + + /** RequestInfo p2pVersion */ + p2pVersion?: number | Long | null; + } + + /** Represents a RequestInfo. */ + class RequestInfo implements IRequestInfo { + /** + * Constructs a new RequestInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestInfo); + + /** RequestInfo version. */ + public version: string; + + /** RequestInfo blockVersion. */ + public blockVersion: number | Long; + + /** RequestInfo p2pVersion. */ + public p2pVersion: number | Long; + + /** + * Creates a new RequestInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInfo instance + */ + public static create( + properties?: tendermint.abci.types.IRequestInfo, + ): tendermint.abci.types.RequestInfo; + + /** + * Encodes the specified RequestInfo message. Does not implicitly {@link tendermint.abci.types.RequestInfo.verify|verify} messages. + * @param m RequestInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.RequestInfo; + } + + /** Properties of a RequestSetOption. */ + interface IRequestSetOption { + /** RequestSetOption key */ + key?: string | null; + + /** RequestSetOption value */ + value?: string | null; + } + + /** Represents a RequestSetOption. */ + class RequestSetOption implements IRequestSetOption { + /** + * Constructs a new RequestSetOption. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestSetOption); + + /** RequestSetOption key. */ + public key: string; + + /** RequestSetOption value. */ + public value: string; + + /** + * Creates a new RequestSetOption instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestSetOption instance + */ + public static create( + properties?: tendermint.abci.types.IRequestSetOption, + ): tendermint.abci.types.RequestSetOption; + + /** + * Encodes the specified RequestSetOption message. Does not implicitly {@link tendermint.abci.types.RequestSetOption.verify|verify} messages. + * @param m RequestSetOption message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestSetOption, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestSetOption message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestSetOption; + } + + /** Properties of a RequestInitChain. */ + interface IRequestInitChain { + /** RequestInitChain time */ + time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId */ + chainId?: string | null; + + /** RequestInitChain consensusParams */ + consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** RequestInitChain validators */ + validators?: tendermint.abci.types.IValidatorUpdate[] | null; + + /** RequestInitChain appStateBytes */ + appStateBytes?: Uint8Array | null; + } + + /** Represents a RequestInitChain. */ + class RequestInitChain implements IRequestInitChain { + /** + * Constructs a new RequestInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestInitChain); + + /** RequestInitChain time. */ + public time?: google.protobuf.ITimestamp | null; + + /** RequestInitChain chainId. */ + public chainId: string; + + /** RequestInitChain consensusParams. */ + public consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** RequestInitChain validators. */ + public validators: tendermint.abci.types.IValidatorUpdate[]; + + /** RequestInitChain appStateBytes. */ + public appStateBytes: Uint8Array; + + /** + * Creates a new RequestInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestInitChain instance + */ + public static create( + properties?: tendermint.abci.types.IRequestInitChain, + ): tendermint.abci.types.RequestInitChain; + + /** + * Encodes the specified RequestInitChain message. Does not implicitly {@link tendermint.abci.types.RequestInitChain.verify|verify} messages. + * @param m RequestInitChain message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestInitChain, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestInitChain message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestInitChain; + } + + /** Properties of a RequestQuery. */ + interface IRequestQuery { + /** RequestQuery data */ + data?: Uint8Array | null; + + /** RequestQuery path */ + path?: string | null; + + /** RequestQuery height */ + height?: number | Long | null; + + /** RequestQuery prove */ + prove?: boolean | null; + } + + /** Represents a RequestQuery. */ + class RequestQuery implements IRequestQuery { + /** + * Constructs a new RequestQuery. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestQuery); + + /** RequestQuery data. */ + public data: Uint8Array; + + /** RequestQuery path. */ + public path: string; + + /** RequestQuery height. */ + public height: number | Long; + + /** RequestQuery prove. */ + public prove: boolean; + + /** + * Creates a new RequestQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestQuery instance + */ + public static create( + properties?: tendermint.abci.types.IRequestQuery, + ): tendermint.abci.types.RequestQuery; + + /** + * Encodes the specified RequestQuery message. Does not implicitly {@link tendermint.abci.types.RequestQuery.verify|verify} messages. + * @param m RequestQuery message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestQuery, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestQuery message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestQuery; + } + + /** Properties of a RequestBeginBlock. */ + interface IRequestBeginBlock { + /** RequestBeginBlock hash */ + hash?: Uint8Array | null; + + /** RequestBeginBlock header */ + header?: tendermint.abci.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo */ + lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators */ + byzantineValidators?: tendermint.abci.types.IEvidence[] | null; + } + + /** Represents a RequestBeginBlock. */ + class RequestBeginBlock implements IRequestBeginBlock { + /** + * Constructs a new RequestBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestBeginBlock); + + /** RequestBeginBlock hash. */ + public hash: Uint8Array; + + /** RequestBeginBlock header. */ + public header?: tendermint.abci.types.IHeader | null; + + /** RequestBeginBlock lastCommitInfo. */ + public lastCommitInfo?: tendermint.abci.types.ILastCommitInfo | null; + + /** RequestBeginBlock byzantineValidators. */ + public byzantineValidators: tendermint.abci.types.IEvidence[]; + + /** + * Creates a new RequestBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestBeginBlock instance + */ + public static create( + properties?: tendermint.abci.types.IRequestBeginBlock, + ): tendermint.abci.types.RequestBeginBlock; + + /** + * Encodes the specified RequestBeginBlock message. Does not implicitly {@link tendermint.abci.types.RequestBeginBlock.verify|verify} messages. + * @param m RequestBeginBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestBeginBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestBeginBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestBeginBlock; + } + + /** CheckTxType enum. */ + enum CheckTxType { + New = 0, + Recheck = 1, + } + + /** Properties of a RequestCheckTx. */ + interface IRequestCheckTx { + /** RequestCheckTx tx */ + tx?: Uint8Array | null; + + /** RequestCheckTx type */ + type?: tendermint.abci.types.CheckTxType | null; + } + + /** Represents a RequestCheckTx. */ + class RequestCheckTx implements IRequestCheckTx { + /** + * Constructs a new RequestCheckTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestCheckTx); + + /** RequestCheckTx tx. */ + public tx: Uint8Array; + + /** RequestCheckTx type. */ + public type: tendermint.abci.types.CheckTxType; + + /** + * Creates a new RequestCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCheckTx instance + */ + public static create( + properties?: tendermint.abci.types.IRequestCheckTx, + ): tendermint.abci.types.RequestCheckTx; + + /** + * Encodes the specified RequestCheckTx message. Does not implicitly {@link tendermint.abci.types.RequestCheckTx.verify|verify} messages. + * @param m RequestCheckTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestCheckTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestCheckTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestCheckTx; + } + + /** Properties of a RequestDeliverTx. */ + interface IRequestDeliverTx { + /** RequestDeliverTx tx */ + tx?: Uint8Array | null; + } + + /** Represents a RequestDeliverTx. */ + class RequestDeliverTx implements IRequestDeliverTx { + /** + * Constructs a new RequestDeliverTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestDeliverTx); + + /** RequestDeliverTx tx. */ + public tx: Uint8Array; + + /** + * Creates a new RequestDeliverTx instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestDeliverTx instance + */ + public static create( + properties?: tendermint.abci.types.IRequestDeliverTx, + ): tendermint.abci.types.RequestDeliverTx; + + /** + * Encodes the specified RequestDeliverTx message. Does not implicitly {@link tendermint.abci.types.RequestDeliverTx.verify|verify} messages. + * @param m RequestDeliverTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestDeliverTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestDeliverTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestDeliverTx; + } + + /** Properties of a RequestEndBlock. */ + interface IRequestEndBlock { + /** RequestEndBlock height */ + height?: number | Long | null; + } + + /** Represents a RequestEndBlock. */ + class RequestEndBlock implements IRequestEndBlock { + /** + * Constructs a new RequestEndBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestEndBlock); + + /** RequestEndBlock height. */ + public height: number | Long; + + /** + * Creates a new RequestEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestEndBlock instance + */ + public static create( + properties?: tendermint.abci.types.IRequestEndBlock, + ): tendermint.abci.types.RequestEndBlock; + + /** + * Encodes the specified RequestEndBlock message. Does not implicitly {@link tendermint.abci.types.RequestEndBlock.verify|verify} messages. + * @param m RequestEndBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IRequestEndBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a RequestEndBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestEndBlock; + } + + /** Properties of a RequestCommit. */ + interface IRequestCommit {} + + /** Represents a RequestCommit. */ + class RequestCommit implements IRequestCommit { + /** + * Constructs a new RequestCommit. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IRequestCommit); + + /** + * Creates a new RequestCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns RequestCommit instance + */ + public static create( + properties?: tendermint.abci.types.IRequestCommit, + ): tendermint.abci.types.RequestCommit; + + /** + * Encodes the specified RequestCommit message. Does not implicitly {@link tendermint.abci.types.RequestCommit.verify|verify} messages. + * @param m RequestCommit message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IRequestCommit, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RequestCommit message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns RequestCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.RequestCommit; + } + + /** Properties of a Response. */ + interface IResponse { + /** Response exception */ + exception?: tendermint.abci.types.IResponseException | null; + + /** Response echo */ + echo?: tendermint.abci.types.IResponseEcho | null; + + /** Response flush */ + flush?: tendermint.abci.types.IResponseFlush | null; + + /** Response info */ + info?: tendermint.abci.types.IResponseInfo | null; + + /** Response setOption */ + setOption?: tendermint.abci.types.IResponseSetOption | null; + + /** Response initChain */ + initChain?: tendermint.abci.types.IResponseInitChain | null; + + /** Response query */ + query?: tendermint.abci.types.IResponseQuery | null; + + /** Response beginBlock */ + beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; + + /** Response checkTx */ + checkTx?: tendermint.abci.types.IResponseCheckTx | null; + + /** Response deliverTx */ + deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; + + /** Response endBlock */ + endBlock?: tendermint.abci.types.IResponseEndBlock | null; + + /** Response commit */ + commit?: tendermint.abci.types.IResponseCommit | null; + } + + /** Represents a Response. */ + class Response implements IResponse { + /** + * Constructs a new Response. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponse); + + /** Response exception. */ + public exception?: tendermint.abci.types.IResponseException | null; + + /** Response echo. */ + public echo?: tendermint.abci.types.IResponseEcho | null; + + /** Response flush. */ + public flush?: tendermint.abci.types.IResponseFlush | null; + + /** Response info. */ + public info?: tendermint.abci.types.IResponseInfo | null; + + /** Response setOption. */ + public setOption?: tendermint.abci.types.IResponseSetOption | null; + + /** Response initChain. */ + public initChain?: tendermint.abci.types.IResponseInitChain | null; + + /** Response query. */ + public query?: tendermint.abci.types.IResponseQuery | null; + + /** Response beginBlock. */ + public beginBlock?: tendermint.abci.types.IResponseBeginBlock | null; + + /** Response checkTx. */ + public checkTx?: tendermint.abci.types.IResponseCheckTx | null; + + /** Response deliverTx. */ + public deliverTx?: tendermint.abci.types.IResponseDeliverTx | null; + + /** Response endBlock. */ + public endBlock?: tendermint.abci.types.IResponseEndBlock | null; + + /** Response commit. */ + public commit?: tendermint.abci.types.IResponseCommit | null; + + /** Response value. */ + public value?: + | "exception" + | "echo" + | "flush" + | "info" + | "setOption" + | "initChain" + | "query" + | "beginBlock" + | "checkTx" + | "deliverTx" + | "endBlock" + | "commit"; + + /** + * Creates a new Response instance using the specified properties. + * @param [properties] Properties to set + * @returns Response instance + */ + public static create(properties?: tendermint.abci.types.IResponse): tendermint.abci.types.Response; + + /** + * Encodes the specified Response message. Does not implicitly {@link tendermint.abci.types.Response.verify|verify} messages. + * @param m Response message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponse, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Response message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Response + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Response; + } + + /** Properties of a ResponseException. */ + interface IResponseException { + /** ResponseException error */ + error?: string | null; + } + + /** Represents a ResponseException. */ + class ResponseException implements IResponseException { + /** + * Constructs a new ResponseException. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseException); + + /** ResponseException error. */ + public error: string; + + /** + * Creates a new ResponseException instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseException instance + */ + public static create( + properties?: tendermint.abci.types.IResponseException, + ): tendermint.abci.types.ResponseException; + + /** + * Encodes the specified ResponseException message. Does not implicitly {@link tendermint.abci.types.ResponseException.verify|verify} messages. + * @param m ResponseException message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseException, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseException message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseException + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseException; + } + + /** Properties of a ResponseEcho. */ + interface IResponseEcho { + /** ResponseEcho message */ + message?: string | null; + } + + /** Represents a ResponseEcho. */ + class ResponseEcho implements IResponseEcho { + /** + * Constructs a new ResponseEcho. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseEcho); + + /** ResponseEcho message. */ + public message: string; + + /** + * Creates a new ResponseEcho instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEcho instance + */ + public static create( + properties?: tendermint.abci.types.IResponseEcho, + ): tendermint.abci.types.ResponseEcho; + + /** + * Encodes the specified ResponseEcho message. Does not implicitly {@link tendermint.abci.types.ResponseEcho.verify|verify} messages. + * @param m ResponseEcho message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseEcho, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseEcho message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseEcho + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseEcho; + } + + /** Properties of a ResponseFlush. */ + interface IResponseFlush {} + + /** Represents a ResponseFlush. */ + class ResponseFlush implements IResponseFlush { + /** + * Constructs a new ResponseFlush. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseFlush); + + /** + * Creates a new ResponseFlush instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseFlush instance + */ + public static create( + properties?: tendermint.abci.types.IResponseFlush, + ): tendermint.abci.types.ResponseFlush; + + /** + * Encodes the specified ResponseFlush message. Does not implicitly {@link tendermint.abci.types.ResponseFlush.verify|verify} messages. + * @param m ResponseFlush message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseFlush, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseFlush message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseFlush + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseFlush; + } + + /** Properties of a ResponseInfo. */ + interface IResponseInfo { + /** ResponseInfo data */ + data?: string | null; + + /** ResponseInfo version */ + version?: string | null; + + /** ResponseInfo appVersion */ + appVersion?: number | Long | null; + + /** ResponseInfo lastBlockHeight */ + lastBlockHeight?: number | Long | null; + + /** ResponseInfo lastBlockAppHash */ + lastBlockAppHash?: Uint8Array | null; + } + + /** Represents a ResponseInfo. */ + class ResponseInfo implements IResponseInfo { + /** + * Constructs a new ResponseInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseInfo); + + /** ResponseInfo data. */ + public data: string; + + /** ResponseInfo version. */ + public version: string; + + /** ResponseInfo appVersion. */ + public appVersion: number | Long; + + /** ResponseInfo lastBlockHeight. */ + public lastBlockHeight: number | Long; + + /** ResponseInfo lastBlockAppHash. */ + public lastBlockAppHash: Uint8Array; + + /** + * Creates a new ResponseInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInfo instance + */ + public static create( + properties?: tendermint.abci.types.IResponseInfo, + ): tendermint.abci.types.ResponseInfo; + + /** + * Encodes the specified ResponseInfo message. Does not implicitly {@link tendermint.abci.types.ResponseInfo.verify|verify} messages. + * @param m ResponseInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseInfo; + } + + /** Properties of a ResponseSetOption. */ + interface IResponseSetOption { + /** ResponseSetOption code */ + code?: number | null; + + /** ResponseSetOption log */ + log?: string | null; + + /** ResponseSetOption info */ + info?: string | null; + } + + /** Represents a ResponseSetOption. */ + class ResponseSetOption implements IResponseSetOption { + /** + * Constructs a new ResponseSetOption. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseSetOption); + + /** ResponseSetOption code. */ + public code: number; + + /** ResponseSetOption log. */ + public log: string; + + /** ResponseSetOption info. */ + public info: string; + + /** + * Creates a new ResponseSetOption instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseSetOption instance + */ + public static create( + properties?: tendermint.abci.types.IResponseSetOption, + ): tendermint.abci.types.ResponseSetOption; + + /** + * Encodes the specified ResponseSetOption message. Does not implicitly {@link tendermint.abci.types.ResponseSetOption.verify|verify} messages. + * @param m ResponseSetOption message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseSetOption, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseSetOption message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseSetOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseSetOption; + } + + /** Properties of a ResponseInitChain. */ + interface IResponseInitChain { + /** ResponseInitChain consensusParams */ + consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseInitChain validators */ + validators?: tendermint.abci.types.IValidatorUpdate[] | null; + } + + /** Represents a ResponseInitChain. */ + class ResponseInitChain implements IResponseInitChain { + /** + * Constructs a new ResponseInitChain. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseInitChain); + + /** ResponseInitChain consensusParams. */ + public consensusParams?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseInitChain validators. */ + public validators: tendermint.abci.types.IValidatorUpdate[]; + + /** + * Creates a new ResponseInitChain instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseInitChain instance + */ + public static create( + properties?: tendermint.abci.types.IResponseInitChain, + ): tendermint.abci.types.ResponseInitChain; + + /** + * Encodes the specified ResponseInitChain message. Does not implicitly {@link tendermint.abci.types.ResponseInitChain.verify|verify} messages. + * @param m ResponseInitChain message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseInitChain, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseInitChain message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseInitChain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseInitChain; + } + + /** Properties of a ResponseQuery. */ + interface IResponseQuery { + /** ResponseQuery code */ + code?: number | null; + + /** ResponseQuery log */ + log?: string | null; + + /** ResponseQuery info */ + info?: string | null; + + /** ResponseQuery index */ + index?: number | Long | null; + + /** ResponseQuery key */ + key?: Uint8Array | null; + + /** ResponseQuery value */ + value?: Uint8Array | null; + + /** ResponseQuery proof */ + proof?: tendermint.crypto.merkle.IProof | null; + + /** ResponseQuery height */ + height?: number | Long | null; + + /** ResponseQuery codespace */ + codespace?: string | null; + } + + /** Represents a ResponseQuery. */ + class ResponseQuery implements IResponseQuery { + /** + * Constructs a new ResponseQuery. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseQuery); + + /** ResponseQuery code. */ + public code: number; + + /** ResponseQuery log. */ + public log: string; + + /** ResponseQuery info. */ + public info: string; + + /** ResponseQuery index. */ + public index: number | Long; + + /** ResponseQuery key. */ + public key: Uint8Array; + + /** ResponseQuery value. */ + public value: Uint8Array; + + /** ResponseQuery proof. */ + public proof?: tendermint.crypto.merkle.IProof | null; + + /** ResponseQuery height. */ + public height: number | Long; + + /** ResponseQuery codespace. */ + public codespace: string; + + /** + * Creates a new ResponseQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseQuery instance + */ + public static create( + properties?: tendermint.abci.types.IResponseQuery, + ): tendermint.abci.types.ResponseQuery; + + /** + * Encodes the specified ResponseQuery message. Does not implicitly {@link tendermint.abci.types.ResponseQuery.verify|verify} messages. + * @param m ResponseQuery message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IResponseQuery, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResponseQuery message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseQuery; + } + + /** Properties of a ResponseBeginBlock. */ + interface IResponseBeginBlock { + /** ResponseBeginBlock events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a ResponseBeginBlock. */ + class ResponseBeginBlock implements IResponseBeginBlock { + /** + * Constructs a new ResponseBeginBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseBeginBlock); + + /** ResponseBeginBlock events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new ResponseBeginBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseBeginBlock instance + */ + public static create( + properties?: tendermint.abci.types.IResponseBeginBlock, + ): tendermint.abci.types.ResponseBeginBlock; + + /** + * Encodes the specified ResponseBeginBlock message. Does not implicitly {@link tendermint.abci.types.ResponseBeginBlock.verify|verify} messages. + * @param m ResponseBeginBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseBeginBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseBeginBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseBeginBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseBeginBlock; + } + + /** Properties of a ResponseCheckTx. */ + interface IResponseCheckTx { + /** ResponseCheckTx code */ + code?: number | null; + + /** ResponseCheckTx data */ + data?: Uint8Array | null; + + /** ResponseCheckTx log */ + log?: string | null; + + /** ResponseCheckTx info */ + info?: string | null; + + /** ResponseCheckTx gasWanted */ + gasWanted?: number | Long | null; + + /** ResponseCheckTx gasUsed */ + gasUsed?: number | Long | null; + + /** ResponseCheckTx events */ + events?: tendermint.abci.types.IEvent[] | null; + + /** ResponseCheckTx codespace */ + codespace?: string | null; + } + + /** Represents a ResponseCheckTx. */ + class ResponseCheckTx implements IResponseCheckTx { + /** + * Constructs a new ResponseCheckTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseCheckTx); + + /** ResponseCheckTx code. */ + public code: number; + + /** ResponseCheckTx data. */ + public data: Uint8Array; + + /** ResponseCheckTx log. */ + public log: string; + + /** ResponseCheckTx info. */ + public info: string; + + /** ResponseCheckTx gasWanted. */ + public gasWanted: number | Long; + + /** ResponseCheckTx gasUsed. */ + public gasUsed: number | Long; + + /** ResponseCheckTx events. */ + public events: tendermint.abci.types.IEvent[]; + + /** ResponseCheckTx codespace. */ + public codespace: string; + + /** + * Creates a new ResponseCheckTx instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCheckTx instance + */ + public static create( + properties?: tendermint.abci.types.IResponseCheckTx, + ): tendermint.abci.types.ResponseCheckTx; + + /** + * Encodes the specified ResponseCheckTx message. Does not implicitly {@link tendermint.abci.types.ResponseCheckTx.verify|verify} messages. + * @param m ResponseCheckTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseCheckTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseCheckTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseCheckTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseCheckTx; + } + + /** Properties of a ResponseDeliverTx. */ + interface IResponseDeliverTx { + /** ResponseDeliverTx code */ + code?: number | null; + + /** ResponseDeliverTx data */ + data?: Uint8Array | null; + + /** ResponseDeliverTx log */ + log?: string | null; + + /** ResponseDeliverTx info */ + info?: string | null; + + /** ResponseDeliverTx gasWanted */ + gasWanted?: number | Long | null; + + /** ResponseDeliverTx gasUsed */ + gasUsed?: number | Long | null; + + /** ResponseDeliverTx events */ + events?: tendermint.abci.types.IEvent[] | null; + + /** ResponseDeliverTx codespace */ + codespace?: string | null; + } + + /** Represents a ResponseDeliverTx. */ + class ResponseDeliverTx implements IResponseDeliverTx { + /** + * Constructs a new ResponseDeliverTx. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseDeliverTx); + + /** ResponseDeliverTx code. */ + public code: number; + + /** ResponseDeliverTx data. */ + public data: Uint8Array; + + /** ResponseDeliverTx log. */ + public log: string; + + /** ResponseDeliverTx info. */ + public info: string; + + /** ResponseDeliverTx gasWanted. */ + public gasWanted: number | Long; + + /** ResponseDeliverTx gasUsed. */ + public gasUsed: number | Long; + + /** ResponseDeliverTx events. */ + public events: tendermint.abci.types.IEvent[]; + + /** ResponseDeliverTx codespace. */ + public codespace: string; + + /** + * Creates a new ResponseDeliverTx instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseDeliverTx instance + */ + public static create( + properties?: tendermint.abci.types.IResponseDeliverTx, + ): tendermint.abci.types.ResponseDeliverTx; + + /** + * Encodes the specified ResponseDeliverTx message. Does not implicitly {@link tendermint.abci.types.ResponseDeliverTx.verify|verify} messages. + * @param m ResponseDeliverTx message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseDeliverTx, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseDeliverTx message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseDeliverTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseDeliverTx; + } + + /** Properties of a ResponseEndBlock. */ + interface IResponseEndBlock { + /** ResponseEndBlock validatorUpdates */ + validatorUpdates?: tendermint.abci.types.IValidatorUpdate[] | null; + + /** ResponseEndBlock consensusParamUpdates */ + consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseEndBlock events */ + events?: tendermint.abci.types.IEvent[] | null; + } + + /** Represents a ResponseEndBlock. */ + class ResponseEndBlock implements IResponseEndBlock { + /** + * Constructs a new ResponseEndBlock. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseEndBlock); + + /** ResponseEndBlock validatorUpdates. */ + public validatorUpdates: tendermint.abci.types.IValidatorUpdate[]; + + /** ResponseEndBlock consensusParamUpdates. */ + public consensusParamUpdates?: tendermint.abci.types.IConsensusParams | null; + + /** ResponseEndBlock events. */ + public events: tendermint.abci.types.IEvent[]; + + /** + * Creates a new ResponseEndBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseEndBlock instance + */ + public static create( + properties?: tendermint.abci.types.IResponseEndBlock, + ): tendermint.abci.types.ResponseEndBlock; + + /** + * Encodes the specified ResponseEndBlock message. Does not implicitly {@link tendermint.abci.types.ResponseEndBlock.verify|verify} messages. + * @param m ResponseEndBlock message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseEndBlock, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseEndBlock message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseEndBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseEndBlock; + } + + /** Properties of a ResponseCommit. */ + interface IResponseCommit { + /** ResponseCommit data */ + data?: Uint8Array | null; + } + + /** Represents a ResponseCommit. */ + class ResponseCommit implements IResponseCommit { + /** + * Constructs a new ResponseCommit. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IResponseCommit); + + /** ResponseCommit data. */ + public data: Uint8Array; + + /** + * Creates a new ResponseCommit instance using the specified properties. + * @param [properties] Properties to set + * @returns ResponseCommit instance + */ + public static create( + properties?: tendermint.abci.types.IResponseCommit, + ): tendermint.abci.types.ResponseCommit; + + /** + * Encodes the specified ResponseCommit message. Does not implicitly {@link tendermint.abci.types.ResponseCommit.verify|verify} messages. + * @param m ResponseCommit message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IResponseCommit, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ResponseCommit message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ResponseCommit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ResponseCommit; + } + + /** Properties of a ConsensusParams. */ + interface IConsensusParams { + /** ConsensusParams block */ + block?: tendermint.abci.types.IBlockParams | null; + + /** ConsensusParams evidence */ + evidence?: tendermint.abci.types.IEvidenceParams | null; + + /** ConsensusParams validator */ + validator?: tendermint.abci.types.IValidatorParams | null; + } + + /** Represents a ConsensusParams. */ + class ConsensusParams implements IConsensusParams { + /** + * Constructs a new ConsensusParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IConsensusParams); + + /** ConsensusParams block. */ + public block?: tendermint.abci.types.IBlockParams | null; + + /** ConsensusParams evidence. */ + public evidence?: tendermint.abci.types.IEvidenceParams | null; + + /** ConsensusParams validator. */ + public validator?: tendermint.abci.types.IValidatorParams | null; + + /** + * Creates a new ConsensusParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsensusParams instance + */ + public static create( + properties?: tendermint.abci.types.IConsensusParams, + ): tendermint.abci.types.ConsensusParams; + + /** + * Encodes the specified ConsensusParams message. Does not implicitly {@link tendermint.abci.types.ConsensusParams.verify|verify} messages. + * @param m ConsensusParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IConsensusParams, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ConsensusParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ConsensusParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ConsensusParams; + } + + /** Properties of a BlockParams. */ + interface IBlockParams { + /** BlockParams maxBytes */ + maxBytes?: number | Long | null; + + /** BlockParams maxGas */ + maxGas?: number | Long | null; + } + + /** Represents a BlockParams. */ + class BlockParams implements IBlockParams { + /** + * Constructs a new BlockParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IBlockParams); + + /** BlockParams maxBytes. */ + public maxBytes: number | Long; + + /** BlockParams maxGas. */ + public maxGas: number | Long; + + /** + * Creates a new BlockParams instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockParams instance + */ + public static create( + properties?: tendermint.abci.types.IBlockParams, + ): tendermint.abci.types.BlockParams; + + /** + * Encodes the specified BlockParams message. Does not implicitly {@link tendermint.abci.types.BlockParams.verify|verify} messages. + * @param m BlockParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IBlockParams, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlockParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns BlockParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockParams; + } + + /** Properties of an EvidenceParams. */ + interface IEvidenceParams { + /** EvidenceParams maxAgeNumBlocks */ + maxAgeNumBlocks?: number | Long | null; + + /** EvidenceParams maxAgeDuration */ + maxAgeDuration?: google.protobuf.IDuration | null; + } + + /** Represents an EvidenceParams. */ + class EvidenceParams implements IEvidenceParams { + /** + * Constructs a new EvidenceParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IEvidenceParams); + + /** EvidenceParams maxAgeNumBlocks. */ + public maxAgeNumBlocks: number | Long; + + /** EvidenceParams maxAgeDuration. */ + public maxAgeDuration?: google.protobuf.IDuration | null; + + /** + * Creates a new EvidenceParams instance using the specified properties. + * @param [properties] Properties to set + * @returns EvidenceParams instance + */ + public static create( + properties?: tendermint.abci.types.IEvidenceParams, + ): tendermint.abci.types.EvidenceParams; + + /** + * Encodes the specified EvidenceParams message. Does not implicitly {@link tendermint.abci.types.EvidenceParams.verify|verify} messages. + * @param m EvidenceParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IEvidenceParams, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes an EvidenceParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns EvidenceParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.EvidenceParams; + } + + /** Properties of a ValidatorParams. */ + interface IValidatorParams { + /** ValidatorParams pubKeyTypes */ + pubKeyTypes?: string[] | null; + } + + /** Represents a ValidatorParams. */ + class ValidatorParams implements IValidatorParams { + /** + * Constructs a new ValidatorParams. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IValidatorParams); + + /** ValidatorParams pubKeyTypes. */ + public pubKeyTypes: string[]; + + /** + * Creates a new ValidatorParams instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorParams instance + */ + public static create( + properties?: tendermint.abci.types.IValidatorParams, + ): tendermint.abci.types.ValidatorParams; + + /** + * Encodes the specified ValidatorParams message. Does not implicitly {@link tendermint.abci.types.ValidatorParams.verify|verify} messages. + * @param m ValidatorParams message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IValidatorParams, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorParams message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValidatorParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ValidatorParams; + } + + /** Properties of a LastCommitInfo. */ + interface ILastCommitInfo { + /** LastCommitInfo round */ + round?: number | null; + + /** LastCommitInfo votes */ + votes?: tendermint.abci.types.IVoteInfo[] | null; + } + + /** Represents a LastCommitInfo. */ + class LastCommitInfo implements ILastCommitInfo { + /** + * Constructs a new LastCommitInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.ILastCommitInfo); + + /** LastCommitInfo round. */ + public round: number; + + /** LastCommitInfo votes. */ + public votes: tendermint.abci.types.IVoteInfo[]; + + /** + * Creates a new LastCommitInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns LastCommitInfo instance + */ + public static create( + properties?: tendermint.abci.types.ILastCommitInfo, + ): tendermint.abci.types.LastCommitInfo; + + /** + * Encodes the specified LastCommitInfo message. Does not implicitly {@link tendermint.abci.types.LastCommitInfo.verify|verify} messages. + * @param m LastCommitInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.ILastCommitInfo, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a LastCommitInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns LastCommitInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.LastCommitInfo; + } + + /** Properties of an Event. */ + interface IEvent { + /** Event type */ + type?: string | null; + + /** Event attributes */ + attributes?: tendermint.libs.kv.IPair[] | null; + } + + /** Represents an Event. */ + class Event implements IEvent { + /** + * Constructs a new Event. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IEvent); + + /** Event type. */ + public type: string; + + /** Event attributes. */ + public attributes: tendermint.libs.kv.IPair[]; + + /** + * Creates a new Event instance using the specified properties. + * @param [properties] Properties to set + * @returns Event instance + */ + public static create(properties?: tendermint.abci.types.IEvent): tendermint.abci.types.Event; + + /** + * Encodes the specified Event message. Does not implicitly {@link tendermint.abci.types.Event.verify|verify} messages. + * @param m Event message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IEvent, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Event message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Event; + } + + /** Properties of a Header. */ + interface IHeader { + /** Header version */ + version?: tendermint.abci.types.IVersion | null; + + /** Header chainId */ + chainId?: string | null; + + /** Header height */ + height?: number | Long | null; + + /** Header time */ + time?: google.protobuf.ITimestamp | null; + + /** Header lastBlockId */ + lastBlockId?: tendermint.abci.types.IBlockID | null; + + /** Header lastCommitHash */ + lastCommitHash?: Uint8Array | null; + + /** Header dataHash */ + dataHash?: Uint8Array | null; + + /** Header validatorsHash */ + validatorsHash?: Uint8Array | null; + + /** Header nextValidatorsHash */ + nextValidatorsHash?: Uint8Array | null; + + /** Header consensusHash */ + consensusHash?: Uint8Array | null; + + /** Header appHash */ + appHash?: Uint8Array | null; + + /** Header lastResultsHash */ + lastResultsHash?: Uint8Array | null; + + /** Header evidenceHash */ + evidenceHash?: Uint8Array | null; + + /** Header proposerAddress */ + proposerAddress?: Uint8Array | null; + } + + /** Represents a Header. */ + class Header implements IHeader { + /** + * Constructs a new Header. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IHeader); + + /** Header version. */ + public version?: tendermint.abci.types.IVersion | null; + + /** Header chainId. */ + public chainId: string; + + /** Header height. */ + public height: number | Long; + + /** Header time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Header lastBlockId. */ + public lastBlockId?: tendermint.abci.types.IBlockID | null; + + /** Header lastCommitHash. */ + public lastCommitHash: Uint8Array; + + /** Header dataHash. */ + public dataHash: Uint8Array; + + /** Header validatorsHash. */ + public validatorsHash: Uint8Array; + + /** Header nextValidatorsHash. */ + public nextValidatorsHash: Uint8Array; + + /** Header consensusHash. */ + public consensusHash: Uint8Array; + + /** Header appHash. */ + public appHash: Uint8Array; + + /** Header lastResultsHash. */ + public lastResultsHash: Uint8Array; + + /** Header evidenceHash. */ + public evidenceHash: Uint8Array; + + /** Header proposerAddress. */ + public proposerAddress: Uint8Array; + + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: tendermint.abci.types.IHeader): tendermint.abci.types.Header; + + /** + * Encodes the specified Header message. Does not implicitly {@link tendermint.abci.types.Header.verify|verify} messages. + * @param m Header message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IHeader, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Header message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Header; + } + + /** Properties of a Version. */ + interface IVersion { + /** Version Block */ + Block?: number | Long | null; + + /** Version App */ + App?: number | Long | null; + } + + /** Represents a Version. */ + class Version implements IVersion { + /** + * Constructs a new Version. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IVersion); + + /** Version Block. */ + public Block: number | Long; + + /** Version App. */ + public App: number | Long; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: tendermint.abci.types.IVersion): tendermint.abci.types.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link tendermint.abci.types.Version.verify|verify} messages. + * @param m Version message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IVersion, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Version; + } + + /** Properties of a BlockID. */ + interface IBlockID { + /** BlockID hash */ + hash?: Uint8Array | null; + + /** BlockID partsHeader */ + partsHeader?: tendermint.abci.types.IPartSetHeader | null; + } + + /** Represents a BlockID. */ + class BlockID implements IBlockID { + /** + * Constructs a new BlockID. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IBlockID); + + /** BlockID hash. */ + public hash: Uint8Array; + + /** BlockID partsHeader. */ + public partsHeader?: tendermint.abci.types.IPartSetHeader | null; + + /** + * Creates a new BlockID instance using the specified properties. + * @param [properties] Properties to set + * @returns BlockID instance + */ + public static create(properties?: tendermint.abci.types.IBlockID): tendermint.abci.types.BlockID; + + /** + * Encodes the specified BlockID message. Does not implicitly {@link tendermint.abci.types.BlockID.verify|verify} messages. + * @param m BlockID message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IBlockID, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlockID message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns BlockID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.BlockID; + } + + /** Properties of a PartSetHeader. */ + interface IPartSetHeader { + /** PartSetHeader total */ + total?: number | null; + + /** PartSetHeader hash */ + hash?: Uint8Array | null; + } + + /** Represents a PartSetHeader. */ + class PartSetHeader implements IPartSetHeader { + /** + * Constructs a new PartSetHeader. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IPartSetHeader); + + /** PartSetHeader total. */ + public total: number; + + /** PartSetHeader hash. */ + public hash: Uint8Array; + + /** + * Creates a new PartSetHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns PartSetHeader instance + */ + public static create( + properties?: tendermint.abci.types.IPartSetHeader, + ): tendermint.abci.types.PartSetHeader; + + /** + * Encodes the specified PartSetHeader message. Does not implicitly {@link tendermint.abci.types.PartSetHeader.verify|verify} messages. + * @param m PartSetHeader message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IPartSetHeader, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PartSetHeader message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PartSetHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.PartSetHeader; + } + + /** Properties of a Validator. */ + interface IValidator { + /** Validator address */ + address?: Uint8Array | null; + + /** Validator power */ + power?: number | Long | null; + } + + /** Represents a Validator. */ + class Validator implements IValidator { + /** + * Constructs a new Validator. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IValidator); + + /** Validator address. */ + public address: Uint8Array; + + /** Validator power. */ + public power: number | Long; + + /** + * Creates a new Validator instance using the specified properties. + * @param [properties] Properties to set + * @returns Validator instance + */ + public static create(properties?: tendermint.abci.types.IValidator): tendermint.abci.types.Validator; + + /** + * Encodes the specified Validator message. Does not implicitly {@link tendermint.abci.types.Validator.verify|verify} messages. + * @param m Validator message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IValidator, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Validator message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Validator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Validator; + } + + /** Properties of a ValidatorUpdate. */ + interface IValidatorUpdate { + /** ValidatorUpdate pubKey */ + pubKey?: tendermint.abci.types.IPubKey | null; + + /** ValidatorUpdate power */ + power?: number | Long | null; + } + + /** Represents a ValidatorUpdate. */ + class ValidatorUpdate implements IValidatorUpdate { + /** + * Constructs a new ValidatorUpdate. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IValidatorUpdate); + + /** ValidatorUpdate pubKey. */ + public pubKey?: tendermint.abci.types.IPubKey | null; + + /** ValidatorUpdate power. */ + public power: number | Long; + + /** + * Creates a new ValidatorUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidatorUpdate instance + */ + public static create( + properties?: tendermint.abci.types.IValidatorUpdate, + ): tendermint.abci.types.ValidatorUpdate; + + /** + * Encodes the specified ValidatorUpdate message. Does not implicitly {@link tendermint.abci.types.ValidatorUpdate.verify|verify} messages. + * @param m ValidatorUpdate message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode( + m: tendermint.abci.types.IValidatorUpdate, + w?: $protobuf.Writer, + ): $protobuf.Writer; + + /** + * Decodes a ValidatorUpdate message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ValidatorUpdate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode( + r: $protobuf.Reader | Uint8Array, + l?: number, + ): tendermint.abci.types.ValidatorUpdate; + } + + /** Properties of a VoteInfo. */ + interface IVoteInfo { + /** VoteInfo validator */ + validator?: tendermint.abci.types.IValidator | null; + + /** VoteInfo signedLastBlock */ + signedLastBlock?: boolean | null; + } + + /** Represents a VoteInfo. */ + class VoteInfo implements IVoteInfo { + /** + * Constructs a new VoteInfo. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IVoteInfo); + + /** VoteInfo validator. */ + public validator?: tendermint.abci.types.IValidator | null; + + /** VoteInfo signedLastBlock. */ + public signedLastBlock: boolean; + + /** + * Creates a new VoteInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns VoteInfo instance + */ + public static create(properties?: tendermint.abci.types.IVoteInfo): tendermint.abci.types.VoteInfo; + + /** + * Encodes the specified VoteInfo message. Does not implicitly {@link tendermint.abci.types.VoteInfo.verify|verify} messages. + * @param m VoteInfo message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IVoteInfo, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VoteInfo message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns VoteInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.VoteInfo; + } + + /** Properties of a PubKey. */ + interface IPubKey { + /** PubKey type */ + type?: string | null; + + /** PubKey data */ + data?: Uint8Array | null; + } + + /** Represents a PubKey. */ + class PubKey implements IPubKey { + /** + * Constructs a new PubKey. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IPubKey); + + /** PubKey type. */ + public type: string; + + /** PubKey data. */ + public data: Uint8Array; + + /** + * Creates a new PubKey instance using the specified properties. + * @param [properties] Properties to set + * @returns PubKey instance + */ + public static create(properties?: tendermint.abci.types.IPubKey): tendermint.abci.types.PubKey; + + /** + * Encodes the specified PubKey message. Does not implicitly {@link tendermint.abci.types.PubKey.verify|verify} messages. + * @param m PubKey message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IPubKey, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PubKey message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns PubKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.PubKey; + } + + /** Properties of an Evidence. */ + interface IEvidence { + /** Evidence type */ + type?: string | null; + + /** Evidence validator */ + validator?: tendermint.abci.types.IValidator | null; + + /** Evidence height */ + height?: number | Long | null; + + /** Evidence time */ + time?: google.protobuf.ITimestamp | null; + + /** Evidence totalVotingPower */ + totalVotingPower?: number | Long | null; + } + + /** Represents an Evidence. */ + class Evidence implements IEvidence { + /** + * Constructs a new Evidence. + * @param [p] Properties to set + */ + constructor(p?: tendermint.abci.types.IEvidence); + + /** Evidence type. */ + public type: string; + + /** Evidence validator. */ + public validator?: tendermint.abci.types.IValidator | null; + + /** Evidence height. */ + public height: number | Long; + + /** Evidence time. */ + public time?: google.protobuf.ITimestamp | null; + + /** Evidence totalVotingPower. */ + public totalVotingPower: number | Long; + + /** + * Creates a new Evidence instance using the specified properties. + * @param [properties] Properties to set + * @returns Evidence instance + */ + public static create(properties?: tendermint.abci.types.IEvidence): tendermint.abci.types.Evidence; + + /** + * Encodes the specified Evidence message. Does not implicitly {@link tendermint.abci.types.Evidence.verify|verify} messages. + * @param m Evidence message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.abci.types.IEvidence, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Evidence message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Evidence + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.abci.types.Evidence; + } + + /** Represents a ABCIApplication */ + class ABCIApplication extends $protobuf.rpc.Service { + /** + * Constructs a new ABCIApplication service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ABCIApplication service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create( + rpcImpl: $protobuf.RPCImpl, + requestDelimited?: boolean, + responseDelimited?: boolean, + ): ABCIApplication; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEcho + */ + public echo( + request: tendermint.abci.types.IRequestEcho, + callback: tendermint.abci.types.ABCIApplication.EchoCallback, + ): void; + + /** + * Calls Echo. + * @param request RequestEcho message or plain object + * @returns Promise + */ + public echo(request: tendermint.abci.types.IRequestEcho): Promise; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseFlush + */ + public flush( + request: tendermint.abci.types.IRequestFlush, + callback: tendermint.abci.types.ABCIApplication.FlushCallback, + ): void; + + /** + * Calls Flush. + * @param request RequestFlush message or plain object + * @returns Promise + */ + public flush( + request: tendermint.abci.types.IRequestFlush, + ): Promise; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInfo + */ + public info( + request: tendermint.abci.types.IRequestInfo, + callback: tendermint.abci.types.ABCIApplication.InfoCallback, + ): void; + + /** + * Calls Info. + * @param request RequestInfo message or plain object + * @returns Promise + */ + public info(request: tendermint.abci.types.IRequestInfo): Promise; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseSetOption + */ + public setOption( + request: tendermint.abci.types.IRequestSetOption, + callback: tendermint.abci.types.ABCIApplication.SetOptionCallback, + ): void; + + /** + * Calls SetOption. + * @param request RequestSetOption message or plain object + * @returns Promise + */ + public setOption( + request: tendermint.abci.types.IRequestSetOption, + ): Promise; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseDeliverTx + */ + public deliverTx( + request: tendermint.abci.types.IRequestDeliverTx, + callback: tendermint.abci.types.ABCIApplication.DeliverTxCallback, + ): void; + + /** + * Calls DeliverTx. + * @param request RequestDeliverTx message or plain object + * @returns Promise + */ + public deliverTx( + request: tendermint.abci.types.IRequestDeliverTx, + ): Promise; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCheckTx + */ + public checkTx( + request: tendermint.abci.types.IRequestCheckTx, + callback: tendermint.abci.types.ABCIApplication.CheckTxCallback, + ): void; + + /** + * Calls CheckTx. + * @param request RequestCheckTx message or plain object + * @returns Promise + */ + public checkTx( + request: tendermint.abci.types.IRequestCheckTx, + ): Promise; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseQuery + */ + public query( + request: tendermint.abci.types.IRequestQuery, + callback: tendermint.abci.types.ABCIApplication.QueryCallback, + ): void; + + /** + * Calls Query. + * @param request RequestQuery message or plain object + * @returns Promise + */ + public query( + request: tendermint.abci.types.IRequestQuery, + ): Promise; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseCommit + */ + public commit( + request: tendermint.abci.types.IRequestCommit, + callback: tendermint.abci.types.ABCIApplication.CommitCallback, + ): void; + + /** + * Calls Commit. + * @param request RequestCommit message or plain object + * @returns Promise + */ + public commit( + request: tendermint.abci.types.IRequestCommit, + ): Promise; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseInitChain + */ + public initChain( + request: tendermint.abci.types.IRequestInitChain, + callback: tendermint.abci.types.ABCIApplication.InitChainCallback, + ): void; + + /** + * Calls InitChain. + * @param request RequestInitChain message or plain object + * @returns Promise + */ + public initChain( + request: tendermint.abci.types.IRequestInitChain, + ): Promise; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseBeginBlock + */ + public beginBlock( + request: tendermint.abci.types.IRequestBeginBlock, + callback: tendermint.abci.types.ABCIApplication.BeginBlockCallback, + ): void; + + /** + * Calls BeginBlock. + * @param request RequestBeginBlock message or plain object + * @returns Promise + */ + public beginBlock( + request: tendermint.abci.types.IRequestBeginBlock, + ): Promise; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @param callback Node-style callback called with the error, if any, and ResponseEndBlock + */ + public endBlock( + request: tendermint.abci.types.IRequestEndBlock, + callback: tendermint.abci.types.ABCIApplication.EndBlockCallback, + ): void; + + /** + * Calls EndBlock. + * @param request RequestEndBlock message or plain object + * @returns Promise + */ + public endBlock( + request: tendermint.abci.types.IRequestEndBlock, + ): Promise; + } + + namespace ABCIApplication { + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#echo}. + * @param error Error, if any + * @param [response] ResponseEcho + */ + type EchoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseEcho) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#flush}. + * @param error Error, if any + * @param [response] ResponseFlush + */ + type FlushCallback = (error: Error | null, response?: tendermint.abci.types.ResponseFlush) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#info}. + * @param error Error, if any + * @param [response] ResponseInfo + */ + type InfoCallback = (error: Error | null, response?: tendermint.abci.types.ResponseInfo) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#setOption}. + * @param error Error, if any + * @param [response] ResponseSetOption + */ + type SetOptionCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseSetOption, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#deliverTx}. + * @param error Error, if any + * @param [response] ResponseDeliverTx + */ + type DeliverTxCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseDeliverTx, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#checkTx}. + * @param error Error, if any + * @param [response] ResponseCheckTx + */ + type CheckTxCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseCheckTx, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#query}. + * @param error Error, if any + * @param [response] ResponseQuery + */ + type QueryCallback = (error: Error | null, response?: tendermint.abci.types.ResponseQuery) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#commit}. + * @param error Error, if any + * @param [response] ResponseCommit + */ + type CommitCallback = (error: Error | null, response?: tendermint.abci.types.ResponseCommit) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#initChain}. + * @param error Error, if any + * @param [response] ResponseInitChain + */ + type InitChainCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseInitChain, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#beginBlock}. + * @param error Error, if any + * @param [response] ResponseBeginBlock + */ + type BeginBlockCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseBeginBlock, + ) => void; + + /** + * Callback as used by {@link tendermint.abci.types.ABCIApplication#endBlock}. + * @param error Error, if any + * @param [response] ResponseEndBlock + */ + type EndBlockCallback = ( + error: Error | null, + response?: tendermint.abci.types.ResponseEndBlock, + ) => void; + } + } + } + + /** Namespace crypto. */ + namespace crypto { + /** Namespace merkle. */ + namespace merkle { + /** Properties of a ProofOp. */ + interface IProofOp { + /** ProofOp type */ + type?: string | null; + + /** ProofOp key */ + key?: Uint8Array | null; + + /** ProofOp data */ + data?: Uint8Array | null; + } + + /** Represents a ProofOp. */ + class ProofOp implements IProofOp { + /** + * Constructs a new ProofOp. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.merkle.IProofOp); + + /** ProofOp type. */ + public type: string; + + /** ProofOp key. */ + public key: Uint8Array; + + /** ProofOp data. */ + public data: Uint8Array; + + /** + * Creates a new ProofOp instance using the specified properties. + * @param [properties] Properties to set + * @returns ProofOp instance + */ + public static create( + properties?: tendermint.crypto.merkle.IProofOp, + ): tendermint.crypto.merkle.ProofOp; + + /** + * Encodes the specified ProofOp message. Does not implicitly {@link tendermint.crypto.merkle.ProofOp.verify|verify} messages. + * @param m ProofOp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.merkle.IProofOp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProofOp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns ProofOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.ProofOp; + } + + /** Properties of a Proof. */ + interface IProof { + /** Proof ops */ + ops?: tendermint.crypto.merkle.IProofOp[] | null; + } + + /** Represents a Proof. */ + class Proof implements IProof { + /** + * Constructs a new Proof. + * @param [p] Properties to set + */ + constructor(p?: tendermint.crypto.merkle.IProof); + + /** Proof ops. */ + public ops: tendermint.crypto.merkle.IProofOp[]; + + /** + * Creates a new Proof instance using the specified properties. + * @param [properties] Properties to set + * @returns Proof instance + */ + public static create(properties?: tendermint.crypto.merkle.IProof): tendermint.crypto.merkle.Proof; + + /** + * Encodes the specified Proof message. Does not implicitly {@link tendermint.crypto.merkle.Proof.verify|verify} messages. + * @param m Proof message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.crypto.merkle.IProof, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Proof message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Proof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.crypto.merkle.Proof; + } + } + } + + /** Namespace libs. */ + namespace libs { + /** Namespace kv. */ + namespace kv { + /** Properties of a Pair. */ + interface IPair { + /** Pair key */ + key?: Uint8Array | null; + + /** Pair value */ + value?: Uint8Array | null; + } + + /** Represents a Pair. */ + class Pair implements IPair { + /** + * Constructs a new Pair. + * @param [p] Properties to set + */ + constructor(p?: tendermint.libs.kv.IPair); + + /** Pair key. */ + public key: Uint8Array; + + /** Pair value. */ + public value: Uint8Array; + + /** + * Creates a new Pair instance using the specified properties. + * @param [properties] Properties to set + * @returns Pair instance + */ + public static create(properties?: tendermint.libs.kv.IPair): tendermint.libs.kv.Pair; + + /** + * Encodes the specified Pair message. Does not implicitly {@link tendermint.libs.kv.Pair.verify|verify} messages. + * @param m Pair message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.libs.kv.IPair, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Pair message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.Pair; + } + + /** Properties of a KI64Pair. */ + interface IKI64Pair { + /** KI64Pair key */ + key?: Uint8Array | null; + + /** KI64Pair value */ + value?: number | Long | null; + } + + /** Represents a KI64Pair. */ + class KI64Pair implements IKI64Pair { + /** + * Constructs a new KI64Pair. + * @param [p] Properties to set + */ + constructor(p?: tendermint.libs.kv.IKI64Pair); + + /** KI64Pair key. */ + public key: Uint8Array; + + /** KI64Pair value. */ + public value: number | Long; + + /** + * Creates a new KI64Pair instance using the specified properties. + * @param [properties] Properties to set + * @returns KI64Pair instance + */ + public static create(properties?: tendermint.libs.kv.IKI64Pair): tendermint.libs.kv.KI64Pair; + + /** + * Encodes the specified KI64Pair message. Does not implicitly {@link tendermint.libs.kv.KI64Pair.verify|verify} messages. + * @param m KI64Pair message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: tendermint.libs.kv.IKI64Pair, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KI64Pair message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns KI64Pair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): tendermint.libs.kv.KI64Pair; + } + } + } +} + +/** Namespace google. */ +export namespace google { + /** Namespace protobuf. */ + namespace protobuf { + /** Properties of an Any. */ + interface IAny { + /** Any type_url */ + type_url?: string | null; + + /** Any value */ + value?: Uint8Array | null; + } + + /** Represents an Any. */ + class Any implements IAny { + /** + * Constructs a new Any. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param m Any message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IAny, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Any; + } + + /** Properties of a Timestamp. */ + interface ITimestamp { + /** Timestamp seconds */ + seconds?: number | Long | null; + + /** Timestamp nanos */ + nanos?: number | null; + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + /** + * Constructs a new Timestamp. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: number | Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param m Timestamp message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.ITimestamp, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Timestamp; + } + + /** Properties of a Duration. */ + interface IDuration { + /** Duration seconds */ + seconds?: number | Long | null; + + /** Duration nanos */ + nanos?: number | null; + } + + /** Represents a Duration. */ + class Duration implements IDuration { + /** + * Constructs a new Duration. + * @param [p] Properties to set + */ + constructor(p?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: number | Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param m Duration message or plain object to encode + * @param [w] Writer to encode to + * @returns Writer + */ + public static encode(m: google.protobuf.IDuration, w?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param r Reader or buffer to decode from + * @param [l] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(r: $protobuf.Reader | Uint8Array, l?: number): google.protobuf.Duration; + } + } +} diff --git a/packages/stargate/types/query/accounts.d.ts b/packages/stargate/types/query/accounts.d.ts deleted file mode 100644 index 2c888633..00000000 --- a/packages/stargate/types/query/accounts.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import { Message } from "protobufjs"; -export declare class BaseAccount extends Message { - readonly address?: Uint8Array; - readonly pub_key?: Uint8Array; - readonly account_number?: Long | number; - readonly sequence?: Long | number; -} diff --git a/packages/stargate/types/query/allbalances.d.ts b/packages/stargate/types/query/allbalances.d.ts deleted file mode 100644 index 3e418fee..00000000 --- a/packages/stargate/types/query/allbalances.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Coin } from "@cosmjs/proto-signing"; -import { Message } from "protobufjs"; -import { PageRequest, PageResponse } from "./pagination"; -export declare class QueryAllBalancesRequest extends Message { - readonly address?: Uint8Array; - readonly pagination?: PageRequest; -} -export declare class QueryAllBalancesResponse extends Message { - readonly balances?: readonly Coin[]; - readonly pagination?: PageResponse; -} diff --git a/packages/stargate/types/query/pagination.d.ts b/packages/stargate/types/query/pagination.d.ts deleted file mode 100644 index 472b205d..00000000 --- a/packages/stargate/types/query/pagination.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import { Message } from "protobufjs"; -export declare class PageRequest extends Message {} -export declare class PageResponse extends Message { - readonly nextKey?: Uint8Array; - readonly total?: Long | number; -} diff --git a/scripts/simapp/env b/scripts/simapp/env index d0fb8f7d..10050bca 100644 --- a/scripts/simapp/env +++ b/scripts/simapp/env @@ -1,4 +1,4 @@ # Choose from https://hub.docker.com/r/interchainio/simapp/tags REPOSITORY="interchainio/simapp" -VERSION="nightly-2020-08-06" +VERSION="nightly-2020-08-10" CONTAINER_NAME="simapp" diff --git a/scripts/simapp/template/.simapp/523658775ad5c8e370b310b61f5c9ff7694bb11e.address b/scripts/simapp/template/.simapp/523658775ad5c8e370b310b61f5c9ff7694bb11e.address new file mode 100644 index 00000000..ee81f454 --- /dev/null +++ b/scripts/simapp/template/.simapp/523658775ad5c8e370b310b61f5c9ff7694bb11e.address @@ -0,0 +1 @@ +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wOC0xMCAwNDozNDo1My44NTQ3MDIxICswMDAwIFVUQyBtPSswLjI5MDI1MTAwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkhvMjN3ckNGOVpfcHlCUDUifQ.Z5qsfCNObumg_vwCiJ2D9Bvdod0bbanl8KDx9Af85MkSRsxI7mNFww.kzxxnpnP-PwmHl_F.ZSjnQ-fX3PsGxnGaqnVDADzbaQbHOU7xj-EYlImsaJ8w1CijR6UuJCARmeQldWz0xFHi9qfJ08GLfN0E-Zho6nhM_-UKE5D1dyk_vqfvcVusPLte-1z2yuxyrMBHS_E2s1qehmbwjE2m3qohrDsid73Ixgb27La2iTVDL40N9C4iOV3uv0L5YI-TOBT35dhFqpYwavXR6mbE9k-sFyU-J45Y6jpNfIWlhfpVb220RFiKv6FEGVDRrMgt.BgboYLH4EliMSzGWFozUmg \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/config/genesis.json b/scripts/simapp/template/.simapp/config/genesis.json index 25474b19..f9f62284 100644 --- a/scripts/simapp/template/.simapp/config/genesis.json +++ b/scripts/simapp/template/.simapp/config/genesis.json @@ -6,7 +6,7 @@ { "type": "cosmos-sdk/BaseAccount", "value": { - "address": "cosmos1lv5lq7qjr42attsdma622whwa7v0rc2d4pful8" + "address": "cosmos12gm9sa666hywxu9nzzmp7hyl7a55hvg769w2kz" } }, { @@ -174,6 +174,19 @@ } ] }, + { + "address": "cosmos12gm9sa666hywxu9nzzmp7hyl7a55hvg769w2kz", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "10000000", + "denom": "ustake" + } + ] + }, { "address": "cosmos1vkv9sfwaak76weyamqx0flmng2vuquxqcuqukh", "coins": [ @@ -342,19 +355,6 @@ "denom": "ustake" } ] - }, - { - "address": "cosmos1lv5lq7qjr42attsdma622whwa7v0rc2d4pful8", - "coins": [ - { - "amount": "1000000000", - "denom": "ucosm" - }, - { - "amount": "10000000", - "denom": "ustake" - } - ] } ], "denom_metadata": null, @@ -407,13 +407,13 @@ } }, "public_key": { - "secp256k1": "A7bPBNzzcLkg9D6sSUIpq6qOhtWTKnJELef/5yZfr4xH" + "secp256k1": "AnFadRAdh6Fl7robHe8jywDMKSWQQjB7SlpoqGsX9Ghw" } } ] }, "body": { - "memo": "d593cd9e2f88b70d57ffc8c28768b555b9acb5fc@172.17.0.3:26656", + "memo": "b02715f69ce88507acaa543f7de0d3f7e6cd20f8@172.17.0.2:26656", "messages": [ { "@type": "/cosmos.staking.MsgCreateValidator", @@ -422,13 +422,13 @@ "max_rate": "0.200000000000000000", "rate": "0.100000000000000000" }, - "delegator_address": "cosmos1lv5lq7qjr42attsdma622whwa7v0rc2d4pful8", + "delegator_address": "cosmos12gm9sa666hywxu9nzzmp7hyl7a55hvg769w2kz", "description": { "moniker": "simd-moniker" }, "min_self_delegation": "1", - "pubkey": "cosmosvalconspub1zcjduepqv3sruyer5xmurpxyptu4ll3efjan3lmaajf3fxg9axe895ppj9kqtyk2vf", - "validator_address": "cosmosvaloper1lv5lq7qjr42attsdma622whwa7v0rc2ds4afn5", + "pubkey": "cosmosvalconspub1zcjduepqcf6dt4wct4uk93lu0nc4vp8x8le8tqfe3wcmys53jn6lfa3fqvwsqktz95", + "validator_address": "cosmosvaloper12gm9sa666hywxu9nzzmp7hyl7a55hvg7l36l63", "value": { "amount": "3000000", "denom": "ustake" @@ -437,7 +437,7 @@ ] }, "signatures": [ - "5gBipu7M14zMjn2t6pBxM+DprcDR44RW4Eylc1wVp4Ikem0duRVnvWDE+B0gZ9+LY0QrgPcEmm6aXzPGiN3SKQ==" + "VdidVRYryEAL1v3bMIyHpwswMVSPJncCoC+7+VJdKwR5e8ymOeY+qG7q0QVcWj2x1Z72fw5O5w58anw9msnmzg==" ] } ] @@ -476,8 +476,7 @@ }, "client_genesis": { "clients": [], - "clients_consensus": [], - "create_localhost": true + "clients_consensus": [] }, "connection_genesis": { "client_connection_paths": [], @@ -547,5 +546,5 @@ ] } }, - "genesis_time": "2020-08-06T13:08:49.5288713Z" + "genesis_time": "2020-08-10T04:34:53.3772058Z" } diff --git a/scripts/simapp/template/.simapp/config/gentx/gentx-b02715f69ce88507acaa543f7de0d3f7e6cd20f8.json b/scripts/simapp/template/.simapp/config/gentx/gentx-b02715f69ce88507acaa543f7de0d3f7e6cd20f8.json new file mode 100644 index 00000000..2575c22c --- /dev/null +++ b/scripts/simapp/template/.simapp/config/gentx/gentx-b02715f69ce88507acaa543f7de0d3f7e6cd20f8.json @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/cosmos.staking.MsgCreateValidator","description":{"moniker":"simd-moniker"},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos12gm9sa666hywxu9nzzmp7hyl7a55hvg769w2kz","validator_address":"cosmosvaloper12gm9sa666hywxu9nzzmp7hyl7a55hvg7l36l63","pubkey":"cosmosvalconspub1zcjduepqcf6dt4wct4uk93lu0nc4vp8x8le8tqfe3wcmys53jn6lfa3fqvwsqktz95","value":{"denom":"ustake","amount":"3000000"}}],"memo":"b02715f69ce88507acaa543f7de0d3f7e6cd20f8@172.17.0.2:26656"},"auth_info":{"signer_infos":[{"public_key":{"secp256k1":"AnFadRAdh6Fl7robHe8jywDMKSWQQjB7SlpoqGsX9Ghw"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}}}],"fee":{"gas_limit":"200000"}},"signatures":["VdidVRYryEAL1v3bMIyHpwswMVSPJncCoC+7+VJdKwR5e8ymOeY+qG7q0QVcWj2x1Z72fw5O5w58anw9msnmzg=="]} diff --git a/scripts/simapp/template/.simapp/config/gentx/gentx-d593cd9e2f88b70d57ffc8c28768b555b9acb5fc.json b/scripts/simapp/template/.simapp/config/gentx/gentx-d593cd9e2f88b70d57ffc8c28768b555b9acb5fc.json deleted file mode 100644 index 5fe648af..00000000 --- a/scripts/simapp/template/.simapp/config/gentx/gentx-d593cd9e2f88b70d57ffc8c28768b555b9acb5fc.json +++ /dev/null @@ -1 +0,0 @@ -{"body":{"messages":[{"@type":"/cosmos.staking.MsgCreateValidator","description":{"moniker":"simd-moniker"},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1lv5lq7qjr42attsdma622whwa7v0rc2d4pful8","validator_address":"cosmosvaloper1lv5lq7qjr42attsdma622whwa7v0rc2ds4afn5","pubkey":"cosmosvalconspub1zcjduepqv3sruyer5xmurpxyptu4ll3efjan3lmaajf3fxg9axe895ppj9kqtyk2vf","value":{"denom":"ustake","amount":"3000000"}}],"memo":"d593cd9e2f88b70d57ffc8c28768b555b9acb5fc@172.17.0.3:26656"},"auth_info":{"signer_infos":[{"public_key":{"secp256k1":"A7bPBNzzcLkg9D6sSUIpq6qOhtWTKnJELef/5yZfr4xH"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}}}],"fee":{"gas_limit":"200000"}},"signatures":["5gBipu7M14zMjn2t6pBxM+DprcDR44RW4Eylc1wVp4Ikem0duRVnvWDE+B0gZ9+LY0QrgPcEmm6aXzPGiN3SKQ=="]} diff --git a/scripts/simapp/template/.simapp/config/node_key.json b/scripts/simapp/template/.simapp/config/node_key.json index 54bb2dfb..feaefac0 100644 --- a/scripts/simapp/template/.simapp/config/node_key.json +++ b/scripts/simapp/template/.simapp/config/node_key.json @@ -1 +1 @@ -{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"GibkBGABoqDhct1gyZLYgUQ3q9afc7jSzBEZKYV3/Rql7r3LMmDVuXZgwdeDitunnWIm6KTJ9/yrdIbOnxGryg=="}} \ No newline at end of file +{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"SBwYIjYkPgEdajIt1al+FUZOQ+vMri9xPkES1pDlVISVMV3aGAIFv9hQA0EDCe6NDWJopE6TCmnI+Pca65YSCw=="}} \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/config/priv_validator_key.json b/scripts/simapp/template/.simapp/config/priv_validator_key.json index aa3c08a7..432b4206 100644 --- a/scripts/simapp/template/.simapp/config/priv_validator_key.json +++ b/scripts/simapp/template/.simapp/config/priv_validator_key.json @@ -1,11 +1,11 @@ { - "address": "774A0C3FA22BFB35E7A62C33A1C58697CADE1427", + "address": "9B393572E82025BE3A6D2007304AAE69B55D62DC", "pub_key": { "type": "tendermint/PubKeyEd25519", - "value": "ZGA+EyOht8GExAr5X/45TLs4/33skxSZBemyctAhkWw=" + "value": "wnTV1dhdeWLH/HzxVgTmP/J1gTmLsbJCkZT19PYpAx0=" }, "priv_key": { "type": "tendermint/PrivKeyEd25519", - "value": "4rVHumai2XQZ+hSsUphYlJNkcjQCTguaZ2e7LPXNoCZkYD4TI6G3wYTECvlf/jlMuzj/feyTFJkF6bJy0CGRbA==" + "value": "fPWqUiCrr+AlyHb29zpYglZ/9RLbz60fRQziZgVA+JjCdNXV2F15Ysf8fPFWBOY/8nWBOYuxskKRlPX09ikDHQ==" } } \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/fb29f078121d55d5ae0ddf74a53aeeef98f1e14d.address b/scripts/simapp/template/.simapp/fb29f078121d55d5ae0ddf74a53aeeef98f1e14d.address deleted file mode 100644 index 9a7a9c56..00000000 --- a/scripts/simapp/template/.simapp/fb29f078121d55d5ae0ddf74a53aeeef98f1e14d.address +++ /dev/null @@ -1 +0,0 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wOC0wNiAxMzowODo1MC40MzYzMjQ2ICswMDAwIFVUQyBtPSswLjUzMzMxNTYwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IjlYak9JRDJHMkZMM2VXcDkifQ.ZVjb1WogjVvyIXk5IkrZclppwwc0MExREIrkRFqxkjyE4k0V68APMQ.NJdR86VIEOZ0cVLL.7PukY7zG6I0gDzhjvkY8QbQfofLAVJEcVFjRkxodcrxH4UNiCkURbklOuyOgcKEJcY12TYSBXUjoWUMy15i0_O4uMhWwx_xVWgaTRyjBB6UVC6fchYpwHiYnJStrMTsTTIEd_PMg01M2G8IR4QyhJtDju9W3AEbnnBdKktDuseAe0hyr7BwJHFXm9CU-sXU3JzFQ62szLpu-CaUBV_7xJusFjwDosfyom4r-keH3Y7CmPqF_-W3VY8DU.HMvilHIyoRuJGKvKNsfX3A \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/keyhash b/scripts/simapp/template/.simapp/keyhash index 2bef510a..5296cb67 100755 --- a/scripts/simapp/template/.simapp/keyhash +++ b/scripts/simapp/template/.simapp/keyhash @@ -1 +1 @@ -$2a$10$.3rbMOvLm5FQrKE5eNnNB.GC6N8/klYIQpJjLIl2K6DsBkGPkytWe \ No newline at end of file +$2a$10$2fI6FM3ObOD8pRF2.xRn8Op8SAzWw0PvhQZNwwDzzdf9mgmy1DFP. \ No newline at end of file diff --git a/scripts/simapp/template/.simapp/validator.info b/scripts/simapp/template/.simapp/validator.info index 6d339ede..dc5f7894 100644 --- a/scripts/simapp/template/.simapp/validator.info +++ b/scripts/simapp/template/.simapp/validator.info @@ -1 +1 @@ -eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wOC0wNiAxMzowODo1MC40MTQ5MTA1ICswMDAwIFVUQyBtPSswLjUxMTkwMjAwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkxiNS1RblpLdlFBaDVmUHEifQ.shxbGlGbejxdwAuUWE729l71nOLUtBqnE-1nDqc3bf-qzZ-ZvFP6rg.B-M7fYzRF9A91x4q.XWjXdGvP-CsRxFwrolUdq6bY5cz2i5lqSggCPdUyYuXn6WVglEEdsxbyl_Et7fZ8ppAgFsWaj19ELxYr4ewwvA4r2TReShcDk51jz8tFLTO6aCOh2F6rjn-fi5DUfcimfsipzu-x-FvCSKpQ3XB6PlwfJ5lLkoSoeqX_WJS6Zq0v7VI9D_WvSD5Q6FX1LnhrchndlZ33sBVwCjsp0GbEAOeDaYnnRexfh05k90_jc7DXHdKNI3o8a8q5pQR3CfnkHpIVlRairnrt68GEWMrCT-DhILGUP7KVJsYIadfODU_rOUqkJaAmlAMHPoWOncWaaCnk2hASwfbG8yNyREJ9UxdaXhih8ZwT1IWSTp2NkHcb1uZf.aXzyufH2vuWPQms3wVMuug \ No newline at end of file +eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wOC0xMCAwNDozNDo1My44NDIzNDE2ICswMDAwIFVUQyBtPSswLjI3Nzg5MTQwMSIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjgxOTIsInAycyI6IkxGbnlSVzBhbGNWaVQ4U0wifQ.AapFS3IPSX9Bt9Vz-wFg5mfoRobwImw8NcC0HJfBBLV1lm_56_b9qw.u2l6d7qrmOBEXyD8.aaGsuy_GMH_pyqkMcK80nxBZsIOyMJLTlR4slViy9q0T0qo2mtJFNUwtOoaN6wxewNYBdOJDJQ3GDtUtNZW6s9EoBigrsUxP-gTaBMtARx5u4Hn_VDCidxZJbgmoneX_P5K71vV8lVJ9sKhqZyDeKcwUrKB7EztKlxGDYt04NmsbLJkK8CNYnj3dYL5sCCz46B09eNSx83_rIpyE141WEzgwgOEayu5Nz2V7lFGp2WZfdeeqslyqKNwHMiQJGdzLjc787fgMPqleYusmBKHfNveUa2eaNIexnLGmkHkao9YH4-nJIpGOSBIGQZeG1dcUckFvaesq64gKZRmOKp37vfJkyqmuP7STVgeko93YvwcVlU6r.TfQIMmIaSUx-eddwt9zahg \ No newline at end of file