npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@crocswap/token-lists

v2.28.0

Published

This repo contains main PancakeSwap token list and tools to validate it.

Downloads

9

Readme

PancakeSwap Token Lists

This repo contains main PancakeSwap token list and tools to validate it.

How to add external lists

URLs to external lists are stored in token-lists.json, if you want your list to be available on upcoming list UI page - submit a PR modifying token-lists.json.

How to add new lists within this repository

  • Add an array of tokens under src/tokens
  • Add checksum:newlistname, generate:newlistname, makelist:newlistname command to package.json analogous to PancakeSwap default and extended list scripts.
  • Modify checksum.ts, buildList.ts, ci-check.ts, and default.test.ts to handle new list

How to add new tokens to PancakeSwap (extended) token list

Note - this is not something we expect pull requests for.
Unless you've been specifically asked by someone from PCS team please do no submit PRs to be listed on default PCS list. You can still trade your tokens on PCS exchange by pasting your address into the token field.

  • Add new tokens to src/tokens/pancakeswap-extended.json file
  • Run yarn makelist:pcs-extended
    • By default new list will have patch version number bumped by 1 (e.g. 2.0.1 -> 2.0.2).
    • If you want to bump minor version add minor after makelist command yarn makelist:pcs-extended minor
    • If you want to bump major version add major after makelist command yarn makelist:pcs-extended major
  • If tests pass - new token list will be created under lists directory

For list to be considered valid it need to satisfy the following criteria:

  • It passes token list schema validation (schema is slightly modified)
  • There are no duplicate addresses, symbols or token names in the list
  • All addresses are valid and checksummed (yarn checksum:pcs automatically converts addresses to checksummed versions, it is also part of yarn makelist:pcs)

How to update Top100 Token list

Note - this is not something we expect pull requests for.

# 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