Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2019 Changes in this version + func KeyToStr(key states.IStateKeyInterface) string + type CloneCache struct + func NewCloneDBCache(innerCache DBCache, dbCache DBCache) *CloneCache + func (cloneCache *CloneCache) Commit() + func (cloneCache *CloneCache) GetInnerCache() DBCache + func (cloneCache *CloneCache) TryGet(prefix store.DataEntryPrefix, key string) (states.IStateValueInterface, error) + type DBCache interface + AddBalance func(common.Uint160, *big.Int) + GetBalance func(common.Uint160) *big.Int + GetCode func(codeHash common.Uint160) ([]byte, error) + GetCodeSize func(common.Uint160) int + GetOrAdd func(prefix store.DataEntryPrefix, key string, value states.IStateValueInterface) (states.IStateValueInterface, error) + GetState func(codeHash common.Uint160, loc common.Hash) (common.Hash, error) + GetWriteSet func() *RWSet + SetCode func(codeHash common.Uint160, code []byte) + SetState func(codeHash common.Uint160, loc, value common.Hash) + Suicide func(codeHash common.Uint160) bool + TryGet func(prefix store.DataEntryPrefix, key string) (states.IStateValueInterface, error) + type RWSet struct + ReadSet map[string]*Read + WriteSet map[string]*Write + func NewRWSet() *RWSet + func (rw *RWSet) Add(prefix store.DataEntryPrefix, key string, value states.IStateValueInterface) + func (rw *RWSet) Delete(key string) + type Read struct + Key states.IStateKeyInterface + Version string + type Write struct + IsDeleted bool + Item states.IStateValueInterface + Key string + Prefix store.DataEntryPrefix