IDiamondOwnerFacet

IDiamondOwnerFacet

Defines the facet for a basic token URI storage implementation. See setBaseTokenURI for details.

SenderIsNotNominee

error SenderIsNotNominee(address sender, address nominee)

The sender is not the nominee, which is a requirement to accept a nomination.

NomineeIsNotSet

error NomineeIsNotSet()

The nominee is not set, which is a requirement to accept a nomination.

DiamondOwnershipTransferred

event DiamondOwnershipTransferred(address previousOwner, address newOwner)

Emitted when ownership of the diamond changes

Parameters

Name
Type
Description

previousOwner

address

The previous owner of the diamond.

newOwner

address

The new owner of the diamond.

diamondOwner

function diamondOwner() external view returns (address)

Get the address of the owner

Return Values

Name
Type
Description

[0]

address

The address of the owner.

nomineeDiamondOwner

function nomineeDiamondOwner() external view returns (address)

Get the nominated owner who has permission to call acceptOwnership

Return Values

Name
Type
Description

[0]

address

The address of the nominated owner.

acceptDiamondOwnership

function acceptDiamondOwnership() external

Accept transfer of contract ownership

transferDiamondOwnership

function transferDiamondOwnership(address account) external

Grants permission to account to accept the diamond ownership. This can only be called on the diamond, never on the proxy. Requires the caller to be the current owner.

Parameters

Name
Type
Description

account

address

The proposed new owner of the diamond.

Was this helpful?