2020-05-29 16:45:37 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-05-29 16:45:37 +00:00
|
|
|
|
|
|
|
/**
|
2020-11-19 13:21:36 +00:00
|
|
|
* @title LendingPoolAddressesProviderRegistry contract
|
|
|
|
* @dev Main registry of LendingPoolAddressesProvider of multiple Aave protocol's markets
|
|
|
|
* - Used for indexing purposes of Aave protocol's markets
|
|
|
|
* - The id assigned to a LendingPoolAddressesProvider refers to the market it is connected with,
|
|
|
|
* for example with `0` for the Aave main market and `1` for the next created
|
|
|
|
* @author Aave
|
2020-07-13 08:54:08 +00:00
|
|
|
**/
|
2020-05-29 16:45:37 +00:00
|
|
|
interface ILendingPoolAddressesProviderRegistry {
|
2020-08-21 14:03:01 +00:00
|
|
|
event AddressesProviderRegistered(address indexed newAddress);
|
|
|
|
event AddressesProviderUnregistered(address indexed newAddress);
|
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
function getAddressesProvidersList() external view returns (address[] memory);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-09-29 14:31:21 +00:00
|
|
|
function getAddressesProviderIdByAddress(address addressesProvider)
|
|
|
|
external
|
|
|
|
view
|
|
|
|
returns (uint256);
|
|
|
|
|
2020-08-21 13:38:47 +00:00
|
|
|
function registerAddressesProvider(address provider, uint256 id) external;
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-08-21 13:38:47 +00:00
|
|
|
function unregisterAddressesProvider(address provider) external;
|
2020-07-13 08:54:08 +00:00
|
|
|
}
|