utils

package
v0.0.0-...-dee77e4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAmount

func FormatAmount(val *big.Int, decimals uint8) float64

func GetAmount

func GetAmount(baseAmount int64, decimals int64) *big.Int

func GetEnv

func GetEnv(env string, defaultVal string) string

func WrapErrors

func WrapErrors(errs ...error) error

Types

type BigInt

type BigInt struct {
	big.Int
}

func NewBigInt

func NewBigInt(val *big.Int) *BigInt

func (*BigInt) Scan

func (b *BigInt) Scan(value interface{}) error

func (*BigInt) Value

func (b *BigInt) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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