Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Diamond Loupe Facet allows anyone to see the available functions within Beanstalk.
None.
Returns facet info for all facets of Beanstalk
Return Value | Type | Description |
---|---|---|
Returns all the function selectors provided by a facet.
Get all the facet addresses used by the Beanstalk Diamond.
Gets the facet that supports the given selector.
Returns if a contract implements an interface. Implements ERC-165.
None.
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Value | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Return Type | Description |
---|---|
facets_
Facet[]
Array of facet info.
_facet
address
Facet to get selectors for.
facetFunctionSelectors_
bytes4[]
Selectors on _facet
.
facetAddresses_
address[]
All facet addresses used by Beanstalk.
_functionSelector
bytes4
Selector to get the corresponding facet for.
facetAddress_
address
Facet that has _functionSelector
.
_interfaceId
bytes4
The interface ID, as specified in ERC-165.
bool
True if the contract implements _interfaceId
, false otherwise.