id | title | original_id |
---|---|---|
version-2.1.0-ModuleRegistry |
ModuleRegistry |
ModuleRegistry |
is IModuleRegistry, EternalStorage
Only Polymath can register and verify module factories to make them available for issuers to attach.
- ModuleRegistered
- ModuleRemoved
- ModuleUsed
- ModuleVerified
- OwnershipTransferred
- Pause
- Unpause
- _isCompatibleModule
- _tagsByModules
- fallback
- getModulesByType
- getModulesByTypeAndToken
- getReputationByFactory
- getTagsByType
- getTagsByTypeAndToken
- initialize
- isPaused
- onlyOwner
- owner
- pause
- reclaimERC20
- registerModule
- removeModule
- transferOwnership
- unpause
- updateFromRegistry
- useModule
- verifyModule
- whenNotPaused
- whenNotPausedOrOwner
- whenPaused
function getModulesByTypeAndToken(uint8 _moduleType, address _securityToken) public view returns (address[])
Returns the list of available Module factory addresses of a particular type for a given token.
- Parameters:
_moduleType
- is the module type to look for_securityToken
- is the address of SecurityToken- Returns:
- address array that contains the list of available addresses of module factory contracts.
function getReputationByFactory(address _factoryAddress) external view returns (address[])
Returns the reputation of the entered Module Factory.
- Parameters:
_factoryAddress
- is the address of the module factory- Returns:
- address array which contains the list of securityTokens that use that module factory
function getTagsByTypeAndToken(uint8 _moduleType, address _securityToken) external view returns (bytes32[], address[])
Returns all the tags related to the a module type which are valid for the given token.
- Parameters:
_moduleType
- is the module type_securityToken
- is the token- Returns:
- corresponding list of module factories
function pause() external
Called by the owner to pause, triggers stopped state.
- Modifiers:
- whenNotPaused onlyOwner
function reclaimERC20(address _tokenContract) external
Reclaims all ERC20Basic compatible tokens.
- Modifiers:
- onlyOwner
- Parameters:
_tokenContract
- The address of the token contract
function registerModule(address _moduleFactory) external
Called by the ModuleFactory owner to register new modules for SecurityTokens to use.
- Modifiers:
- whenNotPausedOrOwner
- Parameters:
_moduleFactory
- is the address of the module factory to be registered
function removeModule(address _moduleFactory) external
Called by the ModuleFactory owner or registry curator to delete a ModuleFactory from the registry.
- Modifiers:
- whenNotPausedOrOwner
- Parameters:
_moduleFactory
- is the address of the module factory to be deleted from the registry
function transferOwnership(address _newOwner) external
Allows the current owner to transfer control of the contract to a newOwner.
- Modifiers:
- onlyOwner
- Parameters:
_newOwner
- The address to transfer ownership to.
function unpause() external
Called by the owner to unpause, returns to normal state.
- Modifiers:
- whenPaused onlyOwner
function updateFromRegistry() external
Stores the contract addresses of other key contracts from the PolymathRegistry.
- Modifiers:
- onlyOwner
function useModule(address _moduleFactory) external
The feature switch for custom modules is labelled "customModulesAllowed", Called by a SecurityToken to check if the ModuleFactory is verified or appropriate custom module.
- Parameters:
_moduleFactory
- is the address of the relevant module factory
function verifyModule(address _moduleFactory, bool _verified) external
-> Only if Polymath enabled the feature.
- Modifiers:
- onlyOwner
- Parameters:
_moduleFactory
- is the address of the module factory to be verified_verified
- bool- Returns:
- bool