diff --git a/foundry.toml b/foundry.toml index ba56a28..f3be11a 100644 --- a/foundry.toml +++ b/foundry.toml @@ -8,7 +8,9 @@ fs_permissions = [{ access = "read", path = "out-optimized" }, { access = "read- allow_paths = ["*", "/"] [rpc_endpoints] -mainnet = "${MAINNET_RPC_URL}" +sepolia = "${MAINNET_RPC_URL}" +scroll-devnet = "https://l1sload-rpc.scroll.io" + [fmt] bracket_spacing = true @@ -19,3 +21,4 @@ number_underscore = "thousands" quote_style = "double" tab_width = 4 wrap_comments = true + diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol new file mode 100644 index 0000000..a7bf8be --- /dev/null +++ b/script/Deploy.s.sol @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import { Script } from "forge-std/Script.sol"; +import { MultiChainValidator } from "src/MultiOwnable.sol"; + +/** + * @title Deploy + * @author @kopy-kat + */ +contract DeployScript is Script { + function run() public { + bytes32 salt = bytes32(uint256(0)); + + vm.startBroadcast(vm.envUint("PK")); + + vm.createSelectFork("sepolia"); + new MultiChainValidator{ salt: salt }(address(0)); + vm.createSelectFork("scroll-devnet"); + new MultiChainValidator{ salt: salt }(address(0)); + + vm.stopBroadcast(); + } +}