import { Any } from "../../../../google/protobuf/any"; import { Event } from "../../../../tendermint/abci/types"; import { Block } from "../../../../tendermint/types/block"; import { BinaryReader, BinaryWriter } from "../../../../binary"; import { DeepPartial, Exact } from "../../../../helpers"; import { JsonSafe } from "../../../../json-safe"; 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: bigint; /** 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: bigint; /** Amount of gas consumed by transaction. */ gasUsed: bigint; /** The request transaction bytes. */ tx?: Any; /** * 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: bigint; /** GasUsed is the amount of gas actually consumed. */ gasUsed: bigint; } /** 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; result?: Result; } /** * 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: bigint; /** Count of txs in current page */ count: bigint; /** Index of current page, start from 1 */ pageNumber: bigint; /** Count of total pages */ pageTotal: bigint; /** Max count txs per page */ limit: bigint; /** List of txs in current page */ txs: TxResponse[]; } /** SearchBlocksResult defines a structure for querying blocks pageable */ export interface SearchBlocksResult { /** Count of all blocks */ totalCount: bigint; /** Count of blocks in current page */ count: bigint; /** Index of current page, start from 1 */ pageNumber: bigint; /** Count of total pages */ pageTotal: bigint; /** Max count blocks per page */ limit: bigint; /** List of blocks in current page */ blocks: Block[]; } export declare const TxResponse: { typeUrl: string; encode(message: TxResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TxResponse; fromJSON(object: any): TxResponse; toJSON(message: TxResponse): JsonSafe; fromPartial, I>>(object: I): TxResponse; }; export declare const ABCIMessageLog: { typeUrl: string; encode(message: ABCIMessageLog, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog; fromJSON(object: any): ABCIMessageLog; toJSON(message: ABCIMessageLog): JsonSafe; fromPartial, I>>(object: I): ABCIMessageLog; }; export declare const StringEvent: { typeUrl: string; encode(message: StringEvent, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): StringEvent; fromJSON(object: any): StringEvent; toJSON(message: StringEvent): JsonSafe; fromPartial, I>>(object: I): StringEvent; }; export declare const Attribute: { typeUrl: string; encode(message: Attribute, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Attribute; fromJSON(object: any): Attribute; toJSON(message: Attribute): JsonSafe; fromPartial, I>>(object: I): Attribute; }; export declare const GasInfo: { typeUrl: string; encode(message: GasInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GasInfo; fromJSON(object: any): GasInfo; toJSON(message: GasInfo): JsonSafe; fromPartial, I>>(object: I): GasInfo; }; export declare const Result: { typeUrl: string; encode(message: Result, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Result; fromJSON(object: any): Result; toJSON(message: Result): JsonSafe; fromPartial, I>>(object: I): Result; }; export declare const SimulationResponse: { typeUrl: string; encode(message: SimulationResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse; fromJSON(object: any): SimulationResponse; toJSON(message: SimulationResponse): JsonSafe; fromPartial, I>>(object: I): SimulationResponse; }; export declare const MsgData: { typeUrl: string; encode(message: MsgData, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgData; fromJSON(object: any): MsgData; toJSON(message: MsgData): JsonSafe; fromPartial, I>>(object: I): MsgData; }; export declare const TxMsgData: { typeUrl: string; encode(message: TxMsgData, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData; fromJSON(object: any): TxMsgData; toJSON(message: TxMsgData): JsonSafe; fromPartial, I>>(object: I): TxMsgData; }; export declare const SearchTxsResult: { typeUrl: string; encode(message: SearchTxsResult, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult; fromJSON(object: any): SearchTxsResult; toJSON(message: SearchTxsResult): JsonSafe; fromPartial, I>>(object: I): SearchTxsResult; }; export declare const SearchBlocksResult: { typeUrl: string; encode(message: SearchBlocksResult, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SearchBlocksResult; fromJSON(object: any): SearchBlocksResult; toJSON(message: SearchBlocksResult): JsonSafe; fromPartial, I>>(object: I): SearchBlocksResult; };