Documentation ¶
Index ¶
- func AccAddressFromBech32(address string, checkHRP string) (addr sdk.AccAddress, err error)
- func CoinFromRequestKey(query []byte, accAddr sdk.AccAddress) (sdk.Coin, error)
- func ConvertAccAddressForTestUsingPrefix(address sdk.AccAddress, prefix string) string
- func DenomFromRequestKey(query []byte, accAddr sdk.AccAddress) (string, error)
- func GatherAllKeysFromStore(storeObj store.KVStore) []string
- func GatherValuesFromStore[T any](storeObj store.KVStore, keyStart []byte, keyEnd []byte, ...) ([]T, error)
- func GatherValuesFromStorePrefix[T any](storeObj store.KVStore, prefix []byte, parseValue func([]byte) (T, error)) ([]T, error)
- func GenerateAccAddressForTest() sdk.AccAddress
- func GenerateAccAddressForTestWithPrefix(hrp string) string
- func GenerateRandomHash() []byte
- func GenerateRandomHashAsHex() string
- func GenerateValAddressForTest() sdk.ValAddress
- func GenerateValAddressForTestWithPrefix(hrp string) string
- func GetFirstValueAfterPrefixInclusive[T any](storeObj store.KVStore, keyStart []byte, parseValue func([]byte) (T, error)) (T, error)
- func GetFirstValueInRange[T any](storeObj store.KVStore, keyStart []byte, 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(ctx sdk.Context, ibcKeeper *ibcKeeper.Keeper, connectionID string, ...) error
- func MustGet(store store.KVStore, key []byte, result proto.Message)
- func MustGetDec(store store.KVStore, key []byte) sdk.Dec
- func MustSet(storeObj store.KVStore, key []byte, value proto.Message)
- func MustSetDec(store store.KVStore, key []byte, value sdk.Dec)
- func SortSlice[T constraints.Ordered](s []T)
- func Unique[V interface{}](in []V) []V
- func ValAddressFromBech32(address string, checkHRP string) (addr sdk.ValAddress, err error)
- func ValidateProofOps(ctx sdk.Context, ibcKeeper *ibcKeeper.Keeper, connectionID string, ...) error
- func VerifyNonAdjacent(trustedHeader *types.SignedHeader, trustedVals *types.ValidatorSet, ...) error
- type ContextKey
- type ProofOpsFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccAddressFromBech32 ¶ added in v0.6.0
func AccAddressFromBech32(address string, checkHRP string) (addr sdk.AccAddress, err error)
func CoinFromRequestKey ¶ added in v0.9.6
coinFromRequestKey parses
func ConvertAccAddressForTestUsingPrefix ¶ added in v0.10.0
func ConvertAccAddressForTestUsingPrefix(address sdk.AccAddress, prefix string) string
func DenomFromRequestKey ¶ added in v0.9.6
func DenomFromRequestKey(query []byte, accAddr sdk.AccAddress) (string, error)
func GatherAllKeysFromStore ¶ added in v0.9.0
func GatherValuesFromStore ¶ added in v0.9.0
func GatherValuesFromStorePrefix ¶ added in v0.9.0
func GenerateAccAddressForTest ¶ added in v0.6.6
func GenerateAccAddressForTest() sdk.AccAddress
func GenerateAccAddressForTestWithPrefix ¶ added in v0.9.0
func GenerateRandomHash ¶ added in v0.9.0
func GenerateRandomHash() []byte
func GenerateRandomHashAsHex ¶ added in v0.9.0
func GenerateRandomHashAsHex() string
func GenerateValAddressForTest ¶ added in v0.6.6
func GenerateValAddressForTest() sdk.ValAddress
func GenerateValAddressForTestWithPrefix ¶ added in v0.9.0
func GetFirstValueAfterPrefixInclusive ¶ added in v0.9.0
func GetFirstValueInRange ¶ added in v0.9.0
func GetIterValuesWithStop ¶ added in v0.9.0
func GetValuesUntilDerivedStop ¶ added in v0.9.0
func MockProofOps ¶ added in v0.10.0
func MustGetDec ¶ added in v0.9.0
MustGetDec gets dec value from store at key. Panics on any error.
func MustSet ¶ added in v0.9.0
MustSet runs store.Set(key, proto.Marshal(value)) but panics on any error.
func MustSetDec ¶ added in v0.9.0
MustSetDec sets dec value to store at key. Panics on any error.
func SortSlice ¶ added in v0.9.0
func SortSlice[T constraints.Ordered](s []T)
SortSlice sorts a slice of type T elements that implement constraints.Ordered. Mutates input slice s
func ValAddressFromBech32 ¶ added in v0.6.0
func ValAddressFromBech32(address string, checkHRP string) (addr sdk.ValAddress, err error)
func ValidateProofOps ¶ added in v0.6.0
func VerifyNonAdjacent ¶ added in v0.9.0
func VerifyNonAdjacent( 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
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 ¶ added in v0.6.0
type ContextKey string
func (ContextKey) String ¶ added in v0.6.0
func (c ContextKey) String() string
Click to show internal directories.
Click to hide internal directories.