wad

package
v0.0.0-...-1715d97 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfToNotNegWei

func AfToNotNegWei(amount string, errp errstack.Putter) *big.Int

AfToNotNegWei takes float number in Ascii, with max 9 digits after comman and converts it to Wei. It puts an error if amount less then zero.

func AfToPosWei

func AfToPosWei(amount string, errp errstack.Putter) *big.Int

AfToPosWei takes float number in Ascii, with max 9 digits after comman and converts it to Wei. It puts an error if amount less or equal zero.

func AfToWei

func AfToWei(amount string, errp errstack.Putter) *big.Int

AfToWei takes float number in Ascii, with max 9 digits after comman and converts it to Wei.

func FToWei

func FToWei(amount float64) *big.Int

FToWei transforms float64 coin 1e16 denominated into wei.

func ToWei

func ToWei(amount uint64) *big.Int

ToWei converts integer (Ether units) to wei

func WeiToInt

func WeiToInt(wei *big.Int) uint64

WeiToInt converts wei to integers (Ether units - 1e18)

func WeiToString

func WeiToString(wei *big.Int) string

WeiToString turns a number of Wei in to a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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