Documentation ¶
Index ¶
- Constants
- func ArrTokenToMap(listToken []ethereum.Token) map[string]ethereum.Token
- func CopyMapToken(mapTokenDest, mapTokenSource map[string]ethereum.Token)
- func FromDestToSrc(destAmount string, rate string, srcDecimals int, destDecimal int) (*big.Int, error)
- func FromSrcToDest(srcAmount string, rate string, srcDecimals int, destDecimal int) (*big.Int, error)
- func GetAmountEnableFirstBit(amount float64, decimals int) *big.Int
- func GetOrAmount(amount *big.Int) *big.Int
- func IsDifferentMapToken(mapTokenA, mapTokenB map[string]ethereum.Token) bool
- func StringToWei(amount string, decimals int) (*big.Int, error)
- func ToToken(amount string, decimals int) (*big.Float, error)
- func ToWei(amount float64, decimals int) *big.Int
- type UserInfo
Constants ¶
View Source
const ( // ETHAddr ethereum address ETHAddr = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" // ETHSymbol ethereum symbol ETHSymbol = "ETH" )
Variables ¶
This section is empty.
Functions ¶
func ArrTokenToMap ¶ added in v1.1.2
ArrTokenToMap convert array token to map with key is address
func CopyMapToken ¶ added in v1.1.2
CopyMapToken make a copy of
func FromDestToSrc ¶
func FromSrcToDest ¶
func IsDifferentMapToken ¶ added in v1.1.2
IsDifferentMapToken compare two map tokens
Types ¶
Click to show internal directories.
Click to hide internal directories.