ODCutils

DiamondFallbackWithAccessControl

Original: https://github.com/solidstate-network/solidstate-solidity/blob/v0.0.59/contracts/proxy/diamond/fallback/DiamondFallback.sol Modified to use AccessControl instead of Ownable

getFallbackAddress

function getFallbackAddress() external view returns (address fallbackAddress)

query the address of the fallback implementation

Return Values

NameTypeDescription
fallbackAddressaddressaddress of fallback implementation

setFallbackAddress

function setFallbackAddress(address fallbackAddress) external

set the address of the fallback implementation

Parameters

NameTypeDescription
fallbackAddressaddressaddress of fallback implementation

_getImplementation

function _getImplementation() internal view virtual returns (address implementation)

get logic implementation address

query custom fallback address if implementation is not found

Return Values

NameTypeDescription
implementationaddressimplementation address

_getFallbackAddress

function _getFallbackAddress() internal view virtual returns (address)

query the address of the fallback implementation

Return Values

NameTypeDescription
[0]addressAddress of fallback implementation

_setFallbackAddress

function _setFallbackAddress(address fallbackAddress) internal virtual

set the address of the fallback implementation

Parameters

NameTypeDescription
fallbackAddressaddressaddress of fallback implementation

On this page