@swapkit/tokens 1.0.0-rc.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/LICENSE +201 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +29069 -0
- package/dist/index.es.js +34669 -0
- package/package.json +49 -0
- package/src/index.ts +13 -0
- package/src/tokenLists/1inch.ts +243 -0
- package/src/tokenLists/Coingecko.ts +25605 -0
- package/src/tokenLists/Maya.ts +25 -0
- package/src/tokenLists/Native.ts +25 -0
- package/src/tokenLists/Pancakeswap.ts +2140 -0
- package/src/tokenLists/Pancakeswapeth.ts +292 -0
- package/src/tokenLists/Pangolin.ts +1012 -0
- package/src/tokenLists/Stargatearb.ts +32 -0
- package/src/tokenLists/Sushiswap.ts +2934 -0
- package/src/tokenLists/Thorchain.ts +139 -0
- package/src/tokenLists/Traderjoe.ts +682 -0
- package/src/tokenLists/Uniswap.ts +1491 -0
- package/src/tokenLists/Woofi.ts +46 -0
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "swapkit-oss-team",
|
|
3
|
+
"description": "SwapKit Lib tokens",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"@types/fs-extra": "11.0.1",
|
|
6
|
+
"@vitest/coverage-istanbul": "0.34.4",
|
|
7
|
+
"fs-extra": "11.1.1",
|
|
8
|
+
"vite": "4.4.9",
|
|
9
|
+
"vitest": "0.34.4",
|
|
10
|
+
"@internal/config": "0.0.0-internal.0",
|
|
11
|
+
"@swapkit/api": "1.0.0-rc.0",
|
|
12
|
+
"@swapkit/types": "1.0.0-rc.0"
|
|
13
|
+
},
|
|
14
|
+
"eslintConfig": {
|
|
15
|
+
"extends": "../../../internal/eslint-config"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/index.es.js",
|
|
20
|
+
"require": "./dist/index.cjs",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"src/",
|
|
26
|
+
"dist/"
|
|
27
|
+
],
|
|
28
|
+
"homepage": "https://github.com/thorswap/SwapKit",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"main": "./dist/index.cjs",
|
|
31
|
+
"module": "./dist/index.es.js",
|
|
32
|
+
"name": "@swapkit/tokens",
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"react-native": "./src/index.ts",
|
|
37
|
+
"repository": "https://github.com/thorswap/SwapKit.git",
|
|
38
|
+
"type": "module",
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"version": "1.0.0-rc.0",
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "vite build",
|
|
43
|
+
"generate-tokens": "node ./scripts/fetchTokenLists.js",
|
|
44
|
+
"clean": "rm -rf dist vite.config.ts.* .turbo node_modules",
|
|
45
|
+
"lint": "prettier --check --write .",
|
|
46
|
+
"test": "echo 'vitest --run'",
|
|
47
|
+
"test:coverage": "echo 'vitest run --coverage'"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { list as OneInchList } from './tokenLists/1inch.ts';
|
|
2
|
+
export { list as CoinGeckoList } from './tokenLists/Coingecko.ts';
|
|
3
|
+
export { list as MayaList } from './tokenLists/Maya.ts';
|
|
4
|
+
export { list as NativeList } from './tokenLists/Native.ts';
|
|
5
|
+
export { list as PancakeswapList } from './tokenLists/Pancakeswap.ts';
|
|
6
|
+
export { list as PancakeswapETHList } from './tokenLists/Pancakeswapeth.ts';
|
|
7
|
+
export { list as PangolinList } from './tokenLists/Pangolin.ts';
|
|
8
|
+
export { list as StargateARBList } from './tokenLists/Stargatearb.ts';
|
|
9
|
+
export { list as SushiswapList } from './tokenLists/Sushiswap.ts';
|
|
10
|
+
export { list as ThorchainList } from './tokenLists/Thorchain.ts';
|
|
11
|
+
export { list as TraderjoeList } from './tokenLists/Traderjoe.ts';
|
|
12
|
+
export { list as UniswapList } from './tokenLists/Uniswap.ts';
|
|
13
|
+
export { list as WoofiList } from './tokenLists/Woofi.ts';
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
export const list = {
|
|
2
|
+
name: 'Trust Wallet: Ethereum',
|
|
3
|
+
timestamp: '2021-11-09T22:30:24.689Z',
|
|
4
|
+
version: { major: 14, minor: 0, patch: 0 },
|
|
5
|
+
tokens: [
|
|
6
|
+
{
|
|
7
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
8
|
+
chain: 'ETH',
|
|
9
|
+
identifier: 'ETH.WETH-0XC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2',
|
|
10
|
+
decimals: 18,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
address: '0x0000000000085d4780B73119b644AE5ecd22b376',
|
|
14
|
+
chain: 'ETH',
|
|
15
|
+
identifier: 'ETH.TUSD-0X0000000000085D4780B73119B644AE5ECD22B376',
|
|
16
|
+
decimals: 18,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
address: '0x0Ae055097C6d159879521C384F1D2123D1f195e6',
|
|
20
|
+
chain: 'ETH',
|
|
21
|
+
identifier: 'ETH.STAKE-0X0AE055097C6D159879521C384F1D2123D1F195E6',
|
|
22
|
+
decimals: 18,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
address: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
|
|
26
|
+
chain: 'ETH',
|
|
27
|
+
identifier: 'ETH.YFI-0X0BC529C00C6401AEF6D220BE8C6EA1667F6AD93E',
|
|
28
|
+
decimals: 18,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
address: '0x0D8775F648430679A709E98d2b0Cb6250d2887EF',
|
|
32
|
+
chain: 'ETH',
|
|
33
|
+
identifier: 'ETH.BAT-0X0D8775F648430679A709E98D2B0CB6250D2887EF',
|
|
34
|
+
decimals: 18,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
address: '0x0F5D2fB29fb7d3CFeE444a200298f468908cC942',
|
|
38
|
+
chain: 'ETH',
|
|
39
|
+
identifier: 'ETH.MANA-0X0F5D2FB29FB7D3CFEE444A200298F468908CC942',
|
|
40
|
+
decimals: 18,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
address: '0x111111111117dC0aa78b770fA6A738034120C302',
|
|
44
|
+
chain: 'ETH',
|
|
45
|
+
identifier: 'ETH.1INCH-0X111111111117DC0AA78B770FA6A738034120C302',
|
|
46
|
+
decimals: 18,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
address: '0x1985365e9f78359a9B6AD760e32412f4a445E862',
|
|
50
|
+
chain: 'ETH',
|
|
51
|
+
identifier: 'ETH.REP-0X1985365E9F78359A9B6AD760E32412F4A445E862',
|
|
52
|
+
decimals: 18,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
address: '0x1cEB5cB57C4D4E2b2433641b95Dd330A33185A44',
|
|
56
|
+
chain: 'ETH',
|
|
57
|
+
identifier: 'ETH.KP3R-0X1CEB5CB57C4D4E2B2433641B95DD330A33185A44',
|
|
58
|
+
decimals: 18,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
address: '0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984',
|
|
62
|
+
chain: 'ETH',
|
|
63
|
+
identifier: 'ETH.UNI-0X1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
|
|
64
|
+
decimals: 18,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599',
|
|
68
|
+
chain: 'ETH',
|
|
69
|
+
identifier: 'ETH.WBTC-0X2260FAC5E5542A773AA44FBCFEDF7C193BC2C599',
|
|
70
|
+
decimals: 8,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
address: '0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39',
|
|
74
|
+
chain: 'ETH',
|
|
75
|
+
identifier: 'ETH.HEX-0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39',
|
|
76
|
+
decimals: 8,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
address: '0x2ba592F78dB6436527729929AAf6c908497cB200',
|
|
80
|
+
chain: 'ETH',
|
|
81
|
+
identifier: 'ETH.CREAM-0X2BA592F78DB6436527729929AAF6C908497CB200',
|
|
82
|
+
decimals: 18,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
address: '0x408e41876cCCDC0F92210600ef50372656052a38',
|
|
86
|
+
chain: 'ETH',
|
|
87
|
+
identifier: 'ETH.REN-0X408E41876CCCDC0F92210600EF50372656052A38',
|
|
88
|
+
decimals: 18,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
address: '0x40FD72257597aA14C7231A7B1aaa29Fce868F677',
|
|
92
|
+
chain: 'ETH',
|
|
93
|
+
identifier: 'ETH.XOR-0X40FD72257597AA14C7231A7B1AAA29FCE868F677',
|
|
94
|
+
decimals: 18,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
address: '0x514910771AF9Ca656af840dff83E8264EcF986CA',
|
|
98
|
+
chain: 'ETH',
|
|
99
|
+
identifier: 'ETH.LINK-0X514910771AF9CA656AF840DFF83E8264ECF986CA',
|
|
100
|
+
decimals: 18,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
address: '0x57Ab1ec28D129707052df4dF418D58a2D46d5f51',
|
|
104
|
+
chain: 'ETH',
|
|
105
|
+
identifier: 'ETH.sUSD-0X57AB1EC28D129707052DF4DF418D58A2D46D5F51',
|
|
106
|
+
decimals: 18,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
address: '0x584bC13c7D411c00c01A62e8019472dE68768430',
|
|
110
|
+
chain: 'ETH',
|
|
111
|
+
identifier: 'ETH.HEGIC-0X584BC13C7D411C00C01A62E8019472DE68768430',
|
|
112
|
+
decimals: 18,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
address: '0x607F4C5BB672230e8672085532f7e901544a7375',
|
|
116
|
+
chain: 'ETH',
|
|
117
|
+
identifier: 'ETH.RLC-0X607F4C5BB672230E8672085532F7E901544A7375',
|
|
118
|
+
decimals: 9,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
address: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
|
|
122
|
+
chain: 'ETH',
|
|
123
|
+
identifier: 'ETH.DAI-0X6B175474E89094C44DA98B954EEDEAC495271D0F',
|
|
124
|
+
decimals: 18,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
address: '0x6B3595068778DD592e39A122f4f5a5cF09C90fE2',
|
|
128
|
+
chain: 'ETH',
|
|
129
|
+
identifier: 'ETH.SUSHI-0X6B3595068778DD592E39A122F4F5A5CF09C90FE2',
|
|
130
|
+
decimals: 18,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
address: '0x6BFf2fE249601ed0Db3a87424a2E923118BB0312',
|
|
134
|
+
chain: 'ETH',
|
|
135
|
+
identifier: 'ETH.FYZ-0X6BFF2FE249601ED0DB3A87424A2E923118BB0312',
|
|
136
|
+
decimals: 18,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
address: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
|
|
140
|
+
chain: 'ETH',
|
|
141
|
+
identifier: 'ETH.AAVE-0X7FC66500C84A76AD7E9C93437BFC5AC33E2DDAE9',
|
|
142
|
+
decimals: 18,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
address: '0x8400D94A5cb0fa0D041a3788e395285d61c9ee5e',
|
|
146
|
+
chain: 'ETH',
|
|
147
|
+
identifier: 'ETH.UBT-0X8400D94A5CB0FA0D041A3788E395285D61C9EE5E',
|
|
148
|
+
decimals: 8,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
address: '0x84cA8bc7997272c7CfB4D0Cd3D55cd942B3c9419',
|
|
152
|
+
chain: 'ETH',
|
|
153
|
+
identifier: 'ETH.DIA-0X84CA8BC7997272C7CFB4D0CD3D55CD942B3C9419',
|
|
154
|
+
decimals: 18,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
address: '0x8CE9137d39326AD0cD6491fb5CC0CbA0e089b6A9',
|
|
158
|
+
chain: 'ETH',
|
|
159
|
+
identifier: 'ETH.SXP-0X8CE9137D39326AD0CD6491FB5CC0CBA0E089B6A9',
|
|
160
|
+
decimals: 18,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
address: '0x967da4048cD07aB37855c090aAF366e4ce1b9F48',
|
|
164
|
+
chain: 'ETH',
|
|
165
|
+
identifier: 'ETH.OCEAN-0X967DA4048CD07AB37855C090AAF366E4CE1B9F48',
|
|
166
|
+
decimals: 18,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
address: '0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2',
|
|
170
|
+
chain: 'ETH',
|
|
171
|
+
identifier: 'ETH.MKR-0X9F8F72AA9304C8B593D555F12EF6589CC3A579A2',
|
|
172
|
+
decimals: 18,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
176
|
+
chain: 'ETH',
|
|
177
|
+
identifier: 'ETH.USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
|
|
178
|
+
decimals: 6,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
address: '0xaaAEBE6Fe48E54f431b0C390CfaF0b017d09D42d',
|
|
182
|
+
chain: 'ETH',
|
|
183
|
+
identifier: 'ETH.CEL-0XAAAEBE6FE48E54F431B0C390CFAF0B017D09D42D',
|
|
184
|
+
decimals: 4,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
address: '0xba100000625a3754423978a60c9317c58a424e3D',
|
|
188
|
+
chain: 'ETH',
|
|
189
|
+
identifier: 'ETH.BAL-0XBA100000625A3754423978A60C9317C58A424E3D',
|
|
190
|
+
decimals: 18,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
address: '0xBA11D00c5f74255f56a5E366F4F77f5A186d7f55',
|
|
194
|
+
chain: 'ETH',
|
|
195
|
+
identifier: 'ETH.BAND-0XBA11D00C5F74255F56A5E366F4F77F5A186D7F55',
|
|
196
|
+
decimals: 18,
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
address: '0xc00e94Cb662C3520282E6f5717214004A7f26888',
|
|
200
|
+
chain: 'ETH',
|
|
201
|
+
identifier: 'ETH.COMP-0XC00E94CB662C3520282E6F5717214004A7F26888',
|
|
202
|
+
decimals: 18,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
address: '0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F',
|
|
206
|
+
chain: 'ETH',
|
|
207
|
+
identifier: 'ETH.SNX-0XC011A73EE8576FB46F5E1C5751CA3B9FE0AF2A6F',
|
|
208
|
+
decimals: 18,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
address: '0xd26114cd6EE289AccF82350c8d8487fedB8A0C07',
|
|
212
|
+
chain: 'ETH',
|
|
213
|
+
identifier: 'ETH.OMG-0XD26114CD6EE289ACCF82350C8D8487FEDB8A0C07',
|
|
214
|
+
decimals: 18,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
address: '0xD46bA6D942050d489DBd938a2C909A5d5039A161',
|
|
218
|
+
chain: 'ETH',
|
|
219
|
+
identifier: 'ETH.AMPL-0XD46BA6D942050D489DBD938A2C909A5D5039A161',
|
|
220
|
+
decimals: 9,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
|
224
|
+
chain: 'ETH',
|
|
225
|
+
identifier: 'ETH.USDT-0XDAC17F958D2EE523A2206206994597C13D831EC7',
|
|
226
|
+
decimals: 6,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
address: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
|
|
230
|
+
chain: 'ETH',
|
|
231
|
+
identifier: 'ETH.ZRX-0XE41D2489571D322189246DAFA5EBDE1F4699F498',
|
|
232
|
+
decimals: 18,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
address: '0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c',
|
|
236
|
+
chain: 'ETH',
|
|
237
|
+
identifier: 'ETH.ENJ-0XF629CBD94D3791C9250152BD8DFBDF380E2A3B9C',
|
|
238
|
+
decimals: 18,
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
count: 39,
|
|
242
|
+
logo: 'https://static.thorswap.net/token-list/images/eth.1inch-0x111111111117dc0aa78b770fa6a738034120c302.png',
|
|
243
|
+
} as const;
|