IndexZoo
Search…
Registry
IntegrationRegistry.sol
​
The Integration Registry holds state relating to the Modules and the integrations they are connected with. The state is combined into a single Registry to allow governance updates to be aggregated to one contract.

addIntegration

1
function addIntegration( address _module, string memory _name, address _adapter) public
Copied!
Add a new Integration to registry, integration is an entity which represents external components e.g. uniswap. Administrative function only called by owner.
  • _module The address of the module associated with the integration i.e. TradeModule, SingleIndexModule
  • _name Human readable string identifying the integration
  • _adapter Address of the adapter contract to add

batchAddIntegration

1
function batchAddIntegration(address[] memory _modules, string[] memory _names, address[] memory _adapters) external
Copied!
Like previous function call batchAddIntegration adds integrations in mass to the registry. Administrative function only called by owner.
  • _modules Array of addresses of the modules associated with integration
  • _names Array of human readable strings identifying the integration
  • _adapters Array of addresses of the adapter contracts to add

editIntegration

1
function editIntegration(address _module, string memory _name, address _adapter) public
Copied!
Modify an already added integration
  • _module The address of the module associated with the integration
  • _name Human readable string identifying the integration
  • _adapter Address of the adapter contract to edit

removeIntegration

1
function removeIntegration(address _module, string memory _name) external
Copied!
Remove an existing integration on the registry. Administrative function only called by owner.
  • _module The address of the module associated with the integration
  • _name Human readable string identifying the integration

getIntegrationAdapter

1
function getIntegrationAdapter(address _module, string memory _name) external view returns (address)
Copied!
Get integration adapter address which have been already added on the registry associated with passed human readable name.
  • _module The address of the module associated with the integration
  • _name Human readable adapter name
  • return Address of adapter

isValidIntegration

1
function isValidIntegration(address _module, string memory _name) external view returns (bool)
Copied!
Check if adapter is valid i.e. added on the registry
  • _module The address of the module associated with the integration
  • _name Human readable string identifying the integration
  • return Boolean indicating if valid
Copy link
Contents