import type { Log } from '../common/Log.js' import type { CallError } from '../errors/CallError.js' import type { Address } from 'abitype' import type { Hex } from 'viem' /** * Result of a Tevm VM Call method */ export type CallResult = { /** * Amount of gas left */ gas?: bigint /** * Amount of gas the code used to run */ executionGasUsed: bigint /** * Array of logs that the contract emitted */ logs?: Log[] /** * The gas refund counter as a uint256 */ gasRefund?: bigint /** * Amount of blob gas consumed by the transaction */ blobGasUsed?: bigint /** * Address of created account during transaction, if any */ createdAddress?: Address /** * A set of accounts to selfdestruct */ selfdestruct?: Set
/** * Map of addresses which were created (used in EIP 6780) */ createdAddresses?: Set
/** * Encoded return value from the contract as hex string */ rawData: Hex /** * Description of the exception, if any occurred */ errors?: ErrorType[] }