Skip to content

Sperax/Sperax-Demeter-Tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Sperax-Demeter-Tokens

Token list for Demeter

Guide for launch new token

  1. Create token folder in "/tokens". The folder name should be token address in lowercase.
  2. 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/'.
  3. Upload the token logo in the token folder in .svg or .png format.
  4. Create token.json in the token folder.
  5. Set the git commit msg to "<token_name> token" when commit the changes and create the pull request.

Guide for "token.json"

  1. 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
}
  1. Setup the price source

Fetch price from coingecko and using other network instead of Arbitrum

{
    "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
        }
    }
}

Fetch price from REST API

{
    "chainId": 42161,
    "address": "0x5575552988a3a80504bbaeb1311674fcfd40ad4b",
    "name": "SPA",
    "symbol": "SPA",
    "logoURI": "logo.svg",
    "decimals": 18,
    "priceSource": {
        "source": "REST",
        "options": "http://XXXX"
    }
}

About

Token list for Demeter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published