For the complete documentation index, see llms.txt. This page is also available as Markdown.

Diamond Loupe Facet

The Diamond Loupe Facet allows anyone to see the available functions within Beanstalk.

Call Functions

None.

View Functions

Facets

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

Returns facet info for all facets of Beanstalk

Return Value
Type
Description

facets_

Facet[]

Array of facet info.

Facet Function Selectors

function facetFunctionSelectors(address _facet)
    external
    view
    override
    returns (bytes4[] memory facetFunctionSelectors_);

Returns all the function selectors provided by a facet.

Parameter
Type
Description

_facet

address

Facet to get selectors for.

Return Value
Type
Description

facetFunctionSelectors_

bytes4[]

Selectors on _facet.

Facet Addresses

Get all the facet addresses used by the Beanstalk Diamond.

Return Value
Type
Description

facetAddresses_

address[]

All facet addresses used by Beanstalk.

Facet Address

Gets the facet that supports the given selector.

Parameter
Type
Description

_functionSelector

bytes4

Selector to get the corresponding facet for.

Return Value
Type
Description

facetAddress_

address

Facet that has _functionSelector.

Supports Interface

Returns if a contract implements an interface. Implements ERC-165.

Parameter
Type
Description

_interfaceId

bytes4

The interface ID, as specified in ERC-165.

Return Type
Description

bool

True if the contract implements _interfaceId, false otherwise.

Events

None.

Last updated