forked from Uniswap/UniswapX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IReactor.sol
24 lines (21 loc) · 1.13 KB
/
IReactor.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import {ResolvedOrder, SignedOrder} from "../base/ReactorStructs.sol";
import {IReactorCallback} from "./IReactorCallback.sol";
/// @notice Interface for order execution reactors
interface IReactor {
/// @notice Execute a single order using the given fill specification
/// @param order The order definition and valid signature to execute
/// @param fillContract The contract which will fill the order
/// @param fillData The fillData to pass to the fillContract callback
function execute(SignedOrder calldata order, IReactorCallback fillContract, bytes calldata fillData)
external
payable;
/// @notice Execute the given orders at once with the specified fill specification
/// @param orders The order definitions and valid signatures to execute
/// @param fillContract The contract which will fill the order
/// @param fillData The fillData to pass to the fillContract callback
function executeBatch(SignedOrder[] calldata orders, IReactorCallback fillContract, bytes calldata fillData)
external
payable;
}