Documentation ¶
Index ¶
- type CDTStore
- type GSetStore
- type Int64Store
- func (s Int64Store) Add(ctx sdk.Context, key []byte, value int64)
- func (s Int64Store) EQ(ctx sdk.Context, key []byte, value int64) bool
- func (s Int64Store) GT(ctx sdk.Context, key []byte, value int64) bool
- func (s Int64Store) GTE(ctx sdk.Context, key []byte, value int64) bool
- func (s Int64Store) Get(ctx sdk.Context, key []byte) int64
- func (s Int64Store) LT(ctx sdk.Context, key []byte, value int64) bool
- func (s Int64Store) LTE(ctx sdk.Context, key []byte, value int64) bool
- func (s Int64Store) Set(ctx sdk.Context, key []byte, value int64)
- type Store
- func (s Store) Abort(ctx sdk.Context, id []byte) error
- func (s Store) Commit(ctx sdk.Context, id []byte) error
- func (s Store) CommitImmediately(ctx sdk.Context)
- func (s Store) GetGSetStore(prefix []byte) GSetStore
- func (s Store) GetInt64Store(prefix []byte) Int64Store
- func (s Store) Precommit(ctx sdk.Context, id []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDTStore ¶
type CDTStore struct {
// contains filtered or unexported fields
}
CDTStore manages cdt states of each key
func NewCDTStore ¶
func (CDTStore) GetStateOrEmpty ¶
GetStateOrEmpty returns the state corresponding to the key if it exists, otherwise it returns an empty state
type GSetStore ¶
type GSetStore struct {
// contains filtered or unexported fields
}
func NewGSetStore ¶
type Int64Store ¶
type Int64Store struct {
// contains filtered or unexported fields
}
func NewInt64Store ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) CommitImmediately ¶
func (Store) GetGSetStore ¶
func (Store) GetInt64Store ¶
func (s Store) GetInt64Store(prefix []byte) Int64Store
Click to show internal directories.
Click to hide internal directories.