From 47bc5d728a24681abf0cd6ac45f625d5e0273607 Mon Sep 17 00:00:00 2001 From: soyboy <85043086+sbvegan@users.noreply.github.com> Date: Fri, 22 Dec 2023 12:01:07 -0800 Subject: [PATCH] Deploying Uniswap v3 to OP Sepolia (#102) * removing unwanted changes * bumping minor version * adding weth address --- package.json | 2 +- src/addresses.ts | 11 +++++++++++ src/chains.ts | 2 ++ src/entities/weth9.ts | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d8b90c30..314a5be3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@uniswap/sdk-core", "license": "MIT", - "version": "4.0.9", + "version": "4.0.10", "description": "⚒️ An SDK for building applications on top of Uniswap V3", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/addresses.ts b/src/addresses.ts index c3c1da1e..0a06adcb 100644 --- a/src/addresses.ts +++ b/src/addresses.ts @@ -101,6 +101,16 @@ const OPTIMISM_GOERLI_ADDRESSES: ChainAddresses = { tickLensAddress: '0xe6140Bd164b63E8BfCfc40D5dF952f83e171758e' } +// optimism sepolia addresses +const OPTIMISM_SEPOLIA_ADDRESSES: ChainAddresses = { + v3CoreFactoryAddress: '0x8CE191193D15ea94e11d327b4c7ad8bbE520f6aF', + multicallAddress: '0x80e4e06841bb76AA9735E0448cB8d003C0EF009a', + quoterAddress: '0x0FBEa6cf957d95ee9313490050F6A0DA68039404', + v3MigratorAddress: '0xE7EcbAAaA54D007A00dbb6c1d2f150066D69dA07', + nonfungiblePositionManagerAddress: '0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d', + tickLensAddress: '0xCb7f54747F58F8944973cea5b8f4ac2209BadDC5' +} + // arbitrum goerli v3 addresses const ARBITRUM_GOERLI_ADDRESSES: ChainAddresses = { v3CoreFactoryAddress: '0x4893376342d5D7b3e31d4184c08b265e5aB2A3f6', @@ -164,6 +174,7 @@ export const CHAIN_TO_ADDRESSES_MAP: Record [ChainId.CELO_ALFAJORES]: CELO_ADDRESSES, [ChainId.BNB]: BNB_ADDRESSES, [ChainId.OPTIMISM_GOERLI]: OPTIMISM_GOERLI_ADDRESSES, + [ChainId.OPTIMISM_SEPOLIA]: OPTIMISM_SEPOLIA_ADDRESSES, [ChainId.ARBITRUM_GOERLI]: ARBITRUM_GOERLI_ADDRESSES, [ChainId.SEPOLIA]: SEPOLIA_ADDRESSES, [ChainId.AVALANCHE]: AVALANCHE_ADDRESSES, diff --git a/src/chains.ts b/src/chains.ts index c9935b71..c2294780 100644 --- a/src/chains.ts +++ b/src/chains.ts @@ -4,6 +4,7 @@ export enum ChainId { SEPOLIA = 11155111, OPTIMISM = 10, OPTIMISM_GOERLI = 420, + OPTIMISM_SEPOLIA = 11155420, ARBITRUM_ONE = 42161, ARBITRUM_GOERLI = 421613, POLYGON = 137, @@ -22,6 +23,7 @@ export const SUPPORTED_CHAINS = [ ChainId.MAINNET, ChainId.OPTIMISM, ChainId.OPTIMISM_GOERLI, + ChainId.OPTIMISM_SEPOLIA, ChainId.ARBITRUM_ONE, ChainId.ARBITRUM_GOERLI, ChainId.POLYGON, diff --git a/src/entities/weth9.ts b/src/entities/weth9.ts index 9558f922..abaf3f8e 100644 --- a/src/entities/weth9.ts +++ b/src/entities/weth9.ts @@ -12,6 +12,7 @@ export const WETH9: { [chainId: number]: Token } = { [10]: new Token(10, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), [69]: new Token(69, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), + [11155420]: new Token(11155420, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped Ether'), [42161]: new Token(42161, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), [421611]: new Token(421611, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'),