RioLRTAVSRegistry
Inherits: IRioLRTAVSRegistry, OwnableUpgradeable, UUPSUpgradeable, RioLRTCore
State Variables
avsCount
The number of AVS in the registry (all-time).
activeAVSCount
The number of active AVS in the registry.
_avs
Mapping of an AVS' ID to its name, slashing contract, and registry contract.
_isActiveSlashingContract
Whether a slashing contract is active.
_isActiveRegistryContract
Whether a registry contract is active.
Functions
constructor
Parameters
Name | Type | Description |
---|---|---|
|
| The LRT issuer that's authorized to deploy this contract. |
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 with the given ID.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the AVS. |
isActiveSlashingContract
Whether the provived slashingContract
is active.
Parameters
Name | Type | Description |
---|---|---|
|
| The slashing contract address. |
isActiveRegistryContract
Whether the provived registryContract
is active.
Parameters
Name | Type | Description |
---|---|---|
|
| The registry contract address. |
addAVS
Adds a new AVS to the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The name of the AVS. |
|
| The slashing contract address. |
|
| The registry contract address. |
activateAVS
Activates an AVS in the registry, allowing operators to opt-in to its slashing contract and call its registry contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the AVS. |
deactivateAVS
Deactivates an AVS in the registry, preventing operators from opting-in to its slashing contract and calling its registry contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the AVS. |
_authorizeUpgrade
Allows the owner to upgrade the AVS registry implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| The implementation to upgrade to. |
Last updated