utils

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(x int64) uint64

func BasePrice

func BasePrice() sdk.Dec

Return the base value for price, 1.0001

func JoinErrors

func JoinErrors(parentError error, errs ...error) error

func MaxDec

func MaxDec(a, b sdk.Dec) sdk.Dec

func MaxInt64

func MaxInt64(a, b int64) int64

func MaxIntArr

func MaxIntArr(vals []sdk.Int) sdk.Int

func MinDec

func MinDec(a, b sdk.Dec) sdk.Dec

func MinInt64

func MinInt64(a, b int64) int64

func MinIntArr

func MinIntArr(vals []sdk.Int) sdk.Int

func MustSafeUint64

func MustSafeUint64(in uint64) (out int64)

func SafeUint64

func SafeUint64(in uint64) (out int64, overflow bool)

func Uint64ToSortableString

func Uint64ToSortableString(i uint64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL