@ethereumjs/statemanager / AccessWitness
• new AccessWitness(opts?)
| Name | Type |
|---|---|
opts |
Object |
opts.chunks? |
Map<string, ChunkAccessEvent> |
opts.stems? |
Map<string, StemAccessEvent & StemMeta> |
• chunks: Map<string, ChunkAccessEvent>
• stems: Map<string, StemAccessEvent & StemMeta>
▸ accesses(): Generator<AccessedStateWithAddress, any, unknown>
Generator<AccessedStateWithAddress, any, unknown>
▸ merge(accessWitness): void
| Name | Type |
|---|---|
accessWitness |
AccessWitness |
void
▸ rawAccesses(): Generator<RawAccessedState, any, unknown>
Generator<RawAccessedState, any, unknown>
▸ shallowCopy(): AccessWitness
Create a shallow copy, could clone some caches in future for optimizations
▸ touchAddress(address, treeIndex, subIndex, __namedParameters?): AccessEventFlags
| Name | Type |
|---|---|
address |
Address |
treeIndex |
number | bigint |
subIndex |
number | Uint8Array |
__namedParameters |
Object |
__namedParameters.isWrite? |
boolean |
AccessEventFlags
▸ touchAddressAndChargeGas(address, treeIndex, subIndex, __namedParameters): bigint
| Name | Type |
|---|---|
address |
Address |
treeIndex |
number | bigint |
subIndex |
number | Uint8Array |
__namedParameters |
Object |
__namedParameters.isWrite? |
boolean |
bigint
▸ touchAddressOnReadAndComputeGas(address, treeIndex, subIndex): bigint
| Name | Type |
|---|---|
address |
Address |
treeIndex |
number | bigint |
subIndex |
number | Uint8Array |
bigint
▸ touchAddressOnWriteAndComputeGas(address, treeIndex, subIndex): bigint
| Name | Type |
|---|---|
address |
Address |
treeIndex |
number | bigint |
subIndex |
number | Uint8Array |
bigint
▸ touchAndChargeContractCreateCompleted(address): bigint
| Name | Type |
|---|---|
address |
Address |
bigint
▸ touchAndChargeContractCreateInit(address, __namedParameters?): bigint
| Name | Type |
|---|---|
address |
Address |
__namedParameters |
Object |
__namedParameters.sendsValue? |
boolean |
bigint
▸ touchAndChargeMessageCall(address): bigint
| Name | Type |
|---|---|
address |
Address |
bigint
▸ touchAndChargeProofOfAbsence(address): bigint
| Name | Type |
|---|---|
address |
Address |
bigint
▸ touchAndChargeValueTransfer(caller, target): bigint
| Name | Type |
|---|---|
caller |
Address |
target |
Address |
bigint
▸ touchCodeChunksRangeOnReadAndChargeGas(contact, startPc, endPc): bigint
| Name | Type |
|---|---|
contact |
Address |
startPc |
number |
endPc |
number |
bigint
▸ touchCodeChunksRangeOnWriteAndChargeGas(contact, startPc, endPc): bigint
| Name | Type |
|---|---|
contact |
Address |
startPc |
number |
endPc |
number |
bigint
▸ touchTxTargetAndComputeGas(target, __namedParameters?): bigint
| Name | Type |
|---|---|
target |
Address |
__namedParameters |
Object |
__namedParameters.sendsValue? |
boolean |
bigint
▸ touchTxOriginAndComputeGas(origin): bigint
| Name | Type |
|---|---|
origin |
Address |
bigint