@gmx-io/sdk 0.1.0 → 0.1.1
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 +25 -7
- package/build/scripts/prebuild/index.js +2 -0
- package/build/scripts/prebuild/prebuildKinkModelMarketRatesKeys.d.ts +1 -0
- package/build/scripts/prebuild/prebuildKinkModelMarketRatesKeys.js +44 -0
- package/build/src/abis/ExchangeRouter.json +203 -0
- package/build/src/abis/GlvReader.json +0 -10
- package/build/src/abis/GlvRouter.json +96 -2
- package/build/src/abis/RewardRouter.json +323 -68
- package/build/src/abis/SubaccountRouter.json +10 -0
- package/build/src/abis/SyntheticsReader.json +196 -64
- package/build/src/configs/batch.js +1 -13
- package/build/src/configs/chains.d.ts +0 -1
- package/build/src/configs/chains.js +1 -7
- package/build/src/configs/contracts.d.ts +2 -1
- package/build/src/configs/contracts.js +27 -66
- package/build/src/configs/dataStore.d.ts +4 -1
- package/build/src/configs/dataStore.js +5 -2
- package/build/src/configs/factors.d.ts +0 -12
- package/build/src/configs/factors.js +0 -12
- package/build/src/configs/markets.js +147 -0
- package/build/src/configs/tokens.d.ts +5 -2
- package/build/src/configs/tokens.js +297 -221
- package/build/src/modules/markets/index.js +2 -3
- package/build/src/modules/markets/markets.spec.js +0 -6
- package/build/src/modules/markets/types.d.ts +8 -0
- package/build/src/modules/oracle.js +1 -16
- package/build/src/modules/orders/orders.d.ts +2 -1
- package/build/src/modules/orders/orders.js +4 -3
- package/build/src/modules/orders/transactions/cancelOrdersTxn.js +1 -1
- package/build/src/modules/orders/transactions/createDecreaseOrderTxn.js +1 -0
- package/build/src/modules/orders/transactions/createIncreaseOrderTxn.d.ts +1 -0
- package/build/src/modules/orders/transactions/createIncreaseOrderTxn.js +3 -1
- package/build/src/modules/orders/transactions/createSwapOrderTxn.js +1 -0
- package/build/src/modules/orders/transactions/createWrapOrUnwrapTxn.d.ts +1 -1
- package/build/src/modules/orders/transactions/updateOrderTxn.d.ts +3 -1
- package/build/src/modules/orders/transactions/updateOrderTxn.js +7 -5
- package/build/src/modules/orders/utils.js +1 -1
- package/build/src/modules/positions/positions.d.ts +1 -1
- package/build/src/modules/positions/positions.js +10 -86
- package/build/src/modules/trades/trades.js +1 -2
- package/build/src/modules/utils/utils.js +3 -8
- package/build/src/prebuilt/hashedKinkModelMarketRatesKeys.json +760 -0
- package/build/src/prebuilt/hashedMarketConfigKeys.json +1050 -0
- package/build/src/prebuilt/hashedMarketValuesKeys.json +315 -0
- package/build/src/prebuilt/index.d.ts +8 -2
- package/build/src/prebuilt/index.js +3 -1
- package/build/src/prebuilt/index.ts +19 -2
- package/build/src/types/amounts.d.ts +1 -1
- package/build/src/types/fees.d.ts +1 -2
- package/build/src/types/orders.d.ts +2 -2
- package/build/src/types/positions.d.ts +2 -2
- package/build/src/types/sdk.d.ts +4 -4
- package/build/src/types/syntheticsEvents.d.ts +3 -3
- package/build/src/types/tokens.d.ts +4 -0
- package/build/src/types/trade.d.ts +1 -1
- package/build/src/utils/fees/executionFee.d.ts +1 -5
- package/build/src/utils/fees/executionFee.js +3 -12
- package/build/src/utils/objects.d.ts +0 -5
- package/build/src/utils/objects.js +0 -17
- package/build/src/utils/orders.js +0 -8
- package/build/src/utils/simulateExecuteOrder.js +8 -21
- package/build/src/utils/testUtil.d.ts +2 -3
- package/build/src/utils/testUtil.js +2 -3
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/src/configs/subgraph.d.ts +0 -3
- package/build/src/configs/subgraph.js +0 -3
- package/build/src/utils/slidingWindowFallbackSwitcher.d.ts +0 -24
- package/build/src/utils/slidingWindowFallbackSwitcher.js +0 -40
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ARBITRUM, ARBITRUM_GOERLI, AVALANCHE, AVALANCHE_FUJI } from "./chains";
|
|
2
|
-
import { getContract } from "./contracts";
|
|
3
1
|
import { zeroAddress } from "viem";
|
|
2
|
+
import { ARBITRUM, AVALANCHE, AVALANCHE_FUJI } from "./chains";
|
|
3
|
+
import { getContract } from "./contracts";
|
|
4
4
|
export const NATIVE_TOKEN_ADDRESS = zeroAddress;
|
|
5
5
|
export const TOKENS = {
|
|
6
6
|
[ARBITRUM]: [
|
|
@@ -11,6 +11,7 @@ export const TOKENS = {
|
|
|
11
11
|
address: zeroAddress,
|
|
12
12
|
isNative: true,
|
|
13
13
|
isShortable: true,
|
|
14
|
+
categories: ["layer1"],
|
|
14
15
|
imageUrl: "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
|
|
15
16
|
coingeckoUrl: "https://www.coingecko.com/en/coins/ethereum",
|
|
16
17
|
isV1Available: true,
|
|
@@ -34,6 +35,7 @@ export const TOKENS = {
|
|
|
34
35
|
decimals: 8,
|
|
35
36
|
address: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f",
|
|
36
37
|
isShortable: true,
|
|
38
|
+
categories: ["layer1"],
|
|
37
39
|
imageUrl: "https://assets.coingecko.com/coins/images/26115/thumb/btcb.png?1655921693",
|
|
38
40
|
coingeckoUrl: "https://www.coingecko.com/en/coins/wrapped-bitcoin",
|
|
39
41
|
explorerUrl: "https://arbiscan.io/address/0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
|
|
@@ -45,6 +47,7 @@ export const TOKENS = {
|
|
|
45
47
|
decimals: 18,
|
|
46
48
|
priceDecimals: 4,
|
|
47
49
|
address: "0x912CE59144191C1204E64559FE8253a0e49E6548",
|
|
50
|
+
categories: ["layer2", "defi"],
|
|
48
51
|
imageUrl: "https://assets.coingecko.com/coins/images/16547/small/photo_2023-03-29_21.47.00.jpeg?1680097630",
|
|
49
52
|
coingeckoUrl: "https://www.coingecko.com/en/coins/arbitrum",
|
|
50
53
|
explorerUrl: "https://arbiscan.io/token/0x912ce59144191c1204e64559fe8253a0e49e6548",
|
|
@@ -56,6 +59,7 @@ export const TOKENS = {
|
|
|
56
59
|
priceDecimals: 3,
|
|
57
60
|
decimals: 9,
|
|
58
61
|
address: "0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",
|
|
62
|
+
categories: ["layer1"],
|
|
59
63
|
imageUrl: "https://assets.coingecko.com/coins/images/4128/small/solana.png?1640133422",
|
|
60
64
|
coingeckoUrl: "https://www.coingecko.com/en/coins/solana",
|
|
61
65
|
coingeckoSymbol: "SOL",
|
|
@@ -70,6 +74,7 @@ export const TOKENS = {
|
|
|
70
74
|
address: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4",
|
|
71
75
|
isStable: false,
|
|
72
76
|
isShortable: true,
|
|
77
|
+
categories: ["defi"],
|
|
73
78
|
imageUrl: "https://assets.coingecko.com/coins/images/877/thumb/chainlink-new-logo.png?1547034700",
|
|
74
79
|
coingeckoUrl: "https://www.coingecko.com/en/coins/chainlink",
|
|
75
80
|
explorerUrl: "https://arbiscan.io/token/0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
|
|
@@ -83,6 +88,7 @@ export const TOKENS = {
|
|
|
83
88
|
address: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0",
|
|
84
89
|
isStable: false,
|
|
85
90
|
isShortable: true,
|
|
91
|
+
categories: ["layer2", "defi"],
|
|
86
92
|
imageUrl: "https://assets.coingecko.com/coins/images/12504/thumb/uniswap-uni.png?1600306604",
|
|
87
93
|
coingeckoUrl: "https://www.coingecko.com/en/coins/uniswap",
|
|
88
94
|
explorerUrl: "https://arbiscan.io/token/0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0",
|
|
@@ -159,6 +165,7 @@ export const TOKENS = {
|
|
|
159
165
|
address: "0x47904963fc8b2340414262125aF798B9655E58Cd",
|
|
160
166
|
isSynthetic: true,
|
|
161
167
|
decimals: 8,
|
|
168
|
+
categories: ["layer1"],
|
|
162
169
|
imageUrl: "https://assets.coingecko.com/coins/images/1/small/bitcoin.png?1547033579",
|
|
163
170
|
coingeckoUrl: "https://www.coingecko.com/en/coins/bitcoin",
|
|
164
171
|
},
|
|
@@ -169,6 +176,7 @@ export const TOKENS = {
|
|
|
169
176
|
priceDecimals: 5,
|
|
170
177
|
address: "0xC4da4c24fd591125c3F47b340b6f4f76111883d8",
|
|
171
178
|
isSynthetic: true,
|
|
179
|
+
categories: ["meme"],
|
|
172
180
|
imageUrl: "https://assets.coingecko.com/coins/images/5/small/dogecoin.png?1547792256",
|
|
173
181
|
coingeckoUrl: "https://www.coingecko.com/en/coins/dogecoin",
|
|
174
182
|
},
|
|
@@ -179,6 +187,7 @@ export const TOKENS = {
|
|
|
179
187
|
priceDecimals: 3,
|
|
180
188
|
address: "0xB46A094Bc4B0adBD801E14b9DB95e05E28962764",
|
|
181
189
|
isSynthetic: true,
|
|
190
|
+
categories: ["layer1"],
|
|
182
191
|
imageUrl: "https://assets.coingecko.com/coins/images/2/small/litecoin.png?1547033580",
|
|
183
192
|
coingeckoUrl: "https://www.coingecko.com/en/coins/litecoin",
|
|
184
193
|
},
|
|
@@ -188,6 +197,7 @@ export const TOKENS = {
|
|
|
188
197
|
decimals: 6,
|
|
189
198
|
priceDecimals: 4,
|
|
190
199
|
address: "0xc14e065b0067dE91534e032868f5Ac6ecf2c6868",
|
|
200
|
+
categories: ["layer1"],
|
|
191
201
|
imageUrl: "https://assets.coingecko.com/coins/images/44/small/xrp-symbol-white-128.png?1605778731",
|
|
192
202
|
coingeckoUrl: "https://www.coingecko.com/en/coins/xrp",
|
|
193
203
|
isSynthetic: true,
|
|
@@ -199,6 +209,7 @@ export const TOKENS = {
|
|
|
199
209
|
decimals: 18,
|
|
200
210
|
isPlatformToken: true,
|
|
201
211
|
isPlatformTradingToken: true,
|
|
212
|
+
categories: ["defi"],
|
|
202
213
|
imageUrl: "https://assets.coingecko.com/coins/images/18323/small/arbit.png?1631532468",
|
|
203
214
|
coingeckoUrl: "https://www.coingecko.com/en/coins/gmx",
|
|
204
215
|
explorerUrl: "https://arbiscan.io/address/0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a",
|
|
@@ -216,6 +227,7 @@ export const TOKENS = {
|
|
|
216
227
|
assetSymbol: "WBNB (LayerZero)",
|
|
217
228
|
address: "0xa9004A5421372E1D83fB1f85b0fc986c912f91f3",
|
|
218
229
|
decimals: 18,
|
|
230
|
+
categories: ["layer1"],
|
|
219
231
|
imageUrl: "https://assets.coingecko.com/coins/images/825/standard/bnb-icon2_2x.png?1696501970",
|
|
220
232
|
coingeckoUrl: "https://www.coingecko.com/en/coins/bnb",
|
|
221
233
|
coingeckoSymbol: "BNB",
|
|
@@ -230,6 +242,7 @@ export const TOKENS = {
|
|
|
230
242
|
priceDecimals: 4,
|
|
231
243
|
address: "0x7D7F1765aCbaF847b9A1f7137FE8Ed4931FbfEbA",
|
|
232
244
|
decimals: 6,
|
|
245
|
+
categories: ["layer1"],
|
|
233
246
|
imageUrl: "https://assets.coingecko.com/coins/images/1481/standard/cosmos_hub.png?1696502525",
|
|
234
247
|
coingeckoUrl: "https://www.coingecko.com/en/coins/cosmos-hub",
|
|
235
248
|
coingeckoSymbol: "ATOM",
|
|
@@ -242,6 +255,7 @@ export const TOKENS = {
|
|
|
242
255
|
priceDecimals: 4,
|
|
243
256
|
address: "0x1FF7F3EFBb9481Cbd7db4F932cBCD4467144237C",
|
|
244
257
|
decimals: 24,
|
|
258
|
+
categories: ["layer1"],
|
|
245
259
|
imageUrl: "https://assets.coingecko.com/coins/images/10365/standard/near.jpg?1696510367",
|
|
246
260
|
coingeckoUrl: "https://www.coingecko.com/en/coins/near",
|
|
247
261
|
coingeckoSymbol: "NEAR",
|
|
@@ -254,6 +268,7 @@ export const TOKENS = {
|
|
|
254
268
|
priceDecimals: 3,
|
|
255
269
|
address: "0xba5DdD1f9d7F570dc94a51479a000E3BCE967196",
|
|
256
270
|
decimals: 18,
|
|
271
|
+
categories: ["defi"],
|
|
257
272
|
imageUrl: "https://assets.coingecko.com/coins/images/12645/standard/AAVE.png?1696512452",
|
|
258
273
|
coingeckoUrl: "https://www.coingecko.com/en/coins/aave",
|
|
259
274
|
coingeckoSymbol: "AAVE",
|
|
@@ -262,7 +277,7 @@ export const TOKENS = {
|
|
|
262
277
|
name: "Wrapped AVAX (Wormhole)",
|
|
263
278
|
symbol: "AVAX",
|
|
264
279
|
assetSymbol: "WAVAX (Wormhole)",
|
|
265
|
-
priceDecimals:
|
|
280
|
+
priceDecimals: 4,
|
|
266
281
|
address: "0x565609fAF65B92F7be02468acF86f8979423e514",
|
|
267
282
|
decimals: 18,
|
|
268
283
|
imageUrl: "https://assets.coingecko.com/coins/images/12559/small/coin-round-red.png?1604021818",
|
|
@@ -276,6 +291,7 @@ export const TOKENS = {
|
|
|
276
291
|
priceDecimals: 4,
|
|
277
292
|
address: "0xaC800FD6159c2a2CB8fC31EF74621eB430287a5A",
|
|
278
293
|
decimals: 18,
|
|
294
|
+
categories: ["layer2"],
|
|
279
295
|
imageUrl: "https://assets.coingecko.com/coins/images/25244/standard/Optimism.png?1696524385",
|
|
280
296
|
coingeckoUrl: "https://www.coingecko.com/en/coins/optimism",
|
|
281
297
|
},
|
|
@@ -284,15 +300,19 @@ export const TOKENS = {
|
|
|
284
300
|
symbol: "PEPE",
|
|
285
301
|
address: "0x25d887Ce7a35172C62FeBFD67a1856F20FaEbB00",
|
|
286
302
|
decimals: 18,
|
|
287
|
-
priceDecimals:
|
|
303
|
+
priceDecimals: 6,
|
|
304
|
+
categories: ["meme"],
|
|
288
305
|
imageUrl: "https://assets.coingecko.com/coins/images/29850/standard/pepe-token.jpeg?1696528776",
|
|
289
306
|
coingeckoUrl: "https://www.coingecko.com/en/coins/pepe",
|
|
307
|
+
visualMultiplier: 1000,
|
|
308
|
+
visualPrefix: "k",
|
|
290
309
|
},
|
|
291
310
|
{
|
|
292
311
|
name: "dogwifhat",
|
|
293
312
|
symbol: "WIF",
|
|
294
313
|
address: "0xA1b91fe9FD52141Ff8cac388Ce3F10BFDc1dE79d",
|
|
295
314
|
decimals: 6,
|
|
315
|
+
categories: ["meme"],
|
|
296
316
|
imageUrl: "https://assets.coingecko.com/coins/images/33566/standard/dogwifhat.jpg?1702499428",
|
|
297
317
|
coingeckoUrl: "https://www.coingecko.com/en/coins/dogwifhat",
|
|
298
318
|
},
|
|
@@ -301,6 +321,7 @@ export const TOKENS = {
|
|
|
301
321
|
symbol: "ORDI",
|
|
302
322
|
address: "0x1E15d08f3CA46853B692EE28AE9C7a0b88a9c994",
|
|
303
323
|
decimals: 18,
|
|
324
|
+
categories: ["defi"],
|
|
304
325
|
imageUrl: "https://assets.coingecko.com/coins/images/30162/standard/ordi.png?1696529082",
|
|
305
326
|
coingeckoUrl: "https://www.coingecko.com/en/coins/ordi",
|
|
306
327
|
isSynthetic: true,
|
|
@@ -310,6 +331,7 @@ export const TOKENS = {
|
|
|
310
331
|
symbol: "STX",
|
|
311
332
|
address: "0xBaf07cF91D413C0aCB2b7444B9Bf13b4e03c9D71",
|
|
312
333
|
decimals: 6,
|
|
334
|
+
categories: ["layer2"],
|
|
313
335
|
imageUrl: "https://assets.coingecko.com/coins/images/2069/standard/Stacks_Logo_png.png?1709979332",
|
|
314
336
|
coingeckoUrl: "https://www.coingecko.com/en/coins/stacks",
|
|
315
337
|
isSynthetic: true,
|
|
@@ -337,10 +359,13 @@ export const TOKENS = {
|
|
|
337
359
|
assetSymbol: "SHIB",
|
|
338
360
|
address: "0x3E57D02f9d196873e55727382974b02EdebE6bfd",
|
|
339
361
|
decimals: 18,
|
|
340
|
-
priceDecimals:
|
|
362
|
+
priceDecimals: 6,
|
|
363
|
+
categories: ["meme"],
|
|
341
364
|
imageUrl: "https://assets.coingecko.com/coins/images/11939/standard/shiba.png?1696511800",
|
|
342
365
|
coingeckoUrl: "https://www.coingecko.com/en/coins/shiba-inu",
|
|
343
366
|
isSynthetic: true,
|
|
367
|
+
visualMultiplier: 1000,
|
|
368
|
+
visualPrefix: "k",
|
|
344
369
|
},
|
|
345
370
|
{
|
|
346
371
|
name: "tBTC",
|
|
@@ -355,6 +380,7 @@ export const TOKENS = {
|
|
|
355
380
|
symbol: "EIGEN",
|
|
356
381
|
address: "0x606C3e5075e5555e79Aa15F1E9FACB776F96C248",
|
|
357
382
|
decimals: 18,
|
|
383
|
+
categories: ["layer2"],
|
|
358
384
|
imageUrl: "https://assets.coingecko.com/coins/images/37441/standard/eigen.jpg?1728023974",
|
|
359
385
|
coingeckoUrl: "https://www.coingecko.com/en/coins/eigenlayer",
|
|
360
386
|
},
|
|
@@ -363,30 +389,252 @@ export const TOKENS = {
|
|
|
363
389
|
symbol: "SATS",
|
|
364
390
|
address: "0x2cD2eB61D17b78239Fcd19aafF72981B5D5eF319",
|
|
365
391
|
decimals: 6,
|
|
366
|
-
priceDecimals:
|
|
392
|
+
priceDecimals: 5,
|
|
393
|
+
categories: ["meme"],
|
|
367
394
|
imageUrl: "https://assets.coingecko.com/coins/images/30666/standard/_dD8qr3M_400x400.png?1702913020",
|
|
368
395
|
coingeckoUrl: "https://www.coingecko.com/en/coins/sats-ordinals",
|
|
369
396
|
isSynthetic: true,
|
|
397
|
+
visualMultiplier: 1000000,
|
|
398
|
+
visualPrefix: "m",
|
|
370
399
|
},
|
|
371
400
|
{
|
|
372
401
|
name: "Polygon",
|
|
373
402
|
symbol: "POL",
|
|
374
403
|
decimals: 18,
|
|
375
|
-
priceDecimals:
|
|
404
|
+
priceDecimals: 5,
|
|
376
405
|
address: "0x9c74772b713a1B032aEB173E28683D937E51921c",
|
|
406
|
+
categories: ["layer1", "layer2"],
|
|
377
407
|
imageUrl: "https://assets.coingecko.com/coins/images/32440/standard/polygon.png?1698233684",
|
|
378
408
|
coingeckoUrl: "https://www.coingecko.com/en/coins/polygon",
|
|
379
409
|
isSynthetic: true,
|
|
380
410
|
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
411
|
+
{
|
|
412
|
+
name: "APE",
|
|
413
|
+
symbol: "APE",
|
|
414
|
+
address: "0x7f9FBf9bDd3F4105C478b996B648FE6e828a1e98",
|
|
415
|
+
decimals: 18,
|
|
416
|
+
priceDecimals: 4,
|
|
417
|
+
imageUrl: "https://assets.coingecko.com/coins/images/24383/standard/apecoin.jpg?1696523566",
|
|
418
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/apecoin",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: "SUI",
|
|
422
|
+
symbol: "SUI",
|
|
423
|
+
address: "0x197aa2DE1313c7AD50184234490E12409B2a1f95",
|
|
424
|
+
decimals: 9,
|
|
425
|
+
priceDecimals: 4,
|
|
426
|
+
categories: ["layer1"],
|
|
427
|
+
imageUrl: "https://assets.coingecko.com/coins/images/26375/standard/sui-ocean-square.png?1727791290",
|
|
428
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/sui",
|
|
429
|
+
isSynthetic: true,
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
name: "SEI",
|
|
433
|
+
symbol: "SEI",
|
|
434
|
+
address: "0x55e85A147a1029b985384822c0B2262dF8023452",
|
|
435
|
+
decimals: 18,
|
|
436
|
+
priceDecimals: 5,
|
|
437
|
+
categories: ["layer1"],
|
|
438
|
+
imageUrl: "https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png?1696527207",
|
|
439
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/sei",
|
|
440
|
+
isSynthetic: true,
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "APT",
|
|
444
|
+
symbol: "APT",
|
|
445
|
+
address: "0x3f8f0dCE4dCE4d0D1d0871941e79CDA82cA50d0B",
|
|
446
|
+
decimals: 8,
|
|
447
|
+
priceDecimals: 4,
|
|
448
|
+
categories: ["layer1"],
|
|
449
|
+
imageUrl: "https://assets.coingecko.com/coins/images/26455/standard/aptos_round.png?1696525528",
|
|
450
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/aptos",
|
|
451
|
+
isSynthetic: true,
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: "TIA",
|
|
455
|
+
symbol: "TIA",
|
|
456
|
+
address: "0x38676f62d166f5CE7De8433F51c6B3D6D9d66C19",
|
|
457
|
+
decimals: 6,
|
|
458
|
+
priceDecimals: 4,
|
|
459
|
+
categories: ["layer1"],
|
|
460
|
+
imageUrl: "https://assets.coingecko.com/coins/images/31967/standard/tia.jpg?1696530772",
|
|
461
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/celestia",
|
|
462
|
+
isSynthetic: true,
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
name: "TRON",
|
|
466
|
+
symbol: "TRX",
|
|
467
|
+
address: "0xb06aa7E4af937C130dDade66f6ed7642716fe07A",
|
|
468
|
+
decimals: 6,
|
|
469
|
+
priceDecimals: 5,
|
|
470
|
+
categories: ["layer1"],
|
|
471
|
+
imageUrl: "https://assets.coingecko.com/coins/images/1094/standard/tron-logo.png?1696502193",
|
|
472
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/tron",
|
|
473
|
+
isSynthetic: true,
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: "TON",
|
|
477
|
+
symbol: "TON",
|
|
478
|
+
address: "0xB2f7cefaeEb08Aa347705ac829a7b8bE2FB560f3",
|
|
479
|
+
decimals: 9,
|
|
480
|
+
priceDecimals: 4,
|
|
481
|
+
categories: ["layer1"],
|
|
482
|
+
imageUrl: "https://assets.coingecko.com/coins/images/17980/standard/photo_2024-09-10_17.09.00.jpeg?1725963446",
|
|
483
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/toncoin",
|
|
484
|
+
isSynthetic: true,
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
name: "WLD",
|
|
488
|
+
symbol: "WLD",
|
|
489
|
+
address: "0x75B9AdD873641b253718810E6c65dB6d72311FD0",
|
|
490
|
+
decimals: 18,
|
|
491
|
+
priceDecimals: 4,
|
|
492
|
+
imageUrl: "https://assets.coingecko.com/coins/images/31069/standard/worldcoin.jpeg?1696529903",
|
|
493
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/worldcoin",
|
|
494
|
+
isSynthetic: true,
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
name: "BONK",
|
|
498
|
+
symbol: "BONK",
|
|
499
|
+
address: "0x1FD10E767187A92f0AB2ABDEEF4505e319cA06B2",
|
|
500
|
+
decimals: 5,
|
|
501
|
+
priceDecimals: 6,
|
|
502
|
+
categories: ["meme"],
|
|
503
|
+
imageUrl: "https://assets.coingecko.com/coins/images/28600/standard/bonk.jpg?1696527587",
|
|
504
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/bonk",
|
|
505
|
+
isSynthetic: true,
|
|
506
|
+
visualMultiplier: 1000,
|
|
507
|
+
visualPrefix: "k",
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: "TAO",
|
|
511
|
+
symbol: "TAO",
|
|
512
|
+
address: "0x938aef36CAaFbcB37815251B602168087eC14648",
|
|
513
|
+
decimals: 9,
|
|
514
|
+
priceDecimals: 3,
|
|
515
|
+
imageUrl: "https://assets.coingecko.com/coins/images/28452/standard/ARUsPeNQ_400x400.jpeg?1696527447",
|
|
516
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/bittensor",
|
|
517
|
+
isSynthetic: true,
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
name: "BOME",
|
|
521
|
+
symbol: "BOME",
|
|
522
|
+
address: "0x3Eea56A1ccCdbfB70A26aD381C71Ee17E4c8A15F",
|
|
523
|
+
decimals: 6,
|
|
524
|
+
priceDecimals: 6,
|
|
525
|
+
categories: ["meme"],
|
|
526
|
+
imageUrl: "https://assets.coingecko.com/coins/images/36071/standard/bome.png?1710407255",
|
|
527
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/book-of-meme",
|
|
528
|
+
isSynthetic: true,
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
name: "FLOKI",
|
|
532
|
+
symbol: "FLOKI",
|
|
533
|
+
address: "0x6792c5B8962ffbDD020c6b6FD0Be7b182e0e33a3",
|
|
534
|
+
decimals: 9,
|
|
535
|
+
priceDecimals: 5,
|
|
536
|
+
categories: ["meme"],
|
|
537
|
+
imageUrl: "https://assets.coingecko.com/coins/images/16746/standard/PNG_image.png?1696516318",
|
|
538
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/floki",
|
|
539
|
+
isSynthetic: true,
|
|
540
|
+
visualMultiplier: 1000,
|
|
541
|
+
visualPrefix: "k",
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
name: "MEME",
|
|
545
|
+
symbol: "MEME",
|
|
546
|
+
address: "0xaF770F03518686a365300ab35AD860e99967B2f0",
|
|
547
|
+
decimals: 18,
|
|
548
|
+
priceDecimals: 6,
|
|
549
|
+
imageUrl: "https://assets.coingecko.com/coins/images/32528/standard/memecoin_%282%29.png?1698912168",
|
|
550
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/meme",
|
|
551
|
+
isSynthetic: true,
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: "MEW",
|
|
555
|
+
symbol: "MEW",
|
|
556
|
+
address: "0x5503CF72f54b6d692d36BBCD391516A7dE068687",
|
|
557
|
+
decimals: 5,
|
|
558
|
+
priceDecimals: 7,
|
|
559
|
+
categories: ["meme"],
|
|
560
|
+
imageUrl: "https://assets.coingecko.com/coins/images/36440/standard/MEW.png?1711442286",
|
|
561
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/mew",
|
|
562
|
+
isSynthetic: true,
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: "PENDLE",
|
|
566
|
+
symbol: "PENDLE",
|
|
567
|
+
address: "0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8",
|
|
568
|
+
decimals: 18,
|
|
569
|
+
priceDecimals: 4,
|
|
570
|
+
categories: ["defi"],
|
|
571
|
+
imageUrl: "https://assets.coingecko.com/coins/images/15069/standard/Pendle_Logo_Normal-03.png?1696514728",
|
|
572
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/pendle",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: "ADA",
|
|
576
|
+
symbol: "ADA",
|
|
577
|
+
address: "0x53186c8419BEB83fE4Da74F7875041a1287337ED",
|
|
578
|
+
decimals: 6,
|
|
579
|
+
priceDecimals: 4,
|
|
580
|
+
categories: ["layer1"],
|
|
581
|
+
imageUrl: "https://assets.coingecko.com/coins/images/975/standard/cardano.png?1696502090",
|
|
582
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/cardano",
|
|
583
|
+
isSynthetic: true,
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
name: "BCH",
|
|
587
|
+
symbol: "BCH",
|
|
588
|
+
address: "0xc33D9C096e74aa4f571E9417b69a19C4A1e72ef2",
|
|
589
|
+
decimals: 8,
|
|
590
|
+
priceDecimals: 3,
|
|
591
|
+
categories: ["layer1"],
|
|
592
|
+
imageUrl: "https://assets.coingecko.com/coins/images/780/standard/bitcoin-cash-circle.png?1696501932",
|
|
593
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/bitcoin-cash",
|
|
594
|
+
isSynthetic: true,
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "DOT",
|
|
598
|
+
symbol: "DOT",
|
|
599
|
+
address: "0xE958f107b467d5172573F761d26931D658C1b436",
|
|
600
|
+
decimals: 10,
|
|
601
|
+
priceDecimals: 4,
|
|
602
|
+
categories: ["layer1"],
|
|
603
|
+
imageUrl: "https://static.coingecko.com/s/polkadot-73b0c058cae10a2f076a82dcade5cbe38601fad05d5e6211188f09eb96fa4617.gif",
|
|
604
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/polkadot",
|
|
605
|
+
isSynthetic: true,
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: "ICP",
|
|
609
|
+
symbol: "ICP",
|
|
610
|
+
address: "0xdaf0A71608938F762e37eC5F72F670Cc44703454",
|
|
611
|
+
decimals: 8,
|
|
612
|
+
priceDecimals: 4,
|
|
613
|
+
categories: ["layer1"],
|
|
614
|
+
imageUrl: "https://assets.coingecko.com/coins/images/14495/standard/Internet_Computer_logo.png?1696514180",
|
|
615
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/internet-computer",
|
|
616
|
+
isSynthetic: true,
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
name: "XLM",
|
|
620
|
+
symbol: "XLM",
|
|
621
|
+
address: "0xc5dbD52Ae5a927Cf585B884011d0C7631C9974c6",
|
|
622
|
+
decimals: 7,
|
|
623
|
+
priceDecimals: 5,
|
|
624
|
+
imageUrl: "https://assets.coingecko.com/coins/images/100/standard/Stellar_symbol_black_RGB.png?1696501482",
|
|
625
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/stellar",
|
|
626
|
+
isSynthetic: true,
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
name: "RENDER",
|
|
630
|
+
symbol: "RENDER",
|
|
631
|
+
address: "0x82BB89fcc64c5d4016C5Ed1AB016bB0D1C20D6C3",
|
|
632
|
+
decimals: 18,
|
|
633
|
+
priceDecimals: 4,
|
|
634
|
+
imageUrl: "https://assets.coingecko.com/coins/images/11636/standard/rndr.png?1696511529",
|
|
635
|
+
coingeckoUrl: "https://www.coingecko.com/en/coins/render",
|
|
636
|
+
isSynthetic: true,
|
|
637
|
+
},
|
|
390
638
|
{
|
|
391
639
|
name: "GMX LP",
|
|
392
640
|
symbol: "GLP",
|
|
@@ -422,6 +670,7 @@ export const TOKENS = {
|
|
|
422
670
|
address: zeroAddress,
|
|
423
671
|
isNative: true,
|
|
424
672
|
isShortable: true,
|
|
673
|
+
categories: ["layer1"],
|
|
425
674
|
imageUrl: "https://assets.coingecko.com/coins/images/12559/small/coin-round-red.png?1604021818",
|
|
426
675
|
coingeckoUrl: "https://www.coingecko.com/en/coins/avalanche",
|
|
427
676
|
isV1Available: true,
|
|
@@ -445,6 +694,7 @@ export const TOKENS = {
|
|
|
445
694
|
address: "0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB",
|
|
446
695
|
decimals: 18,
|
|
447
696
|
isShortable: true,
|
|
697
|
+
categories: ["layer1"],
|
|
448
698
|
imageUrl: "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
|
|
449
699
|
coingeckoUrl: "https://www.coingecko.com/en/coins/weth",
|
|
450
700
|
coingeckoSymbol: "WETH",
|
|
@@ -458,6 +708,7 @@ export const TOKENS = {
|
|
|
458
708
|
address: "0x152b9d0FdC40C096757F570A51E494bd4b943E50",
|
|
459
709
|
decimals: 8,
|
|
460
710
|
isShortable: true,
|
|
711
|
+
categories: ["layer1"],
|
|
461
712
|
imageUrl: "https://assets.coingecko.com/coins/images/26115/thumb/btcb.png?1655921693",
|
|
462
713
|
coingeckoUrl: "https://www.coingecko.com/en/coins/bitcoin-avalanche-bridged-btc-b",
|
|
463
714
|
explorerUrl: "https://snowtrace.io/address/0x152b9d0FdC40C096757F570A51E494bd4b943E50",
|
|
@@ -470,6 +721,7 @@ export const TOKENS = {
|
|
|
470
721
|
address: "0x50b7545627a5162F82A992c33b87aDc75187B218",
|
|
471
722
|
decimals: 8,
|
|
472
723
|
isShortable: true,
|
|
724
|
+
categories: ["layer1"],
|
|
473
725
|
imageUrl: "https://assets.coingecko.com/coins/images/7598/thumb/wrapped_bitcoin_wbtc.png?1548822744",
|
|
474
726
|
coingeckoUrl: "https://www.coingecko.com/en/coins/wrapped-bitcoin",
|
|
475
727
|
coingeckoSymbol: "WBTC",
|
|
@@ -548,6 +800,7 @@ export const TOKENS = {
|
|
|
548
800
|
address: "0x5947BB275c521040051D82396192181b413227A3",
|
|
549
801
|
isStable: false,
|
|
550
802
|
isShortable: true,
|
|
803
|
+
categories: ["defi"],
|
|
551
804
|
imageUrl: "https://assets.coingecko.com/coins/images/877/thumb/chainlink-new-logo.png?1547034700",
|
|
552
805
|
coingeckoUrl: "https://www.coingecko.com/en/coins/chainlink",
|
|
553
806
|
explorerUrl: "https://snowtrace.io/address/0x5947BB275c521040051D82396192181b413227A3",
|
|
@@ -559,6 +812,7 @@ export const TOKENS = {
|
|
|
559
812
|
priceDecimals: 5,
|
|
560
813
|
address: "0xC301E6fe31062C557aEE806cc6A841aE989A3ac6",
|
|
561
814
|
isSynthetic: true,
|
|
815
|
+
categories: ["meme"],
|
|
562
816
|
imageUrl: "https://assets.coingecko.com/coins/images/5/small/dogecoin.png?1547792256",
|
|
563
817
|
coingeckoUrl: "https://www.coingecko.com/en/coins/dogecoin",
|
|
564
818
|
},
|
|
@@ -569,6 +823,7 @@ export const TOKENS = {
|
|
|
569
823
|
priceDecimals: 3,
|
|
570
824
|
address: "0x8E9C35235C38C44b5a53B56A41eaf6dB9a430cD6",
|
|
571
825
|
isSynthetic: true,
|
|
826
|
+
categories: ["layer1"],
|
|
572
827
|
imageUrl: "https://assets.coingecko.com/coins/images/2/small/litecoin.png?1547033580",
|
|
573
828
|
coingeckoUrl: "https://www.coingecko.com/en/coins/litecoin",
|
|
574
829
|
},
|
|
@@ -579,6 +834,7 @@ export const TOKENS = {
|
|
|
579
834
|
priceDecimals: 3,
|
|
580
835
|
decimals: 9,
|
|
581
836
|
address: "0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",
|
|
837
|
+
categories: ["layer1"],
|
|
582
838
|
imageUrl: "https://assets.coingecko.com/coins/images/4128/small/solana.png?1640133422",
|
|
583
839
|
coingeckoUrl: "https://www.coingecko.com/en/coins/solana",
|
|
584
840
|
coingeckoSymbol: "SOL",
|
|
@@ -590,6 +846,7 @@ export const TOKENS = {
|
|
|
590
846
|
decimals: 6,
|
|
591
847
|
priceDecimals: 5,
|
|
592
848
|
address: "0x34B2885D617cE2ddeD4F60cCB49809fc17bb58Af",
|
|
849
|
+
categories: ["layer1"],
|
|
593
850
|
imageUrl: "https://assets.coingecko.com/coins/images/44/small/xrp-symbol-white-128.png?1605778731",
|
|
594
851
|
coingeckoUrl: "https://www.coingecko.com/en/coins/xrp",
|
|
595
852
|
isSynthetic: true,
|
|
@@ -601,6 +858,7 @@ export const TOKENS = {
|
|
|
601
858
|
decimals: 18,
|
|
602
859
|
imageUrl: "https://assets.coingecko.com/coins/images/18323/small/arbit.png?1631532468",
|
|
603
860
|
isPlatformToken: true,
|
|
861
|
+
categories: ["defi"],
|
|
604
862
|
coingeckoUrl: "https://www.coingecko.com/en/coins/gmx",
|
|
605
863
|
explorerUrl: "https://snowtrace.io/address/0x62edc0692bd897d2295872a9ffcac5425011c661",
|
|
606
864
|
},
|
|
@@ -639,209 +897,6 @@ export const TOKENS = {
|
|
|
639
897
|
isPlatformToken: true,
|
|
640
898
|
},
|
|
641
899
|
],
|
|
642
|
-
[ARBITRUM_GOERLI]: [
|
|
643
|
-
{
|
|
644
|
-
name: "Ethereum",
|
|
645
|
-
symbol: "ETH",
|
|
646
|
-
decimals: 18,
|
|
647
|
-
address: zeroAddress,
|
|
648
|
-
isNative: true,
|
|
649
|
-
isShortable: true,
|
|
650
|
-
imageUrl: "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
name: "Wrapped Ethereum",
|
|
654
|
-
symbol: "WETH",
|
|
655
|
-
decimals: 18,
|
|
656
|
-
address: "0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",
|
|
657
|
-
isWrapped: true,
|
|
658
|
-
baseSymbol: "ETH",
|
|
659
|
-
imageUrl: "https://assets.coingecko.com/coins/images/2518/thumb/weth.png?1628852295",
|
|
660
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/ethereum",
|
|
661
|
-
explorerUrl: "https://goerli.arbiscan.io/address/0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
name: "Bitcoin",
|
|
665
|
-
symbol: "BTC",
|
|
666
|
-
decimals: 8,
|
|
667
|
-
address: "0xCcF73F4Dcbbb573296BFA656b754Fe94BB957d62",
|
|
668
|
-
isShortable: true,
|
|
669
|
-
imageUrl: "https://assets.coingecko.com/coins/images/7598/thumb/wrapped_bitcoin_wbtc.png?1548822744",
|
|
670
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/bitcoin",
|
|
671
|
-
explorerUrl: "https://goerli.arbiscan.io/address/0xCcF73F4Dcbbb573296BFA656b754Fe94BB957d62",
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
name: "USD Coin",
|
|
675
|
-
symbol: "USDC",
|
|
676
|
-
decimals: 6,
|
|
677
|
-
address: "0x04FC936a15352a1b15b3B9c56EA002051e3DB3e5",
|
|
678
|
-
isStable: true,
|
|
679
|
-
imageUrl: "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
|
|
680
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/usd-coin",
|
|
681
|
-
explorerUrl: "https://goerli.arbiscan.io/address/0x04FC936a15352a1b15b3B9c56EA002051e3DB3e5",
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
name: "Tether",
|
|
685
|
-
symbol: "USDT",
|
|
686
|
-
decimals: 6,
|
|
687
|
-
address: "0xBFcBcdCbcc1b765843dCe4DF044B92FE68182a62",
|
|
688
|
-
isStable: true,
|
|
689
|
-
imageUrl: "https://assets.coingecko.com/coins/images/325/small/Tether-logo.png",
|
|
690
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/tether",
|
|
691
|
-
explorerUrl: "https://goerli.arbiscan.io/address/0xBFcBcdCbcc1b765843dCe4DF044B92FE68182a62",
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
name: "Dai",
|
|
695
|
-
symbol: "DAI",
|
|
696
|
-
address: "0x7b7c6c49fA99b37270077FBFA398748c27046984",
|
|
697
|
-
decimals: 18,
|
|
698
|
-
isStable: true,
|
|
699
|
-
imageUrl: "https://assets.coingecko.com/coins/images/9956/thumb/4943.png?1636636734",
|
|
700
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/dai",
|
|
701
|
-
explorerUrl: "https://goerli.arbiscan.io/address/0x7b7c6c49fA99b37270077FBFA398748c27046984",
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
name: "Solana",
|
|
705
|
-
symbol: "SOL",
|
|
706
|
-
decimals: 18,
|
|
707
|
-
priceDecimals: 3,
|
|
708
|
-
address: "0x9A98a11279FaeB0fF695dFEC3C4B8a29138d0a2f",
|
|
709
|
-
isSynthetic: true,
|
|
710
|
-
imageUrl: "https://assets.coingecko.com/coins/images/4128/small/solana.png?1640133422",
|
|
711
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/solana",
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
name: "Test token",
|
|
715
|
-
symbol: "TEST",
|
|
716
|
-
decimals: 18,
|
|
717
|
-
address: "0x13C52ccB49fE3228356D0C355641961646A0D9B2",
|
|
718
|
-
isSynthetic: true,
|
|
719
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/tether",
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
name: "BNB",
|
|
723
|
-
symbol: "BNB",
|
|
724
|
-
isSynthetic: true,
|
|
725
|
-
priceDecimals: 3,
|
|
726
|
-
decimals: 18,
|
|
727
|
-
address: "0xa076E6db62f61bd1A4fC283F84739D2b0c80e2a3",
|
|
728
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/binancecoin",
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
name: "Cardano",
|
|
732
|
-
symbol: "ADA",
|
|
733
|
-
decimals: 18,
|
|
734
|
-
priceDecimals: 5,
|
|
735
|
-
address: "0x5F8a8f06da2848f846A2b5e3e42A4A2eEC5f337B",
|
|
736
|
-
isSynthetic: true,
|
|
737
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/cardano",
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
name: "TRON",
|
|
741
|
-
symbol: "TRX",
|
|
742
|
-
decimals: 18,
|
|
743
|
-
priceDecimals: 5,
|
|
744
|
-
address: "0x7a9Ba06548D0499f6Debf97809CC351c1e85795D",
|
|
745
|
-
isSynthetic: true,
|
|
746
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/tron",
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
name: "Polygon",
|
|
750
|
-
symbol: "MATIC",
|
|
751
|
-
decimals: 18,
|
|
752
|
-
priceDecimals: 4,
|
|
753
|
-
address: "0xd98D28787F5598749331052f952196428F61e3aD",
|
|
754
|
-
isSynthetic: true,
|
|
755
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/polygon",
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
name: "Polkadot",
|
|
759
|
-
symbol: "DOT",
|
|
760
|
-
decimals: 18,
|
|
761
|
-
priceDecimals: 4,
|
|
762
|
-
address: "0x7361D58cBc6495B6419397dFd5ebE2e2017F23E9",
|
|
763
|
-
isSynthetic: true,
|
|
764
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/polkadot",
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
name: "Uniswap",
|
|
768
|
-
symbol: "UNI",
|
|
769
|
-
decimals: 18,
|
|
770
|
-
priceDecimals: 4,
|
|
771
|
-
address: "0x6DEbb9cC48819941F797a2F0c63f9168C19fD057",
|
|
772
|
-
isSynthetic: true,
|
|
773
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/uniswap",
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
name: "Dogecoin",
|
|
777
|
-
symbol: "DOGE",
|
|
778
|
-
isSynthetic: true,
|
|
779
|
-
isShortable: true,
|
|
780
|
-
decimals: 8,
|
|
781
|
-
priceDecimals: 5,
|
|
782
|
-
address: "0x3e2fA75b78edF836299127FBAA776304B4712972",
|
|
783
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/dogecoin",
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
name: "Chainlink",
|
|
787
|
-
symbol: "LINK",
|
|
788
|
-
decimals: 18,
|
|
789
|
-
priceDecimals: 4,
|
|
790
|
-
address: "0x55602A94239a7926D92da5C53Fb96E80372382aa",
|
|
791
|
-
isSynthetic: true,
|
|
792
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/chainlink",
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
name: "XRP",
|
|
796
|
-
symbol: "XRP",
|
|
797
|
-
decimals: 6,
|
|
798
|
-
priceDecimals: 5,
|
|
799
|
-
address: "0xF1C2093383453831e8c90ecf809691123116dAaC",
|
|
800
|
-
isSynthetic: true,
|
|
801
|
-
imageUrl: "https://assets.coingecko.com/coins/images/44/small/xrp-symbol-white-128.png?1605778731",
|
|
802
|
-
coingeckoUrl: "https://www.coingecko.com/en/coins/xrp",
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
name: "GMX",
|
|
806
|
-
symbol: "GMX",
|
|
807
|
-
address: "",
|
|
808
|
-
decimals: 18,
|
|
809
|
-
imageUrl: "https://assets.coingecko.com/coins/images/18323/small/arbit.png?1631532468",
|
|
810
|
-
isPlatformToken: true,
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
name: "Escrowed GMX",
|
|
814
|
-
symbol: "esGMX",
|
|
815
|
-
address: "",
|
|
816
|
-
decimals: 18,
|
|
817
|
-
isPlatformToken: true,
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
name: "GMX LP",
|
|
821
|
-
symbol: "GLP",
|
|
822
|
-
address: "",
|
|
823
|
-
decimals: 18,
|
|
824
|
-
imageUrl: "https://github.com/gmx-io/gmx-assets/blob/main/GMX-Assets/PNG/GLP_LOGO%20ONLY.png?raw=true",
|
|
825
|
-
isPlatformToken: true,
|
|
826
|
-
},
|
|
827
|
-
/** Placeholder tokens */
|
|
828
|
-
{
|
|
829
|
-
name: "GMX Market tokens",
|
|
830
|
-
symbol: "GM",
|
|
831
|
-
address: "<market-token-address>",
|
|
832
|
-
decimals: 18,
|
|
833
|
-
imageUrl: "https://raw.githubusercontent.com/gmx-io/gmx-assets/main/GMX-Assets/PNG/GM_LOGO.png",
|
|
834
|
-
isPlatformToken: true,
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
name: "GLV Market tokens",
|
|
838
|
-
symbol: "GLV",
|
|
839
|
-
address: "<market-token-address>",
|
|
840
|
-
decimals: 18,
|
|
841
|
-
imageUrl: "https://raw.githubusercontent.com/gmx-io/gmx-assets/main/GMX-Assets/PNG/GLV_LOGO.png",
|
|
842
|
-
isPlatformToken: true,
|
|
843
|
-
},
|
|
844
|
-
],
|
|
845
900
|
[AVALANCHE_FUJI]: [
|
|
846
901
|
{
|
|
847
902
|
name: "Avalanche",
|
|
@@ -851,6 +906,7 @@ export const TOKENS = {
|
|
|
851
906
|
address: zeroAddress,
|
|
852
907
|
isNative: true,
|
|
853
908
|
isShortable: true,
|
|
909
|
+
categories: ["layer1"],
|
|
854
910
|
imageUrl: "https://assets.coingecko.com/coins/images/12559/small/coin-round-red.png?1604021818",
|
|
855
911
|
},
|
|
856
912
|
{
|
|
@@ -861,6 +917,7 @@ export const TOKENS = {
|
|
|
861
917
|
address: "0x1D308089a2D1Ced3f1Ce36B1FcaF815b07217be3",
|
|
862
918
|
isWrapped: true,
|
|
863
919
|
baseSymbol: "AVAX",
|
|
920
|
+
categories: ["layer1"],
|
|
864
921
|
imageUrl: "https://assets.coingecko.com/coins/images/12559/small/coin-round-red.png?1604021818",
|
|
865
922
|
coingeckoUrl: "https://www.coingecko.com/en/coins/avalanche",
|
|
866
923
|
explorerUrl: "https://testnet.snowtrace.io/address/0x1D308089a2D1Ced3f1Ce36B1FcaF815b07217be3",
|
|
@@ -872,6 +929,7 @@ export const TOKENS = {
|
|
|
872
929
|
address: "0x82F0b3695Ed2324e55bbD9A9554cB4192EC3a514",
|
|
873
930
|
decimals: 18,
|
|
874
931
|
isShortable: true,
|
|
932
|
+
categories: ["layer1"],
|
|
875
933
|
imageUrl: "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
|
|
876
934
|
coingeckoUrl: "https://www.coingecko.com/en/coins/weth",
|
|
877
935
|
coingeckoSymbol: "WETH",
|
|
@@ -912,6 +970,7 @@ export const TOKENS = {
|
|
|
912
970
|
symbol: "WBTC",
|
|
913
971
|
decimals: 8,
|
|
914
972
|
address: "0x3Bd8e00c25B12E6E60fc8B6f1E1E2236102073Ca",
|
|
973
|
+
categories: ["layer1"],
|
|
915
974
|
imageUrl: "https://assets.coingecko.com/coins/images/7598/thumb/wrapped_bitcoin_wbtc.png?1548822744",
|
|
916
975
|
coingeckoUrl: "https://www.coingecko.com/en/coins/wrapped-bitcoin",
|
|
917
976
|
explorerUrl: "https://testnet.snowtrace.io/address/0x3Bd8e00c25B12E6E60fc8B6f1E1E2236102073Ca",
|
|
@@ -922,6 +981,7 @@ export const TOKENS = {
|
|
|
922
981
|
decimals: 18,
|
|
923
982
|
priceDecimals: 3,
|
|
924
983
|
address: "0x137f4a7336df4f3f11894718528516edaaD0B082",
|
|
984
|
+
categories: ["layer1"],
|
|
925
985
|
isSynthetic: true,
|
|
926
986
|
imageUrl: "https://assets.coingecko.com/coins/images/4128/small/solana.png?1640133422",
|
|
927
987
|
coingeckoUrl: "https://www.coingecko.com/en/coins/solana",
|
|
@@ -949,6 +1009,7 @@ export const TOKENS = {
|
|
|
949
1009
|
decimals: 18,
|
|
950
1010
|
priceDecimals: 5,
|
|
951
1011
|
address: "0xE64dfFF37Fa6Fe969b792B4146cEe2774Ef6e1a1",
|
|
1012
|
+
categories: ["layer1"],
|
|
952
1013
|
isSynthetic: true,
|
|
953
1014
|
coingeckoUrl: "https://www.coingecko.com/en/coins/cardano",
|
|
954
1015
|
},
|
|
@@ -967,6 +1028,7 @@ export const TOKENS = {
|
|
|
967
1028
|
decimals: 18,
|
|
968
1029
|
priceDecimals: 4,
|
|
969
1030
|
address: "0xadc4698B257F78187Fd675FBf591a09f4c975240",
|
|
1031
|
+
categories: ["layer1"],
|
|
970
1032
|
isSynthetic: true,
|
|
971
1033
|
coingeckoUrl: "https://www.coingecko.com/en/coins/polygon",
|
|
972
1034
|
},
|
|
@@ -977,6 +1039,7 @@ export const TOKENS = {
|
|
|
977
1039
|
decimals: 18,
|
|
978
1040
|
priceDecimals: 4,
|
|
979
1041
|
isSynthetic: true,
|
|
1042
|
+
categories: ["layer1"],
|
|
980
1043
|
coingeckoUrl: "https://www.coingecko.com/en/coins/polkadot",
|
|
981
1044
|
},
|
|
982
1045
|
{
|
|
@@ -986,6 +1049,7 @@ export const TOKENS = {
|
|
|
986
1049
|
priceDecimals: 4,
|
|
987
1050
|
address: "0xF62dC1d2452d0893735D22945Af53C290b158eAF",
|
|
988
1051
|
isSynthetic: true,
|
|
1052
|
+
categories: ["layer2", "defi"],
|
|
989
1053
|
coingeckoUrl: "https://www.coingecko.com/en/coins/uniswap",
|
|
990
1054
|
},
|
|
991
1055
|
{
|
|
@@ -996,6 +1060,7 @@ export const TOKENS = {
|
|
|
996
1060
|
address: "0x2265F317eA5f47A684E5B26c50948617c945d986",
|
|
997
1061
|
isSynthetic: true,
|
|
998
1062
|
isShortable: true,
|
|
1063
|
+
categories: ["meme"],
|
|
999
1064
|
coingeckoUrl: "https://www.coingecko.com/en/coins/dogecoin",
|
|
1000
1065
|
},
|
|
1001
1066
|
{
|
|
@@ -1006,6 +1071,7 @@ export const TOKENS = {
|
|
|
1006
1071
|
address: "0x6BD09E8D65AD5cc761DF62454452d4EC1545e647",
|
|
1007
1072
|
isSynthetic: true,
|
|
1008
1073
|
isShortable: true,
|
|
1074
|
+
categories: ["defi"],
|
|
1009
1075
|
coingeckoUrl: "https://www.coingecko.com/en/coins/chainlink",
|
|
1010
1076
|
},
|
|
1011
1077
|
{
|
|
@@ -1015,6 +1081,7 @@ export const TOKENS = {
|
|
|
1015
1081
|
priceDecimals: 4,
|
|
1016
1082
|
address: "0xF1C2093383453831e8c90ecf809691123116dAaC",
|
|
1017
1083
|
isSynthetic: true,
|
|
1084
|
+
categories: ["layer1"],
|
|
1018
1085
|
imageUrl: "https://assets.coingecko.com/coins/images/44/small/xrp-symbol-white-128.png?1605778731",
|
|
1019
1086
|
coingeckoUrl: "https://www.coingecko.com/en/coins/xrp",
|
|
1020
1087
|
},
|
|
@@ -1100,7 +1167,7 @@ export const SYNTHETIC_TOKENS = {};
|
|
|
1100
1167
|
export const TOKENS_BY_SYMBOL_MAP = {};
|
|
1101
1168
|
export const WRAPPED_TOKENS_MAP = {};
|
|
1102
1169
|
export const NATIVE_TOKENS_MAP = {};
|
|
1103
|
-
const CHAIN_IDS = [ARBITRUM,
|
|
1170
|
+
const CHAIN_IDS = [ARBITRUM, AVALANCHE, AVALANCHE_FUJI];
|
|
1104
1171
|
for (let j = 0; j < CHAIN_IDS.length; j++) {
|
|
1105
1172
|
const chainId = CHAIN_IDS[j];
|
|
1106
1173
|
TOKENS_MAP[chainId] = {};
|
|
@@ -1218,7 +1285,7 @@ export function getNormalizedTokenSymbol(tokenSymbol) {
|
|
|
1218
1285
|
}
|
|
1219
1286
|
return tokenSymbol;
|
|
1220
1287
|
}
|
|
1221
|
-
export function
|
|
1288
|
+
export function isChartAvailableForToken(chainId, tokenSymbol) {
|
|
1222
1289
|
let token;
|
|
1223
1290
|
try {
|
|
1224
1291
|
token = getTokenBySymbol(chainId, tokenSymbol);
|
|
@@ -1261,6 +1328,15 @@ export function isSimilarToken(tokenA, tokenB) {
|
|
|
1261
1328
|
}
|
|
1262
1329
|
return false;
|
|
1263
1330
|
}
|
|
1331
|
+
export function getTokenVisualMultiplier(token) {
|
|
1332
|
+
return token.visualPrefix || token.visualMultiplier?.toString() || "";
|
|
1333
|
+
}
|
|
1334
|
+
export function getStableTokens(chainId) {
|
|
1335
|
+
return getTokens(chainId).filter((t) => t.isStable);
|
|
1336
|
+
}
|
|
1337
|
+
export function getCategoryTokenAddresses(chainId, category) {
|
|
1338
|
+
return TOKENS[chainId].filter((token) => token.categories?.includes(category)).map((token) => token.address);
|
|
1339
|
+
}
|
|
1264
1340
|
export const createTokensMap = (tokens) => {
|
|
1265
1341
|
return tokens.reduce((acc, token) => {
|
|
1266
1342
|
acc[token.address] = token;
|