FacetRegistry
Inherits: IFacetRegistry, FacetRegistryBase
Functions
addFacet
Registers a new facet.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the facet to add. |
|
| Function selectors of the facet. |
removeFacet
Removes a facet from the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the facet to remove. |
deployFacet
Deploys a new facet and registers it.
Parameters
Name | Type | Description |
---|---|---|
|
| Salt used to create the address of the new facet. |
|
| Creation code of the new facet. |
|
| Function selectors of the new facet. |
Returns
Name | Type | Description |
---|---|---|
|
| Address of the new facet. |
computeFacetAddress
Computes the address of a facet deployed with the given salt and creation code.
Parameters
Name | Type | Description |
---|---|---|
|
| Salt used to create the address of the new facet. |
|
| Creation code of the new facet. |
facetSelectors
Returns the selectors of a registered facet.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the facet. |
Returns
Name | Type | Description |
---|---|---|
|
| selectors The selectors of the facet. |
facetAddresses
Returns the addresses of all registered facets.
Returns
Name | Type | Description |
---|---|---|
|
| facets The addresses of all registered facets. |