util

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAINNET        = 1029
	TESTNET        = 1
	ESPACE_MAINNET = 1030
	ESPACE_TESTNET = 71
)

Variables

This section is empty.

Functions

func CreateUsageCommand

func CreateUsageCommand(use, short string, version ...string) *cobra.Command

CreateUsageCommand creates a command to display help.

func DisplayValueWithUnit

func DisplayValueWithUnit(drip *big.Int, tokenSymbol ...string) string

DisplayValueWithUnit returns the display format for given drip value.

func GetStringVal added in v1.0.4

func GetStringVal(strPtr *string) string

func MustParseBigInt added in v1.0.1

func MustParseBigInt(value string, exp int32) *big.Int

MustParseBigInt parses the specified value to number and returns value * 10 ^ exp.

func OsExit added in v1.0.2

func OsExit(format string, a ...interface{})

OsExit prints msg and exit

func OsExitIfErr added in v1.0.2

func OsExitIfErr(err error, format string, a ...interface{})

OsExitIfErr prints error msg and exit

func Panic added in v1.0.4

func Panic(format string, a ...interface{})

func PanicIfErr added in v1.0.4

func PanicIfErr(err error, format string, a ...interface{})

func WaitSigAndPrintDot added in v1.0.4

func WaitSigAndPrintDot() chan interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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