Registry contract to store registered modules (ModuleRegistry.sol)
View Source: contracts/ModuleRegistry.sol
↗ Extends: IModuleRegistry, EternalStorage ↘ Derived Contracts: MockModuleRegistry
ModuleRegistry
Only Polymath can register and verify module factories to make them available for issuers to attach.
Contract Members
Constants & Variables
Modifiers
onlyOwner
Throws if called by any account other than the owner.
Arguments
Name | Type | Description |
whenNotPausedOrOwner
Modifier to make a function callable only when the contract is not paused.
Arguments
Name | Type | Description |
nonReentrant
Modifier to prevent reentrancy
Arguments
Name | Type | Description |
whenNotPaused
Modifier to make a function callable only when the contract is not paused and ignore is msg.sender is owner.
Arguments
Name | Type | Description |
whenPaused
Modifier to make a function callable only when the contract is paused.
Arguments
Name | Type | Description |
Functions
_whenNotPausedOrOwner
Arguments
Name | Type | Description |
Arguments
Name | Type | Description |
initialize
Arguments
Name | Type | Description |
_polymathRegistry | address | |
_owner | address |
_customModules
Arguments
Name | Type | Description |
useModule
⤾ overrides IModuleRegistry.useModule
Called by a SecurityToken (2.x) to check if the ModuleFactory is verified or appropriate custom module
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the relevant module factory |
useModule
⤾ overrides IModuleRegistry.useModule
Called by a SecurityToken to check if the ModuleFactory is verified or appropriate custom module
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the relevant module factory |
_isUpgrade | bool | whether or not the function is being called as a result of an upgrade |
isCompatibleModule
⤾ overrides IModuleRegistry.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 |
registerModule
⤾ overrides IModuleRegistry.registerModule
Called by the ModuleFactory owner to register new modules for SecurityTokens to use
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be registered |
removeModule
⤾ overrides IModuleRegistry.removeModule
Called by the ModuleFactory owner or registry curator to delete a ModuleFactory from the registry
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be deleted from the registry |
verifyModule
⤾ overrides IModuleRegistry.verifyModule
Called by Polymath to verify Module Factories for SecurityTokens to use.
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be verified |
unverifyModule
⤾ overrides IModuleRegistry.unverifyModule
Called by Polymath to verify Module Factories for SecurityTokens to use.
Arguments
Name | Type | Description |
_moduleFactory | address | is the address of the module factory to be verified |
getTagsByTypeAndToken
⤾ overrides IModuleRegistry.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
⤾ overrides IModuleRegistry.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 |
_tagsByModules
Returns all the tags related to the modules provided
Returns
list of tags
Arguments
Name | Type | Description |
_modules | address[] | modules to return tags for |
getFactoryDetails
⤾ overrides IModuleRegistry.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 |
getModulesByType
⤾ overrides IModuleRegistry.getModulesByType
Returns the list of addresses of verified 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 |
getAllModulesByType
⤾ overrides IModuleRegistry.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 |
getModulesByTypeAndToken
⤾ overrides IModuleRegistry.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 |
reclaimERC20
⤾ overrides IModuleRegistry.reclaimERC20
Reclaims all ERC20Basic compatible tokens
Arguments
Name | Type | Description |
_tokenContract | address | The address of the token contract |
pause
⤾ overrides IModuleRegistry.pause
Called by the owner to pause, triggers stopped state
Arguments
Name | Type | Description |
unpause
⤾ overrides IModuleRegistry.unpause
Called by the owner to unpause, returns to normal state
Arguments
Name | Type | Description |
updateFromRegistry
⤾ overrides IModuleRegistry.updateFromRegistry
Stores the contract addresses of other key contracts from the PolymathRegistry
Arguments
Name | Type | Description |
transferOwnership
⤾ overrides IModuleRegistry.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. |
owner
⤾ overrides IModuleRegistry.owner
Gets the owner of the contract
Returns
address owner
Arguments
Name | Type | Description |
isPaused
⤾ overrides IModuleRegistry.isPaused
Checks whether the contract operations is paused or not
Returns
bool
Arguments
Name | Type | Description |
Last updated