[**tevm**](../../README.md) *** [tevm](../../modules.md) / [common](../README.md) / EvmStateManagerInterface # Interface: EvmStateManagerInterface ## Properties | Property | Type | | ------ | ------ | | `originalStorageCache` | `object` | | `originalStorageCache.clear` | `void` | | `originalStorageCache.get` | `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> | ## Methods ### checkChunkWitnessPresent()? > `optional` **checkChunkWitnessPresent**(`contract`, `programCounter`): `Promise`\<`boolean`\> #### Parameters | Parameter | Type | | ------ | ------ | | `contract` | `Address` | | `programCounter` | `number` | #### Returns `Promise`\<`boolean`\> *** ### checkpoint() > **checkpoint**(): `Promise`\<`void`\> #### Returns `Promise`\<`void`\> *** ### clearCaches() > **clearCaches**(): `void` #### Returns `void` *** ### clearStorage() > **clearStorage**(`address`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | #### Returns `Promise`\<`void`\> *** ### commit() > **commit**(): `Promise`\<`void`\> #### Returns `Promise`\<`void`\> *** ### deleteAccount() > **deleteAccount**(`address`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | #### Returns `Promise`\<`void`\> *** ### dumpStorage()? > `optional` **dumpStorage**(`address`): `Promise`\<[`StorageDump`](StorageDump.md)\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | #### Returns `Promise`\<[`StorageDump`](StorageDump.md)\> *** ### dumpStorageRange()? > `optional` **dumpStorageRange**(`address`, `startKey`, `limit`): `Promise`\<[`StorageRange`](StorageRange.md)\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | | `startKey` | `bigint` | | `limit` | `number` | #### Returns `Promise`\<[`StorageRange`](StorageRange.md)\> *** ### generateCanonicalGenesis()? > `optional` **generateCanonicalGenesis**(`initState`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `initState` | `any` | #### Returns `Promise`\<`void`\> *** ### getAccount() > **getAccount**(`address`): `Promise`\<`Account` \| `undefined`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | #### Returns `Promise`\<`Account` \| `undefined`\> *** ### getAppliedKey()? > `optional` **getAppliedKey**(`address`): `Uint8Array` #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Uint8Array` | #### Returns `Uint8Array` *** ### getCode() > **getCode**(`address`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | #### Returns `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> *** ### getCodeSize() > **getCodeSize**(`address`): `Promise`\<`number`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | #### Returns `Promise`\<`number`\> *** ### getStateRoot() > **getStateRoot**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> #### Returns `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> *** ### getStorage() > **getStorage**(`address`, `key`): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | | `key` | `Uint8Array` | #### Returns `Promise`\<`Uint8Array`\<`ArrayBufferLike`\>\> *** ### hasStateRoot() > **hasStateRoot**(`root`): `Promise`\<`boolean`\> #### Parameters | Parameter | Type | | ------ | ------ | | `root` | `Uint8Array` | #### Returns `Promise`\<`boolean`\> *** ### initBinaryTreeExecutionWitness()? > `optional` **initBinaryTreeExecutionWitness**(`blockNum`, `executionWitness?`): `void` #### Parameters | Parameter | Type | | ------ | ------ | | `blockNum` | `bigint` | | `executionWitness?` | `BinaryTreeExecutionWitness` \| `null` | #### Returns `void` *** ### modifyAccountFields() > **modifyAccountFields**(`address`, `accountFields`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | | `accountFields` | [`AccountFields`](../type-aliases/AccountFields.md) | #### Returns `Promise`\<`void`\> *** ### putAccount() > **putAccount**(`address`, `account?`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | | `account?` | `Account` | #### Returns `Promise`\<`void`\> *** ### putCode() > **putCode**(`address`, `value`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | | `value` | `Uint8Array` | #### Returns `Promise`\<`void`\> *** ### putStorage() > **putStorage**(`address`, `key`, `value`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `address` | `Address` | | `key` | `Uint8Array` | | `value` | `Uint8Array` | #### Returns `Promise`\<`void`\> *** ### revert() > **revert**(): `Promise`\<`void`\> #### Returns `Promise`\<`void`\> *** ### setStateRoot() > **setStateRoot**(`stateRoot`, `clearCache?`): `Promise`\<`void`\> #### Parameters | Parameter | Type | | ------ | ------ | | `stateRoot` | `Uint8Array` | | `clearCache?` | `boolean` | #### Returns `Promise`\<`void`\> *** ### shallowCopy() > **shallowCopy**(`downlevelCaches?`): `StateManagerInterface` #### Parameters | Parameter | Type | | ------ | ------ | | `downlevelCaches?` | `boolean` | #### Returns `StateManagerInterface` *** ### verifyBinaryTreePostState()? > `optional` **verifyBinaryTreePostState**(`accessWitness`): `Promise`\<`boolean`\> #### Parameters | Parameter | Type | | ------ | ------ | | `accessWitness` | `BinaryTreeAccessWitnessInterface` | #### Returns `Promise`\<`boolean`\>