Constructor specification requirements
To use WIZARD to deploy your custom contract code, the following convention must be met for WIZARD to support it.
ECDSA based AVS
The ECDSAServiceManagerBase
constructor is responsible for initializing key contract addresses and disabling initializers. The mandatory arguments are:
AVS Directory (
_avsDirectory
): Manages AVS-related data for registered operators.Stake Registry (
_stakeRegistry
): Records registration and staking details.Rewards Coordinator (
_rewardsCoordinator
): Handles reward distributions.Delegation Manager (
_delegationManager
): Manages staker delegations to operators.
The code snippet below shows how these parameters are set:
eigenlayer-middleware/src/unaudited/ECDSAServiceManagerBase.sol
BLS based AVS
The ServiceManagerBase
constructor sets various immutable addresses. The mandatory arguments are:
AVS Directory (
__avsDirectory
)Rewards Coordinator (
__rewardsCoordinator
)Registry Coordinator (
__registryCoordinator
)Stake Registry (
__stakeRegistry
)
The constructor calls the base storage initializer and then disables further initializers.
eigenlayer-middleware/src/ServiceManagerBase.sol
Last updated