Appearance
Props Diamond SDK • Docs
Represents a diamond cut operation for upgrading/modifying a diamond proxy contract following the EIP-2535 Diamond Standard. DiamondCut
Properties
action
action:
number
The type of diamond cut action to perform: 0 = Add functions 1 = Replace functions 2 = Remove functions
data
data:
any
Optional initialization data to be executed after the cut is performed. Used primarily when adding new facets that require initialization.
facetAddress
facetAddress:
string
The contract address of the facet being added or replaced. For removal operations, this should be the zero address.
facetName
facetName:
undefined|string
The name of the facet being modified. Can be undefined for removal operations.
functionSelectors
functionSelectors:
string[]
Array of function selectors (4-byte function signatures) that are being added, replaced, or removed from the diamond.