Skip to main content

IOperator

Asset Tokenization Studio Team

IOperator

Interface for operator management: query, authorise and revoke operators for all partitions.

Methods​

authorizeOperator​

function authorizeOperator(address _operator) external nonpayable

Authorises an operator for all partitions of msg.sender

Parameters​

NameTypeDescription
_operatoraddressAn address which is being authorised

initializeOperator​

function initializeOperator() external nonpayable

Initialises the operator capability on the token.

Callable once; subsequent calls revert with FacetAlreadyRegistered. Requires DEFAULT_ADMIN_ROLE. Called by the factory during deployment.

isOperator​

function isOperator(address _operator, address _tokenHolder) external view returns (bool)

Determines whether _operator is an operator for all partitions of _tokenHolder

Parameters​

NameTypeDescription
_operatoraddressThe operator to check
_tokenHolderaddressThe token holder to check

Returns​

NameTypeDescription
_0boolWhether the _operator is an operator for all partitions of _tokenHolder

revokeOperator​

function revokeOperator(address _operator) external nonpayable

Revokes authorisation of an operator previously given for all partitions of msg.sender

Parameters​

NameTypeDescription
_operatoraddressAn address which is being de-authorised

Events​

OperatorInitialized​

event OperatorInitialized()

Emitted once when the operator capability is initialised on a token.

Fires exclusively from initializeOperator.