Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/interfaces/IAVSRegistrarWithAllowlist.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.27;

import {IAVSRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IAVSRegistrar.sol";
import {IAllowlist} from "./IAllowlist.sol";

interface IAVSRegistrarWithAllowlist is IAVSRegistrar, IAllowlist {}
7 changes: 7 additions & 0 deletions src/interfaces/IAVSRegistrarWithSocket.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.27;

import {IAVSRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IAVSRegistrar.sol";
import {ISocketRegistry} from "./ISocketRegistryV2.sol";

interface IAVSRegistrarWithSocket is IAVSRegistrar, ISocketRegistry {}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ contract AVSRegistrarAsIdentifier is AVSRegistrar {
permissionController = _permissionController;
}

/**
* @notice Initializes the AVSRegistrarAsIdentifier
* @param admin The admin for the AVS
* @param metadataURI The metadataURI for the AVS
* @dev This function enables the address of the AVS in the core protocol to be the proxy AVSRegistrarAsIdentifier contract
*/
function initialize(address admin, string memory metadataURI) public initializer {
// Set the metadataURI and the registrar for the AVS to this registrar contract
allocationManager.updateAVSMetadataURI(address(this), metadataURI);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.27;

import {IAVSRegistrarWithAllowlist} from "../../../interfaces/IAVSRegistrarWithAllowlist.sol";
import {IAllocationManager} from
"eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
import {IKeyRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IKeyRegistrar.sol";
Expand All @@ -9,7 +10,7 @@ import {AVSRegistrar} from "../AVSRegistrar.sol";
import {Allowlist} from "../modules/Allowlist.sol";
import {OperatorSet} from "eigenlayer-contracts/src/contracts/libraries/OperatorSetLib.sol";

contract AVSRegistrarWithAllowlist is AVSRegistrar, Allowlist {
contract AVSRegistrarWithAllowlist is AVSRegistrar, Allowlist, IAVSRegistrarWithAllowlist {
constructor(
address _avs,
IAllocationManager _allocationManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import {IAllocationManager} from
"eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
import {IKeyRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IKeyRegistrar.sol";

import {IAVSRegistrarWithSocket} from "../../../interfaces/IAVSRegistrarWithSocket.sol";
import {AVSRegistrar} from "../AVSRegistrar.sol";
import {SocketRegistry} from "../modules/SocketRegistry.sol";
import {
OperatorSetLib,
OperatorSet
} from "eigenlayer-contracts/src/contracts/libraries/OperatorSetLib.sol";

contract AVSRegistrarWithSocket is AVSRegistrar, SocketRegistry {
contract AVSRegistrarWithSocket is AVSRegistrar, SocketRegistry, IAVSRegistrarWithSocket {
constructor(
address _avs,
IAllocationManager _allocationManager,
Expand Down