package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.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).
CommitmentOpDecoder takes a merkle.ProofOp and attempts to decode it into a CommitmentOp ProofOperator The proofOp.Data is just a marshalled CommitmentProof.
DiffKVStores compares two KVstores and returns all the key/value pairs that differ from one another.
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.
KVStorePrefixIteratorPaginated returns iterator over items in the selected page.
Iterator over all the keys with a certain prefix in descending order.
KVStoreReversePrefixIteratorPaginated returns iterator over items in the selected page.
NewGasMeter returns a reference to a new basicGasMeter.
No description provided by the author
NewInfiniteGasMeter returns a new gas meter without a limit.
NewKVStoreKey returns a new pointer to a KVStoreKey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewStoreKVPairWriteListener wraps creates a StoreKVPairWriteListener with a provdied io.Writer and codec.BinaryCodec.
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.
ProofOpFromMap generates a single proof from a map and converts it to a ProofOp.
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
No description provided by the author
Pruning option string constants.
Pruning option string constants.
Pruning option string constants.
Pruning option string constants.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PruneDefault defines a pruning strategy where the last 362880 heights are kept in addition to every 100th and where to-be pruned heights are pruned at every 10th height.
PruneEverything defines a pruning strategy where all committed heights are deleted, storing only the current and previous height and where to-be pruned heights are pruned at every 10th height.
PruneNothing defines a pruning strategy where all heights are kept on disk.

# Structs

CommitID defines the committment information when a specific store is committed.
CommitInfo defines commit information used by the multi-store when committing a version/height.
CommitmentOp implements merkle.ProofOperator by wrapping an ics23 CommitmentProof It also contains a Key field to determine which key the proof is proving.
ErrorGasOverflow defines an error thrown when an action results gas consumption unsigned integer overflow.
ErrorNegativeGasConsumed defines an error thrown when the amount of gas refunded results in a negative gas consumed amount.
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.
MemoryStoreKey defines a typed key to be used with an in-memory KVStore.
PaginatedIterator is a wrapper around Iterator that iterates over values starting for given page and limit.
PruningOptions defines the pruning strategy used when determining which heights are removed from disk when committing state.
StoreInfo defines store-specific commit information.
StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and Deletes Since: cosmos-sdk 0.43.
StoreKVPairWriteListener is used to configure listening to a KVStore by writing out length-prefixed protobuf encoded StoreKVPairs to an underlying io.Writer.
StoreRename defines a name change of a sub-store.
StoreUpgrades defines a series of transformations to apply the multistore db upon load.
TransientStoreKey is used for indexing transient stores in a MultiStore.

# Interfaces

BasicKVStore is a simple interface to get/set data.
CacheKVStore branches a KVStore and provides read cache functionality.
From MultiStore.CacheMultiStore()....
CacheWrap is the most appropriate interface for store ephemeral branching and cache.
No description provided by the author
CommitKVStore is an interface for MultiStore.
CommitMultiStore is an interface for a MultiStore without cache capabilities.
Stores of MultiStore must implement CommitStore.
something that can persist to disk.
GasMeter interface to track gas consumption.
KVStore additionally provides iteration and deletion.
No description provided by the author
MultiStorePersistentCache defines an interface which provides inter-block (persistent) caching capabilities for multiple CommitKVStores based on StoreKeys.
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.
StoreWithInitialVersion is a store that can have an arbitrary initial version.
WriteListener interface for streaming data out from a listenkv.Store.

# Type aliases

CapabilityKey represent the Cosmos SDK keys for object-capability generation in the IBC protocol as defined in https://github.com/cosmos/ics/tree/master/spec/ics-005-port-allocation#data-structures.
Gas measured by the SDK.
Iterator is an alias db's Iterator for convenience.
key-value result for iterator queries.
kind of store.
TraceContext contains TraceKVStore context data.