import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../../google/protobuf/any"; import { Event } from "../../../../tendermint/abci/types"; import { Block } from "../../../../tendermint/types/block"; export declare const protobufPackage = "cosmos.base.abci.v1beta1"; /** * TxResponse defines a structure containing relevant tx data and metadata. The * tags are stringified and the log is JSON decoded. */ export interface TxResponse { /** The block height */ height: Long; /** The transaction hash. */ txhash: string; /** Namespace for the Code */ codespace: string; /** Response code. */ code: number; /** Result bytes, if any. */ data: string; /** * The output of the application's logger (raw string). May be * non-deterministic. */ rawLog: string; /** The output of the application's logger (typed). May be non-deterministic. */ logs: ABCIMessageLog[]; /** Additional information. May be non-deterministic. */ info: string; /** Amount of gas requested for transaction. */ gasWanted: Long; /** Amount of gas consumed by transaction. */ gasUsed: Long; /** The request transaction bytes. */ tx: Any | undefined; /** * Time of the previous block. For heights > 1, it's the weighted median of * the timestamps of the valid votes in the block.LastCommit. For height == 1, * it's genesis time. */ timestamp: string; /** * Events defines all the events emitted by processing a transaction. Note, * these events include those emitted by processing all the messages and those * emitted from the ante. Whereas Logs contains the events, with * additional metadata, emitted only by processing the messages. */ events: Event[]; } /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ export interface ABCIMessageLog { msgIndex: number; log: string; /** * Events contains a slice of Event objects that were emitted during some * execution. */ events: StringEvent[]; } /** * StringEvent defines en Event object wrapper where all the attributes * contain key/value pairs that are strings instead of raw bytes. */ export interface StringEvent { type: string; attributes: Attribute[]; } /** * Attribute defines an attribute wrapper where the key and value are * strings instead of raw bytes. */ export interface Attribute { key: string; value: string; } /** GasInfo defines tx execution gas context. */ export interface GasInfo { /** GasWanted is the maximum units of work we allow this tx to perform. */ gasWanted: Long; /** GasUsed is the amount of gas actually consumed. */ gasUsed: Long; } /** Result is the union of ResponseFormat and ResponseCheckTx. */ export interface Result { /** * Data is any data returned from message or handler execution. It MUST be * length prefixed in order to separate data from multiple message executions. * Deprecated. This field is still populated, but prefer msg_response instead * because it also contains the Msg response typeURL. * * @deprecated */ data: Uint8Array; /** Log contains the log information from message or handler execution. */ log: string; /** * Events contains a slice of Event objects that were emitted during message * or handler execution. */ events: Event[]; /** msg_responses contains the Msg handler responses type packed in Anys. */ msgResponses: Any[]; } /** * SimulationResponse defines the response generated when a transaction is * successfully simulated. */ export interface SimulationResponse { gasInfo: GasInfo | undefined; result: Result | undefined; } /** * MsgData defines the data returned in a Result object during message * execution. * * @deprecated */ export interface MsgData { msgType: string; data: Uint8Array; } /** * TxMsgData defines a list of MsgData. A transaction will have a MsgData object * for each message. */ export interface TxMsgData { /** * data field is deprecated and not populated. * * @deprecated */ data: MsgData[]; /** msg_responses contains the Msg handler responses packed into Anys. */ msgResponses: Any[]; } /** SearchTxsResult defines a structure for querying txs pageable */ export interface SearchTxsResult { /** Count of all txs */ totalCount: Long; /** Count of txs in current page */ count: Long; /** Index of current page, start from 1 */ pageNumber: Long; /** Count of total pages */ pageTotal: Long; /** Max count txs per page */ limit: Long; /** List of txs in current page */ txs: TxResponse[]; } /** SearchBlocksResult defines a structure for querying blocks pageable */ export interface SearchBlocksResult { /** Count of all blocks */ totalCount: Long; /** Count of blocks in current page */ count: Long; /** Index of current page, start from 1 */ pageNumber: Long; /** Count of total pages */ pageTotal: Long; /** Max count blocks per page */ limit: Long; /** List of blocks in current page */ blocks: Block[]; } export declare const TxResponse: { encode(message: TxResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TxResponse; fromJSON(object: any): TxResponse; toJSON(message: TxResponse): unknown; create(base?: DeepPartial): TxResponse; fromPartial(object: DeepPartial): TxResponse; }; export declare const ABCIMessageLog: { encode(message: ABCIMessageLog, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ABCIMessageLog; fromJSON(object: any): ABCIMessageLog; toJSON(message: ABCIMessageLog): unknown; create(base?: DeepPartial): ABCIMessageLog; fromPartial(object: DeepPartial): ABCIMessageLog; }; export declare const StringEvent: { encode(message: StringEvent, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StringEvent; fromJSON(object: any): StringEvent; toJSON(message: StringEvent): unknown; create(base?: DeepPartial): StringEvent; fromPartial(object: DeepPartial): StringEvent; }; export declare const Attribute: { encode(message: Attribute, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Attribute; fromJSON(object: any): Attribute; toJSON(message: Attribute): unknown; create(base?: DeepPartial): Attribute; fromPartial(object: DeepPartial): Attribute; }; export declare const GasInfo: { encode(message: GasInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GasInfo; fromJSON(object: any): GasInfo; toJSON(message: GasInfo): unknown; create(base?: DeepPartial): GasInfo; fromPartial(object: DeepPartial): GasInfo; }; export declare const Result: { encode(message: Result, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Result; fromJSON(object: any): Result; toJSON(message: Result): unknown; create(base?: DeepPartial): Result; fromPartial(object: DeepPartial): Result; }; export declare const SimulationResponse: { encode(message: SimulationResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SimulationResponse; fromJSON(object: any): SimulationResponse; toJSON(message: SimulationResponse): unknown; create(base?: DeepPartial): SimulationResponse; fromPartial(object: DeepPartial): SimulationResponse; }; export declare const MsgData: { encode(message: MsgData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgData; fromJSON(object: any): MsgData; toJSON(message: MsgData): unknown; create(base?: DeepPartial): MsgData; fromPartial(object: DeepPartial): MsgData; }; export declare const TxMsgData: { encode(message: TxMsgData, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TxMsgData; fromJSON(object: any): TxMsgData; toJSON(message: TxMsgData): unknown; create(base?: DeepPartial): TxMsgData; fromPartial(object: DeepPartial): TxMsgData; }; export declare const SearchTxsResult: { encode(message: SearchTxsResult, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SearchTxsResult; fromJSON(object: any): SearchTxsResult; toJSON(message: SearchTxsResult): unknown; create(base?: DeepPartial): SearchTxsResult; fromPartial(object: DeepPartial): SearchTxsResult; }; export declare const SearchBlocksResult: { encode(message: SearchBlocksResult, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SearchBlocksResult; fromJSON(object: any): SearchBlocksResult; toJSON(message: SearchBlocksResult): unknown; create(base?: DeepPartial): SearchBlocksResult; fromPartial(object: DeepPartial): SearchBlocksResult; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};