@ethereumjs/statemanager / OriginalStorageCache
Defined in: cache/originalStorageCache.ts:16
Helper class to cache original storage values (so values already being present in the pre-state of a call), mainly for correct gas cost calculation in EVM/VM.
TODO: Usage of this class is very implicit through the injected getStorage()
method bound to the calling state manager. It should be examined if there are alternative
designs being more transparent and direct along the next breaking release round.
new OriginalStorageCache(
getStorage
):OriginalStorageCache
Defined in: cache/originalStorageCache.ts:19
getStorage
OriginalStorageCache
clear():
void
Defined in: cache/originalStorageCache.ts:52
void
get(
address
,key
):Promise
<Uint8Array
<ArrayBufferLike
>>
Defined in: cache/originalStorageCache.ts:24
Address
Uint8Array
Promise
<Uint8Array
<ArrayBufferLike
>>
put(
address
,key
,value
):void
Defined in: cache/originalStorageCache.ts:39
Address
Uint8Array
Uint8Array
void