ethereumjs-monorepo

@ethereumjs/evm

@ethereumjs/evm

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

Log

Ƭ Log: [address: Uint8Array, topics: Uint8Array[], data: Uint8Array]

Log that the contract emits.

Defined in

types.ts:337

Variables

EOF

Const EOF: Object

Type declaration

Name Type
FORMAT number
MAGIC number
VERSION number
codeAnalysis (container: Uint8Array) => undefined | { code: number = 0; data: number = 0 }
validOpcodes (code: Uint8Array) => boolean

Defined in

eof.ts:105

Functions

getActivePrecompiles

getActivePrecompiles(common, customPrecompiles?): Map<string, PrecompileFunc>

Parameters

Name Type
common Common
customPrecompiles? CustomPrecompile[]

Returns

Map<string, PrecompileFunc>

Defined in

precompiles/index.ts:167


getOpcodesForHF

getOpcodesForHF(common, customOpcodes?): OpcodeContext

Get suitable opcodes for the required hardfork.

Parameters

Name Type Description
common Common {Common} Ethereumjs Common metadata object.
customOpcodes? CustomOpcode[] List with custom opcodes (see EVM customOpcodes option description).

Returns

OpcodeContext

Opcodes dictionary object.

Defined in

opcodes/codes.ts:368