Documentation ¶
Index ¶
- func ConcatBytes(margin int, bzs ...[]byte) []byte
- func DenomFromRequestKey(query []byte, accAddr sdk.AccAddress) (string, error)
- func DeriveIbcDenom(port, channel, denom string) string
- func DeriveIbcDenomTrace(port, channel, denom string) ibctransfertypes.DenomTrace
- 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 LengthPrefixString(s string) []byte
- func MockProofOps(_ sdk.Context, _ *ibckeeper.Keeper, _, _ string, _ int64, _ string, ...) error
- func MockSelfProofOps(_ sdk.Context, _ ClaimsManagerKeeper, _, _ 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 StringSliceToMap(in []string) map[string]bool
- 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, ...) 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 ClaimsManagerKeeper
- type ContextKey
- type ProofOpsFn
- type SelfProofOpsFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatBytes ¶
ConcatBytes creates a new slice by merging list of bytes and leaving empty amount of margin bytes at the end.
func DenomFromRequestKey ¶
func DenomFromRequestKey(query []byte, accAddr sdk.AccAddress) (string, error)
func DeriveIbcDenom ¶
func DeriveIbcDenomTrace ¶
func DeriveIbcDenomTrace(port, channel, denom string) ibctransfertypes.DenomTrace
func GatherAllKeysFromStore ¶
func GatherValuesFromStore ¶
func GetFirstValueInRange ¶
func GetIterValuesWithStop ¶
func LengthPrefixString ¶
LengthPrefixString returns length-prefixed bytes representation of a string.
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 StringSliceToMap ¶
create a map from a slice of strings for efficient lookup
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 ClaimsManagerKeeper ¶
type ClaimsManagerKeeper interface { IterateLastEpochUserClaims(ctx sdk.Context, chainID, address string, fn func(index int64, data claimsmanagertypes.Claim) (stop bool)) GetSelfConsensusState(ctx sdk.Context, key string) (ibctmtypes.ConsensusState, bool) }
type ContextKey ¶
type ContextKey string
func (ContextKey) String ¶
func (c ContextKey) String() string