Documentation ¶
Index ¶
- func AfToNotNegWei(amount string, errp errstack.Putter) *big.Int
- func AfToPosWei(amount string, errp errstack.Putter) *big.Int
- func AfToWei(amount string, errp errstack.Putter) *big.Int
- func FToWei(amount float64) *big.Int
- func ToWei(amount uint64) *big.Int
- func WeiToInt(wei *big.Int) uint64
- func WeiToString(wei *big.Int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfToNotNegWei ¶
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 ¶
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 ¶
AfToWei takes float number in Ascii, with max 9 digits after comman and converts it to Wei.
func WeiToString ¶
WeiToString turns a number of Wei in to a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.