package
0.0.0-20200109191904-8d1786a9f689
Repository: https://github.com/joincivil/go-common.git
Documentation: pkg.go.dev

# Functions

IsValidContractAddress returns true is the given string matches a valid smart contract address.
IsValidEthAPIURL returns true if the given string matches a valid eth endpoint URL.
ListCommonAddressesToString converts a list of common.address to a comma delimited string.
ListCommonAddressToListString converts a list of common.address to list of string.
ListIntToListString converts a list of big.int to a list of string.
ListStringToListCommonAddress converts a list of strings to list of common.address.
RandomHexStr generates a hex string from a byte slice of n random numbers.
StringToCommonAddressesList converts a comma delimited string to a list of common.address.
StrOrEmptyStr returns an empty string if a string pointer is nil.
StrToPtr is a convenience func that converts a string to it's pointer.