From eab3f3a03860ccf1c28886a8413f2cb58fd5d492 Mon Sep 17 00:00:00 2001 From: Eric Zhong Date: Wed, 7 Aug 2024 11:59:26 -0400 Subject: [PATCH] fix(uniswapx-sdk): Add back in relay order reactor addresses (#69) --- sdks/uniswapx-sdk/src/constants.test.ts | 6 ++++++ sdks/uniswapx-sdk/src/constants.ts | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sdks/uniswapx-sdk/src/constants.test.ts b/sdks/uniswapx-sdk/src/constants.test.ts index 3114c997e..886f83099 100644 --- a/sdks/uniswapx-sdk/src/constants.test.ts +++ b/sdks/uniswapx-sdk/src/constants.test.ts @@ -13,27 +13,33 @@ describe("REACTOR_ADDRESS_MAPPING", () => { "11155111": Object { "Dutch": "0xD6c073F2A3b676B8f9002b276B618e0d8bA84Fad", "Dutch_V2": "0x0e22B6638161A89533940Db590E67A52474bEBcd", + "Relay": "0x0000000000A4e21E2597DCac987455c48b12edBF", }, "12341234": Object { "Dutch": "0xbD7F9D0239f81C94b728d827a87b9864972661eC", "Dutch_V2": "0x0000000000000000000000000000000000000000", + "Relay": "0x0000000000A4e21E2597DCac987455c48b12edBF", }, "137": Object { "Dutch": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4", "Dutch_V2": "0x0000000000000000000000000000000000000000", + "Relay": "0x0000000000A4e21E2597DCac987455c48b12edBF", }, "42161": Object { "Dutch": "0x0000000000000000000000000000000000000000", "Dutch_V2": "0x1bd1aAdc9E230626C44a139d7E70d842749351eb", + "Relay": "0x0000000000000000000000000000000000000000", }, "5": Object { "Dutch": "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4", "Dutch_V2": "0x0000000000000000000000000000000000000000", + "Relay": "0x0000000000A4e21E2597DCac987455c48b12edBF", }, "8453": Object { "Dutch": "0x0000000000000000000000000000000000000000", "Dutch_V2": "0x0000000000000000000000000000000000000000", "Priority": "0x000000001Ec5656dcdB24D90DFa42742738De729", + "Relay": "0x0000000000000000000000000000000000000000", }, } `); diff --git a/sdks/uniswapx-sdk/src/constants.ts b/sdks/uniswapx-sdk/src/constants.ts index c22138eb3..50f7bc259 100644 --- a/sdks/uniswapx-sdk/src/constants.ts +++ b/sdks/uniswapx-sdk/src/constants.ts @@ -71,29 +71,34 @@ export const REACTOR_ADDRESS_MAPPING: ReactorMapping = { ...constructSameAddressMap({ [OrderType.Dutch]: "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4", [OrderType.Dutch_V2]: "0x0000000000000000000000000000000000000000", + [OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF", }), //test contract is only on mainnet 1: { [OrderType.Dutch]: "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4", [OrderType.Dutch_V2]: "0x00000011F84B9aa48e5f8aA8B9897600006289Be", - [OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF", [OrderType.Priority]: "0x0000000000000000000000000000000000000000", + [OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF", }, 12341234: { [OrderType.Dutch]: "0xbD7F9D0239f81C94b728d827a87b9864972661eC", [OrderType.Dutch_V2]: "0x0000000000000000000000000000000000000000", + [OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF", }, 11155111: { [OrderType.Dutch_V2]: "0x0e22B6638161A89533940Db590E67A52474bEBcd", [OrderType.Dutch]: "0xD6c073F2A3b676B8f9002b276B618e0d8bA84Fad", + [OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF", }, 42161: { [OrderType.Dutch_V2]: "0x1bd1aAdc9E230626C44a139d7E70d842749351eb", [OrderType.Dutch]: "0x0000000000000000000000000000000000000000", + [OrderType.Relay]: "0x0000000000000000000000000000000000000000", }, 8453: { [OrderType.Dutch]: "0x0000000000000000000000000000000000000000", [OrderType.Dutch_V2]: "0x0000000000000000000000000000000000000000", + [OrderType.Relay]: "0x0000000000000000000000000000000000000000", [OrderType.Priority]: "0x000000001Ec5656dcdB24D90DFa42742738De729", }, };