store

package
v0.18.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2018 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HasCost          = 10
	ReadCostFlat     = 10
	ReadCostPerByte  = 1
	WriteCostFlat    = 10
	WriteCostPerByte = 10
	KeyCostFlat      = 5
	ValueCostFlat    = 10
	ValueCostPerByte = 1
)

nolint

Variables

This section is empty.

Functions

func First

func First(st KVStore, start, end []byte) (kv cmn.KVPair, ok bool)

Gets the first item.

func Last

func Last(st KVStore, start, end []byte) (kv cmn.KVPair, ok bool)

Gets the last item. `end` is exclusive.

func NewCacheKVStore

func NewCacheKVStore(parent KVStore) *cacheKVStore

nolint

func NewCommitMultiStore

func NewCommitMultiStore(db dbm.DB) *rootMultiStore

nolint

func NewGasKVStore added in v0.18.0

func NewGasKVStore(gasMeter sdk.GasMeter, parent sdk.KVStore) *gasKVStore

nolint

Types

type CacheKVStore

type CacheKVStore = types.CacheKVStore

type CacheMultiStore

type CacheMultiStore = types.CacheMultiStore

type CacheWrap

type CacheWrap = types.CacheWrap

type CacheWrapper

type CacheWrapper = types.CacheWrapper

type CommitID

type CommitID = types.CommitID

type CommitKVStore

type CommitKVStore = types.CommitKVStore

type CommitMultiStore

type CommitMultiStore = types.CommitMultiStore

type CommitStore

type CommitStore = types.CommitStore

func LoadIAVLStore

func LoadIAVLStore(db dbm.DB, id CommitID) (CommitStore, error)

load the iavl store

type Committer

type Committer = types.Committer

type Iterator

type Iterator = types.Iterator

type KVPair added in v0.17.0

type KVPair = types.KVPair

type KVStore

type KVStore = types.KVStore

type MultiStore

type MultiStore = types.MultiStore

type Queryable

type Queryable = types.Queryable

type Store

type Store = types.Store

Import cosmos-sdk/types/store.go for convenience. nolint

type StoreKey

type StoreKey = types.StoreKey

type StoreType

type StoreType = types.StoreType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL