From 7a23adef077bc0c8717117e3a36360f006de5f3e Mon Sep 17 00:00:00 2001 From: rharutyunyan Date: Wed, 13 Nov 2024 11:44:12 +0400 Subject: [PATCH 1/3] feat: add zksync as supported chain --- src/chains.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chains.ts b/src/chains.ts index bc75214..ed891ec 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -9,7 +9,8 @@ export const SupportedChains = [ NetworkEnum.ARBITRUM, NetworkEnum.AVALANCHE, NetworkEnum.GNOSIS, - NetworkEnum.COINBASE + NetworkEnum.COINBASE, + NetworkEnum.ZKSYNC ] as const type UnsupportedChain = Exclude< From 28574cb0fb799acd0979e0aba2b1f3adec952101 Mon Sep 17 00:00:00 2001 From: rharutyunyan Date: Wed, 13 Nov 2024 11:49:03 +0400 Subject: [PATCH 2/3] feat: true erc20 --- src/deployments.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deployments.ts b/src/deployments.ts index 83e1086..9d49889 100644 --- a/src/deployments.ts +++ b/src/deployments.ts @@ -11,7 +11,8 @@ export const TRUE_ERC20 = { [NetworkEnum.COINBASE]: TrueERC20, [NetworkEnum.FANTOM]: TrueERC20, [NetworkEnum.GNOSIS]: TrueERC20, - [NetworkEnum.ARBITRUM]: TrueERC20 + [NetworkEnum.ARBITRUM]: TrueERC20, + [NetworkEnum.ZKSYNC]: TrueERC20 } const ESCROW_FACTORY_ADDRESS = new Address( From 0545b179e6172ebf2a377e2e34bdebd27f4012be Mon Sep 17 00:00:00 2001 From: rharutyunyan Date: Wed, 13 Nov 2024 12:14:20 +0400 Subject: [PATCH 3/3] feat: update zk --- src/deployments.ts | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/deployments.ts b/src/deployments.ts index 9d49889..cf2c39a 100644 --- a/src/deployments.ts +++ b/src/deployments.ts @@ -1,6 +1,7 @@ import {Address, NetworkEnum} from '@1inch/fusion-sdk' const TrueERC20 = new Address('0xda0000d4000015a526378bb6fafc650cea5966f8') +const ZKTrueERC20 = new Address('0xd66097c27eb8dee404bac235737932260edc6f3b') export const TRUE_ERC20 = { [NetworkEnum.ETHEREUM]: TrueERC20, @@ -12,18 +13,27 @@ export const TRUE_ERC20 = { [NetworkEnum.FANTOM]: TrueERC20, [NetworkEnum.GNOSIS]: TrueERC20, [NetworkEnum.ARBITRUM]: TrueERC20, - [NetworkEnum.ZKSYNC]: TrueERC20 + [NetworkEnum.ZKSYNC]: ZKTrueERC20 } const ESCROW_FACTORY_ADDRESS = new Address( '0xa7bcb4eac8964306f9e3764f67db6a7af6ddf99a' ) +const ESCROW_ZK_FACTORY_ADDRESS = new Address( + '0x584aeab186d81dbb52a8a14820c573480c3d4773' +) const ESCROW_SRC_IMPLEMENTATION_ADDRESS = new Address( '0xcd70bf33cfe59759851db21c83ea47b6b83bef6a' ) +const ESCROW_ZK_SRC_IMPLEMENTATION_ADDRESS = new Address( + '0xddc60c7babfc55d8030f51910b157e179f7a41fc' +) const ESCROW_DST_IMPLEMENTATION_ADDRESS = new Address( '0x9c3e06659f1c34f930ce97fcbce6e04ae88e535b' ) +const ESCROW_ZK_DST_IMPLEMENTATION_ADDRESS = new Address( + '0xdc4ccc2fc2475d0ed3fddd563c44f2bf6a3900c9' +) export const ESCROW_SRC_IMPLEMENTATION = { [NetworkEnum.ETHEREUM]: ESCROW_SRC_IMPLEMENTATION_ADDRESS, @@ -34,7 +44,8 @@ export const ESCROW_SRC_IMPLEMENTATION = { [NetworkEnum.COINBASE]: ESCROW_SRC_IMPLEMENTATION_ADDRESS, [NetworkEnum.FANTOM]: ESCROW_SRC_IMPLEMENTATION_ADDRESS, [NetworkEnum.GNOSIS]: ESCROW_SRC_IMPLEMENTATION_ADDRESS, - [NetworkEnum.ARBITRUM]: ESCROW_SRC_IMPLEMENTATION_ADDRESS + [NetworkEnum.ARBITRUM]: ESCROW_SRC_IMPLEMENTATION_ADDRESS, + [NetworkEnum.ZKSYNC]: ESCROW_ZK_SRC_IMPLEMENTATION_ADDRESS } export const ESCROW_DST_IMPLEMENTATION = { @@ -46,7 +57,8 @@ export const ESCROW_DST_IMPLEMENTATION = { [NetworkEnum.COINBASE]: ESCROW_DST_IMPLEMENTATION_ADDRESS, [NetworkEnum.FANTOM]: ESCROW_DST_IMPLEMENTATION_ADDRESS, [NetworkEnum.GNOSIS]: ESCROW_DST_IMPLEMENTATION_ADDRESS, - [NetworkEnum.ARBITRUM]: ESCROW_DST_IMPLEMENTATION_ADDRESS + [NetworkEnum.ARBITRUM]: ESCROW_DST_IMPLEMENTATION_ADDRESS, + [NetworkEnum.ZKSYNC]: ESCROW_ZK_DST_IMPLEMENTATION_ADDRESS } export const ESCROW_FACTORY = { @@ -58,5 +70,6 @@ export const ESCROW_FACTORY = { [NetworkEnum.COINBASE]: ESCROW_FACTORY_ADDRESS, [NetworkEnum.FANTOM]: ESCROW_FACTORY_ADDRESS, [NetworkEnum.GNOSIS]: ESCROW_FACTORY_ADDRESS, - [NetworkEnum.ARBITRUM]: ESCROW_FACTORY_ADDRESS + [NetworkEnum.ARBITRUM]: ESCROW_FACTORY_ADDRESS, + [NetworkEnum.ZKSYNC]: ESCROW_ZK_FACTORY_ADDRESS }