Documentation ¶
Index ¶
- Constants
- func AppendNotEmpty(slice []string, str string) []string
- func CleanUpHex(s string) string
- func HexStrToBigInt(hexString string) (*big.Int, error)
- func HexStrToBigIntStr(hexString string) (string, error)
- func HumanDuration(seconds int64) string
- func JoinInterfaces(sep string, values ...interface{}) string
- func NormalizeAddress(addr string) string
- func NormalizeAddresses(addrs []string) []string
- func PrettyBond(d decimal.Decimal) string
- func PrettyPercent(d decimal.Decimal) string
- func PrettyToken(d decimal.Decimal, precision int64) string
- func Topic2Address(topic string) string
- func Trim0x(str string) string
- func ValidateAccount(accountAddress string) (string, error)
Constants ¶
View Source
const ZeroAddress = "0x0000000000000000000000000000000000000000"
Variables ¶
This section is empty.
Functions ¶
func AppendNotEmpty ¶
func CleanUpHex ¶
func HexStrToBigInt ¶
HexStrToBigInt transforms a hex sting like "0xff" to a big.Int. Arbitrary length values are possible.
func HexStrToBigIntStr ¶
HexStrToBigIntStr transforms a hex sting like "0xff" to a big int string like "15". Arbitrary length values are possible.
func HumanDuration ¶
func JoinInterfaces ¶
func NormalizeAddress ¶
func NormalizeAddresses ¶
func PrettyBond ¶
func PrettyPercent ¶
func Topic2Address ¶
func ValidateAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.