GithubHelp home page GithubHelp logo

0xbebis / ethereum-optimism.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethereum-optimism/ethereum-optimism.github.io

0.0 0.0 1.0 3.82 MB

Unified token list for Optimism, Base, and other OP Chains

JavaScript 16.99% TypeScript 83.01%

ethereum-optimism.github.io's Introduction

Superchain Token List

The Superchain token list is used as the source of truth for the Optimism bridge UI and Base bridge UI which are the main portals for moving assets between Layer 1 and Layer 2.

Review process and merge criteria

Process overview

  1. Follow the instructions below to create a PR that would add your token to the list.
  2. Wait for a reviewer to kick off the automated checks.
  3. After the automated checks pass and a reviewer approves the PR, then it will automatically be merged.

Note: The standard bridge does not support certain ERC-20 configurations:

Automated checks

Our CI performs a series of automated checks on every PR. These automated checks take place as part of the Validate PR check. Some issues raised by CI will trigger an error and must be resolved before your PR will be approved. These issues are marked below as "auto-reject" issues. Other issues will surface a warning, and will require a manual review from a reviewer. These issues are marked below as "requires manual review".

  • Given tokens actually exist on all specified chains (auto-reject)
  • L1 tokens are verified on Etherscan (auto-reject)
  • Description is under 1000 characters (auto-reject)
  • Token name, symbol, and decimals matches on-chain data (auto-reject)
    • If overrides are used (requires manual review)
  • L2 token was deployed by the StandardTokenFactory or is an L2StandardERC20 token that uses the standard L2 bridge address (0x4200000000000000000000000000000000000010) (requires manual review)
  • Ethereum token listed on the CoinGecko Token List(requires manual review)
    • Why CoinGecko? CoinGecko's token list updates every hour which means we get token list updates very quickly. CoinGecko also uses an in-depth listing criteria.

Debugging Automated checks failures

If your automated checks failed, you can see the reason for the failure by downloading validation-artifacts.zip, unzipping it and opening the validation_results.txt file. To locate the validation-artifacts follow these steps:

  1. Click on the Details link for Validate PR check in your PR
  2. Click Summary in the left panel
  3. Find the section on the page labeled Artifacts and click on validation-artifacts
  4. After download of validation-artifacts.zip, unzip it and open validation_results.txt

If you make changes and need to run the validation check again, you will need to wait for a reviewer to approve the checks to run again. However, if you do not want to wait for a reviewer to approve the checks to run again to see if the failures have been resolved, you can run the validation checks locally by running:

npx tsx ./bin/cli.ts validate --datadir ./data --tokens <data folder name (e.g. ETH)>

Final approval

All PRs are subject to a light-weight final approval, even if not marked as requires manual review. If you are adding a token to a Base chain (e.g. base-goerli) please add @roberto-bayardo as a reviewer.

Adding a token to the list

Create a folder for your token

Create a folder inside of the data folder with the same name as the symbol of the token you are trying to add. For example, if you are adding a token with the symbol "ETH" you must create a folder called ETH.

Add a logo to your folder

Add a logo to the data folder you just created. Your logo MUST be an SVG called logo.svg. Your logo should be at least 200x200 pt minimum and 256x256 pt preferred.

Create a data file

Add a file to your folder called data.json with the following format:

{
  "name": "Token Name",
  "symbol": "SYMBOL",
  "decimals": 18,
  "description": "A multi-chain token",
  "website": "https://token.com",
  "twitter": "@token",
  "tokens": {
    "ethereum": {
      "address": "0x1234123412341234123412341234123412341234"
    },
    "optimism": {
      "address": "0x2345234523452345234523452345234523452345"
    },
    "goerli": {
      "address": "0x5678567856785678567856785678567856785678"
    },
    "optimism-goerli": {
      "address": "0x6789678967896789678967896789678967896789"
    },
    "base-goerli": {
      "address": "0x7890789078907890789078907890789078907890"
    }
  }
}

Please include the token addresses for all of the below chains where the token you are submitting has been deployed. We currently accept tokens on the following chains:

  • ethereum
  • optimism
  • goerli
  • base-goerli
  • optimism-goerli

Non-bridgable tokens

If you would like to add your token to this token list but you do not want your token to be included on the Optimism Bridge app, please include the nobridge option.

{
  "name": "Token Name",
  "symbol": "SYMBOL",
  "decimals": 18,
  "description": "A multi-chain token",
  "website": "https://token.com",
  "twitter": "@token",
  "nobridge": true,
  "tokens": {
    ...
  }
}

Non-standard tokens

If your token is not a standard ERC20 (e.g., DSToken), please include the nonstandard option.

{
  "name": "Token Name",
  "symbol": "SYMBOL",
  "decimals": 18,
  "description": "A multi-chain token",
  "website": "https://token.com",
  "twitter": "@token",
  "nonstandard": true,
  "tokens": {
    ...
  }
}

Per-token overrides

If you require overrides for specific tokens, you can include the overrides field. You are able to override the name, symbol, decimals, or bridge for any token. You do not need to override every token at the same time.

{
  "name": "Token Name",
  "symbol": "SYMBOL",
  "decimals": 18,
  "description": "A multi-chain token",
  "website": "https://token.com",
  "twitter": "@token",
  "tokens": {
    "ethereum": {
      "address": "0x1234123412341234123412341234123412341234",
      "overrides": {
        "name": "My Ethereum Token"
      }
    },
    "optimism": {
      "address": "0x2345234523452345234523452345234523452345",
      "overrides": {
        "bridge": "0x1111111111111111111111111111111111111111"
      }
    }
  }
}

Create a pull request

Open a pull request with the changes that you've made. Please only add one token per pull request to simplify the review process. This means two new files inside of one new folder. If you want to add multiple tokens, please open different PRs for each token.

Respond to validation checks

Your pull request will be validated by a series of automated checks. If one of these checks fails, please resolve these issues and make sure that validation succeeds. We will review your pull request for final approval once automated validation succeeds.

Wait for the token list to update automatically

Once your PR is merged, the token list will update automatically to include your token. Please do NOT update the token list (optimism.tokenlist.json) directly. All token list updates will be handled automatically when PRs are merged into the master branch.

ethereum-optimism.github.io's People

Contributors

42bchen avatar annieke avatar bdresser avatar dbeal-eth avatar developerfred avatar elenadimitrova avatar ethereumdegen avatar fortisfortuna avatar gigamesh avatar han-identity avatar ibitlabs avatar imimim-username avatar k-ho avatar loopfi-io avatar mergify[bot] avatar miroslavnedelchev avatar mjs-12 avatar nicca42 avatar nickbalestra avatar psirex avatar qbzzt avatar qedk avatar red-thales avatar roninjin10 avatar smartcontracts avatar snario avatar tremarkley avatar tzapu avatar vilchesa avatar zainbacchus avatar

Forkers

dashbaord202401

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.