Skip to main content

PluginMap

thirdweb.com

Methods

getAllFunctionsOfPlugin

function getAllFunctionsOfPlugin(address _pluginAddress) external view returns (bytes4[] registered)

View all functionality as list of function signatures.

Parameters

NameTypeDescription
_pluginAddressaddressundefined

Returns

NameTypeDescription
registeredbytes4[]undefined

getAllPlugins

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

View all functionality existing on the contract.

Returns

NameTypeDescription
_pluginsIPluginMap.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

NameTypeDescription
_selectorbytes4undefined

Returns

NameTypeDescription
_0addressundefined

Events

PluginSet

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

Parameters

NameTypeDescription
functionSelector indexedbytes4undefined
functionSignature indexedstringundefined
pluginAddress indexedaddressundefined