Tokens config file, which is located in src/config/tokens.json
, is used in RedStone web app and redstone-api
. If you want your token to be accessible through redstone-api
npm module you should add it to the config.
- Add token details to
tools/config/predefined-configs/tokens.json
- Run
node tools/config/add-new-tokens-from-predefined-config.js
- Upload the token logo to RedStone CDN, so it is publicly accessible at
https://cdn.redstone.finance/symbols/<TOKEN_NAME_LOWER_CASE>.<IMG_EXTENSION></IMG_EXTENSION>
- Run
node tools/cdn-images/update-tokens-config.js
to replace logo urls in tokens config with redstone CDN urls - Update
redstone-node
dependency inredstone-api
,redstone-app
and other packages wheretokens.json
is used.