Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 1.77 KB

README.md

File metadata and controls

48 lines (42 loc) · 1.77 KB

Swap Token List

Token list for swap.country.

Adding new tokens

The Approval process

  1. Technical team will validate the input to ensure the data is matching with the expected pattern
  2. Harmony team will analyze the token and project in terms of value brought into Harmony ecosystem

Requirements and Recommendations

  • One token is accepted per one pull request
  • Token data must match contract data
  • Token must have a logo
  • PR file structure should match the existing structure of the repository (e.g. putting logos in TOKEN_SYMBOL/logo.png)
  • Contract should be verified*
  • Project should have a significant role in network's ecosystem

*We highly recommend that the contract is verified as this will be taken into consideration during the evaluation and approval process by the Harmony team

Steps

  • Fork this repository
  • Create token folder with similar structure: TOKEN_SYMBOL/logo.png. Example
  • Edit tokenlist.json with token data. Example:
    {
      "chainId": 1666600000,
      "address": "0xcf664087a5bb0237a0bad6742852ec6c8d69a27a",
      "symbol": "WONE",
      "name": "Wrapped ONE",
      "decimals": 18,
      "logoURI": "https://raw.githubusercontent.com/harmony-one/swap-token-list/main/assets/WONE/logo.png"
    },
  • Increment the version (if new token is added: minor, if existing token data is edited - patch);
   "version":{
      "major":1,
      "minor":<<x+1>>,
      "patch":0
   }
  • Update a timestamp (UTC in ISO format)
  "timestamp":"2024-05-05T13:16:21Z"
  • Validate that .json file is formatted correctly (with no errors)
  • Create a pull request