Skip to content

Commit

Permalink
add base deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOsiris committed Sep 20, 2023
1 parent 308ba1d commit 55fbe02
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/deploy/DeployBaseAggregator.s.sol
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();
}
}

0 comments on commit 55fbe02

Please sign in to comment.