Skip to main content

Operators

Git Source

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

NameTypeDescription
operatoraddressThe address of the operator to register
keybytes memoryThe operator's public key
vaultaddressOptional vault address to associate with the operator

unregisterOperator

function unregisterOperator(
address operator
) public checkAccess

Unregisters an operator

Parameters

NameTypeDescription
operatoraddressThe address of the operator to unregister

pauseOperator

function pauseOperator(
address operator
) public checkAccess

Pauses an operator

Parameters

NameTypeDescription
operatoraddressThe address of the operator to pause

unpauseOperator

function unpauseOperator(
address operator
) public checkAccess

Unpauses an operator

Parameters

NameTypeDescription
operatoraddressThe address of the operator to unpause

updateOperatorKey

function updateOperatorKey(address operator, bytes memory key) public checkAccess 

Updates an operator's public key

Parameters

NameTypeDescription
operatoraddressThe address of the operator
keybytes memoryThe new public key

registerOperatorVault

function registerOperatorVault(address operator, address vault) public checkAccess 

Associates an operator with a vault

Parameters

NameTypeDescription
operatoraddressThe address of the operator
vaultaddressThe address of the vault

unregisterOperatorVault

function unregisterOperatorVault(address operator, address vault) public checkAccess 

Removes an operator's association with a vault

Parameters

NameTypeDescription
operatoraddressThe address of the operator
vaultaddressThe address of the vault

pauseOperatorVault

function pauseOperatorVault(address operator, address vault) public checkAccess 

Pauses an operator's association with a specific vault

Parameters

NameTypeDescription
operatoraddressThe address of the operator
vaultaddressThe address of the vault

unpauseOperatorVault

function unpauseOperatorVault(address operator, address vault) public checkAccess 

Unpauses an operator's association with a specific vault

Parameters

NameTypeDescription
operatoraddressThe address of the operator
vaultaddressThe address of the vault

_beforeUpdateOperatorKey

function _beforeUpdateOperatorKey(address operator, bytes memory key) internal virtual 

Hook called before updating an operator's key

Parameters

NameTypeDescription
operatoraddressThe operator address
keybytes memoryThe new key

_beforeRegisterOperator

function _beforeRegisterOperator(address operator, bytes memory key, address vault) internal virtual 

Hook called before registering an operator

Parameters

NameTypeDescription
operatoraddressThe operator address
keybytes memoryThe operator's key
vaultaddressOptional vault address

_beforeUnregisterOperator

function _beforeUnregisterOperator(
address operator
) internal virtual

Hook called before unregistering an operator

Parameters

NameTypeDescription
operatoraddressThe operator address

_beforePauseOperator

function _beforePauseOperator(
address operator
) internal virtual

Hook called before pausing an operator

Parameters

NameTypeDescription
operatoraddressThe operator address

_beforeUnpauseOperator

function _beforeUnpauseOperator(
address operator
) internal virtual

Hook called before unpausing an operator

Parameters

NameTypeDescription
operatoraddressThe operator address

_beforeRegisterOperatorVault

function _beforeRegisterOperatorVault(address operator, address vault) internal virtual 

Hook called before registering an operator-vault pair

Parameters

NameTypeDescription
operatoraddressThe operator address
vaultaddressThe vault address

_beforeUnregisterOperatorVault

function _beforeUnregisterOperatorVault(address operator, address vault) internal virtual 

Hook called before unregistering an operator-vault pair

Parameters

NameTypeDescription
operatoraddressThe operator address
vaultaddressThe vault address

_beforePauseOperatorVault

function _beforePauseOperatorVault(address operator, address vault) internal virtual 

Hook called before pausing an operator-vault pair

Parameters

NameTypeDescription
operatoraddressThe operator address
vaultaddressThe vault address

_beforeUnpauseOperatorVault

function _beforeUnpauseOperatorVault(address operator, address vault) internal virtual 

Hook called before unpausing an operator-vault pair

Parameters

NameTypeDescription
operatoraddressThe operator address
vaultaddressThe vault address