Token list for Demeter
- Create token folder in "/tokens". The folder name should be token address in lowercase.
- To create the folder go inside "/tokens" folder. Click on 'Create new file' and name the file as '<token_address>/' and a new folder will be created with the token address as the name. Eg - For adding SPA token, create a new file with the name '0x5575552988A3A80504bBaeB1311674fCFd40aD4B/'.
- Upload the token logo in the token folder in .svg or .png format.
- Create token.json in the token folder.
- Set the git commit msg to "<token_name> token" when commit the changes and create the pull request.
- The template like this
{
"chainId": 42161,
"address": "0x5575552988a3a80504bbaeb1311674fcfd40ad4b",
"name": "SPA",
"symbol": "SPA",
"logoURI": "logo.svg", // This value should be same as the name of token logo file.
"decimals": 18
}
- Setup the price source
{
"chainId": 42161,
"address": "0x5575552988a3a80504bbaeb1311674fcfd40ad4b",
"name": "SPA",
"symbol": "SPA",
"logoURI": "logo.svg",
"decimals": 18,
"priceSource": {
"source": "coingecko",
"options": {
"contract": "0xb4a3b0faf0ab53df58001804dda5bfc6a3d59008", // set value to the token address on the other network
"platform": "ethereum" // the platform name. e.g ethereum|arbitrum-one
}
}
}
{
"chainId": 42161,
"address": "0x5575552988a3a80504bbaeb1311674fcfd40ad4b",
"name": "SPA",
"symbol": "SPA",
"logoURI": "logo.svg",
"decimals": 18,
"priceSource": {
"source": "REST",
"options": "http://XXXX"
}
}