PluginMap
thirdweb.com
Methods
getAllFunctionsOfPlugin
function getAllFunctionsOfPlugin(address _pluginAddress) external view returns (bytes4[] registered)
View all functionality as list of function signatures.
Parameters
| Name | Type | Description |
|---|---|---|
| _pluginAddress | address | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| registered | bytes4[] | undefined |
getAllPlugins
function getAllPlugins() external view returns (struct IPluginMap.Plugin[] _plugins)
View all functionality existing on the contract.
Returns
| Name | Type | Description |
|---|---|---|
| _plugins | IPluginMap.Plugin[] | undefined |
getPluginForFunction
function getPluginForFunction(bytes4 _selector) external view returns (address)
View address of the plugged-in functionality contract for a given function signature.
Parameters
| Name | Type | Description |
|---|---|---|
| _selector | bytes4 | undefined |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | address | undefined |
Events
PluginSet
event PluginSet(bytes4 indexed functionSelector, string indexed functionSignature, address indexed pluginAddress)
Parameters
| Name | Type | Description |
|---|---|---|
functionSelector indexed | bytes4 | undefined |
functionSignature indexed | string | undefined |
pluginAddress indexed | address | undefined |