Skip to content

Props Diamond SDKDocs


Represents a facet in the Diamond proxy pattern implementation PropsFacet

Properties

data

data: object

Contains the facet's function selectors and contract instance

contract

contract: Contract

The ethers.js Contract instance for interacting with the facet

selectors

selectors: object[]

Array of function selectors with their metadata


facetAddress

facetAddress: string

The Ethereum address where the facet contract is deployed


facetName

facetName: string

The name of the facet


get()

get: () => any

Retrieves the current state or value from this facet

Returns

any

The requested data from the facet


remove()

remove: () => void

Removes this facet from the diamond

Returns

void