Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add orderQuoter as part of v2 deployment #235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion script/DeployDutchV2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import "forge-std/console2.sol";
import "forge-std/Script.sol";
import {IPermit2} from "permit2/src/interfaces/IPermit2.sol";
import {V2DutchOrderReactor} from "../src/reactors/V2DutchOrderReactor.sol";
import {OrderQuoter} from "../src/lens/OrderQuoter.sol";

struct V2DutchOrderDeployment {
IPermit2 permit2;
V2DutchOrderReactor reactor;
OrderQuoter quoter;
}

contract DeployDutchV2 is Script {
Expand All @@ -22,10 +24,12 @@ contract DeployDutchV2 is Script {
vm.startBroadcast();

V2DutchOrderReactor reactor = new V2DutchOrderReactor{salt: 0x00}(IPermit2(PERMIT2), owner);
OrderQuoter quoter = new OrderQuoter{salt: 0x00}();
console2.log("Reactor", address(reactor));
console2.log("Quoter", address(quoter));

vm.stopBroadcast();

return V2DutchOrderDeployment(IPermit2(PERMIT2), reactor);
return V2DutchOrderDeployment(IPermit2(PERMIT2), reactor, quoter);
}
}
Loading