mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
30 lines
786 B
Solidity
30 lines
786 B
Solidity
|
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);
|
||
|
}
|