DiamondLoupeFacet

Git Source

Inherits: IDiamondLoupe, DiamondLoupeBase, Facet

Functions

DiamondLoupe_init

function DiamondLoupe_init() external onlyInitializing;

facets

Gets all facet addresses and the selectors of supported functions.

function facets() external view returns (Facet[] memory);

Returns

facetFunctionSelectors

Gets all the function selectors supported by a specific facet.

function facetFunctionSelectors(address facet) external view returns (bytes4[] memory);

Parameters

Returns

facetAddresses

Get all the facet addresses used by a diamond.

function facetAddresses() external view returns (address[] memory);

Returns

facetAddress

Gets the facet that supports the given selector.

If facet is not found return address(0).

function facetAddress(bytes4 selector) external view returns (address);

Parameters

Returns

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool);