Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + var ErrNotFound = errors.New("not found") + type DataEntryPrefix byte + const DATA_BLOCK + const DATA_HEADER + const DATA_STATE_MERKLE_ROOT + const DATA_TRANSACTION + const EVENT_NOTIFY + const IX_HEADER_HASH_LIST + const ST_BOOKKEEPER + const ST_CONTRACT + const ST_STORAGE + const ST_VALIDATOR + const ST_VOTE + const SYS_BLOCK_MERKLE_TREE + const SYS_CURRENT_BLOCK + const SYS_CURRENT_STATE_ROOT + const SYS_STATE_MERKLE_TREE + const SYS_VERSION + type EventStore interface + CommitTo func() error + GetEventNotifyByTx func(txHash common.Uint256) (*event.ExecuteNotify, error) + SaveEventNotifyByBlock func(height uint32, txHashs []common.Uint256) + SaveEventNotifyByTx func(txHash common.Uint256, notify *event.ExecuteNotify) error + type ItemState byte + const Changed + const Deleted + const None + type MemoryCacheStore interface + Delete func(prefix byte, key []byte) + Find func() []*StateItem + Get func(prefix byte, key []byte) *StateItem + GetChangeSet func() map[string]*StateItem + Put func(prefix byte, key []byte, value states.StateValue, state ItemState) + type PersistStore interface + BatchCommit func() error + BatchDelete func(key []byte) + BatchPut func(key []byte, value []byte) + Close func() error + Delete func(key []byte) error + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + NewBatch func() + NewIterator func(prefix []byte) StoreIterator + Put func(key []byte, value []byte) error + type StateItem struct + Key string + State ItemState + Trie bool + Value states.StateValue + func (e *StateItem) Copy() *StateItem + type StateStore interface + Find func(prefix DataEntryPrefix, key []byte) ([]*StateItem, error) + TryAdd func(prefix DataEntryPrefix, key []byte, value states.StateValue) + TryDelete func(prefix DataEntryPrefix, key []byte) + TryGet func(prefix DataEntryPrefix, key []byte) (*StateItem, error) + TryGetOrAdd func(prefix DataEntryPrefix, key []byte, value states.StateValue) error + type StoreIterator interface + Error func() error + First func() bool + Key func() []byte + Next func() bool + Release func() + Value func() []byte