Skip to content

Commit

Permalink
add deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroknots committed Jun 25, 2024
1 parent bdc70ea commit 6e49c8b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,3 +21,4 @@ number_underscore = "thousands"
quote_style = "double"
tab_width = 4
wrap_comments = true

24 changes: 24 additions & 0 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 6e49c8b

Please sign in to comment.