2021-04-04 03:47:28 +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);
|
2021-04-04 08:06:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface TokenMappingInterface {
|
|
|
|
function getMapping(address) external view returns (address);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AaveData {
|
|
|
|
bool isFinal;
|
|
|
|
address targetDsa;
|
|
|
|
uint[] supplyAmts;
|
|
|
|
uint[] variableBorrowAmts;
|
|
|
|
uint[] stableBorrowAmts;
|
|
|
|
address[] supplyTokens;
|
|
|
|
address[] borrowTokens;
|
2021-04-04 03:47:28 +00:00
|
|
|
}
|