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
Name | Type | Description |
---|---|---|
_selector | bytes4 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
addPlugin
function addPlugin(IPluginMap.Plugin _plugin) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_plugin | IPluginMap.Plugin | undefined |
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[] registered)
View all functionality existing on the contract.
Returns
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
_selector | bytes4 | undefined |
Returns
Name | Type | Description |
---|---|---|
_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
Name | Type | Description |
---|---|---|
data | bytes[] | The bytes data that makes up the batch of function calls to execute. |
Returns
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
_0 | address | undefined |
removePlugin
function removePlugin(bytes4 _selector) external nonpayable
Remove existing functionality from the contract.
Parameters
Name | Type | Description |
---|---|---|
_selector | bytes4 | undefined |
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool)
See {IERC165-supportsInterface}.
Parameters
Name | Type | Description |
---|---|---|
interfaceId | bytes4 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
updatePlugin
function updatePlugin(IPluginMap.Plugin _plugin) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_plugin | IPluginMap.Plugin | undefined |
Events
PluginAdded
event PluginAdded(bytes4 indexed functionSelector, address indexed pluginAddress)
Parameters
Name | Type | Description |
---|---|---|
functionSelector indexed | bytes4 | undefined |
pluginAddress indexed | address | undefined |
PluginRemoved
event PluginRemoved(bytes4 indexed functionSelector, address indexed pluginAddress)
Parameters
Name | Type | Description |
---|---|---|
functionSelector indexed | bytes4 | undefined |
pluginAddress indexed | address | undefined |
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 |
PluginUpdated
event PluginUpdated(bytes4 indexed functionSelector, address indexed oldPluginAddress, address indexed newPluginAddress)
Parameters
Name | Type | Description |
---|---|---|
functionSelector indexed | bytes4 | undefined |
oldPluginAddress indexed | address | undefined |
newPluginAddress indexed | address | undefined |