@ethereumjs/evm / EVMInterface
Defined in: types.ts:181
Public EVM surface used by @ethereumjs/vm!VM and stand-alone callers.
optionalbinaryTreeAccessWitness?:BinaryTreeAccessWitness
Defined in: types.ts:204
optionalblockLevelAccessList?:BlockLevelAccessList
Defined in: types.ts:211
Accumulated block access list when EIP-7928 is active.
Experimental (Amsterdam): may change on patch releases.
common:
Common
Defined in: types.ts:182
optionalcreateTxTargetAlive?:boolean
Defined in: types.ts:246
EIP-8037: whether the target account of a top-level creation transaction
was already alive (EIP-161 non-empty) before creation; runTx refunds
the intrinsic new-account state gas when true or the creation failed.
Optional for custom EVMInterface implementations.
Experimental (Amsterdam): may change on patch releases.
optionaleip2780PrepOog?:boolean
Defined in: types.ts:237
EIP-2780 / EIP-8037: set when a top-frame access charge OOGs before opcodes. runTx reverts prepare-region 7702 delegations when this is true.
Experimental (Amsterdam): may change on patch releases.
optionaleip7928CallPostTargetOog?:boolean
Defined in: types.ts:230
EIP-7928: set during CALL post-target OOG so runTx can drain the state-gas reservoir
on exceptional halt. Optional for custom EVMInterface implementations.
Experimental (Amsterdam): may change on patch releases.
optionalevents?:EventEmitter<EVMEvent,any>
Defined in: types.ts:203
executionStateGasUsed:
bigint
Defined in: types.ts:223
EIP-8037 per-tx cumulative state-gas used.
Experimental (Amsterdam): may change on patch releases.
journal:
object
Defined in: types.ts:183
optionalaccessList?:Map<string,Set<string>>
optionalpreimages?:Map<`0x${string}`,Uint8Array<ArrayBufferLike>>
addAlwaysWarmAddress(
address,addToAccessList?):void
string
boolean
void
addAlwaysWarmSlot(
address,slot,addToAccessList?):void
string
string
boolean
void
checkpoint():
Promise<void>
Promise<void>
cleanJournal():
void
void
cleanup():
Promise<void>
Promise<void>
commit():
Promise<void>
Promise<void>
deleteAccount(
address):Promise<void>
Promise<void>
putAccount(
address,account):Promise<void>
Account
Promise<void>
revert():
Promise<void>
Promise<void>
startReportingAccessList():
void
void
optionalstartReportingPreimages():void
void
precompiles:
Map<string,PrecompileFunc>
Defined in: types.ts:199
stateGasReservoir:
bigint
Defined in: types.ts:217
EIP-8037 per-tx state-gas reservoir (set by runTx, read/written by opcodes).
Experimental (Amsterdam): may change on patch releases.
stateManager:
StateManagerInterface
Defined in: types.ts:198
optionalsystemBinaryTreeAccessWitness?:BinaryTreeAccessWitness
Defined in: types.ts:205
optionalgetPrecompile(address):PrecompileFunc|undefined
Defined in: types.ts:200
`0x${string}` | Address
PrecompileFunc | undefined
runCall(
opts):Promise<EVMResult>
Defined in: types.ts:201
Promise<EVMResult>
runCode(
opts):Promise<ExecResult>
Defined in: types.ts:202
Promise<ExecResult>