Documentation ¶
Index ¶
- Variables
- 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 GweiToWei(n uint64) *big.Int
- func ToWei(amount uint64) *big.Int
- func WeiToGwei(wei *big.Int) uint64
- func WeiToInt(wei *big.Int) uint64
- func WeiToString(wei *big.Int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var OneGwei *big.Int
OneGwei is a constant equal to 1 billion (1e9)
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.