This repo contains main PancakeSwap token list and tools to validate it.
npm install @swappery/token-liststoken-lists.json, if you want your list to be available on upcoming list UI page - submit a PR modifying token-lists.json.
src/tokens
checksum:newlistname, generate:newlistname, makelist:newlistname command to package.json analogous to PancakeSwap default and extended list scripts.
checksum.ts, buildList.ts, ci-check.ts, and default.test.ts to handle new list
src/tokens/pancakeswap-extended.json file
yarn makelist:pcs-extended
2.0.1 -> 2.0.2).
minor after makelist command yarn makelist:pcs-extended minor
major after makelist command yarn makelist:pcs-extended major
lists directory
yarn checksum:pcs automatically converts addresses to checksummed versions, it is also part of yarn makelist:pcs)
shell script
Fetch the Top100 Tokens on PancakeSwap v2, and update list.
$ yarn fetch:pcs-top-100
Build token list (pancakeswap-top-100.json)
$ yarn makelist:pcs-top-100
`
Deploying
Token lists will be auto-deployed via netlify when PR is merged to master. Be sure to build the list with yarn makelist:list-name before submitting/merging the PR since it doesn't make much sense building lists within Netlify (because most errors are related to wrong token information and should be fixed prior to landing into master)
Netlify simply takes the json files under lists directory and hosts them on tokens.pancakeswap.finance/list-name.json`