Versions in this module Expand all Collapse all v0 v0.47.5 Sep 22, 2023 Changes in this version + const GasDeleteDesc + const GasHasDesc + const GasIterNextCostFlatDesc + const GasReadCostFlatDesc + const GasReadPerByteDesc + const GasValuePerByteDesc + const GasWriteCostFlatDesc + const GasWritePerByteDesc + const ProofOpIAVLCommitment + const ProofOpSMTCommitment + const ProofOpSimpleMerkleCommitment + const StoreCodespace + var ErrIntOverflowCommitInfo = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowListening = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthCommitInfo = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthListening = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidProof = sdkerrors.Register(StoreCodespace, 2, "invalid proof") + var ErrUnexpectedEndOfGroupCommitInfo = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupListening = fmt.Errorf("proto: unexpected end of group") + func AssertValidKey(key []byte) + func AssertValidValue(value []byte) + func CommitmentOpDecoder(pop tmmerkle.ProofOp) (merkle.ProofOperator, error) + func DiffKVStores(a KVStore, b KVStore, prefixesToSkip [][]byte) (kvAs, kvBs []kv.Pair) + func InclusiveEndBytes(inclusiveBytes []byte) []byte + func PrefixEndBytes(prefix []byte) []byte + func ProofOpFromMap(cmap map[string][]byte, storeName string) (ret tmmerkle.ProofOp, err error) + type BasicKVStore interface + Delete func(key []byte) + Get func(key []byte) []byte + Has func(key []byte) bool + Set func(key, value []byte) + type BlockMetadata struct + DeliverTxs []*BlockMetadata_DeliverTx + RequestBeginBlock *types.RequestBeginBlock + RequestEndBlock *types.RequestEndBlock + ResponseBeginBlock *types.ResponseBeginBlock + ResponseCommit *types.ResponseCommit + ResponseEndBlock *types.ResponseEndBlock + func (*BlockMetadata) Descriptor() ([]byte, []int) + func (*BlockMetadata) ProtoMessage() + func (m *BlockMetadata) GetDeliverTxs() []*BlockMetadata_DeliverTx + func (m *BlockMetadata) GetRequestBeginBlock() *types.RequestBeginBlock + func (m *BlockMetadata) GetRequestEndBlock() *types.RequestEndBlock + func (m *BlockMetadata) GetResponseBeginBlock() *types.ResponseBeginBlock + func (m *BlockMetadata) GetResponseCommit() *types.ResponseCommit + func (m *BlockMetadata) GetResponseEndBlock() *types.ResponseEndBlock + func (m *BlockMetadata) Marshal() (dAtA []byte, err error) + func (m *BlockMetadata) MarshalTo(dAtA []byte) (int, error) + func (m *BlockMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BlockMetadata) Reset() + func (m *BlockMetadata) Size() (n int) + func (m *BlockMetadata) String() string + func (m *BlockMetadata) Unmarshal(dAtA []byte) error + func (m *BlockMetadata) XXX_DiscardUnknown() + func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BlockMetadata) XXX_Merge(src proto.Message) + func (m *BlockMetadata) XXX_Size() int + func (m *BlockMetadata) XXX_Unmarshal(b []byte) error + type BlockMetadata_DeliverTx struct + Request *types.RequestDeliverTx + Response *types.ResponseDeliverTx + func (*BlockMetadata_DeliverTx) Descriptor() ([]byte, []int) + func (*BlockMetadata_DeliverTx) ProtoMessage() + func (m *BlockMetadata_DeliverTx) GetRequest() *types.RequestDeliverTx + func (m *BlockMetadata_DeliverTx) GetResponse() *types.ResponseDeliverTx + func (m *BlockMetadata_DeliverTx) Marshal() (dAtA []byte, err error) + func (m *BlockMetadata_DeliverTx) MarshalTo(dAtA []byte) (int, error) + func (m *BlockMetadata_DeliverTx) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BlockMetadata_DeliverTx) Reset() + func (m *BlockMetadata_DeliverTx) Size() (n int) + func (m *BlockMetadata_DeliverTx) String() string + func (m *BlockMetadata_DeliverTx) Unmarshal(dAtA []byte) error + func (m *BlockMetadata_DeliverTx) XXX_DiscardUnknown() + func (m *BlockMetadata_DeliverTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BlockMetadata_DeliverTx) XXX_Merge(src proto.Message) + func (m *BlockMetadata_DeliverTx) XXX_Size() int + func (m *BlockMetadata_DeliverTx) XXX_Unmarshal(b []byte) error + type CacheKVStore interface + Write func() + type CacheMultiStore interface + Write func() + type CacheWrap interface + CacheWrap func() CacheWrap + CacheWrapWithTrace func(w io.Writer, tc TraceContext) CacheWrap + Write func() + type CacheWrapper interface + CacheWrap func() CacheWrap + CacheWrapWithTrace func(w io.Writer, tc TraceContext) CacheWrap + type CapabilityKey StoreKey + type CommitID struct + Hash []byte + Version int64 + func (*CommitID) Descriptor() ([]byte, []int) + func (*CommitID) ProtoMessage() + func (cid CommitID) IsZero() bool + func (cid CommitID) String() string + func (m *CommitID) GetHash() []byte + func (m *CommitID) GetVersion() int64 + func (m *CommitID) Marshal() (dAtA []byte, err error) + func (m *CommitID) MarshalTo(dAtA []byte) (int, error) + func (m *CommitID) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommitID) Reset() + func (m *CommitID) Size() (n int) + func (m *CommitID) Unmarshal(dAtA []byte) error + func (m *CommitID) XXX_DiscardUnknown() + func (m *CommitID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommitID) XXX_Merge(src proto.Message) + func (m *CommitID) XXX_Size() int + func (m *CommitID) XXX_Unmarshal(b []byte) error + type CommitInfo struct + StoreInfos []StoreInfo + Timestamp time.Time + Version int64 + func (*CommitInfo) Descriptor() ([]byte, []int) + func (*CommitInfo) ProtoMessage() + func (ci CommitInfo) CommitID() CommitID + func (ci CommitInfo) Hash() []byte + func (ci CommitInfo) ProofOp(storeName string) tmcrypto.ProofOp + func (m *CommitInfo) GetStoreInfos() []StoreInfo + func (m *CommitInfo) GetTimestamp() time.Time + func (m *CommitInfo) GetVersion() int64 + func (m *CommitInfo) Marshal() (dAtA []byte, err error) + func (m *CommitInfo) MarshalTo(dAtA []byte) (int, error) + func (m *CommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CommitInfo) Reset() + func (m *CommitInfo) Size() (n int) + func (m *CommitInfo) String() string + func (m *CommitInfo) Unmarshal(dAtA []byte) error + func (m *CommitInfo) XXX_DiscardUnknown() + func (m *CommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CommitInfo) XXX_Merge(src proto.Message) + func (m *CommitInfo) XXX_Size() int + func (m *CommitInfo) XXX_Unmarshal(b []byte) error + type CommitKVStore interface + type CommitMultiStore interface + AddListeners func(key StoreKey, listeners []WriteListener) + GetCommitKVStore func(key StoreKey) CommitKVStore + GetCommitStore func(key StoreKey) CommitStore + ListeningEnabled func(key StoreKey) bool + LoadLatestVersion func() error + LoadLatestVersionAndUpgrade func(upgrades *StoreUpgrades) error + LoadVersion func(ver int64) error + LoadVersionAndUpgrade func(ver int64, upgrades *StoreUpgrades) error + MountStoreWithDB func(key StoreKey, typ StoreType, db dbm.DB) + RollbackToVersion func(version int64) error + SetIAVLCacheSize func(size int) + SetIAVLDisableFastNode func(disable bool) + SetInitialVersion func(version int64) error + SetInterBlockCache func(MultiStorePersistentCache) + SetLazyLoading func(lazyLoading bool) + type CommitStore interface + type CommitmentOp struct + Key []byte + Proof *ics23.CommitmentProof + Spec *ics23.ProofSpec + Type string + func NewIavlCommitmentOp(key []byte, proof *ics23.CommitmentProof) CommitmentOp + func NewSimpleMerkleCommitmentOp(key []byte, proof *ics23.CommitmentProof) CommitmentOp + func NewSmtCommitmentOp(key []byte, proof *ics23.CommitmentProof) CommitmentOp + func (op CommitmentOp) GetKey() []byte + func (op CommitmentOp) ProofOp() tmmerkle.ProofOp + func (op CommitmentOp) Run(args [][]byte) ([][]byte, error) + type Committer interface + Commit func() CommitID + GetPruning func() pruningtypes.PruningOptions + LastCommitID func() CommitID + SetPruning func(pruningtypes.PruningOptions) + type ErrorGasOverflow struct + Descriptor string + type ErrorNegativeGasConsumed struct + Descriptor string + type ErrorOutOfGas struct + Descriptor string + type Gas = uint64 + type GasConfig struct + DeleteCost Gas + HasCost Gas + IterNextCostFlat Gas + ReadCostFlat Gas + ReadCostPerByte Gas + WriteCostFlat Gas + WriteCostPerByte Gas + func KVGasConfig() GasConfig + func TransientGasConfig() GasConfig + type GasMeter interface + ConsumeGas func(amount Gas, descriptor string) + GasConsumed func() Gas + GasConsumedToLimit func() Gas + GasRemaining func() Gas + IsOutOfGas func() bool + IsPastLimit func() bool + Limit func() Gas + RefundGas func(amount Gas, descriptor string) + String func() string + func NewGasMeter(limit Gas) GasMeter + func NewInfiniteGasMeter() GasMeter + type Iterator = dbm.Iterator + func KVStorePrefixIterator(kvs KVStore, prefix []byte) Iterator + func KVStorePrefixIteratorPaginated(kvs KVStore, prefix []byte, page, limit uint) Iterator + func KVStoreReversePrefixIterator(kvs KVStore, prefix []byte) Iterator + func KVStoreReversePrefixIteratorPaginated(kvs KVStore, prefix []byte, page, limit uint) Iterator + type KVPair kv.Pair + type KVStore interface + Iterator func(start, end []byte) Iterator + ReverseIterator func(start, end []byte) Iterator + type KVStoreKey struct + func NewKVStoreKey(name string) *KVStoreKey + func (key *KVStoreKey) Name() string + func (key *KVStoreKey) String() string + type MemoryListener struct + func NewMemoryListener(key StoreKey) *MemoryListener + func (fl *MemoryListener) OnWrite(storeKey StoreKey, key []byte, value []byte, delete bool) error + func (fl *MemoryListener) PopStateCache() []StoreKVPair + func (fl *MemoryListener) StoreKey() StoreKey + type MemoryStoreKey struct + func NewMemoryStoreKey(name string) *MemoryStoreKey + func (key *MemoryStoreKey) Name() string + func (key *MemoryStoreKey) String() string + type MultiStore interface + CacheMultiStore func() CacheMultiStore + CacheMultiStoreWithVersion func(version int64) (CacheMultiStore, error) + GetKVStore func(StoreKey) KVStore + GetStore func(StoreKey) Store + LatestVersion func() int64 + SetTracer func(w io.Writer) MultiStore + SetTracingContext func(TraceContext) MultiStore + TracingEnabled func() bool + type MultiStorePersistentCache interface + GetStoreCache func(key StoreKey, store CommitKVStore) CommitKVStore + Reset func() + Unwrap func(key StoreKey) CommitKVStore + type PaginatedIterator struct + func (pi *PaginatedIterator) Next() + func (pi *PaginatedIterator) Valid() bool + type Queryable interface + Query func(abci.RequestQuery) abci.ResponseQuery + type Store interface + GetStoreType func() StoreType + type StoreInfo struct + CommitId CommitID + Name string + func (*StoreInfo) Descriptor() ([]byte, []int) + func (*StoreInfo) ProtoMessage() + func (m *StoreInfo) GetCommitId() CommitID + func (m *StoreInfo) GetName() string + func (m *StoreInfo) Marshal() (dAtA []byte, err error) + func (m *StoreInfo) MarshalTo(dAtA []byte) (int, error) + func (m *StoreInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *StoreInfo) Reset() + func (m *StoreInfo) Size() (n int) + func (m *StoreInfo) String() string + func (m *StoreInfo) Unmarshal(dAtA []byte) error + func (m *StoreInfo) XXX_DiscardUnknown() + func (m *StoreInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StoreInfo) XXX_Merge(src proto.Message) + func (m *StoreInfo) XXX_Size() int + func (m *StoreInfo) XXX_Unmarshal(b []byte) error + func (si StoreInfo) GetHash() []byte + type StoreKVPair struct + Delete bool + Key []byte + StoreKey string + Value []byte + func (*StoreKVPair) Descriptor() ([]byte, []int) + func (*StoreKVPair) ProtoMessage() + func (m *StoreKVPair) GetDelete() bool + func (m *StoreKVPair) GetKey() []byte + func (m *StoreKVPair) GetStoreKey() string + func (m *StoreKVPair) GetValue() []byte + func (m *StoreKVPair) Marshal() (dAtA []byte, err error) + func (m *StoreKVPair) MarshalTo(dAtA []byte) (int, error) + func (m *StoreKVPair) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *StoreKVPair) Reset() + func (m *StoreKVPair) Size() (n int) + func (m *StoreKVPair) String() string + func (m *StoreKVPair) Unmarshal(dAtA []byte) error + func (m *StoreKVPair) XXX_DiscardUnknown() + func (m *StoreKVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *StoreKVPair) XXX_Merge(src proto.Message) + func (m *StoreKVPair) XXX_Size() int + func (m *StoreKVPair) XXX_Unmarshal(b []byte) error + type StoreKVPairWriteListener struct + func NewStoreKVPairWriteListener(w io.Writer, m codec.Codec) *StoreKVPairWriteListener + func (wl *StoreKVPairWriteListener) OnWrite(storeKey StoreKey, key []byte, value []byte, delete bool) error + type StoreKey interface + Name func() string + String func() string + type StoreRename struct + NewKey string + OldKey string + type StoreType int + const StoreTypeDB + const StoreTypeIAVL + const StoreTypeMemory + const StoreTypeMulti + const StoreTypePersistent + const StoreTypeSMT + const StoreTypeTransient + func (st StoreType) String() string + type StoreUpgrades struct + Added []string + Deleted []string + Renamed []StoreRename + func (s *StoreUpgrades) IsAdded(key string) bool + func (s *StoreUpgrades) IsDeleted(key string) bool + func (s *StoreUpgrades) RenamedFrom(key string) string + type StoreWithInitialVersion interface + SetInitialVersion func(version int64) + type TraceContext map[string]interface + func (tc TraceContext) Clone() TraceContext + func (tc TraceContext) Merge(newTc TraceContext) TraceContext + type TransientStoreKey struct + func NewTransientStoreKey(name string) *TransientStoreKey + func (key *TransientStoreKey) Name() string + func (key *TransientStoreKey) String() string + type WriteListener interface + OnWrite func(storeKey StoreKey, key []byte, value []byte, delete bool) error