package
0.0.0-20240904073751-07d62d3164ce
Repository: https://github.com/fluidity-money/fluidity-app.git
Documentation: pkg.go.dev

# Functions

GetB16Hash returns the sha1 hash of the byte array encoded to base16.
GetEnvOrDefault returns the env if it is set, otherwise the default value.
GetEnvOrFatal if the env is not set or set to an empty string.
GetTokensListBase starting with the address, token name and decimals.
GetWorkerId by using os.Getenv again.
converts a big.Rat to a float, returning 0 if the rat is nil.
NewTokenDetailsBase with the name and number to turn into an exponential number (ie if given 10, will go 1e10).
PickEnvOrFatal from a list of inputs provided separated by , - picking one at random each time.
generateRandomIntegers gated between min and max, inclusive on both ends, doing some coercion internally to use crypto/rand and assuming that the uint32 requirement in the arguments prevent any size-of-int issues.
RandomString generated by creating a buffer of length / 2, filling it up with randomness then returning the base16 encoded form of it.
No description provided by the author
UnixStringToTime parses a string containing a unix timestamp.

# Constants

Context to use when logging.

# Structs

TokenDetailsBase for the minimum token information, used currently by microservice-common-count-wins.