Project

General

Profile

New feature / Change #4174

Updated by Olivier Bitsch over 2 years ago

Based on attached json file (tokens.json), we need to update it in order to have easy overrides. 

 Here the proposed structure 

 ~~~ 
 [ 
   { 
     "id": "bitcoin", 
     "name": "Bitcoin", 
     "symbol": "btc", 
     "thumb": "https://assets.coingecko.com/coins/images/1/thumb/bitcoin.png", 
     "supported": false, 
     "networks": [] "coingrecko_overrides": {} 
     "capabilities": [] 
   } 
 ] 

 Definition 

 * id : id of the token 
 * name : friendly name of the token 
 * symbol : symbol of the token 
 * supported : does the token to be displayed into wallet 
 * thumb : picture to use 
 * coingrecko_overrides : override coingrecko token value (returned by `https://api.coingecko.com/api/v3/coins/<id>`) 
 * capabilities : what feature will be usabled with this token ("staking", "mining", ...) 

Back