Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
a45f9b9
refactor(generators): remove dead code, dedupe, and harden reliability
Majorfi Jul 11, 2026
8bc2325
fix(security): match auth host exactly to prevent bearer token exfilt…
Majorfi Jul 11, 2026
c2545d9
ci: pin actions to SHA, gate PR steps, and wire schema validation
Majorfi Jul 11, 2026
2187333
docs: sync generators, chains, and README with the code
Majorfi Jul 11, 2026
64950c2
fix(lists): correct timestamps and names, remove orphan lists
Majorfi Jul 11, 2026
5470cab
Update tokens.go
Majorfi Jul 11, 2026
bc9d0ad
ci: set least-privilege GITHUB_TOKEN permissions on workflows
Majorfi Jul 11, 2026
25bab27
Merge remote-tracking branch 'origin/main' into chore/pre-revamp-audi…
Majorfi Jul 11, 2026
97b5bc4
Merge remote-tracking branch 'origin/chore/pre-revamp-audit-fixes' in…
Majorfi Jul 11, 2026
f1b57fe
fix(schema): allow empty list-level logoURI and restore it for sushiswap
Majorfi Jul 11, 2026
0628779
fix: address Copilot review — propagate external-list removals and ke…
Majorfi Jul 11, 2026
0bb3898
fix: address Copilot review — non-zero exit on unknown generator, cor…
Majorfi Jul 12, 2026
939c13b
fix(popular): key OccurrenceFloat lookup by chainId and normalized ad…
Majorfi Jul 12, 2026
a737c91
fix(verify): guard non-object token entries and use error.message for…
Majorfi Jul 12, 2026
536bdfe
fix: address Copilot review — nil RPC guards, multicall fd leak, stri…
Majorfi Jul 12, 2026
3378b74
fix: address Copilot review — handle request/write errors, update sch…
Majorfi Jul 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 59 additions & 57 deletions .github/workflows/build-pairs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,64 @@ name: 📑 Updating pairs lists
on:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[bot] - Update lists')"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: GoSetup
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
go-version: '1.19.3'
- name: run
env:
RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }}
RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }}
RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }}
RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }}
RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }}
RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }}
RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }}
RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }}
RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }}
RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }}
RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }}
RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }}
RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }}
RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }}
BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }}
run: go run ./generators pools
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "[bot] - Update lists"
- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: false
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.ref }}
- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "include administrators" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
owner: smoldapp
repo: tokenLists
branch: ${{ github.event.repository.default_branch }}
enforce_admins: true
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[bot] - Update lists')"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: GoSetup
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: run
env:
RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }}
RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }}
RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }}
RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }}
RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }}
RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }}
RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }}
RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }}
RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }}
RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }}
RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }}
RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }}
RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }}
RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }}
BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }}
run: go run ./generators pools
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "[bot] - Update lists"
- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@af281f37de86139d1c7a27b91176b5dc1c2c827c # v1.1.2
if: always()
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: false
- name: Push changes
uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.ref }}
- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@af281f37de86139d1c7a27b91176b5dc1c2c827c # v1.1.2
if: always() # Force to always run this step to ensure "include administrators" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
owner: smoldapp
repo: tokenLists
branch: ${{ github.event.repository.default_branch }}
enforce_admins: true
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
119 changes: 61 additions & 58 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 📑 Updating lists
on:
schedule:
- cron: '0 0 * * Sun'
- cron: "0 0 * * Sun"
push:
branches:
- main
Expand All @@ -10,62 +10,65 @@ on:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[bot] - Update lists')"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: GoSetup
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
go-version: '1.23.4'
- name: run
env:
RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }}
RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }}
RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }}
RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }}
RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }}
RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }}
RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }}
RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }}
RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }}
RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }}
RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }}
RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }}
RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }}
RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }}
BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }}
run: go run ./generators tokens
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "[bot] - Update lists"
- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: false
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.ref }}
- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "include administrators" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
owner: smoldapp
repo: tokenLists
branch: ${{ github.event.repository.default_branch }}
enforce_admins: true
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[bot] - Update lists')"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: GoSetup
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: run
env:
RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }}
RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }}
RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }}
RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }}
RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }}
RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }}
RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }}
RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }}
RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }}
RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }}
RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }}
RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }}
RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }}
RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }}
BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }}
run: go run ./generators tokens
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "[bot] - Update lists"
- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@af281f37de86139d1c7a27b91176b5dc1c2c827c # v1.1.2
if: always() && github.event_name != 'pull_request'
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: false
- name: Push changes
uses: ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0
if: github.event_name != 'pull_request'
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.ref }}
- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@af281f37de86139d1c7a27b91176b5dc1c2c827c # v1.1.2
if: always() && github.event_name != 'pull_request' # Force to always run this step to ensure "include administrators" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
owner: smoldapp
repo: tokenLists
branch: ${{ github.event.repository.default_branch }}
enforce_admins: true
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
90 changes: 31 additions & 59 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,35 @@
name: ♻️ Testing stuff
name: 🧪 CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[bot] - Update lists')"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: GoSetup
uses: actions/setup-go@v3
with:
go-version-file: './go.mod'
go-version: '1.19.3'
- name: run
env:
RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }}
RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }}
RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }}
RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }}
RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }}
RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }}
RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }}
RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }}
RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }}
RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }}
RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }}
RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }}
RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }}
RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }}
BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }}
run: go run ./generators test
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "[bot] - Update lists"
- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always()
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.event.repository.default_branch }}
enforce_admins: false
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: ${{ github.ref }}
- name: Enable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always() # Force to always run this step to ensure "include administrators" is always turned back on
with:
access_token: ${{ secrets.ACCESS_TOKEN }}
owner: smoldapp
repo: tokenLists
branch: ${{ github.event.repository.default_branch }}
enforce_admins: true
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: GoSetup
uses: actions/setup-go@v5
with:
go-version-file: "./go.mod"
- name: Build
run: go build ./...
- name: Vet
run: go vet ./...
- name: NodeSetup
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: npm install
- name: Verify
run: npm run verify
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
![.github/og.png](.github/og.png)

### A quick history

Two years ago, Uniswap launched the [Original Token Lists](https://tokenlists.org/) project. It was described as a community-driven initiative to improve the discoverability, reputation, and trustworthiness of ERC20 token lists in a manner that is inclusive, transparent, and decentralized.

Although widely used, this project has been neglected on the updates side, resulting in its current state of either death or near death:
Although widely used, this project has been neglected on the updates side, resulting in its current state of either death or near death:

- Spam-ridden ([cf1](https://github.com/Uniswap/token-lists/issues), [cf2](https://github.com/Uniswap/tokenlists-org/issues)).
- Outdated (some lists have not been updated for two years).
- Broken (some lists are no longer functional).
Expand All @@ -15,20 +17,23 @@ It's difficult to assign blame for this project's woes. One of the hallmarks of
These lists are great resources for token discovery, scripts and apps, but their reliability is currently questionable.

### Introducing Tokenlistooor!

Tokenlistooor is a fork of the Uniswap project, with a focus on automation and some extra features. It's a one-stop shop for all your list-generation needs:

- **⚙ One Project, One File, One Automatic Generation**: Generate lists using the project API, the project official TokenList, or directly via SmartContract Interactions - no more manual work!
- **📝 Automatic Versioning**: All lists are updated automatically, based on a Patch/Minor/Major versioning system. A patch means an edit, a minor an addition, and a major a deletion - Tokenlistooor takes care of the rest!
- **🔎 Per Network Lists for Smaller Files**: Need a list for a single network? No need to fetch all the rest - just access the one you want for the chain you need!
- **♻️ Auto-Updates**: All lists are regenerated weekly or whenever a push is made, bumping the versions and grabbing the new elements - nothing else to do!
- **🔗 Multichain Support**: Supports chains 1, 10, 56, 100, 137, 250, 42161, and 43114.
- **🦄 Multiple A-Tier Protocols**: Generators are ready for multiple projects, including Coingecko, 1Inch, Paraswap, DefiLlama, Yearn, Curve, Cowswap, Uniswap, Sushiswap, Ledgers, Portals, Bebop and more soon!

- **🔗 Multichain Support**: Supports 25+ chains, including Ethereum, Optimism, BSC, Polygon, Arbitrum, Base, Solana and more - see the full list in [docs/Chains.md](docs/Chains.md).
- **🦄 Multiple A-Tier Protocols**: Close to 40 generators are ready for projects such as Coingecko, 1Inch, Paraswap, DefiLlama, Yearn, Curve, Cowswap, Uniswap, Sushiswap, Jupiter, Portals, Bebop and more - see the full list in [docs/Generators.md](docs/Generators.md).

### How to use the generator

To start the generator, run the following command:
`go run ./generators nameOfTheList`

### Credits and Usage

- Using [1Inch](https://1inch.io/) API to generate the 1Inch Token List
- Using [Coingecko](https://www.coingecko.com/) API to generate the Coingecko Token List
- Using [Curve](https://curve.fi/) API to generate the Curve Token List
Expand Down
3 changes: 3 additions & 0 deletions docs/Chains.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ Our project supports the following chains:
- Arbitrum (ChainID: 42161)
- Celo (ChainID: 42220)
- Avalanche (ChainID: 43114)
- Sophon (ChainID: 50104)
- Ink (ChainID: 57073)
- Linea (ChainID: 59144)
- Berachain (ChainID: 80094)
- Blast (ChainID: 81457)
- Scroll (ChainID: 534352)
- Zora (ChainID: 7777777)
Expand Down
Loading
Loading