Skip to content

Commit 6900e3e

Browse files
committed
feat: deploy generic ERC20s
1 parent 88a1a9f commit 6900e3e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

script/Zenith.s.sol

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {HostOrders} from "../src/orders/HostOrders.sol";
88
import {RollupOrders} from "../src/orders/RollupOrders.sol";
99
import {Passage} from "../src/passage/Passage.sol";
1010
import {RollupPassage} from "../src/passage/RollupPassage.sol";
11+
// deps
12+
import {SimpleERC20} from "simple-erc20/SimpleERC20.sol";
1113
// utils
1214
import {Script} from "forge-std/Script.sol";
1315

@@ -29,13 +31,20 @@ contract ZenithScript is Script {
2931
}
3032

3133
// deploy:
32-
// forge script ZenithScript --sig "deployL2()" --rpc-url $L2_RPC_URL --private-key $PRIVATE_KEY --broadcast
33-
function deployL2() public returns (address permit2, RollupPassage p, RollupOrders m) {
34+
// forge script ZenithScript --sig "deployL2(address)" --rpc-url $L2_RPC_URL --private-key $PRIVATE_KEY --broadcast $MINTER
35+
function deployL2(address minter)
36+
public
37+
returns (address permit2, RollupPassage p, RollupOrders m, SimpleERC20 wbtc, SimpleERC20 usdt)
38+
{
3439
vm.startBroadcast();
3540
// deploy system contracts
3641
permit2 = _deployPermit2();
3742
p = new RollupPassage(permit2);
3843
m = new RollupOrders(permit2);
44+
45+
// deploy simple erc20 tokens
46+
wbtc = new SimpleERC20(minter, "Wrapped BTC", "WBTC");
47+
usdt = new SimpleERC20(minter, "Tether USD", "USDT");
3948
}
4049

4150
/// @dev Permit2 contract uses Solidity 0.8.17 which is incompatible with the Solidity version of some OpenZeppeling contracts used as deps for system contracts (RollupOrders and RollupPassage).

0 commit comments

Comments
 (0)