Interface for the Polymath Module Registry contract (IModuleRegistry.sol)
View Source: contracts/interfaces/IModuleRegistry.sol
↘ Derived Contracts: ModuleRegistry
IModuleRegistry
Events
Functions
useModule
⤿ Overridden Implementation(s): ModuleRegistry.useModule
Called by a security token (2.x) to notify the registry it is using a module
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the relevant module factory |
useModule
⤿ Overridden Implementation(s): ModuleRegistry.useModule
Called by a security token to notify the registry it is using a module
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the relevant module factory |
_isUpgrade | bool | whether the use is part of an existing module upgrade |
registerModule
⤿ Overridden Implementation(s): ModuleRegistry.registerModule
Called by the ModuleFactory owner to register new modules for SecurityToken to use
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be registered |
removeModule
⤿ Overridden Implementation(s): ModuleRegistry.removeModule
Called by the ModuleFactory owner or registry curator to delete a ModuleFactory
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be deleted |
isCompatibleModule
⤿ Overridden Implementation(s): ModuleRegistry.isCompatibleModule
Check that a module and its factory are compatible
Returns
bool whether module and token are compatible
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the relevant module factory |
_securityToken | address | is the address of the relevant security token |
verifyModule
⤿ Overridden Implementation(s): ModuleRegistry.verifyModule
Called by Polymath to verify modules for SecurityToken to use.
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be registered |
unverifyModule
⤿ Overridden Implementation(s): ModuleRegistry.unverifyModule
Called by Polymath to unverify modules for SecurityToken to use.
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be registered |
getFactoryDetails
⤿ Overridden Implementation(s): ModuleRegistry.getFactoryDetails
Returns the verified status, and reputation of the entered Module Factory
Returns
bool indicating whether module factory is verified
Arguments
Name | Type | Description |
_factoryAddress | address | is the address of the module factory |
getTagsByTypeAndToken
⤿ Overridden Implementation(s): ModuleRegistry.getTagsByTypeAndToken
Returns all the tags related to the a module type which are valid for the given token
Returns
list of tags
Arguments
Name | Type | Description |
_moduleType | uint8 | is the module type |
_securityToken | address | is the token |
getTagsByType
⤿ Overridden Implementation(s): ModuleRegistry.getTagsByType
Returns all the tags related to the a module type which are valid for the given token
Returns
list of tags
Arguments
Name | Type | Description |
_moduleType | uint8 | is the module type |
getAllModulesByType
⤿ Overridden Implementation(s): ModuleRegistry.getAllModulesByType
Returns the list of addresses of all Module Factory of a particular type
Returns
address array that contains the list of addresses of module factory contracts.
Arguments
Name | Type | Description |
_moduleType | uint8 | Type of Module |
getModulesByType
⤿ Overridden Implementation(s): ModuleRegistry.getModulesByType
Returns the list of addresses of Module Factory of a particular type
Returns
address array that contains the list of addresses of module factory contracts.
Arguments
Name | Type | Description |
_moduleType | uint8 | Type of Module |
getModulesByTypeAndToken
⤿ Overridden Implementation(s): ModuleRegistry.getModulesByTypeAndToken
Returns the list of available Module factory addresses of a particular type for a given token.
Returns
address array that contains the list of available addresses of module factory contracts.
Arguments
Name | Type | Description |
_moduleType | uint8 | is the module type to look for |
_securityToken | address | is the address of SecurityToken |
updateFromRegistry
⤿ Overridden Implementation(s): ModuleRegistry.updateFromRegistry
Use to get the latest contract address of the regstries
Arguments
Name | Type | Description |
owner
⤿ Overridden Implementation(s): ModuleRegistry.owner
Get the owner of the contract
Returns
address owner
Arguments
Name | Type | Description |
isPaused
⤿ Overridden Implementation(s): ModuleRegistry.isPaused
Check whether the contract operations is paused or not
Returns
bool
Arguments
Name | Type | Description |
reclaimERC20
⤿ Overridden Implementation(s): ModuleRegistry.reclaimERC20
Reclaims all ERC20Basic compatible tokens
Arguments
Name | Type | Description |
_tokenContract | address | The address of the token contract |
pause
⤿ Overridden Implementation(s): ModuleRegistry.pause
Called by the owner to pause, triggers stopped state
Arguments
Name | Type | Description |
unpause
⤿ Overridden Implementation(s): ModuleRegistry.unpause
Called by the owner to unpause, returns to normal state
Arguments
Name | Type | Description |
transferOwnership
⤿ Overridden Implementation(s): ModuleRegistry.transferOwnership
Allows the current owner to transfer control of the contract to a newOwner.
Arguments
Name | Type | Description |
_newOwner | address | The address to transfer ownership to. |
Last updated