-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use local signed order, rename orderinfo, fixes #2 * add version in .toml, fixes 4 * comments, fixes #6 * remove error & import, fixes #7 * use address, fixes #8 * use ++i, fixes #9 * remove UniswapX dependency * fix eip712 hash ordering * final audit comments
- Loading branch information
1 parent
53081e7
commit d32023f
Showing
36 changed files
with
221 additions
and
218 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteAverageCase-ClassicSwap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
139170 | ||
139165 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteAverageCase.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
187003 | ||
187089 |
2 changes: 1 addition & 1 deletion
2
...snapshots/RelayOrderReactorIntegrationTest-testExecuteDifferentRecipient-ClassicSwap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
141164 | ||
141170 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteDifferentRecipient.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
239699 | ||
239780 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteSameToken-ClassicSwap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
141170 | ||
141165 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteSameToken.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
180034 | ||
180115 |
2 changes: 1 addition & 1 deletion
2
...snapshots/RelayOrderReactorIntegrationTest-testExecuteWithNativeAsOutput-ClassicSwap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
160343 | ||
160344 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteWithNativeAsOutput.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
263603 | ||
263684 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteWorstCase-ClassicSwap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
158669 | ||
158664 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testExecuteWorstCase.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
237828 | ||
237910 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testPermitAndExecute-ClassicSwap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
154373 | ||
154378 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/RelayOrderReactorIntegrationTest-testPermitAndExecute.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
295198 | ||
295273 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule UniswapX
deleted from
4bc3d8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ abstract contract Multicall is IMulticall { | |
} | ||
results[i] = result; | ||
unchecked { | ||
i++; | ||
++i; | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
pragma solidity ^0.8.0; | ||
|
||
import {RelayOrderInfo} from "../base/ReactorStructs.sol"; | ||
|
||
/// @notice Handles the EIP712 defined typehash and hashing for RelayOrderInfo | ||
library RelayOrderInfoLib { | ||
bytes internal constant RELAY_ORDER_INFO_TYPESTRING = abi.encodePacked( | ||
"RelayOrderInfo(", "address reactor,", "address swapper,", "uint256 nonce,", "uint256 deadline)" | ||
); | ||
|
||
bytes32 internal constant RELAY_ORDER_INFO_TYPEHASH = keccak256(RELAY_ORDER_INFO_TYPESTRING); | ||
|
||
/// @notice Hashes the orderInfo | ||
/// @param orderInfo The info to hash | ||
/// @return The hash of the info | ||
function hash(RelayOrderInfo memory orderInfo) internal pure returns (bytes32) { | ||
return keccak256( | ||
abi.encode( | ||
RELAY_ORDER_INFO_TYPEHASH, orderInfo.reactor, orderInfo.swapper, orderInfo.nonce, orderInfo.deadline | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.