interchain-token-service

Solidity API

IOperator

An interface for a contract module which provides a basic access control mechanism, where there is an account (a operator) that can be granted exclusive access to specific functions.

transferOperatorship

function transferOperatorship(address operator_) external

Change the operator of the contract.

Can only be called by the current operator.

Parameters

Name Type Description
operator_ address The address of the new operator.

proposeOperatorship

function proposeOperatorship(address operator_) external

Proposed a change of the operator of the contract.

Can only be called by the current operator.

Parameters

Name Type Description
operator_ address The address of the new operator.

acceptOperatorship

function acceptOperatorship(address fromOperator) external

Accept a proposed change of operatorship.

Can only be called by the proposed operator.

Parameters

Name Type Description
fromOperator address The previous operator of the contract.

isOperator

function isOperator(address addr) external view returns (bool)

Query if an address is a operator.

Parameters

Name Type Description
addr address The address to query for.

Return Values

Name Type Description
[0] bool bool Boolean value representing whether or not the address is an operator.