Skip to content

Commit

Permalink
fix: script to deploy inherit VyperDeployer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Apr 20, 2024
1 parent dae57c9 commit 89a3d6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
15 changes: 3 additions & 12 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,7 @@ bsc = "${ETH_NODE_URI_BSC}"
base = "${ETH_NODE_URI_BASE}"

[etherscan]
arbitrum = { key = "${ARBITRUM_ETHERSCAN_API_KEY}" }
gnosis = { key = "${GNOSIS_ETHERSCAN_API_KEY}" , url = "https://api.gnosisscan.io/api"}
mainnet = { key = "${MAINNET_ETHERSCAN_API_KEY}" }
optimism = { key = "${OPTIMISM_ETHERSCAN_API_KEY}" }
polygon = { key = "${POLYGON_ETHERSCAN_API_KEY}" }
avalanche = { key = "${AVALANCHE_ETHERSCAN_API_KEY}" }
celo = { key = "${CELO_ETHERSCAN_API_KEY}", url = "https://api.celoscan.io/api" }
base = { key = "${BASE_ETHERSCAN_API_KEY}", url = "https://api.basescan.org/api" }
polygonzkevm = { key = "${POLYGONZKEVM_ETHERSCAN_API_KEY}", url = "https://api-zkevm.polygonscan.com/api" }
bsc = { key = "${BSC_ETHERSCAN_API_KEY}"}


[profile.dev]
optimizer = true
Expand All @@ -56,8 +47,8 @@ gas_reports = ["*"]
runs = 2000

[profile.dev.invariant]
runs = 10
depth = 1
runs = 100
depth = 10
fail_on_revert = true

[profile.ci]
Expand Down
10 changes: 4 additions & 6 deletions scripts/DeployVeAngle.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ import { console } from "forge-std/console.sol";
import { VyperDeployer } from "contracts/utils/VyperDeployer.sol";
import "./Utils.s.sol";

contract DeployVeAngleScript is Script, Utils {
contract DeployVeAngleScript is Script, Utils, VyperDeployer {
function run() external {
uint256 deployerPrivateKey = vm.deriveKey(vm.envString("MNEMONIC_MAINNET"), "m/44'/60'/0'/0/", 0);
vm.startBroadcast(deployerPrivateKey);

address deployer = vm.addr(deployerPrivateKey);
console.log("Deployer address: ", deployer);

VyperDeployer vyperDeployer = new VyperDeployer();
address veANGLE = vyperDeployer.deployContract("contracts/dao/veANGLE.vy");
console.log("veANGLE deployed at: ", veANGLE);

vm.startBroadcast(deployerPrivateKey);
address veANGLE = deployContract("contracts/dao/veANGLE.vy");
vm.stopBroadcast();
console.log("veANGLE deployed at: ", veANGLE);
}
}

0 comments on commit 89a3d6b

Please sign in to comment.