IRioLRTAVSRegistry
Functions
initialize
Initializes the contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The initial owner of the contract. |
|
| The address of the liquid restaking token. |
getAVS
Returns the AVS associated with the given ID.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the AVS to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| The AVS corresponding to the given ID. |
isActiveSlashingContract
Checks if the provided slashing contract is active.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the slashing contract to check. |
Returns
Name | Type | Description |
---|---|---|
|
| True if the slashing contract is active, false otherwise. |
isActiveRegistryContract
Checks if the provided registry contract is active.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the registry contract to check. |
Returns
Name | Type | Description |
---|---|---|
|
| True if the registry contract is active, false otherwise. |
addAVS
Adds a new AVS to the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The name of the AVS. |
|
| The address of the slashing contract. |
|
| The address of the registry contract. |
activateAVS
Activates an AVS in the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the AVS to activate. |
deactivateAVS
Deactivates an AVS in the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the AVS to deactivate. |
Events
AVSAdded
Emitted when a new AVS is added to the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the newly added AVS. |
|
| The name of the AVS. |
|
| The address of the slashing contract. |
|
| The address of the registry contract. |
AVSActivated
Emitted when an AVS is activated in the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the activated AVS. |
AVSDeactivated
Emitted when an AVS is deactivated in the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| 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