Skip to content

Commit b94e158

Browse files
committed
rename: OutputFilled
1 parent 4b7c42d commit b94e158

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Orders.sol

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ import {IERC20} from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
55

66
/// @notice Contract capable of processing fulfillment of intent-based Orders.
77
abstract contract OrderDestination {
8-
/// @notice Emitted when an Order output is fulfilled.
8+
/// @notice Emitted when an Order's Output is sent to the recipient.
9+
/// @dev There may be multiple Outputs per Order.
10+
/// @param recipient - The recipient of the token.
911
/// @param token - The address of the token transferred to the recipient. address(0) corresponds to native Ether.
1012
/// @param amount - The amount of the token transferred to the recipient.
11-
/// @param recipient - The recipient of the token.
12-
event OrderFulfilled(address indexed recipient, address indexed token, uint256 amount);
13+
event OutputFilled(address indexed recipient, address indexed token, uint256 amount);
1314

14-
/// @notice Fulfill a rollup Swap order.
15-
/// The user calls `initiate` on a rollup; the Builder calls `fill` on the target chain.
16-
/// @custom:emits OrderFulfilled
15+
/// @notice Send the Output(s) of an Order to fulfill it.
16+
/// The user calls `initiate` on a rollup; the Builder calls `fill` on the target chain for each Output.
17+
/// @custom:emits OutputFilled
1718
/// @param recipient - The recipient of the token.
1819
/// @param token - The address of the token to be transferred to the recipient.
1920
/// address(0) corresponds to native Ether.
@@ -25,7 +26,7 @@ abstract contract OrderDestination {
2526
} else {
2627
IERC20(token).transferFrom(msg.sender, recipient, amount);
2728
}
28-
emit OrderFulfilled(recipient, token, amount);
29+
emit OutputFilled(recipient, token, amount);
2930
}
3031
}
3132

0 commit comments

Comments
 (0)