You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/permit2/UsesPermit2.sol
+31-17Lines changed: 31 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,12 @@ import {ISignatureTransfer} from "permit2/src/interfaces/ISignatureTransfer.sol"
5
5
import {IOrders} from"../interfaces/IOrders.sol";
6
6
7
7
abstractcontractUsesPermit2 {
8
+
/// @notice Struct to hold the pre-hashed witness field and the witness type string.
9
+
struct Witness {
10
+
bytes32 witnessHash;
11
+
string witnessTypeString;
12
+
}
13
+
8
14
/// @notice The Permit2 contract address.
9
15
addressimmutable permit2Contract;
10
16
@@ -33,34 +39,35 @@ abstract contract OrdersPermit2 is UsesPermit2 {
33
39
error OutputMismatch();
34
40
35
41
/// @notice Transfer a batch of tokens using permit2.
36
-
/// @param outputs - the Outputs for the witness field.
42
+
/// @param _witness - the hashed witness and its typestring.
37
43
/// @param transferDetails - the TokenPermissions for the transfer, generated based on the use-case (see `_initiateTransferDetails` and `_fillTransferDetails`).
38
44
/// @param permit2 - the Permit2Batch information.
0 commit comments