package
0.0.0-20241020013219-e307e51aef47
Repository: https://github.com/migratooor/tokenlists.git
Documentation: pkg.go.dev

# Functions

Contains returns true if value exists in arr.
CreateFile creates a file with the given path and returns the file object.
No description provided by the author
No description provided by the author
No description provided by the author
GetKey returns the key of a token in a specific format to make it sortable.
No description provided by the author
************************************************************************************************* ** The GetTokensFromAddresses function reads the addresses of the tokens and returns a list of ** tokens with their basic informations (name, symbol, logoURI, decimals, chainID).
No description provided by the author
************************************************************************************************* * The GetTokensFromList function reads the token list and returns a list of tokens with their * basic informations (name, symbol, logoURI, decimals, chainID).
************************************************************************************************* * The groupByChainID function is a small helper function to group tokens by chainID *************************************************************************************************/.
Includes returns true if the provided T is in the provided slice.
No description provided by the author
No description provided by the author
LoadTokenListFromJsonFile loads a token list from a json file.
************************************************************************************************* * The RetrieveBasicInformations function reads the token list and returns a list of tokens with * their basic informations (name, symbol, logoURI, decimals, chainID).
SafeInt returns the provided variable or a fallback if it is empty.
SafeString returns the provided variable or a fallback if it is empty.
SaveChainListInJsonFile saves a chain list in a json file.
SaveTokenListInJsonFile saves a token list in a json file.
No description provided by the author
ToAddress convert a string to a checksummed address.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
BASE_PATH is the base path to access the data informations.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author