From 769e02188c4d035b60dafb020c3573023e23528a Mon Sep 17 00:00:00 2001 From: marktoda Date: Thu, 16 May 2024 09:15:17 -0400 Subject: [PATCH] feat(uniswapx-sdk): Add Arbitrum UniswapX Deployment (#24) Co-authored-by: Cody Born --- sdks/uniswapx-sdk/src/constants.test.ts | 5 +++++ sdks/uniswapx-sdk/src/constants.ts | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/sdks/uniswapx-sdk/src/constants.test.ts b/sdks/uniswapx-sdk/src/constants.test.ts index bb825720b..478b417cf 100644 --- a/sdks/uniswapx-sdk/src/constants.test.ts +++ b/sdks/uniswapx-sdk/src/constants.test.ts @@ -24,6 +24,11 @@ describe("REACTOR_ADDRESS_MAPPING", () => { "Dutch_V2": "0x0000000000000000000000000000000000000000", "Relay": "0x0000000000A4e21E2597DCac987455c48b12edBF", }, + "42161": Object { + "Dutch": "0x0000000000000000000000000000000000000000", + "Dutch_V2": "0x1bd1aAdc9E230626C44a139d7E70d842749351eb", + "Relay": "0x0000000000000000000000000000000000000000", + }, "5": Object { "Dutch": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4", "Dutch_V2": "0x0000000000000000000000000000000000000000", diff --git a/sdks/uniswapx-sdk/src/constants.ts b/sdks/uniswapx-sdk/src/constants.ts index 5b0094efa..b2987c751 100644 --- a/sdks/uniswapx-sdk/src/constants.ts +++ b/sdks/uniswapx-sdk/src/constants.ts @@ -23,12 +23,14 @@ export function constructSameAddressMap( export const PERMIT2_MAPPING: AddressMap = { ...constructSameAddressMap("0x000000000022d473030f116ddee9f6b43ac78ba3"), 11155111: "0x000000000022d473030f116ddee9f6b43ac78ba3", + 42161: "0x000000000022d473030f116ddee9f6b43ac78ba3", 12341234: "0x000000000022d473030f116ddee9f6b43ac78ba3", }; export const UNISWAPX_ORDER_QUOTER_MAPPING: AddressMap = { ...constructSameAddressMap("0x54539967a06Fc0E3C3ED0ee320Eb67362D13C5fF"), 11155111: "0xAA6187C48096e093c37d2cF178B1e8534A6934f7", + 42161: "0x88440407634F89873c5D9439987Ac4BE9725fea8", 12341234: "0xbea0901A41177811b099F787D753436b2c47690E", }; @@ -36,6 +38,7 @@ export const EXCLUSIVE_FILLER_VALIDATION_MAPPING: AddressMap = { ...constructSameAddressMap("0x8A66A74e15544db9688B68B06E116f5d19e5dF90"), 5: "0x0000000000000000000000000000000000000000", 11155111: "0x0000000000000000000000000000000000000000", + 42161: "0x0000000000000000000000000000000000000000", 12341234: "0x8A66A74e15544db9688B68B06E116f5d19e5dF90", }; @@ -81,6 +84,11 @@ export const REACTOR_ADDRESS_MAPPING: ReactorMapping = { [OrderType.Dutch]: "0xD6c073F2A3b676B8f9002b276B618e0d8bA84Fad", [OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF", }, + 42161: { + [OrderType.Dutch_V2]: "0x1bd1aAdc9E230626C44a139d7E70d842749351eb", + [OrderType.Dutch]: "0x0000000000000000000000000000000000000000", + [OrderType.Relay]: "0x0000000000000000000000000000000000000000", + }, }; // aliasing for backwards compatibility