import { Any, AnyAmino } from "../../../../google/protobuf/any"; import { Event, EventAmino } from "../../../../tendermint/abci/types"; import { BinaryReader, BinaryWriter } from "../../../../binary"; import { DeepPartial } from "../../../../helpers"; /** * 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. * * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 */ events: Event[]; } export interface TxResponseProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.TxResponse"; value: Uint8Array; } /** * TxResponse defines a structure containing relevant tx data and metadata. The * tags are stringified and the log is JSON decoded. */ export interface TxResponseAmino { /** The block height */ height: string; /** 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. */ raw_log: string; /** The output of the application's logger (typed). May be non-deterministic. */ logs: ABCIMessageLogAmino[]; /** Additional information. May be non-deterministic. */ info: string; /** Amount of gas requested for transaction. */ gas_wanted: string; /** Amount of gas consumed by transaction. */ gas_used: string; /** The request transaction bytes. */ tx?: AnyAmino; /** * 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. * * Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 */ events: EventAmino[]; } /** 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[]; } export interface ABCIMessageLogProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.ABCIMessageLog"; value: Uint8Array; } /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ export interface ABCIMessageLogAmino { msg_index: number; log: string; /** * Events contains a slice of Event objects that were emitted during some * execution. */ events: StringEventAmino[]; } /** * 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[]; } export interface StringEventProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.StringEvent"; value: Uint8Array; } /** * StringEvent defines en Event object wrapper where all the attributes * contain key/value pairs that are strings instead of raw bytes. */ export interface StringEventAmino { type: string; attributes: AttributeAmino[]; } /** * Attribute defines an attribute wrapper where the key and value are * strings instead of raw bytes. */ export interface Attribute { key: string; value: string; } export interface AttributeProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.Attribute"; value: Uint8Array; } /** * Attribute defines an attribute wrapper where the key and value are * strings instead of raw bytes. */ export interface AttributeAmino { 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; } export interface GasInfoProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.GasInfo"; value: Uint8Array; } /** GasInfo defines tx execution gas context. */ export interface GasInfoAmino { /** GasWanted is the maximum units of work we allow this tx to perform. */ gas_wanted: string; /** GasUsed is the amount of gas actually consumed. */ gas_used: string; } /** 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. * * Since: cosmos-sdk 0.46 */ msgResponses: Any[]; } export interface ResultProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.Result"; value: Uint8Array; } /** Result is the union of ResponseFormat and ResponseCheckTx. */ export interface ResultAmino { /** * 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: EventAmino[]; /** * msg_responses contains the Msg handler responses type packed in Anys. * * Since: cosmos-sdk 0.46 */ msg_responses: AnyAmino[]; } /** * SimulationResponse defines the response generated when a transaction is * successfully simulated. */ export interface SimulationResponse { gasInfo: GasInfo; result?: Result; } export interface SimulationResponseProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.SimulationResponse"; value: Uint8Array; } /** * SimulationResponse defines the response generated when a transaction is * successfully simulated. */ export interface SimulationResponseAmino { gas_info?: GasInfoAmino; result?: ResultAmino; } /** * MsgData defines the data returned in a Result object during message * execution. */ /** @deprecated */ export interface MsgData { msgType: string; data: Uint8Array; } export interface MsgDataProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.MsgData"; value: Uint8Array; } /** * MsgData defines the data returned in a Result object during message * execution. */ /** @deprecated */ export interface MsgDataAmino { msg_type: 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. * * Since: cosmos-sdk 0.46 */ msgResponses: Any[]; } export interface TxMsgDataProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.TxMsgData"; value: Uint8Array; } /** * TxMsgData defines a list of MsgData. A transaction will have a MsgData object * for each message. */ export interface TxMsgDataAmino { /** data field is deprecated and not populated. */ /** @deprecated */ data: MsgDataAmino[]; /** * msg_responses contains the Msg handler responses packed into Anys. * * Since: cosmos-sdk 0.46 */ msg_responses: AnyAmino[]; } /** 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[]; } export interface SearchTxsResultProtoMsg { typeUrl: "/cosmos.base.abci.v1beta1.SearchTxsResult"; value: Uint8Array; } /** SearchTxsResult defines a structure for querying txs pageable */ export interface SearchTxsResultAmino { /** Count of all txs */ total_count: string; /** Count of txs in current page */ count: string; /** Index of current page, start from 1 */ page_number: string; /** Count of total pages */ page_total: string; /** Max count txs per page */ limit: string; /** List of txs in current page */ txs: TxResponseAmino[]; } export declare const TxResponse: { typeUrl: string; aminoType: string; encode(message: TxResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TxResponse; fromJSON(object: any): TxResponse; toJSON(message: TxResponse): unknown; fromPartial(object: DeepPartial): TxResponse; fromAmino(object: TxResponseAmino): TxResponse; toAmino(message: TxResponse): TxResponseAmino; fromProtoMsg(message: TxResponseProtoMsg): TxResponse; toProto(message: TxResponse): Uint8Array; toProtoMsg(message: TxResponse): TxResponseProtoMsg; }; export declare const ABCIMessageLog: { typeUrl: string; aminoType: string; encode(message: ABCIMessageLog, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ABCIMessageLog; fromJSON(object: any): ABCIMessageLog; toJSON(message: ABCIMessageLog): unknown; fromPartial(object: DeepPartial): ABCIMessageLog; fromAmino(object: ABCIMessageLogAmino): ABCIMessageLog; toAmino(message: ABCIMessageLog): ABCIMessageLogAmino; fromProtoMsg(message: ABCIMessageLogProtoMsg): ABCIMessageLog; toProto(message: ABCIMessageLog): Uint8Array; toProtoMsg(message: ABCIMessageLog): ABCIMessageLogProtoMsg; }; export declare const StringEvent: { typeUrl: string; aminoType: string; encode(message: StringEvent, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): StringEvent; fromJSON(object: any): StringEvent; toJSON(message: StringEvent): unknown; fromPartial(object: DeepPartial): StringEvent; fromAmino(object: StringEventAmino): StringEvent; toAmino(message: StringEvent): StringEventAmino; fromProtoMsg(message: StringEventProtoMsg): StringEvent; toProto(message: StringEvent): Uint8Array; toProtoMsg(message: StringEvent): StringEventProtoMsg; }; export declare const Attribute: { typeUrl: string; aminoType: string; encode(message: Attribute, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Attribute; fromJSON(object: any): Attribute; toJSON(message: Attribute): unknown; fromPartial(object: DeepPartial): Attribute; fromAmino(object: AttributeAmino): Attribute; toAmino(message: Attribute): AttributeAmino; fromProtoMsg(message: AttributeProtoMsg): Attribute; toProto(message: Attribute): Uint8Array; toProtoMsg(message: Attribute): AttributeProtoMsg; }; export declare const GasInfo: { typeUrl: string; aminoType: string; encode(message: GasInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GasInfo; fromJSON(object: any): GasInfo; toJSON(message: GasInfo): unknown; fromPartial(object: DeepPartial): GasInfo; fromAmino(object: GasInfoAmino): GasInfo; toAmino(message: GasInfo): GasInfoAmino; fromProtoMsg(message: GasInfoProtoMsg): GasInfo; toProto(message: GasInfo): Uint8Array; toProtoMsg(message: GasInfo): GasInfoProtoMsg; }; export declare const Result: { typeUrl: string; aminoType: string; encode(message: Result, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Result; fromJSON(object: any): Result; toJSON(message: Result): unknown; fromPartial(object: DeepPartial): Result; fromAmino(object: ResultAmino): Result; toAmino(message: Result): ResultAmino; fromProtoMsg(message: ResultProtoMsg): Result; toProto(message: Result): Uint8Array; toProtoMsg(message: Result): ResultProtoMsg; }; export declare const SimulationResponse: { typeUrl: string; aminoType: string; encode(message: SimulationResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SimulationResponse; fromJSON(object: any): SimulationResponse; toJSON(message: SimulationResponse): unknown; fromPartial(object: DeepPartial): SimulationResponse; fromAmino(object: SimulationResponseAmino): SimulationResponse; toAmino(message: SimulationResponse): SimulationResponseAmino; fromProtoMsg(message: SimulationResponseProtoMsg): SimulationResponse; toProto(message: SimulationResponse): Uint8Array; toProtoMsg(message: SimulationResponse): SimulationResponseProtoMsg; }; export declare const MsgData: { typeUrl: string; aminoType: string; encode(message: MsgData, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgData; fromJSON(object: any): MsgData; toJSON(message: MsgData): unknown; fromPartial(object: DeepPartial): MsgData; fromAmino(object: MsgDataAmino): MsgData; toAmino(message: MsgData): MsgDataAmino; fromProtoMsg(message: MsgDataProtoMsg): MsgData; toProto(message: MsgData): Uint8Array; toProtoMsg(message: MsgData): MsgDataProtoMsg; }; export declare const TxMsgData: { typeUrl: string; aminoType: string; encode(message: TxMsgData, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TxMsgData; fromJSON(object: any): TxMsgData; toJSON(message: TxMsgData): unknown; fromPartial(object: DeepPartial): TxMsgData; fromAmino(object: TxMsgDataAmino): TxMsgData; toAmino(message: TxMsgData): TxMsgDataAmino; fromProtoMsg(message: TxMsgDataProtoMsg): TxMsgData; toProto(message: TxMsgData): Uint8Array; toProtoMsg(message: TxMsgData): TxMsgDataProtoMsg; }; export declare const SearchTxsResult: { typeUrl: string; aminoType: string; encode(message: SearchTxsResult, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SearchTxsResult; fromJSON(object: any): SearchTxsResult; toJSON(message: SearchTxsResult): unknown; fromPartial(object: DeepPartial): SearchTxsResult; fromAmino(object: SearchTxsResultAmino): SearchTxsResult; toAmino(message: SearchTxsResult): SearchTxsResultAmino; fromProtoMsg(message: SearchTxsResultProtoMsg): SearchTxsResult; toProto(message: SearchTxsResult): Uint8Array; toProtoMsg(message: SearchTxsResult): SearchTxsResultProtoMsg; };