-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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,31 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import "forge-std/console2.sol"; | ||
import "forge-std/Script.sol"; | ||
import {IPermit2} from "permit2/src/interfaces/IPermit2.sol"; | ||
import {V3DutchOrderReactor} from "../src/reactors/V3DutchOrderReactor.sol"; | ||
|
||
struct V3DutchOrderDeployment { | ||
IPermit2 permit2; | ||
V3DutchOrderReactor reactor; | ||
} | ||
|
||
contract DeployDutchV3 is Script { | ||
address constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3; | ||
|
||
function setUp() public {} | ||
|
||
function run() public returns (V3DutchOrderDeployment memory deployment) { | ||
address owner = vm.envAddress("FOUNDRY_REACTOR_OWNER"); | ||
console2.log("Owner", owner); | ||
vm.startBroadcast(); | ||
|
||
V3DutchOrderReactor reactor = new V3DutchOrderReactor{salt: 0x00}(IPermit2(PERMIT2), owner); | ||
console2.log("Reactor", address(reactor)); | ||
|
||
vm.stopBroadcast(); | ||
|
||
return V3DutchOrderDeployment(IPermit2(PERMIT2), reactor); | ||
} | ||
} |
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