Documentation ¶
Index ¶
Constants ¶
View Source
const ( ArrayDBPrefix = 0x00 DictDBPrefix = 0x01 VarDBPrefix = 0x02 )
Variables ¶
This section is empty.
Functions ¶
func AppendKeys ¶
Types ¶
type ArrayDB ¶
type ArrayDB struct {
// contains filtered or unexported fields
}
func NewArrayDB ¶
func NewArrayDB(store StateStore, keys ...interface{}) *ArrayDB
type BytesStore ¶
type DictDB ¶
type DictDB struct {
// contains filtered or unexported fields
}
func NewDictDB ¶
func NewDictDB(store StateStore, name interface{}, depth int) *DictDB
type ReadOnlyStore ¶
type StateStore ¶
type StateStore interface { GetValue(key []byte) ([]byte, error) SetValue(key []byte, value []byte) ([]byte, error) DeleteValue(key []byte) ([]byte, error) }
func NewStateStoreWith ¶
func NewStateStoreWith(s ReadOnlyStore) StateStore
type Value ¶
type Value interface { BigInt() *big.Int Int64() int64 Address() module.Address Bytes() []byte String() string Bool() bool }
func NewValueFromBytes ¶
type VarDB ¶
type VarDB struct {
WritableValue
}
func NewVarDB ¶
func NewVarDB(store StateStore, key ...interface{}) *VarDB
type WritableValue ¶
func NewValueFromStore ¶
func NewValueFromStore(store StateStore, kbytes []byte) WritableValue
Click to show internal directories.
Click to hide internal directories.