Documentation ¶
Index ¶
- func DenomFromRequestKey(query []byte, accAddr sdk.AccAddress) (string, error)
- func GatherAllKeysFromStore(storeObj store.KVStore) []string
- func GatherValuesFromStore[T any](storeObj store.KVStore, keyStart, keyEnd []byte, ...) ([]T, error)
- func GatherValuesFromStorePrefix[T any](storeObj store.KVStore, prefix []byte, parseValue func([]byte) (T, error)) ([]T, error)
- func GetFirstValueAfterPrefixInclusive[T any](storeObj store.KVStore, keyStart []byte, parseValue func([]byte) (T, error)) (T, error)
- func GetFirstValueInRange[T any](storeObj store.KVStore, keyStart, keyEnd []byte, reverseIterate bool, ...) (T, error)
- func GetIterValuesWithStop[T any](storeObj store.KVStore, keyStart []byte, keyEnd []byte, reverse bool, ...) ([]T, error)
- func GetValuesUntilDerivedStop[T any](storeObj store.KVStore, keyStart []byte, stopFn func([]byte) bool, ...) ([]T, error)
- func Keys[V interface{}](in map[string]V) []string
- func MockProofOps(_ sdk.Context, _ *ibckeeper.Keeper, _, _ string, _ int64, _ string, ...) error
- func MockSelfProofOps(_ sdk.Context, _ claimsmanagerkeeper.Keeper, _, _ string, _, _ []byte, ...) error
- func MustGet(storeObj store.KVStore, key []byte, result proto.Message)
- func MustGetDec(storeObj store.KVStore, key []byte) sdk.Dec
- func MustSet(storeObj store.KVStore, key []byte, value proto.Message)
- func MustSetDec(storeObj store.KVStore, key []byte, value sdk.Dec)
- func SortSlice[T constraints.Ordered](s []T)
- func Unique[V interface{}](in []V) []V
- func ValidateProofOps(ctx sdk.Context, ibcKeeper *ibckeeper.Keeper, connectionID, chainID string, ...) error
- func ValidateSelfProofOps(ctx sdk.Context, claimsKeeper claimsmanagerkeeper.Keeper, ...) error
- func Verify(trustedHeader *types.SignedHeader, trustedVals *types.ValidatorSet, ...) error
- func VerifyAdjacent(trustedHeader *types.SignedHeader, untrustedHeader *types.SignedHeader, ...) error
- func VerifyNonAdjacent(trustedHeader *types.SignedHeader, trustedVals *types.ValidatorSet, ...) error
- type ContextKey
- type ProofOpsFn
- type SelfProofOpsFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DenomFromRequestKey ¶
func DenomFromRequestKey(query []byte, accAddr sdk.AccAddress) (string, error)
func GatherAllKeysFromStore ¶
func GatherValuesFromStore ¶
func GetFirstValueInRange ¶
func GetIterValuesWithStop ¶
func MockProofOps ¶
func MockSelfProofOps ¶
func MustGetDec ¶
MustGetDec gets dec value from store at key. Panics on any error.
func MustSetDec ¶
MustSetDec sets dec value to store at key. Panics on any error.
func SortSlice ¶
func SortSlice[T constraints.Ordered](s []T)
SortSlice sorts a slice of type T elements that implement constraints.Ordered. Mutates input slice s.
func ValidateProofOps ¶
func ValidateSelfProofOps ¶
func Verify ¶
func Verify( trustedHeader *types.SignedHeader, trustedVals *types.ValidatorSet, untrustedHeader *types.SignedHeader, untrustedVals *types.ValidatorSet, trustingPeriod time.Duration, now time.Time, maxClockDrift time.Duration, trustLevel tmmath.Fraction, ) error
Verify combines both VerifyAdjacent and VerifyNonAdjacent functions.
func VerifyAdjacent ¶
func VerifyAdjacent( trustedHeader *types.SignedHeader, untrustedHeader *types.SignedHeader, untrustedVals *types.ValidatorSet, trustingPeriod time.Duration, now time.Time, maxClockDrift time.Duration, ) error
func VerifyNonAdjacent ¶
func VerifyNonAdjacent( trustedHeader *types.SignedHeader, trustedVals *types.ValidatorSet, untrustedHeader *types.SignedHeader, untrustedVals *types.ValidatorSet, trustingPeriod time.Duration, now time.Time, _ time.Duration, trustLevel tmmath.Fraction, ) error
VerifyNonAdjacent is identical to VerifyNonAdjacent in tendermint/tendermint/light/verifier.go, with the exception that it does not attempt to validate that the block is _newer_ than the current consensus state.
Types ¶
type ContextKey ¶
type ContextKey string
func (ContextKey) String ¶
func (c ContextKey) String() string
type ProofOpsFn ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.