package
1.0.15
Repository: https://github.com/netcloth/netcloth-chain.git
Documentation: pkg.go.dev

# Functions

Check if the key is valid(key is not nil).
Check if the value is valid(value is not nil).
----------------------------------------.
Compare two KVstores, return either the first key/value pair at which they differ and whether or not they are equal, skipping value comparison for a set of provided prefixes.
InclusiveEndBytes returns the []byte that would end a range query such that the input would be included.
KVGasConfig returns a default gas config for KVStores.
Iterator over all the keys with a certain prefix in ascending order.
Iterator over all the keys with a certain prefix in descending order.
NewGasMeter returns a reference to a new basicGasMeter.
NewInfiniteGasMeter returns a reference to a new infiniteGasMeter.
NewKVStoreKey returns a new pointer to a KVStoreKey.
No description provided by the author
Constructs new TransientStoreKey Must return a pointer according to the ocap principle.
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.
TransientGasConfig returns a default gas config for TransientStores.

# Constants

Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
Gas consumption descriptors.
No description provided by the author
No description provided by the author
nolint.
No description provided by the author

# Variables

PruneEverything means all saved states will be deleted, storing only the current state.
PruneNothing means all historic states will be saved, nothing will be deleted.
PruneSyncable means only those states not needed for state syncing will be deleted (keeps last 100 + every 10000th).

# Structs

CommitID contains the tree version number and its merkle root.
ErrorGasOverflow defines an error thrown when an action results gas consumption unsigned integer overflow.
ErrorOutOfGas defines an error thrown when an action results in out of gas.
GasConfig defines gas cost for each operation on KVStores.
KVStoreKey is used for accessing substores.
PruningStrategy specifies how old states will be deleted over time where keepRecent can be used with keepEvery to create a pruning "strategy".
TransientStoreKey is used for indexing transient stores in a MultiStore.

# Interfaces

CacheKVStore cache-wraps a KVStore.
From MultiStore.CacheMultiStore()....
CacheWrap makes the most appropriate cache-wrap.
No description provided by the author
Stores of MultiStore must implement CommitStore.
A non-cache MultiStore.
Stores of MultiStore must implement CommitStore.
something that can persist to disk.
GasMeter interface to track gas consumption.
KVStore is a simple interface to get/set data.
No description provided by the author
Queryable allows a Store to expose internal state to the abci.Query interface.
No description provided by the author
StoreKey is a key used to index stores in a MultiStore.

# Type aliases

Gas measured by the SDK.
Alias iterator to db's Iterator for convenience.
key-value result for iterator queries.
kind of store.
TraceContext contains TraceKVStore context data.