Interface for the Polymath Module Registry contract (IModuleRegistry.sol)

View Source: contracts/interfaces/IModuleRegistry.solarrow-up-right

↘ Derived Contracts: ModuleRegistryarrow-up-right

IModuleRegistry

Events

event Pause(address  account);
event Unpause(address  account);
event ModuleUsed(address indexed _moduleFactory, address indexed _securityToken);
event ModuleRegistered(address indexed _moduleFactory, address indexed _owner);
event ModuleVerified(address indexed _moduleFactory);
event ModuleUnverified(address indexed _moduleFactory);
event ModuleRemoved(address indexed _moduleFactory, address indexed _decisionMaker);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

Functions

useModule

⤿ Overridden Implementation(s): ModuleRegistry.useModulearrow-up-right

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.useModulearrow-up-right

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.registerModulearrow-up-right

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.removeModulearrow-up-right

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.isCompatibleModulearrow-up-right

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.verifyModulearrow-up-right

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.unverifyModulearrow-up-right

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.getFactoryDetailsarrow-up-right

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.getTagsByTypeAndTokenarrow-up-right

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.getTagsByTypearrow-up-right

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.getAllModulesByTypearrow-up-right

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.getModulesByTypearrow-up-right

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.getModulesByTypeAndTokenarrow-up-right

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.updateFromRegistryarrow-up-right

Use to get the latest contract address of the regstries

Arguments

Name

Type

Description

owner

⤿ Overridden Implementation(s): ModuleRegistry.ownerarrow-up-right

Get the owner of the contract

Returns

address owner

Arguments

Name

Type

Description

isPaused

⤿ Overridden Implementation(s): ModuleRegistry.isPausedarrow-up-right

Check whether the contract operations is paused or not

Returns

bool

Arguments

Name

Type

Description

reclaimERC20

⤿ Overridden Implementation(s): ModuleRegistry.reclaimERC20arrow-up-right

Reclaims all ERC20Basic compatible tokens

Arguments

Name

Type

Description

_tokenContract

address

The address of the token contract

pause

⤿ Overridden Implementation(s): ModuleRegistry.pausearrow-up-right

Called by the owner to pause, triggers stopped state

Arguments

Name

Type

Description

unpause

⤿ Overridden Implementation(s): ModuleRegistry.unpausearrow-up-right

Called by the owner to unpause, returns to normal state

Arguments

Name

Type

Description

transferOwnership

⤿ Overridden Implementation(s): ModuleRegistry.transferOwnershiparrow-up-right

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

Was this helpful?