Skip to content

Commit

Permalink
feat: add MBSM deployment script (#55)
Browse files Browse the repository at this point in the history
* feat: add MBSM deployment script

* chore: Update foundry.yml
  • Loading branch information
shekohex authored Feb 20, 2025
1 parent 400985b commit 7647933
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
id: coverage

- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
uses: zgosalvez/github-actions-report-lcov@v4
with:
coverage-files: lcov.info
minimum-coverage: 85
Expand Down
10 changes: 10 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ libs = ["dependencies"]
optimizer_runs = 200
fs_permissions = [{ access = "read-write", path = "./" }]
solc = "0.8.20"
evm_version = "shanghai"

[profile.ci]
verbosity = 4
Expand All @@ -34,6 +35,15 @@ depth = 120
arbitrum_goerli = "${ARBITRUM_GOERLI_RPC}"
arbitrum = "${ARBITRUM_RPC}"
mainnet = "${MAINNET_RPC}"
tangle_local = "${TANGLE_LOCAL_RPC}"
tangle_testnet = "${TANGLE_TESTNET_RPC}"
tangle_mainnet = "${TANGLE_MAINNET_RPC}"

[etherscan]
sepolia = { key = "${SEPOLIA_KEY}" }
base-sepolia = { key = "${BASE_SEPOLIA_KEY}" }
tangle_testnet = { key = "${TANGLE_TESTNET_KEY}", url = "https://testnet-explorer.tangle.tools" }
tangle_mainnet = { key = "${TANGLE_MAINNET_KEY}", url = "https://explorer.tangle.tools" }

[dependencies]
forge-std = "1.9.4"
Expand Down
24 changes: 24 additions & 0 deletions scripts/MBSMDeployer.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
import {Script} from "forge-std/Script.sol";

import "../src/MasterBlueprintServiceManager.sol";

// Here is how you can run this script:
// forge script scripts/MBSMDeployer.s.sol -vvvv --broadcast --evm-version london --legacy --private-key $(subkey inspect //Alice --scheme Ecdsa --output-type json | jq -r .secretSeed)

contract MBSMDeployerScript is Script {
function run() public {
vm.createSelectFork("tangle_local");
vm.startBroadcast();
// TODO: Change this to the actual protocol fees receiver address
address payable protocolFeesReceiver = payable(address(0x0));
new MasterBlueprintServiceManager(protocolFeesReceiver);
vm.stopBroadcast();

// vm.createSelectFork("base-sepolia");
// vm.startBroadcast();
// new Counter();
// vm.stopBroadcast();
}
}

0 comments on commit 7647933

Please sign in to comment.