@uniswap/unsupported-token-list
v11.4.0
Published
◦ The Uniswap unsupported token list
Readme
@uniswap/unsupported-token-list
This NPM module and GitHub repo contains the unsupported token list used in the Uniswap interface.
Adding a new chain:
- Add a new file in src/tokens with the chainname
- update buildlist to include the chain
- 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
- Populate target tokens at the top of
src/scripts/addTokensFromDynamo.ts(array of{ chainId, address }). - Run:
yarn add-tokens-from-dynamo
- The script:
- Fetches
name,symbol,decimalsfor those tokens from DynamoDB - Prints a table to the console
- Upserts those tokens into the corresponding JSON files in
src/tokens/based onchainId - Normalizes symbols (uppercase, no spaces) to satisfy the token list schema
- Fetches
- Commit the JSON edits and bump
package.jsonversion (the list embeds this semver):npm version patch(or minor/major)
- Open PR and merge to
main. CI will build/publish and pin to IPFS.
