From 5365ae4cd021ab53b94b0879ec6ceb6ad3ebdce9 Mon Sep 17 00:00:00 2001 From: Jason-W123 <147362502+Jason-W123@users.noreply.github.com> Date: Wed, 3 Jan 2024 05:34:24 +0800 Subject: [PATCH] add arbitrum sepolia support (#99) --- src/addresses.ts | 11 +++++++++++ src/chains.ts | 2 ++ src/entities/weth9.ts | 1 + 3 files changed, 14 insertions(+) diff --git a/src/addresses.ts b/src/addresses.ts index 0a06adcb..b6fa97b2 100644 --- a/src/addresses.ts +++ b/src/addresses.ts @@ -121,6 +121,16 @@ const ARBITRUM_GOERLI_ADDRESSES: ChainAddresses = { tickLensAddress: '0xb52429333da969a0C79a60930a4Bf0020E5D1DE8' } +// arbitrum sepolia v3 addresses +const ARBITRUM_SEPOLIA_ADDRESSES: ChainAddresses = { + v3CoreFactoryAddress: '0x248AB79Bbb9bC29bB72f7Cd42F17e054Fc40188e', + multicallAddress: '0x2B718b475e385eD29F56775a66aAB1F5cC6B2A0A', + quoterAddress: '0x2779a0CC1c3e0E44D2542EC3e79e3864Ae93Ef0B', + v3MigratorAddress: '0x398f43ef2c67B941147157DA1c5a868E906E043D', + nonfungiblePositionManagerAddress: '0x6b2937Bde17889EDCf8fbD8dE31C3C2a70Bc4d65', + tickLensAddress: '0x0fd18587734e5C2dcE2dccDcC7DD1EC89ba557d9' +} + // sepolia v3 addresses const SEPOLIA_ADDRESSES: ChainAddresses = { v3CoreFactoryAddress: '0x0227628f3F023bb0B980b67D528571c95c6DaC1c', @@ -176,6 +186,7 @@ export const CHAIN_TO_ADDRESSES_MAP: Record [ChainId.OPTIMISM_GOERLI]: OPTIMISM_GOERLI_ADDRESSES, [ChainId.OPTIMISM_SEPOLIA]: OPTIMISM_SEPOLIA_ADDRESSES, [ChainId.ARBITRUM_GOERLI]: ARBITRUM_GOERLI_ADDRESSES, + [ChainId.ARBITRUM_SEPOLIA]: ARBITRUM_SEPOLIA_ADDRESSES, [ChainId.SEPOLIA]: SEPOLIA_ADDRESSES, [ChainId.AVALANCHE]: AVALANCHE_ADDRESSES, [ChainId.BASE]: BASE_ADDRESSES, diff --git a/src/chains.ts b/src/chains.ts index c2294780..1ccee823 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -7,6 +7,7 @@ export enum ChainId { OPTIMISM_SEPOLIA = 11155420, ARBITRUM_ONE = 42161, ARBITRUM_GOERLI = 421613, + ARBITRUM_SEPOLIA = 421614, POLYGON = 137, POLYGON_MUMBAI = 80001, CELO = 42220, @@ -26,6 +27,7 @@ export const SUPPORTED_CHAINS = [ ChainId.OPTIMISM_SEPOLIA, ChainId.ARBITRUM_ONE, ChainId.ARBITRUM_GOERLI, + ChainId.ARBITRUM_SEPOLIA, ChainId.POLYGON, ChainId.POLYGON_MUMBAI, ChainId.GOERLI, diff --git a/src/entities/weth9.ts b/src/entities/weth9.ts index abaf3f8e..925e9069 100644 --- a/src/entities/weth9.ts +++ b/src/entities/weth9.ts @@ -16,6 +16,7 @@ export const WETH9: { [chainId: number]: Token } = { [42161]: new Token(42161, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), [421611]: new Token(421611, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), + [421614]: new Token(421614, '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73', 18, 'WETH', 'Wrapped Ether'), [8453]: new Token(8453, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'),