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
Name | Type | Description |
---|---|---|
_0 | address | undefined |
owner()
Solidity
function owner() external view returns (address)
Details
Returns the address of the current owner.
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
renounceOwnership()
Solidity
function renounceOwnership() external nonpayable
Details
Leaves the contract without owner. It will not be possible to call onlyOwner
functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling 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
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
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
Name | Type | Description |
---|---|---|
newImplementation | address | Address of implementation that the beacon should be upgraded to. |
Events
OwnershipTransferred
Solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
Name | Type | Description |
---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
Upgraded
Solidity
event Upgraded(address indexed newImplementation)
Parameters
Name | Type | Description |
---|---|---|
newImplementation indexed | address | undefined |