Skip to main content

IConfigOperator

Git Source

Title: Config Operator

Shared surface for contracts that delegate configuration changes to one operator.

Functions​

configOperator​

Returns the address allowed to execute delegated configuration changes.

function configOperator() external view returns (address configOperator_);

Returns

NameTypeDescription
configOperator_addressConfig operator, or zero when delegated access is revoked.

setConfigOperator​

Immediately replaces the delegated configuration operator.

The implementation defines caller authorization. Setting zero revokes delegated access. After authorization, setting the current operator reverts with ConfigOperator_Unchanged.

function setConfigOperator(address configOperator_) external;

Parameters

NameTypeDescription
configOperator_addressNew config operator address.

Events​

ConfigOperatorSet​

Emitted when the delegated configuration operator changes.

event ConfigOperatorSet(address indexed configOperator);

Parameters

NameTypeDescription
configOperatoraddressNew operator, or zero when delegated access is revoked.

Errors​

ConfigOperator_Unauthorized​

Thrown when an account is not the configured operator or cannot rotate it.

error ConfigOperator_Unauthorized(address caller_);

Parameters

NameTypeDescription
caller_addressUnauthorized account.

ConfigOperator_Unchanged​

Thrown when the requested operator is already configured, including the zero address.

error ConfigOperator_Unchanged();