types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoreTypeMulti     = types.StoreTypeMulti
	StoreTypeDB        = types.StoreTypeDB
	StoreTypeIAVL      = types.StoreTypeIAVL
	StoreTypeTransient = types.StoreTypeTransient
	StoreTypeMemory    = types.StoreTypeMemory
)

Variables

This section is empty.

Functions

func DiffKVStores

func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvAs, kvBs []kv.Pair)

DiffKVStores compares two KVstores and returns all the key/value pairs that differ from one another. It also skips value comparison for a set of provided prefixes

func InclusiveEndBytes

func InclusiveEndBytes(inclusiveBytes []byte) (exclusiveBytes []byte)

InclusiveEndBytes returns the []byte that would end a range query such that the input would be included

func NewKVStoreKeys

func NewKVStoreKeys(names ...string) map[string]*KVStoreKey

NewKVStoreKeys returns a map of new pointers to KVStoreKey's. The function will panic if there is a potential conflict in names (see `assertNoPrefix` function for more details).

func NewMemoryStoreKeys

func NewMemoryStoreKeys(names ...string) map[string]*MemoryStoreKey

NewMemoryStoreKeys constructs a new map matching store key names to their respective MemoryStoreKey references. The function will panic if there is a potential conflict in names (see `assertNoPrefix` function for more details).

func NewTransientStoreKeys

func NewTransientStoreKeys(names ...string) map[string]*TransientStoreKey

NewTransientStoreKeys constructs a new map of TransientStoreKey's Must return pointers according to the ocap principle The function will panic if there is a potential conflict in names (see `assertNoPrefix` function for more details).

func PrefixEndBytes

func PrefixEndBytes(prefix []byte) []byte

PrefixEndBytes returns the []byte that would end a range query for all []byte with a certain prefix Deals with last byte of prefix being FF without overflowing

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 CapabilityKey

type CapabilityKey = types.CapabilityKey

type CommitID

type CommitID = types.CommitID

type CommitKVStore

type CommitKVStore = types.CommitKVStore

type CommitMultiStore

type CommitMultiStore = types.CommitMultiStore

type CommitStore

type CommitStore = types.CommitStore

type Committer

type Committer = types.Committer

type ErrorGasOverflow

type ErrorGasOverflow = types.ErrorGasOverflow

type ErrorOutOfGas

type ErrorOutOfGas = types.ErrorOutOfGas

type Gas

type Gas = types.Gas

type GasConfig

type GasConfig = types.GasConfig

type GasMeter

type GasMeter = types.GasMeter

func NewGasMeter

func NewGasMeter(limit Gas) GasMeter

func NewInfiniteGasMeter

func NewInfiniteGasMeter() GasMeter

type Iterator

type Iterator = types.Iterator

func KVStorePrefixIterator

func KVStorePrefixIterator(kvs KVStore, prefix []byte) Iterator

Iterator over all the keys with a certain prefix in ascending order

func KVStorePrefixIteratorPaginated

func KVStorePrefixIteratorPaginated(kvs KVStore, prefix []byte, page, limit uint) Iterator

KVStorePrefixIteratorPaginated returns iterator over items in the selected page. Items iterated and skipped in ascending order.

func KVStoreReversePrefixIterator

func KVStoreReversePrefixIterator(kvs KVStore, prefix []byte) Iterator

Iterator over all the keys with a certain prefix in descending order.

func KVStoreReversePrefixIteratorPaginated

func KVStoreReversePrefixIteratorPaginated(kvs KVStore, prefix []byte, page, limit uint) Iterator

KVStoreReversePrefixIteratorPaginated returns iterator over items in the selected page. Items iterated and skipped in descending order.

type KVPair

type KVPair = types.KVPair

key-value result for iterator queries

type KVStore

type KVStore = types.KVStore

type KVStoreKey

type KVStoreKey = types.KVStoreKey

func NewKVStoreKey

func NewKVStoreKey(name string) *KVStoreKey

NewKVStoreKey returns a new pointer to a KVStoreKey.

type MemoryStoreKey

type MemoryStoreKey = types.MemoryStoreKey

type MultiStore

type MultiStore = types.MultiStore

type MultiStorePersistentCache

type MultiStorePersistentCache = types.MultiStorePersistentCache

type PruningOptions

type PruningOptions = types.PruningOptions

type Queryable

type Queryable = types.Queryable

type Store

type Store = types.Store

type StoreDecoderRegistry

type StoreDecoderRegistry map[string]func(kvA, kvB kv.Pair) string

StoreDecoderRegistry defines each of the modules store decoders. Used for ImportExport simulation.

type StoreKey

type StoreKey = types.StoreKey

type StoreType

type StoreType = types.StoreType

type TraceContext

type TraceContext = types.TraceContext

TraceContext contains TraceKVStore context data. It will be written with every trace operation.

type TransientStoreKey

type TransientStoreKey = types.TransientStoreKey

func NewTransientStoreKey

func NewTransientStoreKey(name string) *TransientStoreKey

Constructs new TransientStoreKey Must return a pointer according to the ocap principle

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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