Versions in this module Expand all Collapse all v1 v1.1.1 Jul 10, 2025 v1.1.0 Jul 10, 2025 Changes in this version + const AvgInt32MaxArrayLength + const BaseDenomExponent + const DefaultBaseDenom + const ExecModeBeginBlock + const ExecModeEndBlock + const ExecModePrepareCheckState + const MaxPriceChangePpm + const OneHundred + const OneMillion + const QuoteCurrencyAtomicResolution + const TenThousand + const ZeroUint64 + var GovModuleAddress = authtypes.NewModuleAddress(govtypes.ModuleName) + var PowerReduction = sdkmath.NewIntFromBigInt(new(big.Int).SetUint64(1_000_000_000_000_000_000)) + func AbsDiffUint64(x uint64, y uint64) uint64 + func AbsInt32(i int32) uint32 + func AbsInt64(i int64) uint64 + func AddUint32(a int64, b uint32) (int64, error) + func AssertCheckTxMode(ctx sdk.Context) + func AssertDeliverTxMode(ctx sdk.Context) + func AvgInt32(nums []int32) int32 + func BaseToQuoteQuantums(bigBaseQuantums *big.Int, baseCurrencyAtomicResolution int32, ...) (bigNotional *big.Int) + func BigDivCeil(a *big.Int, b *big.Int) *big.Int + func BigFloatMaxUint64() *big.Float + func BigI[T int | int32 | int64](i T) *big.Int + func BigInt32Clamp(n *big.Int, lowerBound, upperBound int32) int32 + func BigIntClamp(n *big.Int, lowerBound *big.Int, upperBound *big.Int) *big.Int + func BigIntMulPow10[T int | int32 | int64 | uint | uint32 | uint64](input *big.Int, exponent T, roundUp bool) *big.Int + func BigIntMulPpm(input *big.Int, ppm uint32) *big.Int + func BigIntOneMillion() *big.Int + func BigIntOneTrillion() *big.Int + func BigIntRoundToMultiple(n *big.Int, multiple *big.Int, roundUp bool) *big.Int + func BigMax(a, b *big.Int) *big.Int + func BigMaxInt32() *big.Int + func BigMin(a, b *big.Int) *big.Int + func BigMulPpm(val *big.Int, ppm *big.Int, roundUp bool) *big.Int + func BigNegMaxUint64() *big.Int + func BigPow10[T int | int32 | int64 | uint | uint32 | uint64](exponent T) (result *big.Int, inverse bool) + func BigRat0() *big.Rat + func BigRat1() *big.Rat + func BigRatClamp(n *big.Rat, lowerBound *big.Rat, upperBound *big.Rat) *big.Rat + func BigRatMin(a, b *big.Rat) *big.Rat + func BigRatMulPpm(input *big.Rat, ppm uint32) *big.Rat + func BigRatOneMillion() *big.Rat + func BigRatRound(n *big.Rat, roundUp bool) *big.Int + func BigU[T uint | uint32 | uint64](u T) *big.Int + func BigUint64Clamp(n *big.Int, lowerBound, upperBound uint64) uint64 + func BytesToUint32Array(b []byte) []uint32 + func ChangeRateUint64(originalV uint64, newV uint64) (float32, error) + func ContainsDuplicates[V comparable](values []V) bool + func ConvertBigFloatSliceToUint64Slice(values []*big.Float) ([]uint64, error) + func ConvertBigFloatToUint64(value *big.Float) (uint64, error) + func ConvertStringSliceToBigFloatSlice(values []string) ([]*big.Float, error) + func DedupeSlice[V comparable](values []V) []V + func FilterSlice[V any](values []V, filterFunc func(V) bool) []V + func GetSortedKeys[R interface{ ... }, K comparable, V any](m map[K]V) []K + func Int64MulPpm(x int64, ppm uint32) int64 + func IntToString[T int | int32 | int64](i T) string + func IsDeliverTxMode(ctx sdk.Context) bool + func MapSlice[V any, E any](values []V, mapFunc func(V) E) []E + func MapToSortedSlice[R interface{ ... }, K comparable, V any](m map[K]V) []V + func Max[T constraints.Ordered](x, y T) T + func MaybeGetJsonString(i interface{}) string + func Median[V uint64 | uint32 | int64 | int32](input []V) (V, error) + func MergeAllMapsMustHaveDistinctKeys[K comparable, V any](maps ...map[K]V) map[K]V + func MergeMaps[K comparable, V any](maps ...map[K]V) map[K]V + func Min[T constraints.Ordered](x, y T) T + func MustConvertBigIntToInt32(n *big.Int) int32 + func MustConvertIntegerToUint32[T constraints.Integer](value T) uint32 + func MustDivideUint32RoundUp(x, y uint32) uint32 + func MustGetMedian[V uint64 | uint32 | int64 | int32](input []V) V + func MustParseCoinsNormalized(coinStr string) sdk.Coins + func QuoteToBaseQuantums(bigQuoteQuantums *big.Int, baseCurrencyAtomicResolution int32, ...) (bigNotional *big.Int) + func RandomBytesBetween(start []byte, end []byte, rand *rand.Rand) []byte + func SliceContains[T comparable](list []T, value T) bool + func TxMode(ctx sdk.Context) string + func Uint32ArrayToBytes(arr []uint32) []byte + func Uint32ToKey(i uint32) []byte + func Uint64LinearInterpolate(v0 uint64, v1 uint64, cPpm uint32) (uint64, error) + func Uint64MulPpm(x uint64, ppm uint32) uint64 + func UintToString[T uint | uint32 | uint64](i T) string + func UniqueSliceToMap[K comparable, V any](slice []V, keyFunc func(V) K) map[K]V + func UniqueSliceToSet[K comparable](values []K) map[K]struct + func UnwrapSDKContext(goCtx context.Context, moduleName string) sdk.Context + type MsgRouter interface + Handler func(msg sdk.Msg) baseapp.MsgServiceHandler + type Sortable []K + func (s Sortable[K]) Len() int + func (s Sortable[K]) Less(i, j int) bool + func (s Sortable[K]) Swap(i, j int) + type TxHash string + func GetTxHash(tx []byte) TxHash