This PR adds searching of NPM chain-registry package data for native and IBC asset data and related coingecko_id information which is then used to query CoinGecko with environment variable keys:
COIN_GECKO_PRO_API_KEY
COIN_GECKO_DEMO_API_KEY
If the price IDs and prices exist: these values are cached appropriately (dependent on type of CoinGecko API key) and the token pairs list is sorted by the total value locked in approximate USD.
Also env vars:
CHAIN_REGISTRY_CHAIN_NAME is used to generate a list of native and IBC assets for the chain name
DEV_TOKEN_MAP allows simulating real token prices and values using dev token denoms
eg. mapping common priceBot tokens: stake to untrn and token to IBC denom of Axelar's uusdc will allow token pair sorting with the Coin Gecko prices for these real tokens
This PR adds searching of NPM
chain-registry
package data for native and IBC asset data and relatedcoingecko_id
information which is then used to query CoinGecko with environment variable keys:COIN_GECKO_PRO_API_KEY
COIN_GECKO_DEMO_API_KEY
If the price IDs and prices exist: these values are cached appropriately (dependent on type of CoinGecko API key) and the token pairs list is sorted by the total value locked in approximate USD.
Also env vars:
CHAIN_REGISTRY_CHAIN_NAME
is used to generate a list of native and IBC assets for the chain nameDEV_TOKEN_MAP
allows simulating real token prices and values using dev token denomsstake
tountrn
andtoken
to IBC denom of Axelar'suusdc
will allow token pair sorting with the Coin Gecko prices for these real tokens