IAuth
SPDX-License-Identifier: SSPL-1.-0
Functions
addAdmin
Adds an admin to the contract.
Only existing admins can add new admins.
function addAdmin(address newAdmin) external;
addOperator
This function adds a new operator to the contract.
This function adds a new operator to the contract. It is only callable by the contract owner. The new operator must be a valid Ethereum address.
function addOperator(address newOperator) external;
admins
This function is used to check if an address is an admin.
This function is used to check if an address is an admin. It takes an address as an argument and returns a boolean value.
function admins(address) external view returns (bool);
deleteAdmin
This function is used to delete an admin from the list of admins.
This function requires the address of the admin to be deleted. It will delete the admin from the list of admins.
function deleteAdmin(address oldAdmin) external;
deleteOperator
This function is used to delete an operator from the contract.
This function is called by the owner of the contract to delete an operator from the contract. The address of the operator to be deleted is passed as an argument.
function deleteOperator(address oldOperator) external;
operators
This function checks if the given address is an operator.
This function is used to check if the given address is an operator. It returns a boolean value indicating whether the address is an operator or not.
function operators(address) external view returns (bool);
Events
AdminAdded
event AdminAdded(address indexed newAdmin);
AdminDeleted
event AdminDeleted(address indexed oldAdmin);
OperatorAdded
event OperatorAdded(address indexed newOperator);
OperatorDeleted
event OperatorDeleted(address indexed oldOperator);