Skip to content

Commit

Permalink
feat(contracts): import OZ Foundry Upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Bostoen committed Oct 9, 2024
1 parent 07dc130 commit c217890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bolt-contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ remappings = [
"@eigenlayer/=lib/eigenlayer-contracts/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"@openzeppelin-upgrades/=lib/openzeppelin-foundry-upgrades/",

# Symbiotic remappings contexts
"lib/core/:forge-std/=lib/core/lib/forge-std/src/",
Expand All @@ -42,6 +43,7 @@ remappings = [
"lib/openzeppelin-contracts/:@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
]


[rpc_endpoints]
mainnet = "${ETH_RPC_URL}"
holesky = "${ETH_RPC_URL_HOLESKY}"
Expand Down
2 changes: 2 additions & 0 deletions bolt-contracts/script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity 0.8.25;
import {Script, console} from "forge-std/Script.sol";

import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
import {Upgrades} from "@openzeppelin-upgrades/src/Upgrades.sol";

import {BoltValidators} from "../src/contracts/BoltValidators.sol";
import {BoltManager} from "../src/contracts/BoltManager.sol";
Expand Down Expand Up @@ -37,6 +38,7 @@ contract DeployBolt is Script {

bytes memory initValidators = abi.encodeCall(BoltValidators.initialize, admin);
address validatorsProxy = address(new ERC1967Proxy(validatorsImplementation, initValidators));
// Upgrades.deployUUPSProxy();
console.log("BoltValidators proxy deployed at", validatorsProxy);

address managerImplementation = address(new BoltManager());
Expand Down

0 comments on commit c217890

Please sign in to comment.