Versions in this module Expand all Collapse all v0 v0.0.7 Oct 13, 2020 v0.0.6 Sep 20, 2020 v0.0.5 Jul 5, 2020 v0.0.4 Jun 3, 2020 v0.0.3 May 11, 2020 Changes in this version + type LockOP interface + ApplyTo func(sdk.KVStore) + Key func() []byte type OPManager + func GetOPManager(tp cross.StateConstraintType) (OPManager, error) + AddRead func(key, value []byte) + AddWrite func(key, value []byte) + GetUpdatedValue func(key []byte) ([]byte, bool) + LockOPs func() []LockOP type ReadOP + K []byte + V []byte + func (r ReadOP) Equal(cop cross.OP) bool + func (r ReadOP) Key() []byte + func (r ReadOP) String() string + func (r ReadOP) Type() uint8 + func (r ReadOP) Value() []byte type WriteOP + K []byte + V []byte + func (w WriteOP) ApplyTo(kvs sdk.KVStore) + func (w WriteOP) Equal(cop cross.OP) bool + func (w WriteOP) Key() []byte + func (w WriteOP) String() string + func (w WriteOP) Type() uint8 v0.0.2 May 9, 2020 v0.0.1 May 7, 2020 Changes in this version + const LOCK_TYPE_NONE + const LOCK_TYPE_READ + const LOCK_TYPE_WRITE + const LockStorePrefix + const MainStorePrefix + const OP_NUM + const OP_TYPE_READ + const OP_TYPE_WRITE + const TxStorePrefix + func IsConflictLock(require, current uint8) bool + func RegisterCodec(cdc *codec.Codec) + func RegisterOPCodec(cdc *codec.Codec) + type OP interface + ApplyTo func(sdk.KVStore) + Key func() []byte + Type func() uint8 + type OPManager struct + func NewOPManager() *OPManager + func (m *OPManager) AddOP(op OP) + func (m *OPManager) COPs() cross.OPs + func (m *OPManager) GetLastChange(key []byte) (WriteOP, bool) + func (m *OPManager) OPs() OPs + type OPs []OP + func OptimizeOPs(ops OPs) OPs + type Read struct + K []byte + func (r Read) ApplyTo(sdk.KVStore) + func (r Read) Equal(cop cross.OP) bool + func (r Read) Key() []byte + func (r Read) String() string + func (r Read) Type() uint8 + type ReadOP interface + type Store struct + func NewStore(kvs sdk.KVStore) Store + func (s Store) Commit(id []byte) error + func (s Store) CommitImmediately() error + func (s Store) Delete(key []byte) + func (s Store) Discard(id []byte) error + func (s Store) Get(key []byte) []byte + func (s Store) Has(key []byte) bool + func (s Store) OPs() cross.OPs + func (s Store) Precommit(id []byte) error + func (s Store) Set(key, value []byte) + type Write struct + K []byte + V []byte + func (w Write) ApplyTo(kvs sdk.KVStore) + func (w Write) Equal(cop cross.OP) bool + func (w Write) Key() []byte + func (w Write) String() string + func (w Write) Type() uint8 + func (w Write) Value() []byte + type WriteOP interface + Value func() []byte