Operators
Operators
Base contract for managing operator registration, keys, and vault relationships
Provides core operator management functionality with hooks for customization
Methods
registerOperator
function registerOperator(address operator, bytes memory key, address vault) public checkAccess
Registers a new operator with an optional vault association
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator to register |
key | bytes memory | The operator's public key |
vault | address | Optional vault address to associate with the operator |
unregisterOperator
function unregisterOperator(
address operator
) public checkAccess
Unregisters an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator to unregister |
pauseOperator
function pauseOperator(
address operator
) public checkAccess
Pauses an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator to pause |
unpauseOperator
function unpauseOperator(
address operator
) public checkAccess
Unpauses an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator to unpause |
updateOperatorKey
function updateOperatorKey(address operator, bytes memory key) public checkAccess
Updates an operator's public key
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator |
key | bytes memory | The new public key |
registerOperatorVault
function registerOperatorVault(address operator, address vault) public checkAccess
Associates an operator with a vault
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator |
vault | address | The address of the vault |
unregisterOperatorVault
function unregisterOperatorVault(address operator, address vault) public checkAccess
Removes an operator's association with a vault
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator |
vault | address | The address of the vault |
pauseOperatorVault
function pauseOperatorVault(address operator, address vault) public checkAccess
Pauses an operator's association with a specific vault
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator |
vault | address | The address of the vault |
unpauseOperatorVault
function unpauseOperatorVault(address operator, address vault) public checkAccess
Unpauses an operator's association with a specific vault
Parameters
Name | Type | Description |
---|---|---|
operator | address | The address of the operator |
vault | address | The address of the vault |
_beforeUpdateOperatorKey
function _beforeUpdateOperatorKey(address operator, bytes memory key) internal virtual
Hook called before updating an operator's key
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
key | bytes memory | The new key |
_beforeRegisterOperator
function _beforeRegisterOperator(address operator, bytes memory key, address vault) internal virtual
Hook called before registering an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
key | bytes memory | The operator's key |
vault | address | Optional vault address |
_beforeUnregisterOperator
function _beforeUnregisterOperator(
address operator
) internal virtual
Hook called before unregistering an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
_beforePauseOperator
function _beforePauseOperator(
address operator
) internal virtual
Hook called before pausing an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
_beforeUnpauseOperator
function _beforeUnpauseOperator(
address operator
) internal virtual
Hook called before unpausing an operator
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
_beforeRegisterOperatorVault
function _beforeRegisterOperatorVault(address operator, address vault) internal virtual
Hook called before registering an operator-vault pair
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
vault | address | The vault address |
_beforeUnregisterOperatorVault
function _beforeUnregisterOperatorVault(address operator, address vault) internal virtual
Hook called before unregistering an operator-vault pair
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
vault | address | The vault address |
_beforePauseOperatorVault
function _beforePauseOperatorVault(address operator, address vault) internal virtual
Hook called before pausing an operator-vault pair
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
vault | address | The vault address |
_beforeUnpauseOperatorVault
function _beforeUnpauseOperatorVault(address operator, address vault) internal virtual
Hook called before unpausing an operator-vault pair
Parameters
Name | Type | Description |
---|---|---|
operator | address | The operator address |
vault | address | The vault address |