GNSDiamondLoupe
Last updated
Last updated
Based on EIP-2535: Diamonds (https://eips.ethereum.org/EIPS/eip-2535) Follows diamond-3 implementation (https://github.com/mudgen/diamond-3-hardhat/) Returns useful information about the diamond and its facets.
Gets all facets and their selectors.
Name | Type | Description |
---|---|---|
Gets all the function selectors provided by a facet.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Get all the facet addresses used by a diamond.
Gets the facet that supports the given selector.
If facet is not found return address(0).
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
facets_
Facet
_facet
address
The facet address.
facetFunctionSelectors_
bytes4[]
the function selectors.
facetAddresses_
address[]
the facet addresses
_functionSelector
bytes4
The function selector.
facetAddress_
address
The facet address.