Documentation
¶
Index ¶
- func MergeResultCache(result *ResultCache, to *ResultCache)
- type AccountCache
- func (c AccountCache) Clone() AccountCache
- func (c AccountCache) Get(address types.Address) *environment.Account
- func (c AccountCache) GetSlot(address types.Address, slot types.Slot) *evmInt256.Int
- func (c AccountCache) Merge(cache AccountCache)
- func (c AccountCache) Set(acc *environment.Account)
- func (c AccountCache) SetSlot(address types.Address, slot types.Slot, value *evmInt256.Int)
- type DestructCache
- type LogCache
- type ReadOnlyCache
- type ResultCache
- func (r *ResultCache) CacheAccount(acc *environment.Account) *environment.Account
- func (r *ResultCache) Clone() ResultCache
- func (r *ResultCache) RemoveAccount(addr types.Address)
- func (r *ResultCache) XCachedLoad(address types.Address, slot types.Slot, t TypeOfStorage) *evmInt256.Int
- func (r *ResultCache) XCachedStore(address types.Address, slot types.Slot, val *evmInt256.Int, t TypeOfStorage)
- func (r *ResultCache) XOriginalStore(address types.Address, slot types.Slot, val *evmInt256.Int, t TypeOfStorage)
- type TransientCache
- type TypeOfStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeResultCache ¶
func MergeResultCache(result *ResultCache, to *ResultCache)
Types ¶
type AccountCache ¶
type AccountCache map[types.Address]*environment.Account
func (AccountCache) Clone ¶
func (c AccountCache) Clone() AccountCache
func (AccountCache) Get ¶
func (c AccountCache) Get(address types.Address) *environment.Account
func (AccountCache) Merge ¶
func (c AccountCache) Merge(cache AccountCache)
func (AccountCache) Set ¶
func (c AccountCache) Set(acc *environment.Account)
type DestructCache ¶
func (DestructCache) Clone ¶
func (d DestructCache) Clone() DestructCache
func (DestructCache) Merge ¶
func (d DestructCache) Merge(cache DestructCache)
type ResultCache ¶
type ResultCache struct { OriginalAccounts AccountCache CachedAccounts AccountCache NewContractAccounts AccountCache Logs *LogCache Destructs DestructCache // contains filtered or unexported fields }
func NewResultCache ¶
func NewResultCache() ResultCache
func (*ResultCache) CacheAccount ¶ added in v0.5.0
func (r *ResultCache) CacheAccount(acc *environment.Account) *environment.Account
func (*ResultCache) Clone ¶
func (r *ResultCache) Clone() ResultCache
func (*ResultCache) RemoveAccount ¶ added in v0.5.0
func (r *ResultCache) RemoveAccount(addr types.Address)
func (*ResultCache) XCachedLoad ¶
func (r *ResultCache) XCachedLoad(address types.Address, slot types.Slot, t TypeOfStorage) *evmInt256.Int
func (*ResultCache) XCachedStore ¶
func (r *ResultCache) XCachedStore(address types.Address, slot types.Slot, val *evmInt256.Int, t TypeOfStorage)
func (*ResultCache) XOriginalStore ¶
func (r *ResultCache) XOriginalStore(address types.Address, slot types.Slot, val *evmInt256.Int, t TypeOfStorage)
type TransientCache ¶
func (TransientCache) Clone ¶
func (c TransientCache) Clone() TransientCache
func (TransientCache) Merge ¶
func (c TransientCache) Merge(cache TransientCache)
type TypeOfStorage ¶
type TypeOfStorage int
const ( SStorage TypeOfStorage = 1 TStorage TypeOfStorage = 2 )
Click to show internal directories.
Click to hide internal directories.