IRioLRTAVSRegistry
Functions
initialize
Initializes the contract.
Parameters
initialOwner
address
The initial owner of the contract.
token
address
The address of the liquid restaking token.
getAVS
Returns the AVS associated with the given ID.
Parameters
avsId
uint128
The ID of the AVS to retrieve.
Returns
<none>
AVS
The AVS corresponding to the given ID.
isActiveSlashingContract
Checks if the provided slashing contract is active.
Parameters
slashingContract
address
The address of the slashing contract to check.
Returns
<none>
bool
True if the slashing contract is active, false otherwise.
isActiveRegistryContract
Checks if the provided registry contract is active.
Parameters
registryContract
address
The address of the registry contract to check.
Returns
<none>
bool
True if the registry contract is active, false otherwise.
addAVS
Adds a new AVS to the registry.
Parameters
name
string
The name of the AVS.
slashingContract
address
The address of the slashing contract.
registryContract
address
The address of the registry contract.
activateAVS
Activates an AVS in the registry.
Parameters
avsId
uint128
The ID of the AVS to activate.
deactivateAVS
Deactivates an AVS in the registry.
Parameters
avsId
uint128
The ID of the AVS to deactivate.
Events
AVSAdded
Emitted when a new AVS is added to the registry.
Parameters
avsId
uint128
The ID of the newly added AVS.
name
string
The name of the AVS.
slashingContract
address
The address of the slashing contract.
registryContract
address
The address of the registry contract.
AVSActivated
Emitted when an AVS is activated in the registry.
Parameters
avsId
uint128
The ID of the activated AVS.
AVSDeactivated
Emitted when an AVS is deactivated in the registry.
Parameters
avsId
uint128
The ID of the deactivated AVS.
Errors
INVALID_NAME
Thrown when the provided name is empty.
INVALID_SLASHING_CONTRACT
Thrown when the provided slashing contract address is not address(0)
or a contract.
INVALID_REGISTRY_CONTRACT
Thrown when the provided registry contract address is not a contract.
SLASHING_CONTRACT_ALREADY_ACTIVE
Thrown when attempting add or activate an AVS with a slashing contract that is already active in another AVS.
REGISTRY_CONTRACT_ALREADY_ACTIVE
Thrown when attempting add or activate an AVS with a registry contract that is already active in another AVS.
AVS_NOT_REGISTERED
Thrown when attempting to activate or deactivate an AVS that is not registered.
AVS_ALREADY_ACTIVE
Thrown when attempting to activate an AVS that is already active.
AVS_ALREADY_INACTIVE
Thrown when attempting to deactivate an AVS that is already inactive.
Structs
AVS
Information about an AVS.
Last updated