ethereumjs-monorepo

@ethereumjs/common / StateManagerInterface

Interface: StateManagerInterface

Hierarchy

Table of contents

Methods

Methods

checkpoint

checkpoint(): Promise<void>

Returns

Promise<void>

Defined in

interfaces.ts:78


clearContractStorage

clearContractStorage(address): Promise<void>

Parameters

Name Type
address Address

Returns

Promise<void>

Defined in

interfaces.ts:77


commit

commit(): Promise<void>

Returns

Promise<void>

Defined in

interfaces.ts:79


deleteAccount

deleteAccount(address): Promise<void>

Parameters

Name Type
address Address

Returns

Promise<void>

Defined in

interfaces.ts:71


getAccount

getAccount(address): Promise<undefined | Account>

Parameters

Name Type
address Address

Returns

Promise<undefined | Account>

Defined in

interfaces.ts:69


getAppliedKey

Optional getAppliedKey(address): Uint8Array

Parameters

Name Type
address Uint8Array

Returns

Uint8Array

Defined in

interfaces.ts:86


getContractCode

getContractCode(address): Promise<Uint8Array>

Parameters

Name Type
address Address

Returns

Promise<Uint8Array>

Defined in

interfaces.ts:74


getContractStorage

getContractStorage(address, key): Promise<Uint8Array>

Parameters

Name Type
address Address
key Uint8Array

Returns

Promise<Uint8Array>

Defined in

interfaces.ts:75


getProof

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

Parameters

Name Type
address Address
storageSlots Uint8Array[]

Returns

Promise<Proof>

Defined in

interfaces.ts:83


getStateRoot

getStateRoot(): Promise<Uint8Array>

Returns

Promise<Uint8Array>

Defined in

interfaces.ts:81


hasStateRoot

hasStateRoot(root): Promise<boolean>

Parameters

Name Type
root Uint8Array

Returns

Promise<boolean>

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>

Defined in

interfaces.ts:72


putAccount

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

Parameters

Name Type
address Address
account? Account

Returns

Promise<void>

Defined in

interfaces.ts:70


putContractCode

putContractCode(address, value): Promise<void>

Parameters

Name Type
address Address
value Uint8Array

Returns

Promise<void>

Defined in

interfaces.ts:73


putContractStorage

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

Parameters

Name Type
address Address
key Uint8Array
value Uint8Array

Returns

Promise<void>

Defined in

interfaces.ts:76


revert

revert(): Promise<void>

Returns

Promise<void>

Defined in

interfaces.ts:80


setStateRoot

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

Parameters

Name Type
stateRoot Uint8Array
clearCache? boolean

Returns

Promise<void>

Defined in

interfaces.ts:82


shallowCopy

shallowCopy(downlevelCaches?): StateManagerInterface

Parameters

Name Type
downlevelCaches? boolean

Returns

StateManagerInterface

Defined in

interfaces.ts:85