Skip to main content

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

NameTypeDescription
_areciboPrimaryaddressAddress of the contract to be set as areciboPrimary

authorizedPrimaries

function authorizedPrimaries(address) external view returns (bool)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0boolundefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

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

NameTypeDescription
_areciboPrimaryaddressAddress 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

NameTypeDescription
newOwneraddressundefined

Events

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined