@uniswap/unsupported-token-list
Version:
◦ The Uniswap unsupported token list
34 lines (26 loc) • 1.55 kB
Markdown
# @uniswap/unsupported-token-list
[](https://github.com/Uniswap/unsupported-token-list/actions?query=workflow%3ATests)
[](https://unpkg.com/@uniswap/unsupported-token-list@latest/)
This NPM module and GitHub repo contains the unsupported token list used in the Uniswap interface.
Adding a new chain:
1. Add a new file in src/tokens with the chainname
2. update buildlist to include the chain
3. add a unit test in test/uniswap-unsupported.test.js to verify the chainId is in the list
Adding/updating tokens via DynamoDB script:
Prereqs
- Use Node 20+ locally, or keep Node 18 and use the pinned AWS SDK versions already in package.json
- Set AWS credentials in your shell:
- export AWS_PROFILE=your-profile
- export AWS_REGION=us-east-2
Steps
1. Populate target tokens at the top of `src/scripts/addTokensFromDynamo.ts` (array of `{ chainId, address }`).
2. Run:
- `yarn add-tokens-from-dynamo`
3. The script:
- Fetches `name`, `symbol`, `decimals` for those tokens from DynamoDB
- Prints a table to the console
- Upserts those tokens into the corresponding JSON files in `src/tokens/` based on `chainId`
- Normalizes symbols (uppercase, no spaces) to satisfy the token list schema
4. Commit the JSON edits and bump `package.json` version (the list embeds this semver):
- `npm version patch` (or minor/major)
5. Open PR and merge to `main`. CI will build/publish and pin to IPFS.