Options for instantiating a VM.
VMOpts
● 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.
● 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
● blockchain: Blockchain
Defined in index.ts:41
A blockchain object for storing/retrieving blocks
● chain: undefined
| string
Defined in index.ts:24
The chain the VM operates on
● common: Common
Defined in index.ts:57
● hardfork: undefined
| string
Defined in index.ts:28
Hardfork rules to be used
● state: any
Defined in index.ts:37
A merkle-patricia-tree instance for the state tree (ignored if stateManager is passed)
deprecated:
● stateManager: StateManager
Defined in index.ts:32
A StateManager instance to use as the state store (Beta API)