Skip to main content

Beacon.sol

Methods

implementation()

Solidity

function implementation() external view returns (address)
Details

Current implementation address for this beacon, i.e. the address which all beacon proxies will delegatecall to.

Returns

NameTypeDescription
_0addressundefined

owner()

Solidity

function owner() external view returns (address)
Details

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

renounceOwnership()

Solidity

function renounceOwnership() external nonpayable
Details

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(address)

Solidity

function transferOwnership(address newOwner) external nonpayable
Details

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

upgradeImplementationTo(address)

Solidity

function upgradeImplementationTo(address newImplementation) external nonpayable
Details

Upgrades the implementation address of the beacon or the address that the beacon points to.

Parameters

NameTypeDescription
newImplementationaddressAddress of implementation that the beacon should be upgraded to.

Events

OwnershipTransferred

Solidity

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Upgraded

Solidity

event Upgraded(address indexed newImplementation)

Parameters

NameTypeDescription
newImplementation indexedaddressundefined