Skip to content

Commit

Permalink
chore(contracts): restaking protocols getter; function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Sep 23, 2024
1 parent fecd03e commit 3af4582
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bolt-contracts/src/contracts/BoltEigenLayerMiddleware.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ contract BoltEigenLayerMiddleware is IBoltMiddleware, Ownable {

// ========= CONSTRUCTOR =========

/// @notice Constructor for the BoltManager contract.
/// @notice Constructor for the BoltEigenLayerMiddleware contract.
/// @param _validators The address of the validators registry.
/// @param _eigenlayerAVSDirectory The address of the EigenLayer AVS Directory contract.
/// @param _eigenlayerDelegationManager The address of the EigenLayer Delegation Manager contract.
Expand Down Expand Up @@ -404,6 +404,8 @@ contract BoltEigenLayerMiddleware is IBoltMiddleware, Ownable {
AVS_DIRECTORY.registerOperatorToAVS(operator, operatorSignature);
}

/// @notice Check if an operator is registered to work in Bolt Protocol AVS by
/// looking up the AVS Directory contract.
function checkIfOperatorRegisteredToAVS(
address operator
) public view returns (bool registered) {
Expand Down
5 changes: 5 additions & 0 deletions bolt-contracts/src/contracts/BoltManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ contract BoltManager is IBoltManager, Ownable {
return validators.getValidatorByPubkeyHash(pubkeyHash).authorizedOperator == operator;
}

/// @notice Returns the addresses of the middleware contracts of restaking protocols supported by Bolt.
function getSupportedRestakingProtocols() public view returns (address[] memory middlewares) {
return restakingProtocols.values();
}

// ========= ADMIN FUNCTIONS =========

/// @notice Add a restaking protocol into Bolt
Expand Down
2 changes: 1 addition & 1 deletion bolt-contracts/src/contracts/BoltSymbioticMiddleware.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract BoltSymbioticMiddleware is IBoltMiddleware, Ownable {

// ========= CONSTRUCTOR =========

/// @notice Constructor for the BoltManager contract.
/// @notice Constructor for the BoltSymbioticMiddleware contract.
/// @param _validators The address of the validators registry.
/// @param _symbioticNetwork The address of the Symbiotic network.
/// @param _symbioticOperatorRegistry The address of the Symbiotic operator registry.
Expand Down

0 comments on commit 3af4582

Please sign in to comment.