Skip to content

Latest commit

 

History

History
308 lines (184 loc) · 7.32 KB

File metadata and controls

308 lines (184 loc) · 7.32 KB

@ethereumjs/statemanager

@ethereumjs/statemanager

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

AccessedStateWithAddress

Ƭ AccessedStateWithAddress: AccessedState & { address: Address ; chunkKey: PrefixedHexString }

Defined in

accessWitness.ts:69


Proof

Ƭ Proof: Object

Type declaration

Name Type
accountProof PrefixedHexString[]
address PrefixedHexString
balance PrefixedHexString
codeHash PrefixedHexString
nonce PrefixedHexString
storageHash PrefixedHexString
storageProof StorageProof[]

Defined in

stateManager.ts:43


StorageProof

Ƭ StorageProof: Object

Type declaration

Name Type
key PrefixedHexString
proof PrefixedHexString[]
value PrefixedHexString

Defined in

stateManager.ts:37

Variables

BALANCE_LEAF_KEY

Const BALANCE_LEAF_KEY: Uint8Array

Defined in

accessWitness.ts:14


CODEHASH_PREFIX

Const CODEHASH_PREFIX: Uint8Array

Prefix to distinguish between a contract deployed with code 0x80 and RLP([]) (also having the value 0x80).

Otherwise the creation of the code hash for the 0x80 contract will be the same as the hash of the empty trie which leads to misbehaviour in the underlying trie library.

Defined in

stateManager.ts:104


CODE_KECCAK_LEAF_KEY

Const CODE_KECCAK_LEAF_KEY: Uint8Array

Defined in

accessWitness.ts:16


CODE_OFFSET

Const CODE_OFFSET: 128

Defined in

accessWitness.ts:20


CODE_SIZE_LEAF_KEY

Const CODE_SIZE_LEAF_KEY: Uint8Array

Defined in

accessWitness.ts:17


HEADER_STORAGE_OFFSET

Const HEADER_STORAGE_OFFSET: 64

Defined in

accessWitness.ts:19


MAIN_STORAGE_OFFSET

Const MAIN_STORAGE_OFFSET: bigint

Defined in

accessWitness.ts:24


NONCE_LEAF_KEY

Const NONCE_LEAF_KEY: Uint8Array

Defined in

accessWitness.ts:15


VERKLE_NODE_WIDTH

Const VERKLE_NODE_WIDTH: 256

Defined in

accessWitness.ts:21


VERSION_LEAF_KEY

Const VERSION_LEAF_KEY: Uint8Array

Tree key constants.

Defined in

accessWitness.ts:13

Functions

decodeAccessedState

decodeAccessedState(treeIndex, chunkIndex): AccessedState

Parameters

Name Type
treeIndex number | bigint
chunkIndex number

Returns

AccessedState

Defined in

accessWitness.ts:378


decodeValue

decodeValue(type, value): string

Parameters

Name Type
type VerkleAccessedStateType
value null | string

Returns

string

Defined in

accessWitness.ts:413


getTreeIndexesForStorageSlot

getTreeIndexesForStorageSlot(storageKey): Object

Parameters

Name Type
storageKey bigint

Returns

Object

Name Type
subIndex number
treeIndex bigint

Defined in

accessWitness.ts:355


getTreeIndicesForCodeChunk

getTreeIndicesForCodeChunk(chunkId): Object

Parameters

Name Type
chunkId number

Returns

Object

Name Type
subIndex number
treeIndex number

Defined in

accessWitness.ts:372