# Functions
AtTip returns a boolean indicating if a block timestamp is within tipDelay from the current time.
BigPow10 computes the value of 10^e.
BtoMb converts B to MB.
CheckNetworkSupported checks if a Rosetta implementation supports a given *types.NetworkIdentifier.
CheckNetworkTip returns a boolean indicating if the block returned by network/status is at tip.
CheckStorageTip returns a boolean indicating if the current block returned by block storage helper is at tip.
ContainsAccountIdentifier returns a boolean indicating whether the struct s is in arr.
ContainsString returns a boolean indicating whether the string s is in arr.
ContextSleep sleeps for the provided duration and returns an error if context is canceled.
CreateCommandPath creates a unique path for a command and network within a data directory.
CreateTempDir creates a directory in /tmp for usage within testing.
CurrencyBalance returns the balance of an account for a particular currency at a particular height.
EnsurePathExists creates directories along a path if they do not exist.
Equal returns a boolean indicating if two interfaces are equal.
GetAccountBalances returns an array of AccountBalances for an array of AccountBalanceRequests.
LoadAndParse reads the file at the provided path and attempts to unmarshal it into output.
Milliseconds gets the current time in milliseconds.
MonitorMemoryUsage returns a collection of memory usage stats in MB.
NewMutexMap returns a new *MutexMap.
NewShardedMap creates a new *ShardedMap with some number of shards.
PrettyAmount returns a currency amount in native format with its symbol.
RandomNumber returns some number in the range [minimum, maximum).
RemoveTempDir deletes a directory at a provided path for usage within testing.
SerializeAndWrite attempts to serialize the provided object into a file at filePath.
SizeOf returns the size of 'v' in bytes.
TimeToTip returns the estimate time to tip given the current sync speed.
Zero returns a float with 256 bit precision.
# Constants
AllFilePermissions specifies anyone can do anything to the file.
DefaultFilePermissions specifies that the user can read and write the file.
DefaultShards is the default number of shards to use in ShardedMap.
MillisecondsInSecond is the number of milliseconds in a second.
NanosecondsInMillisecond is the number of nanoseconds in a millisecond.
OneHundred is the number 100.
# Variables
ErrNetworkNotSupported is returned when the network you are attempting to connect to is not supported.
OneHundredInt is a big.Int of value 100.
ZeroInt is a big.Int of value 0.
# Structs
AccountBalance defines an account's balance, including either balance or coins, as well as the block which this balance was fetched at.
AccountBalanceRequest defines the required information to get an account's balance.
BST is an implementation of a binary search tree.
MemoryUsage contains memory usage stats converted to MBs.
MutexMap is a struct that allows for acquiring a *PriorityMutex via a string identifier or for acquiring a global mutex that blocks the acquisition of any identifier mutexes.
Node is a Node in a BST.
PriorityMutex is a special type of mutex that allows callers to request priority over other callers.
ShardedMap allows concurrent writes to a map by sharding the map into some number of independently locked subsections.
# Interfaces
No description provided by the author
FetcherHelper is used by util functions to mock Fetcher.