Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyToStr ¶
func KeyToStr(key states.IStateKeyInterface) string
Types ¶
type CloneCache ¶
type CloneCache struct {
// contains filtered or unexported fields
}
func NewCloneDBCache ¶
func NewCloneDBCache(innerCache DBCache, dbCache DBCache) *CloneCache
func (*CloneCache) Commit ¶
func (cloneCache *CloneCache) Commit()
func (*CloneCache) GetInnerCache ¶
func (cloneCache *CloneCache) GetInnerCache() DBCache
func (*CloneCache) TryGet ¶
func (cloneCache *CloneCache) TryGet(prefix store.DataEntryPrefix, key string) (states.IStateValueInterface, error)
type DBCache ¶
type DBCache interface { GetOrAdd(prefix store.DataEntryPrefix, key string, value states.IStateValueInterface) (states.IStateValueInterface, error) TryGet(prefix store.DataEntryPrefix, key string) (states.IStateValueInterface, error) GetWriteSet() *RWSet GetState(codeHash common.Uint160, loc common.Hash) (common.Hash, error) SetState(codeHash common.Uint160, loc, value common.Hash) GetCode(codeHash common.Uint160) ([]byte, error) SetCode(codeHash common.Uint160, code []byte) GetBalance(common.Uint160) *big.Int GetCodeSize(common.Uint160) int AddBalance(common.Uint160, *big.Int) Suicide(codeHash common.Uint160) bool }
type RWSet ¶
func (*RWSet) Add ¶
func (rw *RWSet) Add(prefix store.DataEntryPrefix, key string, value states.IStateValueInterface)
type Read ¶
type Read struct { Key states.IStateKeyInterface Version string }
type Write ¶
type Write struct { Prefix store.DataEntryPrefix Key string Item states.IStateValueInterface IsDeleted bool }