ethereumjs-monorepo

@ethereumjs/statemanager / AccessWitness

Class: AccessWitness

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AccessWitness(opts?)

Parameters

Name Type
opts Object
opts.chunks? Map<string, ChunkAccessEvent>
opts.stems? Map<string, StemAccessEvent & StemMeta>

Defined in

accessWitness.ts:78

Properties

chunks

chunks: Map<string, ChunkAccessEvent>

Defined in

accessWitness.ts:76


stems

stems: Map<string, StemAccessEvent & StemMeta>

Defined in

accessWitness.ts:75

Methods

accesses

accesses(): Generator<AccessedStateWithAddress, any, unknown>

Returns

Generator<AccessedStateWithAddress, any, unknown>

Defined in

accessWitness.ts:346


merge

merge(accessWitness): void

Parameters

Name Type
accessWitness AccessWitness

Returns

void

Defined in

accessWitness.ts:306


rawAccesses

rawAccesses(): Generator<RawAccessedState, any, unknown>

Returns

Generator<RawAccessedState, any, unknown>

Defined in

accessWitness.ts:331


shallowCopy

shallowCopy(): AccessWitness

Create a shallow copy, could clone some caches in future for optimizations

Returns

AccessWitness

Defined in

accessWitness.ts:302


touchAddress

touchAddress(address, treeIndex, subIndex, __namedParameters?): AccessEventFlags

Parameters

Name Type
address Address
treeIndex number | bigint
subIndex number | Uint8Array
__namedParameters Object
__namedParameters.isWrite? boolean

Returns

AccessEventFlags

Defined in

accessWitness.ts:249


touchAddressAndChargeGas

touchAddressAndChargeGas(address, treeIndex, subIndex, __namedParameters): bigint

Parameters

Name Type
address Address
treeIndex number | bigint
subIndex number | Uint8Array
__namedParameters Object
__namedParameters.isWrite? boolean

Returns

bigint

Defined in

accessWitness.ts:210


touchAddressOnReadAndComputeGas

touchAddressOnReadAndComputeGas(address, treeIndex, subIndex): bigint

Parameters

Name Type
address Address
treeIndex number | bigint
subIndex number | Uint8Array

Returns

bigint

Defined in

accessWitness.ts:202


touchAddressOnWriteAndComputeGas

touchAddressOnWriteAndComputeGas(address, treeIndex, subIndex): bigint

Parameters

Name Type
address Address
treeIndex number | bigint
subIndex number | Uint8Array

Returns

bigint

Defined in

accessWitness.ts:194


touchAndChargeContractCreateCompleted

touchAndChargeContractCreateCompleted(address): bigint

Parameters

Name Type
address Address

Returns

bigint

Defined in

accessWitness.ts:134


touchAndChargeContractCreateInit

touchAndChargeContractCreateInit(address, __namedParameters?): bigint

Parameters

Name Type
address Address
__namedParameters Object
__namedParameters.sendsValue? boolean

Returns

bigint

Defined in

accessWitness.ts:118


touchAndChargeMessageCall

touchAndChargeMessageCall(address): bigint

Parameters

Name Type
address Address

Returns

bigint

Defined in

accessWitness.ts:100


touchAndChargeProofOfAbsence

touchAndChargeProofOfAbsence(address): bigint

Parameters

Name Type
address Address

Returns

bigint

Defined in

accessWitness.ts:88


touchAndChargeValueTransfer

touchAndChargeValueTransfer(caller, target): bigint

Parameters

Name Type
caller Address
target Address

Returns

bigint

Defined in

accessWitness.ts:109


touchCodeChunksRangeOnReadAndChargeGas

touchCodeChunksRangeOnReadAndChargeGas(contact, startPc, endPc): bigint

Parameters

Name Type
contact Address
startPc number
endPc number

Returns

bigint

Defined in

accessWitness.ts:176


touchCodeChunksRangeOnWriteAndChargeGas

touchCodeChunksRangeOnWriteAndChargeGas(contact, startPc, endPc): bigint

Parameters

Name Type
contact Address
startPc number
endPc number

Returns

bigint

Defined in

accessWitness.ts:185


touchTxTargetAndComputeGas

touchTxTargetAndComputeGas(target, __namedParameters?): bigint

Parameters

Name Type
target Address
__namedParameters Object
__namedParameters.sendsValue? boolean

Returns

bigint

Defined in

accessWitness.ts:159


touchTxOriginAndComputeGas

touchTxOriginAndComputeGas(origin): bigint

Parameters

Name Type
origin Address

Returns

bigint

Defined in

accessWitness.ts:146