Skip to content

Commit

Permalink
fix(uniswapx-sdk): add priority order reactor deployment for base (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric authored Aug 5, 2024
1 parent 2eee6b4 commit 7c1b821
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
8 changes: 1 addition & 7 deletions sdks/uniswapx-sdk/src/constants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,27 @@ 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": "0x0000000000000000000000000000000000000000",
"Relay": "0x0000000000000000000000000000000000000000",
"Priority": "0x000000001Ec5656dcdB24D90DFa42742738De729",
},
}
`);
Expand Down
16 changes: 6 additions & 10 deletions sdks/uniswapx-sdk/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ export function constructSameAddressMap<T>(
}

export const PERMIT2_MAPPING: AddressMap = {
...constructSameAddressMap("0x000000000022d473030f116ddee9f6b43ac78ba3"),
11155111: "0x000000000022d473030f116ddee9f6b43ac78ba3",
42161: "0x000000000022d473030f116ddee9f6b43ac78ba3",
...constructSameAddressMap("0x000000000022d473030f116ddee9f6b43ac78ba3", [
11155111,
42161,
]),
12341234: "0x000000000022d473030f116ddee9f6b43ac78ba3",
8453: "0x000000000022d473030f116ddee9f6b43ac78ba3",
};

export const UNISWAPX_ORDER_QUOTER_MAPPING: AddressMap = {
...constructSameAddressMap("0x54539967a06Fc0E3C3ED0ee320Eb67362D13C5fF"),
11155111: "0xAA6187C48096e093c37d2cF178B1e8534A6934f7",
42161: "0x88440407634F89873c5D9439987Ac4BE9725fea8",
12341234: "0xbea0901A41177811b099F787D753436b2c47690E",
8453: "0x88440407634f89873c5d9439987ac4be9725fea8",
};

export const EXCLUSIVE_FILLER_VALIDATION_MAPPING: AddressMap = {
Expand Down Expand Up @@ -70,7 +71,6 @@ export const REACTOR_ADDRESS_MAPPING: ReactorMapping = {
...constructSameAddressMap({
[OrderType.Dutch]: "0x6000da47483062A0D734Ba3dc7576Ce6A0B645C4",
[OrderType.Dutch_V2]: "0x0000000000000000000000000000000000000000",
[OrderType.Relay]: "0x0000000000A4e21E2597DCac987455c48b12edBF",
}),
//test contract is only on mainnet
1: {
Expand All @@ -82,23 +82,19 @@ export const REACTOR_ADDRESS_MAPPING: ReactorMapping = {
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]: "0x0000000000000000000000000000000000000000",
[OrderType.Priority]: "0x000000001Ec5656dcdB24D90DFa42742738De729",
},
};

Expand Down

0 comments on commit 7c1b821

Please sign in to comment.