From ee53e8f7218b2c015fbbdb70a80618995e4dcbaa Mon Sep 17 00:00:00 2001 From: "Siyu Jiang (See-You John)" <91580504+jsy1218@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:57:41 -0800 Subject: [PATCH] feat(universal-router-sdk): sepolia and unichain sepolia using re-deployed v4 addresses (#230) --- sdks/universal-router-sdk/package.json | 2 +- sdks/universal-router-sdk/src/utils/constants.ts | 8 ++++---- yarn.lock | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sdks/universal-router-sdk/package.json b/sdks/universal-router-sdk/package.json index eaf3c6b0..1e513c9b 100644 --- a/sdks/universal-router-sdk/package.json +++ b/sdks/universal-router-sdk/package.json @@ -32,7 +32,7 @@ "@openzeppelin/contracts": "4.7.0", "@uniswap/permit2-sdk": "^1.3.0", "@uniswap/router-sdk": "^1.15.0", - "@uniswap/sdk-core": "^6.0.0", + "@uniswap/sdk-core": "^6.1.1", "@uniswap/universal-router": "2.0.0-beta.2", "@uniswap/v2-core": "^1.0.1", "@uniswap/v2-sdk": "^4.7.0", diff --git a/sdks/universal-router-sdk/src/utils/constants.ts b/sdks/universal-router-sdk/src/utils/constants.ts index 0513e984..ba95042f 100644 --- a/sdks/universal-router-sdk/src/utils/constants.ts +++ b/sdks/universal-router-sdk/src/utils/constants.ts @@ -56,8 +56,8 @@ export const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { creationBlock: 3543575, }, [UniversalRouterVersion.V2_0]: { - address: '0x4D73A4411CA1c660035e4AECC8270E5DdDEC8C17', // only update here and creation block below - creationBlock: 6898582, + address: '0x3a9d48ab9751398bbfa63ad67599bb04e4bdf98b', // only update here and creation block below + creationBlock: 7259601, }, }, }, @@ -289,8 +289,8 @@ export const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { creationBlock: 1241811, }, [UniversalRouterVersion.V2_0]: { - address: '0xcA7577Afb670147c7b211C798B97118bd36058F3', - creationBlock: 1490973, + address: '0xf70536b3bcc1bd1a972dc186a2cf84cc6da6be5d', + creationBlock: 7100543, }, }, }, diff --git a/yarn.lock b/yarn.lock index c1438b68..35ba20fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4556,9 +4556,9 @@ __metadata: languageName: node linkType: hard -"@uniswap/sdk-core@npm:^6.0.0": - version: 6.0.0 - resolution: "@uniswap/sdk-core@npm:6.0.0" +"@uniswap/sdk-core@npm:^6.0.0, @uniswap/sdk-core@npm:^6.1.1": + version: 6.1.1 + resolution: "@uniswap/sdk-core@npm:6.1.1" dependencies: "@ethersproject/address": ^5.0.2 "@ethersproject/bytes": ^5.7.0 @@ -4569,7 +4569,7 @@ __metadata: jsbi: ^3.1.4 tiny-invariant: ^1.1.0 toformat: ^2.0.0 - checksum: 395808ddb8425a98226fd5d19783067c29bdda6c8e6b05032a57a6c66db58870f8f6766b0d1c93bd9e15e4c646f283712bea8cb177aca7818234c3b3c743db2d + checksum: f9b0433aaec6727fbf012eb5a1fecf34c791ae5411980e56032db694bf12eff09dee281a19266ffae138a968ce14b8dac2740a5b4e9495c81b3b21299303c72d languageName: node linkType: hard @@ -4648,7 +4648,7 @@ __metadata: "@types/node-fetch": ^2.6.2 "@uniswap/permit2-sdk": ^1.3.0 "@uniswap/router-sdk": ^1.15.0 - "@uniswap/sdk-core": ^6.0.0 + "@uniswap/sdk-core": ^6.1.1 "@uniswap/universal-router": 2.0.0-beta.2 "@uniswap/v2-core": ^1.0.1 "@uniswap/v2-sdk": ^4.7.0