RouterImmutable
thirdweb.com
Methods
_getPluginForFunction
function _getPluginForFunction(bytes4 _selector) external view returns (address)
View address of the plugged-in functionality contract for a given function signature.
Parameters
_selector
bytes4
undefined
Returns
_0
address
undefined
addPlugin
function addPlugin(IPluginMap.Plugin _plugin) external nonpayable
Parameters
_plugin
IPluginMap.Plugin
undefined
getAllFunctionsOfPlugin
function getAllFunctionsOfPlugin(address _pluginAddress) external view returns (bytes4[] registered)
View all funtionality as list of function signatures.
Parameters
_pluginAddress
address
undefined
Returns
registered
bytes4[]
undefined
getAllPlugins
function getAllPlugins() external view returns (struct IPluginMap.Plugin[] registered)
View all funtionality existing on the contract.
Returns
registered
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
_selector
bytes4
undefined
Returns
_0
address
undefined
multicall
function multicall(bytes[] data) external nonpayable returns (bytes[] results)
Receives and executes a batch of function calls on this contract.
Receives and executes a batch of function calls on this contract.
Parameters
data
bytes[]
The bytes data that makes up the batch of function calls to execute.
Returns
results
bytes[]
The bytes data that makes up the result of the batch of function calls executed.
pluginMap
function pluginMap() external view returns (address)
Returns
_0
address
undefined
removePlugin
function removePlugin(bytes4 _selector) external nonpayable
Remove existing functionality from the contract.
Parameters
_selector
bytes4
undefined
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool)
See {IERC165-supportsInterface}.
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
updatePlugin
function updatePlugin(IPluginMap.Plugin _plugin) external nonpayable
Parameters
_plugin
IPluginMap.Plugin
undefined
Events
PluginAdded
event PluginAdded(bytes4 indexed functionSelector, address indexed pluginAddress)
Parameters
functionSelector indexed
bytes4
undefined
pluginAddress indexed
address
undefined
PluginRemoved
event PluginRemoved(bytes4 indexed functionSelector, address indexed pluginAddress)
Parameters
functionSelector indexed
bytes4
undefined
pluginAddress indexed
address
undefined
PluginSet
event PluginSet(bytes4 indexed functionSelector, string indexed functionSignature, address indexed pluginAddress)
Parameters
functionSelector indexed
bytes4
undefined
functionSignature indexed
string
undefined
pluginAddress indexed
address
undefined
PluginUpdated
event PluginUpdated(bytes4 indexed functionSelector, address indexed oldPluginAddress, address indexed newPluginAddress)
Parameters
functionSelector indexed
bytes4
undefined
oldPluginAddress indexed
address
undefined
newPluginAddress indexed
address
undefined
Last updated