-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '34a7a8808d54d9056d595d3080af48a8151d4c5f' into chore/re…
…naming
- Loading branch information
Showing
24 changed files
with
369 additions
and
131 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
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
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,46 @@ | ||
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.24; | ||
|
||
import { DeployBase } from "./DeployBase.s.sol"; | ||
import { GIndex } from "../src/lib/GIndex.sol"; | ||
import { DeployImplementationsBase } from "./DeployImplementationsBase.s.sol"; | ||
import { DeployHolesky } from "./DeployHolesky.s.sol"; | ||
import { HashConsensus } from "../src/lib/base-oracle/HashConsensus.sol"; | ||
import { CSModule } from "../src/CSModule.sol"; | ||
import { CSAccounting } from "../src/CSAccounting.sol"; | ||
import { CSFeeDistributor } from "../src/CSFeeDistributor.sol"; | ||
import { CSFeeOracle } from "../src/CSFeeOracle.sol"; | ||
import { CSVerifier } from "../src/CSVerifier.sol"; | ||
import { CSEarlyAdoption } from "../src/CSEarlyAdoption.sol"; | ||
import { DeploymentHelpers } from "../test/helpers/Fixtures.sol"; | ||
|
||
contract DeployImplementationsHolesky is | ||
DeployImplementationsBase, | ||
DeployHolesky, | ||
DeploymentHelpers | ||
{ | ||
function deploy( | ||
string memory deploymentConfigPath, | ||
string memory _gitRef | ||
) external { | ||
gitRef = _gitRef; | ||
string memory deploymentConfigContent = vm.readFile( | ||
deploymentConfigPath | ||
); | ||
DeploymentConfig memory deploymentConfig = parseDeploymentConfig( | ||
deploymentConfigContent | ||
); | ||
|
||
csm = CSModule(deploymentConfig.csm); | ||
earlyAdoption = CSEarlyAdoption(deploymentConfig.earlyAdoption); | ||
accounting = CSAccounting(deploymentConfig.accounting); | ||
oracle = CSFeeOracle(deploymentConfig.oracle); | ||
feeDistributor = CSFeeDistributor(deploymentConfig.feeDistributor); | ||
hashConsensus = HashConsensus(deploymentConfig.hashConsensus); | ||
gateSeal = deploymentConfig.gateSeal; | ||
|
||
_deploy(); | ||
} | ||
} |
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,46 @@ | ||
// SPDX-FileCopyrightText: 2024 Lido <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
pragma solidity 0.8.24; | ||
|
||
import { DeployBase } from "./DeployBase.s.sol"; | ||
import { GIndex } from "../src/lib/GIndex.sol"; | ||
import { DeployImplementationsBase } from "./DeployImplementationsBase.s.sol"; | ||
import { DeployMainnet } from "./DeployMainnet.s.sol"; | ||
import { HashConsensus } from "../src/lib/base-oracle/HashConsensus.sol"; | ||
import { CSModule } from "../src/CSModule.sol"; | ||
import { CSAccounting } from "../src/CSAccounting.sol"; | ||
import { CSFeeDistributor } from "../src/CSFeeDistributor.sol"; | ||
import { CSFeeOracle } from "../src/CSFeeOracle.sol"; | ||
import { CSVerifier } from "../src/CSVerifier.sol"; | ||
import { CSEarlyAdoption } from "../src/CSEarlyAdoption.sol"; | ||
import { DeploymentHelpers } from "../test/helpers/Fixtures.sol"; | ||
|
||
contract DeployImplementationsMainnet is | ||
DeployImplementationsBase, | ||
DeployMainnet, | ||
DeploymentHelpers | ||
{ | ||
function deploy( | ||
string memory deploymentConfigPath, | ||
string memory _gitRef | ||
) external { | ||
gitRef = _gitRef; | ||
string memory deploymentConfigContent = vm.readFile( | ||
deploymentConfigPath | ||
); | ||
DeploymentConfig memory deploymentConfig = parseDeploymentConfig( | ||
deploymentConfigContent | ||
); | ||
|
||
csm = CSModule(deploymentConfig.csm); | ||
earlyAdoption = CSEarlyAdoption(deploymentConfig.earlyAdoption); | ||
accounting = CSAccounting(deploymentConfig.accounting); | ||
oracle = CSFeeOracle(deploymentConfig.oracle); | ||
feeDistributor = CSFeeDistributor(deploymentConfig.feeDistributor); | ||
hashConsensus = HashConsensus(deploymentConfig.hashConsensus); | ||
gateSeal = deploymentConfig.gateSeal; | ||
|
||
_deploy(); | ||
} | ||
} |
Oops, something went wrong.