ethereumjs-monorepo

@ethereumjs/common / EVMStateManagerInterface

Interface: EVMStateManagerInterface

Hierarchy

Table of contents

Properties

Methods

Properties

originalStorageCache

originalStorageCache: Object

Type declaration

Name Type
clear () => void
get (address: Address, key: Uint8Array) => Promise<Uint8Array>

Defined in

interfaces.ts:90

Methods

checkpoint

checkpoint(): Promise<void>

Returns

Promise<void>

Inherited from

StateManagerInterface.checkpoint

Defined in

interfaces.ts:78


clearContractStorage

clearContractStorage(address): Promise<void>

Parameters

Name Type
address Address

Returns

Promise<void>

Inherited from

StateManagerInterface.clearContractStorage

Defined in

interfaces.ts:77


commit

commit(): Promise<void>

Returns

Promise<void>

Inherited from

StateManagerInterface.commit

Defined in

interfaces.ts:79


deleteAccount

deleteAccount(address): Promise<void>

Parameters

Name Type
address Address

Returns

Promise<void>

Inherited from

StateManagerInterface.deleteAccount

Defined in

interfaces.ts:71


dumpStorage

dumpStorage(address): Promise<StorageDump>

Parameters

Name Type
address Address

Returns

Promise<StorageDump>

Defined in

interfaces.ts:95


dumpStorageRange

dumpStorageRange(address, startKey, limit): Promise<StorageRange>

Parameters

Name Type
address Address
startKey bigint
limit number

Returns

Promise<StorageRange>

Defined in

interfaces.ts:96


generateCanonicalGenesis

generateCanonicalGenesis(initState): Promise<void>

Parameters

Name Type
initState any

Returns

Promise<void>

Defined in

interfaces.ts:97


getAccount

getAccount(address): Promise<undefined | Account>

Parameters

Name Type
address Address

Returns

Promise<undefined | Account>

Inherited from

StateManagerInterface.getAccount

Defined in

interfaces.ts:69


getAppliedKey

Optional getAppliedKey(address): Uint8Array

Parameters

Name Type
address Uint8Array

Returns

Uint8Array

Inherited from

StateManagerInterface.getAppliedKey

Defined in

interfaces.ts:86


getContractCode

getContractCode(address): Promise<Uint8Array>

Parameters

Name Type
address Address

Returns

Promise<Uint8Array>

Inherited from

StateManagerInterface.getContractCode

Defined in

interfaces.ts:74


getContractStorage

getContractStorage(address, key): Promise<Uint8Array>

Parameters

Name Type
address Address
key Uint8Array

Returns

Promise<Uint8Array>

Inherited from

StateManagerInterface.getContractStorage

Defined in

interfaces.ts:75


getProof

getProof(address, storageSlots?): Promise<Proof>

Parameters

Name Type
address Address
storageSlots? Uint8Array[]

Returns

Promise<Proof>

Overrides

StateManagerInterface.getProof

Defined in

interfaces.ts:98


getStateRoot

getStateRoot(): Promise<Uint8Array>

Returns

Promise<Uint8Array>

Inherited from

StateManagerInterface.getStateRoot

Defined in

interfaces.ts:81


hasStateRoot

hasStateRoot(root): Promise<boolean>

Parameters

Name Type
root Uint8Array

Returns

Promise<boolean>

Inherited from

StateManagerInterface.hasStateRoot

Defined in

interfaces.ts:84


modifyAccountFields

modifyAccountFields(address, accountFields): Promise<void>

Parameters

Name Type
address Address
accountFields Partial<Pick<Account, "nonce" | "balance" | "storageRoot" | "codeHash">>

Returns

Promise<void>

Inherited from

StateManagerInterface.modifyAccountFields

Defined in

interfaces.ts:72


putAccount

putAccount(address, account?): Promise<void>

Parameters

Name Type
address Address
account? Account

Returns

Promise<void>

Inherited from

StateManagerInterface.putAccount

Defined in

interfaces.ts:70


putContractCode

putContractCode(address, value): Promise<void>

Parameters

Name Type
address Address
value Uint8Array

Returns

Promise<void>

Inherited from

StateManagerInterface.putContractCode

Defined in

interfaces.ts:73


putContractStorage

putContractStorage(address, key, value): Promise<void>

Parameters

Name Type
address Address
key Uint8Array
value Uint8Array

Returns

Promise<void>

Inherited from

StateManagerInterface.putContractStorage

Defined in

interfaces.ts:76


revert

revert(): Promise<void>

Returns

Promise<void>

Inherited from

StateManagerInterface.revert

Defined in

interfaces.ts:80


setStateRoot

setStateRoot(stateRoot, clearCache?): Promise<void>

Parameters

Name Type
stateRoot Uint8Array
clearCache? boolean

Returns

Promise<void>

Inherited from

StateManagerInterface.setStateRoot

Defined in

interfaces.ts:82


shallowCopy

shallowCopy(downlevelCaches?): EVMStateManagerInterface

Parameters

Name Type
downlevelCaches? boolean

Returns

EVMStateManagerInterface

Overrides

StateManagerInterface.shallowCopy

Defined in

interfaces.ts:100