Skip to main content

IPluginMap

Methods

getAllFunctionsOfPlugin

function getAllFunctionsOfPlugin(address pluginAddress) external view returns (bytes4[])

Returns all functions that are mapped to the given plug-in contract.

Parameters

NameTypeDescription
pluginAddressaddressundefined

Returns

NameTypeDescription
_0bytes4[]undefined

getAllPlugins

function getAllPlugins() external view returns (struct IPluginMap.Plugin[])

Returns all plug-ins known by Map.

Returns

NameTypeDescription
_0IPluginMap.Plugin[]undefined

getPluginForFunction

function getPluginForFunction(bytes4 functionSelector) external view returns (address)

Returns the plug-in contract for a given function.

Parameters

NameTypeDescription
functionSelectorbytes4undefined

Returns

NameTypeDescription
_0addressundefined

Events

PluginSet

event PluginSet(bytes4 indexed functionSelector, string indexed functionSignature, address indexed pluginAddress)

Emitted when a function selector is mapped to a particular plug-in smart contract, during construction of Map.

Parameters

NameTypeDescription
functionSelector indexedbytes4undefined
functionSignature indexedstringundefined
pluginAddress indexedaddressundefined