@ethereumjs/common / EVMStateManagerInterface
↳ EVMStateManagerInterface
• originalStorageCache: Object
| Name | Type |
|---|---|
clear |
() => void |
get |
(address: Address, key: Uint8Array) => Promise<Uint8Array> |
▸ checkpoint(): Promise<void>
Promise<void>
StateManagerInterface.checkpoint
▸ clearContractStorage(address): Promise<void>
| Name | Type |
|---|---|
address |
Address |
Promise<void>
StateManagerInterface.clearContractStorage
▸ commit(): Promise<void>
Promise<void>
▸ deleteAccount(address): Promise<void>
| Name | Type |
|---|---|
address |
Address |
Promise<void>
StateManagerInterface.deleteAccount
▸ dumpStorage(address): Promise<StorageDump>
| Name | Type |
|---|---|
address |
Address |
Promise<StorageDump>
▸ dumpStorageRange(address, startKey, limit): Promise<StorageRange>
| Name | Type |
|---|---|
address |
Address |
startKey |
bigint |
limit |
number |
Promise<StorageRange>
▸ generateCanonicalGenesis(initState): Promise<void>
| Name | Type |
|---|---|
initState |
any |
Promise<void>
▸ getAccount(address): Promise<undefined | Account>
| Name | Type |
|---|---|
address |
Address |
Promise<undefined | Account>
StateManagerInterface.getAccount
▸ Optional getAppliedKey(address): Uint8Array
| Name | Type |
|---|---|
address |
Uint8Array |
Uint8Array
StateManagerInterface.getAppliedKey
▸ getContractCode(address): Promise<Uint8Array>
| Name | Type |
|---|---|
address |
Address |
Promise<Uint8Array>
StateManagerInterface.getContractCode
▸ getContractStorage(address, key): Promise<Uint8Array>
| Name | Type |
|---|---|
address |
Address |
key |
Uint8Array |
Promise<Uint8Array>
StateManagerInterface.getContractStorage
▸ getProof(address, storageSlots?): Promise<Proof>
| Name | Type |
|---|---|
address |
Address |
storageSlots? |
Uint8Array[] |
Promise<Proof>
StateManagerInterface.getProof
▸ getStateRoot(): Promise<Uint8Array>
Promise<Uint8Array>
StateManagerInterface.getStateRoot
▸ hasStateRoot(root): Promise<boolean>
| Name | Type |
|---|---|
root |
Uint8Array |
Promise<boolean>
StateManagerInterface.hasStateRoot
▸ modifyAccountFields(address, accountFields): Promise<void>
| Name | Type |
|---|---|
address |
Address |
accountFields |
Partial<Pick<Account, "nonce" | "balance" | "storageRoot" | "codeHash">> |
Promise<void>
StateManagerInterface.modifyAccountFields
▸ putAccount(address, account?): Promise<void>
| Name | Type |
|---|---|
address |
Address |
account? |
Account |
Promise<void>
StateManagerInterface.putAccount
▸ putContractCode(address, value): Promise<void>
| Name | Type |
|---|---|
address |
Address |
value |
Uint8Array |
Promise<void>
StateManagerInterface.putContractCode
▸ putContractStorage(address, key, value): Promise<void>
| Name | Type |
|---|---|
address |
Address |
key |
Uint8Array |
value |
Uint8Array |
Promise<void>
StateManagerInterface.putContractStorage
▸ revert(): Promise<void>
Promise<void>
▸ setStateRoot(stateRoot, clearCache?): Promise<void>
| Name | Type |
|---|---|
stateRoot |
Uint8Array |
clearCache? |
boolean |
Promise<void>
StateManagerInterface.setStateRoot
▸ shallowCopy(downlevelCaches?): EVMStateManagerInterface
| Name | Type |
|---|---|
downlevelCaches? |
boolean |
StateManagerInterface.shallowCopy