Skip to content

Commit

Permalink
deploy implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0aa0 committed Apr 10, 2024
1 parent 45982f4 commit 52bb461
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions contracts/script/deploy/mainnet/Deploy_DASM.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.12;

import "src/core/EigenDAServiceManager.sol";
import "eigenlayer-scripts/utils/ExistingDeploymentParser.sol";
import "forge-std/Test.sol";
import "forge-std/Script.sol";
import "forge-std/StdJson.sol";

contract Deployer_Mainnet is ExistingDeploymentParser {

string public existingCoreDeploymentPath = string(bytes("./script/deploy/mainnet/mainnet_addresses.json"));
string public existingDADeploymentPath = string(bytes("script/deploy/mainnet/mainnet_deployment_data.json"));

address registryCoordinator;
address stakeRegistry;

EigenDAServiceManager eigenDAServiceManagerImplementation;

function run() external {
_parseDeployedContracts(existingCoreDeploymentPath);
registryCoordinator = stdJson.readAddress(existingDADeploymentPath, ".addresses.registryCoordinator");
stakeRegistry = stdJson.readAddress(existingDADeploymentPath, ".addresses.stakeRegistry");

vm.startBroadcast();

eigenDAServiceManagerImplementation = new EigenDAServiceManager(
avsDirectory,
IRegistryCoordinator(registryCoordinator),
IStakeRegistry(stakeRegistry)
);

vm.stopBroadcast();
}
}
6 changes: 3 additions & 3 deletions contracts/src/core/EigenDAServiceManagerStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@ abstract contract EigenDAServiceManagerStorage is IEigenDAServiceManager {
* this is the percentage of the total stake that must be adversarial to consider a blob invalid.
* The first byte is the threshold for quorum 0, the second byte is the threshold for quorum 1, etc.
*/
bytes public constant quorumAdversaryThresholdPercentages = hex"21";
bytes public constant quorumAdversaryThresholdPercentages = hex"2121";

/**
* @notice The quorum confirmation threshold percentages stored as an ordered bytes array
* this is the percentage of the total stake needed to confirm a blob.
* The first byte is the threshold for quorum 0, the second byte is the threshold for quorum 1, etc.
*/
bytes public constant quorumConfirmationThresholdPercentages = hex"37";
bytes public constant quorumConfirmationThresholdPercentages = hex"3737";

/**
* @notice The quorum numbers required for confirmation stored as an ordered bytes array
* these quorum numbers have respective canonical thresholds in the
* quorumConfirmationThresholdPercentages and quorumAdversaryThresholdPercentages above.
*/
bytes public constant quorumNumbersRequired = hex"00";
bytes public constant quorumNumbersRequired = hex"0001";

/// @notice The current batchId
uint32 public batchId;
Expand Down

0 comments on commit 52bb461

Please sign in to comment.