ethereumjs-monorepo

@ethereumjs/evm


@ethereumjs/evm / EVMMockBlockchain

Class: EVMMockBlockchain

Defined in: types.ts:619

In-memory mock blockchain for tests and stand-alone createEVM defaults.

Implements

Constructors

Constructor

new EVMMockBlockchain(): EVMMockBlockchain

Returns

EVMMockBlockchain

Methods

getBlock()

getBlock(): Promise<{ hash: Uint8Array<ArrayBuffer>; }>

Defined in: types.ts:620

Returns

Promise<{ hash: Uint8Array<ArrayBuffer>; }>

Implementation of

EVMMockBlockchainInterface.getBlock


putBlock()

putBlock(): Promise<void>

Defined in: types.ts:627

Returns

Promise<void>

Implementation of

EVMMockBlockchainInterface.putBlock


shallowCopy()

shallowCopy(): EVMMockBlockchain

Defined in: types.ts:628

Returns

EVMMockBlockchain

Implementation of

EVMMockBlockchainInterface.shallowCopy