Skip to content

DelegationHandlerFactory

0xAd17932a5B1aaeEa73D277a6AE670623F176E0D0
Bepolia: 0x8b472791aC2f9e9Bd85f8919401b8Ce3bdFd464c
 | ABI JSON

The DelegationHandlerFactory contract deploys and manages DelegationHandler instances for validators using an upgradeable beacon proxy pattern.

State Variables

delegationHandlers

solidity
mapping(bytes => address) public delegationHandlers;

Maps validator pubkeys to their corresponding delegation handler addresses. Validators can use this to check if a delegation handler has been deployed for their pubkey.

Functions

deployDelegationHandler

Deploys a delegation handler for a validator.

solidity
function deployDelegationHandler(bytes memory pubkey) external returns (address);

Parameters

NameTypeDescription
pubkeybytesThe pubkey of the validator.

Returns

NameTypeDescription
<none>addressdelegationHandler The address of the delegation handler.

Events

DelegationHandlerDeployed

solidity
event DelegationHandlerDeployed(bytes indexed pubkey, address indexed delegationHandler);

Errors

InvalidAddress

solidity
error InvalidAddress();