BaseRouter
Methods
addExtension
Parameters
_extension
IExtension.Extension
undefined
getAllExtensions
Returns all extensions stored. Override default lugins stored in router are given precedence over default extensions in DefaultExtensionSet.
Returns
allExtensions
IExtension.Extension[]
undefined
getAllFunctionsOfExtension
Returns all functions that belong to the given extension contract.
Parameters
_extensionName
string
undefined
Returns
_0
IExtension.ExtensionFunction[]
undefined
getExtension
Returns the extension metadata and functions for a given extension.
Parameters
_extensionName
string
undefined
Returns
_0
IExtension.Extension
undefined
getExtensionForFunction
Returns the extension metadata for a given function.
Parameters
_functionSelector
bytes4
undefined
Returns
_0
IExtension.ExtensionMetadata
undefined
getExtensionImplementation
Returns the extension's implementation smart contract address.
Parameters
_extensionName
string
undefined
Returns
_0
address
undefined
getImplementationForFunction
Returns the extension implementation address stored in router, for the given function.
Parameters
_functionSelector
bytes4
undefined
Returns
extensionAddress
address
undefined
removeExtension
Removes an existing extension from the router.
Parameters
_extensionName
string
undefined
supportsInterface
See {IERC165-supportsInterface}.
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
updateExtension
Parameters
_extension
IExtension.Extension
undefined
Events
ExtensionAdded
Parameters
extensionAddress indexed
address
undefined
functionSelector indexed
bytes4
undefined
functionSignature
string
undefined
ExtensionRemoved
Parameters
extensionAddress indexed
address
undefined
functionSelector indexed
bytes4
undefined
functionSignature
string
undefined
ExtensionUpdated
Parameters
oldExtensionAddress indexed
address
undefined
newExtensionAddress indexed
address
undefined
functionSelector indexed
bytes4
undefined
functionSignature
string
undefined
Last updated