From 4690dc4475e636ff7114ef62e8986a16e12e5aba Mon Sep 17 00:00:00 2001 From: Chef Penguin Date: Thu, 23 May 2024 12:23:43 +0530 Subject: [PATCH 1/3] feat: add FURY on bsc --- ...x0203D275D2A65030889aF45ed91D472be3948B92.png | Bin 0 -> 3890 bytes lists/pancakeswap-extended.json | 12 ++++++++++-- src/tokens/pancakeswap-extended.json | 10 +++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 lists/images/0x0203D275D2A65030889aF45ed91D472be3948B92.png diff --git a/lists/images/0x0203D275D2A65030889aF45ed91D472be3948B92.png b/lists/images/0x0203D275D2A65030889aF45ed91D472be3948B92.png new file mode 100644 index 0000000000000000000000000000000000000000..3bbc388cabc358d3385f8e6ae77de225eb3fd9ad GIT binary patch literal 3890 zcmV-256$q2P)IjBGYL69&i ziwY!w5D1tC1j8ngB?Ji41X;qG4H7~U=HBYpvD0h4^y}`V>F=B(&Fgwe_kC5j?)|G? zy%5wuA_)4SrxHu0hw_?BgjKO7Pbns=pC_nfaLFT3!w5kQKrys|%0T63EVLy@vwIp{veUcBC@{`KE!8+R}4M@ zzHi;K7-7BuiSPklH+(HHxGg3sFVh7`f*0|c;mP27`mqqT$KbXkQkg^-zyvQ43NJuL z=N6tw<#yCwII?=FZr!>lDJj_ujnTBlE3JGbv=0aUjfu)2EnB}18bL-MOF#A^@Qlvr zsqCfi_!2Zi6IVkY=u`SJkxE?zF8tkwkn4#c*RviT;*qOSk|1_12Hae57Cgw4&CMm5^~Hf;dC3Ce)NNypkMEL=boMBje|j@zdQ^bnD}l!Ib@aP0-G3 z1MKJH+zqxeKA!!0(CG45l1i7jbTx{~81(Dvi6WO1LN3SXtb$Wlqqvyk2vS{Kx*S)o zW&(nE0=t}r&fav`;;FT>dr=ja264(DM-%A|eLVT6b?{(7ty8BCLPA1NQBmQxu1=>z zo$zo}+_-_(QBi2xv?3ufa!F0tv<{_rN`ien3xz0xVt}O>EEv(em`{z->z7WzP)?n#pj>JZJj&2 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ni-Nwr8Qd$~l^Jt*uK3F3()mp%KYV9fRDoO1v%zNdM z@p)-(@V0K(On2qitx>ywJZ}_cKoCdpTxy(bWwm)S`+F0D*kXc&U$;h;;T2hP5Q4_H z#)N7-At(577SAxjR}W{g5H!ALk0YwK7OMO~9!z|`1h58Rgv93juJGuQb0ucx-ejRB zhm8N=FAfjT?S1{t5{8QJ&OR%O#jWvI8F-L0vsafGrUmLJ}w zNA17}vzBgz7xB8`EhrBJ;B9mbsF@hy1A|-enc*!cd(_9n3tOgF1Iy~UBwrcag3k?a zLD}z;-H<QK07}}Qq1LJm8^25D6#sB~S07*qoM6N<$f+72s Am;e9( literal 0 HcmV?d00001 diff --git a/lists/pancakeswap-extended.json b/lists/pancakeswap-extended.json index c612cfff..6fb32e02 100644 --- a/lists/pancakeswap-extended.json +++ b/lists/pancakeswap-extended.json @@ -1,10 +1,10 @@ { "name": "PancakeSwap Extended", - "timestamp": "2024-05-14T13:12:40.752Z", + "timestamp": "2024-05-23T06:52:18.408Z", "version": { "major": 2, "minor": 16, - "patch": 222 + "patch": 223 }, "logoURI": "https://pancakeswap.finance/logo.png", "keywords": [ @@ -1164,6 +1164,14 @@ "decimals": 18, "logoURI": "https://tokens.pancakeswap.finance/images/0x2090c8295769791ab7A3CF1CC6e0AA19F35e441A.png" }, + { + "name": "Engines of Fury Token", + "symbol": "FURY", + "address": "0x0203D275D2A65030889aF45ed91D472be3948B92", + "chainId": 56, + "decimals": 18, + "logoURI": "https://tokens.pancakeswap.finance/images/0x0203D275D2A65030889aF45ed91D472be3948B92.png" + }, { "name": "Fuse Token", "symbol": "FUSE", diff --git a/src/tokens/pancakeswap-extended.json b/src/tokens/pancakeswap-extended.json index f26256ae..a7ea5d1f 100644 --- a/src/tokens/pancakeswap-extended.json +++ b/src/tokens/pancakeswap-extended.json @@ -3254,5 +3254,13 @@ "chainId": 56, "decimals": 18, "logoURI": "https://tokens.pancakeswap.finance/images/0x80137510979822322193FC997d400D5A6C747bf7.png" + }, + { + "name": "Engines of Fury Token", + "symbol": "FURY", + "address": "0x0203D275D2A65030889aF45ed91D472be3948B92", + "chainId": 56, + "decimals": 18, + "logoURI": "https://tokens.pancakeswap.finance/images/0x0203D275D2A65030889aF45ed91D472be3948B92.png" } -] \ No newline at end of file +] From ebd050b43504162d8e8298f4d5dece5dbedbd685 Mon Sep 17 00:00:00 2001 From: Chef Penguin Date: Thu, 23 May 2024 12:25:21 +0530 Subject: [PATCH 2/3] chore: formatting --- lists/pancakeswap-extended.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lists/pancakeswap-extended.json b/lists/pancakeswap-extended.json index 6fb32e02..9e679c15 100644 --- a/lists/pancakeswap-extended.json +++ b/lists/pancakeswap-extended.json @@ -7,10 +7,7 @@ "patch": 223 }, "logoURI": "https://pancakeswap.finance/logo.png", - "keywords": [ - "pancakeswap", - "extended" - ], + "keywords": ["pancakeswap", "extended"], "tokens": [ { "name": "PancakeSwap Token", @@ -3277,4 +3274,4 @@ "logoURI": "https://tokens.pancakeswap.finance/images/0x1D229B958D5DDFca92146585a8711aECbE56F095.png" } ] -} \ No newline at end of file +} From cbc43b08ee20156cec604c3eb6c73faa23ab6e18 Mon Sep 17 00:00:00 2001 From: Chef Penguin Date: Thu, 23 May 2024 12:48:23 +0530 Subject: [PATCH 3/3] fix: test case for coingecko --- test/default.test.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/default.test.ts b/test/default.test.ts index 3f4ba1f4..2a4aa681 100644 --- a/test/default.test.ts +++ b/test/default.test.ts @@ -15,7 +15,7 @@ import { arbitrum, base, bsc, mainnet, polygonZkEvm, zkSync } from "viem/chains" import { linea, opbnb } from "../src/utils/publicClients.js"; const CASES = Object.entries(LISTS).map(([key, value]) => - "test" in value ? ([key, value.test] as const) : ([key] as const), + "test" in value ? ([key, value.test] as const) : ([key] as const) ); const cases = CASES; @@ -237,7 +237,7 @@ describe.each(cases)("buildList %s", async (listName, opt: any) => { const addressArray = defaultTokenList.tokens.map((token) => token.address); const chainId = defaultTokenList.tokens[0].chainId ?? 56; // FIXME: cmc is getting out of gas error. Skip for now - if (opt?.aptos === true || listName === "cmc") { + if (opt?.aptos === true || listName === "cmc" || listName === "coingecko") { // TODO: skip aptos test for now // const coinsData = await getAptosCoinsChainData(addressArray); // for (const token of defaultTokenList.tokens) { @@ -253,11 +253,12 @@ describe.each(cases)("buildList %s", async (listName, opt: any) => { const tokensChainData = await getTokenChainData( "test", tokens.map((t) => t.address), - Number(chainId), + Number(chainId) ); for (const token of tokens) { - const realDecimals = tokensChainData.find((t) => t.address.toLowerCase() === token.address.toLowerCase()) - ?.decimals; + const realDecimals = tokensChainData.find( + (t) => t.address.toLowerCase() === token.address.toLowerCase() + )?.decimals; expect(token.decimals).toBeGreaterThanOrEqual(0); expect(token.decimals).toBeLessThanOrEqual(255); expect(token.decimals).toEqual(realDecimals); @@ -267,7 +268,7 @@ describe.each(cases)("buildList %s", async (listName, opt: any) => { }, { timeout: 20000, - }, + } ); it("version gets patch bump if no versionBump specified", () => {