From baf9552faf2b915a689a923ef809341720b75c82 Mon Sep 17 00:00:00 2001 From: Oleksandr Dovgopoliy Date: Thu, 26 Sep 2024 14:16:36 +0300 Subject: [PATCH 1/3] add Lisk chain --- .idea/.gitignore | 5 +++++ .idea/fathom-swap-sdk.iml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ src/constants.ts | 3 ++- src/entities/token.ts | 3 ++- 6 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/fathom-swap-sdk.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/fathom-swap-sdk.iml b/.idea/fathom-swap-sdk.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/fathom-swap-sdk.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8ccd23b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index dedd11d..b4f8430 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -6,7 +6,8 @@ export type BigintIsh = JSBI | bigint | string export enum ChainId { XDC = 50, AXDC = 51, - SEPOLIA = 11155111 + SEPOLIA = 11155111, + LISK = 1135 } export enum TradeType { diff --git a/src/entities/token.ts b/src/entities/token.ts index 6398bc1..d241859 100644 --- a/src/entities/token.ts +++ b/src/entities/token.ts @@ -59,5 +59,6 @@ export function currencyEquals(currencyA: Currency, currencyB: Currency): boolea export const WETH = { [ChainId.XDC]: new Token(ChainId.XDC, '0x951857744785E80e2De051c32EE7b25f9c458C42', 18, 'WXDC', 'Wrapped XDC'), [ChainId.AXDC]: new Token(ChainId.AXDC, '0xE99500AB4A413164DA49Af83B9824749059b46ce', 18, 'WXDC', 'Wrapped XDC'), - [ChainId.SEPOLIA]: new Token(ChainId.SEPOLIA, '0xD0dF82dE051244f04BfF3A8bB1f62E1cD39eED92', 18, 'WETH', 'Wrapped ETH') + [ChainId.SEPOLIA]: new Token(ChainId.SEPOLIA, '0xD0dF82dE051244f04BfF3A8bB1f62E1cD39eED92', 18, 'WETH', 'Wrapped ETH'), + [ChainId.LISK]: new Token(ChainId.LISK, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped ETH') } From 0c18155404023755bc182b4245f3b2ace0c74e11 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Thu, 26 Sep 2024 11:17:31 +0000 Subject: [PATCH 2/3] Fix code style issues with Prettier --- src/entities/token.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/entities/token.ts b/src/entities/token.ts index d241859..4187c89 100644 --- a/src/entities/token.ts +++ b/src/entities/token.ts @@ -59,6 +59,12 @@ export function currencyEquals(currencyA: Currency, currencyB: Currency): boolea export const WETH = { [ChainId.XDC]: new Token(ChainId.XDC, '0x951857744785E80e2De051c32EE7b25f9c458C42', 18, 'WXDC', 'Wrapped XDC'), [ChainId.AXDC]: new Token(ChainId.AXDC, '0xE99500AB4A413164DA49Af83B9824749059b46ce', 18, 'WXDC', 'Wrapped XDC'), - [ChainId.SEPOLIA]: new Token(ChainId.SEPOLIA, '0xD0dF82dE051244f04BfF3A8bB1f62E1cD39eED92', 18, 'WETH', 'Wrapped ETH'), + [ChainId.SEPOLIA]: new Token( + ChainId.SEPOLIA, + '0xD0dF82dE051244f04BfF3A8bB1f62E1cD39eED92', + 18, + 'WETH', + 'Wrapped ETH' + ), [ChainId.LISK]: new Token(ChainId.LISK, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped ETH') } From 77b4de56ae471146bc7bc1a29471ddc5d1c9e84c Mon Sep 17 00:00:00 2001 From: Oleksandr Dovgopoliy Date: Thu, 26 Sep 2024 14:18:28 +0300 Subject: [PATCH 3/3] package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 101e9da..743e081 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "into-the-fathom-swap-sdk", - "version": "1.5.1", + "version": "1.5.2", "description": "🛠 An SDK for building applications on top of Fathom Swap.", "main": "dist/index.js", "typings": "dist/index.d.ts",