Skip to content

Commit

Permalink
chore(contracts): align interfaces, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Sep 11, 2024
1 parent eb10f97 commit cfa11db
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bolt-contracts/src/contracts/BoltManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ contract BoltManager is IBoltManager, Ownable {
/// @notice Get the status of multiple proposers, given their pubkey hashes.
/// @param pubkeyHashes The pubkey hashes of the proposers to get the status for.
/// @return statuses The statuses of the proposers, including their operator and active stake.
function getSymbioticProposerStatus(
function getSymbioticProposersStatus(
bytes32[] memory pubkeyHashes
) public view returns (ProposerStatus[] memory statuses) {
statuses = new ProposerStatus[](pubkeyHashes.length);
Expand Down
59 changes: 58 additions & 1 deletion bolt-contracts/src/interfaces/IBoltManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,45 +33,86 @@ interface IBoltManager {

function addWhitelistedSymbioticCollateral(address collateral) external;

function addWhitelistedEigenLayerCollateral(address collateral) external;

function removeWhitelistedSymbioticCollateral(address collateral) external;

function removeWhitelistedEigenLayerCollateral(address collateral) external;

function getWhitelistedSymbioticCollaterals()
external
view
returns (address[] memory);

function getWhitelistedEigenLayerCollaterals()
external
view
returns (address[] memory);

function isSymbioticCollateralWhitelisted(
address collateral
) external view returns (bool);

function isEigenLayerCollateralWhitelisted(
address collateral
) external view returns (bool);

function registerSymbioticOperator(address operator) external;

function registerEigenLayerOperator(address operator) external;

function pauseSymbioticOperator() external;

function pauseEigenLayerOperator() external;

function unpauseSymbioticOperator() external;

function unpauseEigenLayerOperator() external;

function registerSymbioticVault(address vault) external;

function registerEigenLayerStrategy(address vault) external;

function pauseSymbioticVault() external;

function pauseEigenLayerStrategy() external;

function unpauseSymbioticVault() external;

function unpauseEigenLayerStrategy() external;

function isSymbioticVaultEnabled(
address vault
) external view returns (bool);

function isEigenLayerStrategyEnabled(
address strategy
) external view returns (bool);

function isSymbioticOperatorEnabled(
address operator
) external view returns (bool);

function getSymbioticProposerStatus(
function isEigenLayerOperatorEnabled(
address operator
) external view returns (bool);

function getSymbioticProposersStatus(
bytes32[] memory pubkeyHashes
) external view returns (ProposerStatus[] memory);

function getEigenLayerProposersStatus(
bytes32[] memory pubkeyHashes
) external view returns (ProposerStatus[] memory);

function getSymbioticProposerStatus(
bytes32 pubkeyHash
) external view returns (ProposerStatus memory);

function getEigenLayerProposerStatus(
bytes32 pubkeyHash
) external view returns (ProposerStatus memory);

function isOperatorAuthorizedForValidator(
address operator,
bytes32 pubkeyHash
Expand All @@ -82,14 +123,30 @@ interface IBoltManager {
address collateral
) external view returns (uint256);

function getEigenLayerOperatorStake(
address operator,
address collateral
) external view returns (uint256);

function getSymbioticOperatorStakeAt(
address operator,
address collateral,
uint48 timestamp
) external view returns (uint256);

function getEigenLayerOperatorStakeAt(
address operator,
address collateral,
uint48 timestamp
) external view returns (uint256);

function getSymbioticTotalStake(
uint48 epoch,
address collateral
) external view returns (uint256);

function getEigenLayerTotalStake(
uint48 epoch,
address collateral
) external view returns (uint256);
}
2 changes: 1 addition & 1 deletion bolt-contracts/test/BoltManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ contract BoltManagerTest is Test {
assertEq(vault.currentEpoch(), 2);

BoltManager.ProposerStatus[] memory statuses = manager
.getSymbioticProposerStatus(pubkeyHashes);
.getSymbioticProposersStatus(pubkeyHashes);
assertEq(statuses.length, 10);
}

Expand Down

0 comments on commit cfa11db

Please sign in to comment.