Skip to content

Latest commit

 

History

History
120 lines (67 loc) · 3.14 KB

vmopts.md

File metadata and controls

120 lines (67 loc) · 3.14 KB

ethereumjs-vm > VMOpts

Interface: VMOpts

Options for instantiating a VM.

Hierarchy

VMOpts

Index

Properties


Properties

<Optional> activatePrecompiles

● activatePrecompiles: undefined | false | true

Defined in index.ts:52

If true, create entries in the state tree for the precompiled contracts, saving some gas the first time each of them is called.

If this parameter is false, the first call to each of them has to pay an extra 25000 gas for creating the account.

Setting this to true has the effect of precompiled contracts' gas costs matching mainnet's from the very first call, which is intended for testing networks.


<Optional> allowUnlimitedContractSize

● allowUnlimitedContractSize: undefined | false | true

Defined in index.ts:56

Allows unlimited contract sizes while debugging. By setting this to true, the check for contract size limit of 24KB (see EIP-170) is bypassed


<Optional> blockchain

● blockchain: Blockchain

Defined in index.ts:41

A blockchain object for storing/retrieving blocks


<Optional> chain

● chain: undefined | string

Defined in index.ts:24

The chain the VM operates on


<Optional> common

● common: Common

Defined in index.ts:57


<Optional> hardfork

● hardfork: undefined | string

Defined in index.ts:28

Hardfork rules to be used


<Optional> state

● state: any

Defined in index.ts:37

A merkle-patricia-tree instance for the state tree (ignored if stateManager is passed)

deprecated:


<Optional> stateManager

● stateManager: StateManager

Defined in index.ts:32

A StateManager instance to use as the state store (Beta API)