import type { StateNetwork } from './state.js' /** * * @param this StateNetwork * @param address address of the storage * @param slot integer of the position in the storage * @param blockTag integer block number, or the string "latest", "earliest" or "pending" * @returns the value at this storage position */ export async function eth_getStorageAt( this: StateNetwork, _address: string, _slot: string, _blockTag?: string, ): Promise { return undefined } /** * * @param this state network * @param address address * @param blockTag integer block number, or the string "latest", "earliest" or "pending" * @returns */ export async function eth_getTransactionCount( this: StateNetwork, _address: string, _blockTag?: string, ): Promise { return undefined } /** * * @param this state network * @param address address * @param blockTag integer block number, or the string "latest", "earliest" or "pending" * @returns code at a given address */ export async function eth_getCode(this: StateNetwork, _address: string, _blockTag?: string) { return undefined } export type TxCallObject = { from?: string to: string gas?: string gasPrice?: string value?: string data?: string } /** * * @param this state network * @param txCallObject transaction call object * @param blockTag integer block number, or the string "latest", "earliest" or "pending" * @returns the return value of the executed contract */ export async function eth_call( this: StateNetwork, _txCallObject: TxCallObject, _blockTag?: string, ): Promise { return undefined } export type TxEstimateObject = { from?: string to?: string gas?: string gasPrice?: string value?: string data?: string } /** * Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. * @param this state network * @param txObject transaction object * @param blockTag integer block number, or the string "latest", "earliest" or "pending" * @returns */ export async function eth_estimateGas( this: StateNetwork, _txObject: TxEstimateObject, _blockTag?: string, ): Promise { return undefined }