-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 changed file
with
20 additions
and
0 deletions.
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,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity =0.8.21; | ||
|
||
import {Script} from "../../lib/forge-std/src/Script.sol"; | ||
import {ConveyorRouterV1} from "../ConveyorRouterV1.sol"; | ||
import {ICREATE3Factory} from "../../lib/create3-factory/src/ICREATE3Factory.sol"; | ||
|
||
contract Deploy is Script { | ||
///@dev Base Constructor Constants | ||
address constant WETH = 0x4200000000000000000000000000000000000006; | ||
|
||
function run() public returns (address conveyorRouterV1) { | ||
bytes32 salt = bytes32("0x8fbb158"); | ||
bytes memory creationCode = abi.encodePacked(type(ConveyorRouterV1).creationCode, abi.encode(WETH)); | ||
|
||
vm.startBroadcast(); | ||
conveyorRouterV1 = ICREATE3Factory(0x93FEC2C00BfE902F733B57c5a6CeeD7CD1384AE1).deploy(salt, creationCode); | ||
vm.stopBroadcast(); | ||
} | ||
} |