IDiamondLoupe
IDiamondLoupe
Facet
These functions are expected to be called frequently by tools.
facets
Gets all facet addresses and their four byte function selectors.
Return Values
Name
Type
Description
facets_
struct IDiamondLoupe.Facet[]
Facet
facetFunctionSelectors
Gets all the function selectors supported by a specific facet.
Parameters
Name
Type
Description
_facet
address
The facet address.
Return Values
Name
Type
Description
facetFunctionSelectors_
bytes4[]
facetAddresses
Get all the facet addresses used by a diamond.
Return Values
Name
Type
Description
facetAddresses_
address[]
facetAddress
Gets the facet that supports the given selector.
If facet is not found return address(0).
Parameters
Name
Type
Description
_functionSelector
bytes4
The function selector.
Return Values
Name
Type
Description
facetAddress_
address
The facet address.
Was this helpful?