utils

package
v4.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 8 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() math_utils.PrecDec

Return the base value for price, 1.0001

func GetBlockGasUsed

func GetBlockGasUsed(ctx sdk.Context) (gasUsed uint64, err error)

func MaxIntArr

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

func MinIntArr

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

func MustGetBlockGasUsed

func MustGetBlockGasUsed(ctx sdk.Context) uint64

func MustSafeUint64ToInt64

func MustSafeUint64ToInt64(in uint64) (out int64)

func ParsePrecDecScientificNotation

func ParsePrecDecScientificNotation(n string) (math_utils.PrecDec, error)

func SafeUint64ToInt64

func SafeUint64ToInt64(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