ModuleRegistry

Git Source

Inherits: IModuleRegistry

State Variables

registeredModules

mapping(address moduleAddress => uint256 moduleTypesBitmap) internal registeredModules;

registeredErc20Currencies

mapping(address erc20CurrencyAddress => bool) internal registeredErc20Currencies;

Functions

registerModule

function registerModule(address moduleAddress, uint256 moduleType) public returns (bool registrationWasPerformed);

getModuleTypes

function getModuleTypes(address moduleAddress) public view returns (uint256);

isModuleRegistered

function isModuleRegistered(address moduleAddress) external view returns (bool);

isModuleRegisteredAs

function isModuleRegisteredAs(address moduleAddress, uint256 moduleType) public view returns (bool);

registerErc20Currency

function registerErc20Currency(address currencyAddress) public returns (bool registrationWasPerformed);

isErc20CurrencyRegistered

function isErc20CurrencyRegistered(address currencyAddress) external view returns (bool);

Events

ModuleRegistered

event ModuleRegistered(address indexed moduleAddress, uint256 indexed moduleType, uint256 timestamp);

erc20CurrencyRegistered

event erc20CurrencyRegistered(
    address indexed erc20CurrencyAddress, string name, string symbol, uint8 decimals, uint256 timestamp
);