package
0.23.0-rc.1
Repository: https://github.com/injectivelabs/utils-go.git
Documentation: pkg.go.dev
# README
Token Metadata for Go
Usage
Import this repo directly into your own go repo
Maintain
To add a new token's metadata:
- add a new
token_name: {address:token_address, coinGeckoId:token_coingecko_id, denom:token_denom, metaSource: [Alchemy/custom]}
kv pair intoken_meta.json
- run
make gen
To add some new util functions
- develop your new util functions
- don't forget to run
make build
to make sure no error in compiling at least
# Functions
GetTokenByAddress no case sensitivity, and it's safe to pass address with prefix "peggy" for unknown address, request metadata from alchemy This method rely on an internal cache, so it's safe to call it frequently.
GetTokenByDenom no case sensitivity.
GetTokenBySymbol no case sensitivity, USD/usd/Usd are all fine.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Meta this struct is the same as the metadata in the resp of Alchemy.
No description provided by the author
No description provided by the author
No description provided by the author