AreciboControl
A contract which can be used to ensure only the AreciboPrimary contract can call some functions
Defines a modifier which should be used when only the arecibo contract should able able to call a function
Methods
addArecibo
function addArecibo(address _areciboPrimary) external nonpayable
addArecibo Function which enables ONLY the owner to change the address of areciboPrimary
onlyOwner modifier only enables the contract owner to run the code
Parameters
Name | Type | Description |
---|---|---|
_areciboPrimary | address | Address of the contract to be set as areciboPrimary |
authorizedPrimaries
function authorizedPrimaries(address) external view returns (bool)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
removeArecibo
function removeArecibo(address _areciboPrimary) external nonpayable
removeArecibo Function which enables ONLY the owner to change the address of areciboPrimary
onlyOwner modifier only enables the contract owner to run the code
Parameters
Name | Type | Description |
---|---|---|
_areciboPrimary | address | Address of the contract to be set as areciboPrimary |
renounceOwnership
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
transferOwnership
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
Events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
Name | Type | Description |
---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |