From 129d77e08581118cf3f02fa368810c3196e332f7 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 5 Feb 2024 18:27:28 +0200 Subject: [PATCH] add sepolia addresses --- src/addresses.ts | 14 +++++++++++++- src/chains.ts | 4 +++- src/entities/weth9.ts | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/addresses.ts b/src/addresses.ts index b6fa97b2..0be98bf9 100644 --- a/src/addresses.ts +++ b/src/addresses.ts @@ -173,6 +173,17 @@ const BASE_GOERLI_ADDRESSES: ChainAddresses = { swapRouter02Address: '0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d' } +// Base Sepolia v3 addresses +const BASE_SEPOLIA_ADDRESSES: ChainAddresses = { + v3CoreFactoryAddress: '0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24', + multicallAddress: '0xd867e273eAbD6c853fCd0Ca0bFB6a3aE6491d2C1', + quoterAddress: '0xC5290058841028F1614F3A6F0F5816cAd0df5E27', + v3MigratorAddress: '0xCbf8b7f80800bd4888Fbc7bf1713B80FE4E23E10', + nonfungiblePositionManagerAddress: '0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2', + tickLensAddress: '0xedf6066a2b290C185783862C7F4776A2C8077AD1', + swapRouter02Address: '0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4' +} + export const CHAIN_TO_ADDRESSES_MAP: Record = { [ChainId.MAINNET]: MAINNET_ADDRESSES, [ChainId.OPTIMISM]: OPTIMISM_ADDRESSES, @@ -190,7 +201,8 @@ export const CHAIN_TO_ADDRESSES_MAP: Record [ChainId.SEPOLIA]: SEPOLIA_ADDRESSES, [ChainId.AVALANCHE]: AVALANCHE_ADDRESSES, [ChainId.BASE]: BASE_ADDRESSES, - [ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES + [ChainId.BASE_GOERLI]: BASE_GOERLI_ADDRESSES, + [ChainId.BASE_SEPOLIA]: BASE_SEPOLIA_ADDRESSES } /* V3 Contract Addresses */ diff --git a/src/chains.ts b/src/chains.ts index 1ccee823..106d863b 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -17,6 +17,7 @@ export enum ChainId { BNB = 56, AVALANCHE = 43114, BASE_GOERLI = 84531, + BASE_SEPOLIA = 84532, BASE = 8453 } @@ -37,7 +38,8 @@ export const SUPPORTED_CHAINS = [ ChainId.BNB, ChainId.AVALANCHE, ChainId.BASE, - ChainId.BASE_GOERLI + ChainId.BASE_GOERLI, + ChainId.BASE_SEPOLIA ] as const export type SupportedChainsType = typeof SUPPORTED_CHAINS[number] diff --git a/src/entities/weth9.ts b/src/entities/weth9.ts index 925e9069..3d613989 100644 --- a/src/entities/weth9.ts +++ b/src/entities/weth9.ts @@ -19,6 +19,8 @@ export const WETH9: { [chainId: number]: Token } = { [421614]: new Token(421614, '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73', 18, 'WETH', 'Wrapped Ether'), [8453]: new Token(8453, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), + + [84532]: new Token(84532, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), [56]: new Token(56, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), [137]: new Token(137, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped MATIC'),