IDiamond
Interface of the Diamond Proxy contract. See EIP-2535.
Errors
Diamond_UnsupportedFunction
Thrown when calling a function that was not registered in the diamond.
error Diamond_UnsupportedFunction();
Structs
FacetCut
Describes a facet to be added, replaced or removed.
struct FacetCut {
address facet;
FacetCutAction action;
bytes4[] selectors;
}
Properties
Name
Type
Description
facet
address
Address of the facet, that contains the functions.
action
FacetCutAction
The action to be performed.
selectors
bytes4[]
The function selectors of the facet to be cut.
MultiInit
Represents data used in multiDelegateCall.
struct MultiInit {
address init;
bytes initData;
}
Properties
Name
Type
Description
init
address
initData
bytes
Enums
FacetCutAction
Expresses the action of adding, replacing, or removing a facet.
enum FacetCutAction {
Add,
Replace,
Remove
}
Last updated
Was this helpful?