Documentation ¶
Index ¶
Constants ¶
View Source
const (
VersionSize = 8
)
Variables ¶
View Source
var (
ErrKeyNotFound = errors.New("key not found")
)
Functions ¶
func RegisterAmino ¶
func RegisterAmino(cdc *amino.Codec)
Types ¶
type RWSet ¶
type RWSet struct { Address common.Address Items *RWSetItems }
type RWSetItems ¶ added in v0.4.1
type RWSetMap ¶
type RWSetMap struct {
// contains filtered or unexported fields
}
func NewRWSetMap ¶
func NewRWSetMap() *RWSetMap
func (*RWSetMap) ToItems ¶ added in v0.4.1
func (m *RWSetMap) ToItems() *RWSetItems
type StateManager ¶ added in v0.4.1
type StateManager struct {
// contains filtered or unexported fields
}
func NewStateManager ¶ added in v0.4.1
func NewStateManager(key sdk.StoreKey) *StateManager
func (StateManager) CommitState ¶ added in v0.4.1
func (sm StateManager) CommitState(ctx sdk.Context, sets RWSets)
type ValueObject ¶
func BytesToValueObject ¶
func BytesToValueObject(b []byte) (*ValueObject, error)
func (ValueObject) Marshal ¶
func (vo ValueObject) Marshal() []byte
func (*ValueObject) Unmarshal ¶
func (vo *ValueObject) Unmarshal(b []byte) error
type Version ¶
func MakeVersion ¶ added in v0.4.0
type VersionedDB ¶
type VersionedDB struct {
// contains filtered or unexported fields
}
func NewVersionedDB ¶
func NewVersionedDB(store types.KVStore) *VersionedDB
func (*VersionedDB) RWSetItems ¶ added in v0.4.1
func (db *VersionedDB) RWSetItems() *RWSetItems
func (*VersionedDB) Set ¶
func (db *VersionedDB) Set(k, v []byte) error
Click to show internal directories.
Click to hide internal directories.