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
issuer_
address
The LRT issuer that's authorized to deploy this contract.
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 with the given ID.
Parameters
avsId
uint128
The ID of the AVS.
isActiveSlashingContract
Whether the provived slashingContract
is active.
Parameters
slashingContract
address
The slashing contract address.
isActiveRegistryContract
Whether the provived registryContract
is active.
Parameters
registryContract
address
The registry contract address.
addAVS
Adds a new AVS to the registry.
Parameters
name
string
The name of the AVS.
slashingContract
address
The slashing contract address.
registryContract
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
avsId
uint128
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
avsId
uint128
The ID of the AVS.
_authorizeUpgrade
Allows the owner to upgrade the AVS registry implementation.
Parameters
newImplementation
address
The implementation to upgrade to.
Last updated