forked from balancer/balancer-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e36663
commit c382f96
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.23; | ||
|
||
import {BFactory} from 'contracts/BFactory.sol'; | ||
import {Params} from 'script/Params.s.sol'; | ||
|
||
import {Script} from 'forge-std/Script.sol'; | ||
import {IERC20} from 'forge-std/interfaces/IERC20.sol'; | ||
|
||
contract Deploy is Script, Params { | ||
function run() public { | ||
DeploymentParams memory _params = _deploymentParams[block.chainid]; | ||
|
||
vm.startBroadcast(); | ||
BFactory bFactory = new BFactory(); | ||
bFactory.setBLabs(_params.bLabs); | ||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.23; | ||
|
||
contract Params { | ||
struct DeploymentParams { | ||
address bLabs; | ||
} | ||
|
||
/// @notice Deployment parameters for each chain | ||
mapping(uint256 _chainId => DeploymentParams _params) internal _deploymentParams; | ||
|
||
constructor() { | ||
// Mainnet | ||
_deploymentParams[1] = DeploymentParams(address(this)); | ||
|
||
// Sepolia | ||
_deploymentParams[11_155_111] = DeploymentParams(address(this)); | ||
} | ||
} |