dsa-polygon-migration/contracts/receivers2/aave-v2-receiver/interfaces.sol

30 lines
786 B
Solidity
Raw Normal View History

2021-04-05 00:33:23 +00:00
pragma solidity >=0.7.0;
pragma experimental ABIEncoderV2;
interface AccountInterface {
function enable(address) external;
function disable(address) external;
function isAuth(address) external view returns (bool);
function cast(
string[] calldata _targets,
bytes[] calldata _datas,
address _origin
) external payable returns (bytes32);
function migrateAave(address) external payable returns (bytes32);
}
interface TokenMappingInterface {
function getMapping(address) external view returns (address);
}
struct AaveData {
address targetDsa;
uint[] supplyAmts;
uint[] borrowAmts;
address[] supplyTokens;
address[] borrowTokens;
}
interface IndexInterface {
function master() external view returns (address);
}