@quickswap-defi/token-list 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,188 @@
1
+ # @quickswap-defi/token-list
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@quickswap-defi/token-list.svg)](https://www.npmjs.com/package/@quickswap-defi/token-list)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@quickswap-defi/token-list.svg)](https://www.npmjs.com/package/@quickswap-defi/token-list)
5
+ [![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg)](https://opensource.org/licenses/GPL-3.0)
6
+ [![Security](https://img.shields.io/badge/provenance-verified-brightgreen)](https://docs.npmjs.com/generating-provenance-statements)
7
+
8
+ Official QuickSwap token list for multi-chain DeFi applications. Includes curated token metadata for Polygon, Base, zkEVM, and other supported networks.
9
+
10
+ ---
11
+
12
+ ## 🚨 Migration Notice
13
+
14
+ **Former package name:** `quickswap-token-lists` (deprecated)
15
+ **New package name:** `@quickswap-defi/token-list`
16
+
17
+ ---
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ # npm
23
+ npm install @quickswap-defi/token-list
24
+
25
+ # pnpm
26
+ pnpm add @quickswap-defi/token-list
27
+
28
+ # yarn
29
+ yarn add @quickswap-defi/token-list
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```typescript
35
+ import tokenList from '@quickswap-defi/token-list';
36
+
37
+ // Access token list data
38
+ console.log(tokenList.name); // "Quickswap Default List"
39
+ console.log(tokenList.version); // { major: 2, minor: 0, patch: 0 }
40
+ console.log(tokenList.tokens); // Array of token metadata
41
+
42
+ // Filter tokens by chain
43
+ const polygonTokens = tokenList.tokens.filter(
44
+ token => token.chainId === 137
45
+ );
46
+
47
+ // Find specific token
48
+ const usdc = tokenList.tokens.find(
49
+ token => token.symbol === 'USDC' && token.chainId === 137
50
+ );
51
+ ```
52
+
53
+ ## Token List Schema
54
+
55
+ The token list follows the [Uniswap Token List Standard](https://tokenlists.org/):
56
+
57
+ ```typescript
58
+ interface TokenList {
59
+ name: string;
60
+ version: {
61
+ major: number;
62
+ minor: number;
63
+ patch: number;
64
+ };
65
+ tokens: Token[];
66
+ keywords?: string[];
67
+ tags?: Record<string, TagDefinition>;
68
+ logoURI?: string;
69
+ }
70
+
71
+ interface Token {
72
+ chainId: number;
73
+ address: string;
74
+ name: string;
75
+ symbol: string;
76
+ decimals: number;
77
+ logoURI?: string;
78
+ tags?: string[];
79
+ }
80
+ ```
81
+
82
+ ## Supported Networks
83
+
84
+ | Network | Chain ID |
85
+ |---------|----------|
86
+ | Polygon | 137 |
87
+ | Ethereum | 1 |
88
+ | Base | 8453 |
89
+ | Polygon zkEVM | 1101 |
90
+ | Manta | 169 |
91
+ | IMX | 13371 |
92
+ | X1 | 195 |
93
+ | Dogechain | 2000 |
94
+ | And more... | See `src/tokens/` |
95
+
96
+ ## Development
97
+
98
+ ### Prerequisites
99
+
100
+ - Node.js >= 18
101
+ - npm >= 8
102
+
103
+ ### Setup
104
+
105
+ ```bash
106
+ # Install dependencies
107
+ npm ci
108
+
109
+ # Run tests
110
+ npm test
111
+
112
+ # Build token list
113
+ npm run build
114
+
115
+ # Output: build/quickswap-default.tokenlist.json
116
+ ```
117
+
118
+ ### Adding a New Token
119
+
120
+ **Token listing is NOT automatic.** We have strict requirements (TVL, Audit, Volume) to protect our users.
121
+
122
+ **Process:**
123
+
124
+ 1. **Review Requirements & Request Listing:**
125
+ To understand the requirements and initiate a listing request, please use our [Token Listing Request Template](https://github.com/QuickSwap/quickswap-default-token-list/issues/new?assignees=&labels=token-listing&projects=&template=token-listing-request.md&title=%5BTOKEN+LISTING%5D+%3CToken+Symbol%3E+-+%3CNetwork%3E).
126
+
127
+ #### Technical Steps (Only After BD Approval)
128
+
129
+ 1. **Edit network file** in `src/tokens/<network>.json`:
130
+
131
+ ```json
132
+ {
133
+ "name": "Example Token",
134
+ "address": "0x...",
135
+ "symbol": "EXT",
136
+ "decimals": 18,
137
+ "chainId": 137,
138
+ "logoURI": "https://assets.quickswap.exchange/tokens/ext.png"
139
+ }
140
+ ```
141
+
142
+ 2. **Run validation:**
143
+
144
+ ```bash
145
+ npm test
146
+ ```
147
+
148
+ 3. **Submit PR** with:
149
+ - Token details
150
+ - Logo in `assets/` folder (optimized WebP, max 15KB)
151
+
152
+ **PRs without prior BD approval will be closed immediately.**
153
+
154
+ ## Security
155
+
156
+ ### NPM Provenance
157
+
158
+ All published versions include [NPM Provenance](https://docs.npmjs.com/generating-provenance-statements) for supply chain security.
159
+
160
+ **Verify authenticity:**
161
+
162
+ ```bash
163
+ npm view @quickswap-defi/token-list@2.0.0 --json | jq '.provenance'
164
+ ```
165
+
166
+ **Manual publish:**
167
+
168
+ ```bash
169
+ # Bump version
170
+ npm version patch # or minor/major
171
+
172
+ # Publish with provenance
173
+ npm publish --access public --provenance
174
+ ```
175
+
176
+ ## License
177
+
178
+ GPL-3.0-or-later - See [LICENSE](./LICENSE)
179
+
180
+ ## Links
181
+
182
+ - **NPM Package:** https://www.npmjs.com/package/@quickswap-defi/token-list
183
+ - **GitHub:** https://github.com/QuickSwap/quickswap-default-token-list
184
+ - **QuickSwap:** https://quickswap.exchange
185
+ - **Discord:** https://discord.com/invite/cSbHcjBSWM
186
+ - **Twitter:** https://twitter.com/QuickswapDEX
187
+
188
+ **Maintained by:** [QuickSwap Team](https://quickswap.exchange)