IExtensionRegistry
Methods
addExtension
function addExtension(IExtension.Extension extension) external nonpayable
Parameters
extension
IExtension.Extension
undefined
getAllExtensions
function getAllExtensions() external view returns (struct IExtension.Extension[])
Returns all extensions stored.
Returns
_0
IExtension.Extension[]
undefined
getAllFunctionsOfExtension
function getAllFunctionsOfExtension(string extensionName) external view returns (struct IExtension.ExtensionFunction[])
Returns all functions that belong to the given extension contract.
Parameters
extensionName
string
undefined
Returns
_0
IExtension.ExtensionFunction[]
undefined
getExtension
function getExtension(string extensionName) external view returns (struct IExtension.Extension)
Returns the extension metadata and functions for a given extension.
Parameters
extensionName
string
undefined
Returns
_0
IExtension.Extension
undefined
getExtensionForFunction
function getExtensionForFunction(bytes4 functionSelector) external view returns (struct IExtension.ExtensionMetadata)
Returns the extension metadata for a given function.
Parameters
functionSelector
bytes4
undefined
Returns
_0
IExtension.ExtensionMetadata
undefined
getExtensionImplementation
function getExtensionImplementation(string extensionName) external view returns (address)
Returns the extension's implementation smart contract address.
Parameters
extensionName
string
undefined
Returns
_0
address
undefined
removeExtension
function removeExtension(string extension) external nonpayable
Remove an existing extension from the registry.
Parameters
extension
string
undefined
updateExtension
function updateExtension(IExtension.Extension extension) external nonpayable
Parameters
extension
IExtension.Extension
undefined
Events
ExtensionAdded
event ExtensionAdded(address indexed extensionAddress, bytes4 indexed functionSelector, string functionSignature)
Parameters
extensionAddress indexed
address
undefined
functionSelector indexed
bytes4
undefined
functionSignature
string
undefined
ExtensionRemoved
event ExtensionRemoved(address indexed extensionAddress, bytes4 indexed functionSelector, string functionSignature)
Parameters
extensionAddress indexed
address
undefined
functionSelector indexed
bytes4
undefined
functionSignature
string
undefined
ExtensionUpdated
event ExtensionUpdated(address indexed oldExtensionAddress, address indexed newExtensionAddress, bytes4 indexed functionSelector, string functionSignature)
Parameters
oldExtensionAddress indexed
address
undefined
newExtensionAddress indexed
address
undefined
functionSelector indexed
bytes4
undefined
functionSignature
string
undefined
Last updated