Skip to main content

Registry

Keeps a record of all valid contract addresses currently used in the protocol

pragma solidity 0.7.6;pragma experimental ABIEncoderV2;
interface IRegistry {
    /**     * @notice Getter for the controller address     * @return the address of the controller     */    function getControllerAddress() external view returns (address);
    /**     * @notice Getter for the treasury address     * @return the address of the treasury     */    function getTreasuryAddress() external view returns (address);
    /**     * @notice Getter for the tokens factory address     * @return the address of the tokens factory     */    function getTokensFactoryAddress() external view returns (address);

    /**     * @notice Getter for the proxy factory address     * @return the proxy factory address     */    function getProxyFactoryAddress() external view returns (address);
    /**     * @notice Getter for APWine IBT logic address     * @return the APWine IBT logic address     */    function getAPWineIBTLogicAddress() external view returns (address);
    /**     * @notice Getter for APWine FYT logic address     * @return the APWine FYT logic address     */    function getFYTLogicAddress() external view returns (address);

    /**     * @notice Getter for math utils address     * @return the math utils address     */    function getMathsUtils() external view returns (address);
    /**     * @notice Getter for naming utils address     * @return the naming utils address     */    function getNamingUtils() external view returns (address);
    /* Futures */
    /**     * @notice Getter to check if a future is registered     * @param _future the address of the future to check the registration of     * @return true if it is, false otherwise     */    function isRegisteredFutureVault(address _future) external view returns (bool);
    /**     * @notice Getter for the future registered at an index     * @param _index the index of the future to return     * @return the address of the corresponding future     */    function getFutureVaultAt(uint256 _index) external view returns (address);
    /**     * @notice Getter for number of future registered     * @return the number of future registered     */    function futureVaultCount() external view returns (uint256);}