aave-protocol-v2/contracts/interfaces/ILendingPoolAddressesProvider.sol

61 lines
1.9 KiB
Solidity
Raw Normal View History

// SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.8;
/**
@title ILendingPoolAddressesProvider interface
2020-06-20 23:40:03 +00:00
@notice provides the interface to fetch the Aave protocol address
*/
interface ILendingPoolAddressesProvider {
event LendingPoolUpdated(address indexed newAddress);
2020-11-05 11:35:50 +00:00
event ConfigurationAdminUpdated(address indexed newAddress);
event EmergencyAdminUpdated(address indexed newAddress);
event LendingPoolConfiguratorUpdated(address indexed newAddress);
event LendingPoolCollateralManagerUpdated(address indexed newAddress);
event EthereumAddressUpdated(address indexed newAddress);
event PriceOracleUpdated(address indexed newAddress);
event LendingRateOracleUpdated(address indexed newAddress);
event ProxyCreated(bytes32 id, address indexed newAddress);
event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy);
function setAddress(
bytes32 id,
2020-11-10 13:57:09 +00:00
address newAddress
) external;
function setAddressAsProxy(
bytes32 id,
address impl
) external;
function getAddress(bytes32 id) external view returns (address);
2020-07-13 08:54:08 +00:00
function getLendingPool() external view returns (address);
function setLendingPoolImpl(address pool) external;
2020-07-13 08:54:08 +00:00
function getLendingPoolConfigurator() external view returns (address);
function setLendingPoolConfiguratorImpl(address configurator) external;
function getLendingPoolCollateralManager() external view returns (address);
function setLendingPoolCollateralManager(address manager) external;
2020-07-13 08:54:08 +00:00
2020-11-05 11:35:50 +00:00
function getPoolAdmin() external view returns (address);
2020-07-13 08:54:08 +00:00
2020-11-05 11:35:50 +00:00
function setPoolAdmin(address admin) external;
function getEmergencyAdmin() external view returns (address);
function setEmergencyAdmin(address admin) external;
2020-07-13 08:54:08 +00:00
function getPriceOracle() external view returns (address);
function setPriceOracle(address priceOracle) external;
2020-07-13 08:54:08 +00:00
function getLendingRateOracle() external view returns (address);
function setLendingRateOracle(address lendingRateOracle) external;
2020-07-13 08:54:08 +00:00
}