import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { DeepPartial } from "../../../helpers.js"; //#region src/ethermint/types/v1/indexer.d.ts /** * TxResult is the value stored in eth tx indexer * @name TxResult * @package ethermint.types.v1 * @see proto type: ethermint.types.v1.TxResult */ interface TxResult { /** * height of the blockchain */ height: bigint; /** * tx_index of the cosmos transaction */ txIndex: number; /** * msg_index in a batch transaction */ msgIndex: number; /** * eth_tx_index is the index in the list of valid eth tx in the block, * aka. the transaction list returned by eth_getBlock api. */ ethTxIndex: number; /** * failed is true if the eth transaction did not go succeed */ failed: boolean; /** * gas_used by the transaction. If it exceeds the block gas limit, * it's set to gas limit, which is what's actually deducted by ante handler. */ gasUsed: bigint; /** * cumulative_gas_used specifies the cumulated amount of gas used for all * processed messages within the current batch transaction. */ cumulativeGasUsed: bigint; } interface TxResultProtoMsg { typeUrl: "/ethermint.types.v1.TxResult"; value: Uint8Array; } /** * TxResult is the value stored in eth tx indexer * @name TxResultAmino * @package ethermint.types.v1 * @see proto type: ethermint.types.v1.TxResult */ interface TxResultAmino { /** * height of the blockchain */ height: string; /** * tx_index of the cosmos transaction */ tx_index: number; /** * msg_index in a batch transaction */ msg_index: number; /** * eth_tx_index is the index in the list of valid eth tx in the block, * aka. the transaction list returned by eth_getBlock api. */ eth_tx_index: number; /** * failed is true if the eth transaction did not go succeed */ failed: boolean; /** * gas_used by the transaction. If it exceeds the block gas limit, * it's set to gas limit, which is what's actually deducted by ante handler. */ gas_used: string; /** * cumulative_gas_used specifies the cumulated amount of gas used for all * processed messages within the current batch transaction. */ cumulative_gas_used: string; } interface TxResultAminoMsg { type: "/ethermint.types.v1.TxResult"; value: TxResultAmino; } /** * TxResult is the value stored in eth tx indexer * @name TxResult * @package ethermint.types.v1 * @see proto type: ethermint.types.v1.TxResult */ declare const TxResult: { typeUrl: string; is(o: any): o is TxResult; isAmino(o: any): o is TxResultAmino; encode(message: TxResult, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TxResult; fromPartial(object: DeepPartial): TxResult; fromAmino(object: TxResultAmino): TxResult; toAmino(message: TxResult): TxResultAmino; fromAminoMsg(object: TxResultAminoMsg): TxResult; fromProtoMsg(message: TxResultProtoMsg): TxResult; toProto(message: TxResult): Uint8Array; toProtoMsg(message: TxResult): TxResultProtoMsg; registerTypeUrl(): void; }; //#endregion export { TxResult, TxResultAmino, TxResultAminoMsg, TxResultProtoMsg };