Skip to content

Commit

Permalink
Split contracts deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
xavikh committed Mar 21, 2024
1 parent ce12c93 commit 83ba913
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ evm_version = "shanghai"

[rpc_endpoints]
sepolia = "${SEPOLIA_RPC_URL}"
taiko= "${TAIKO_RPC_URL}"
taiko = "${TAIKO_RPC_URL}"



4 changes: 0 additions & 4 deletions script/OptimisticTokenVotingPlugin.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.13;

import {Script, console2} from "forge-std/Script.sol";
import {VetoToken} from "../src/VetoToken.sol";
import {OptimisticTokenVotingPluginSetup} from "../src/OptimisticTokenVotingPluginSetup.sol";
import {OptimisticTokenVotingPlugin} from "../src/OptimisticTokenVotingPlugin.sol";
import {GovernanceERC20} from "@aragon/osx/token/ERC20/governance/GovernanceERC20.sol";
Expand Down Expand Up @@ -89,9 +88,6 @@ contract Deploy is Script {
// 5. Deploying the DAO
daoFactory.createDao(daoSettings, pluginSettings);

// Deploy the ERC-20 token
VetoToken _token = new VetoToken();

vm.stopBroadcast();
}
}
18 changes: 18 additions & 0 deletions script/VetoToken.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {Script, console2} from "forge-std/Script.sol";
import {VetoToken} from "../src/VetoToken.sol";

contract Deploy is Script {
function run() public {
// 0. Setting up foundry
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);

// 1. Deploying the token
new VetoToken();

vm.stopBroadcast();
}
}
3 changes: 3 additions & 0 deletions script/deployer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source .env
forge script script/OptimisticTokenVotingPlugin.s.sol --rpc-url $SEPOLIA_RPC_URL
forge script script/VetoToken.s.sol --rpc-url $TAIKO_RPC_URL

0 comments on commit 83ba913

Please sign in to comment.