Get Available Modules
The following functions are used in order to get available modules, as exist in the Modules Registry.
See the Module type here.
getModules
Get all available modules, optionally use a filter function in order to retrieve only a subset of the modules.
Arguments:
An optional filter function. For each Module, should return true
if the module should be included, false
otherwise.
Response:
An object that maps between module IDs and the corresponding module objects. A module ID is its implementation address.
getModuleById
Get a module object by its ID.
Arguments:
Module's ID (implementation address).
Response:
The module that matches the provided ID, or undefined
in case no matching module was found.
getModuleByImplementation
Get a module object by its implementation address.
Arguments:
Module's implementation address.
Response:
The module that matches the provided address, or undefined
in case no matching module was found.
getModuleByInstance
Get the module object of an instance.
Arguments:
Module's instance address.
Response:
The module that matches the provided address, or undefined
in case no matching module was found.
getModulesByInstances
Get the module objects of instances.
Arguments:
Addresses of the module instances.
Response:
The modules matching the provided addresses. For every address that is not an instance of a registry module, the corresponding return value in the array will be undefined
.
Last updated