mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
28 lines
755 B
Solidity
28 lines
755 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 {
|
|
bool isFinal;
|
|
address targetDsa;
|
|
uint[] supplyAmts;
|
|
uint[] variableBorrowAmts;
|
|
uint[] stableBorrowAmts;
|
|
address[] supplyTokens;
|
|
address[] borrowTokens;
|
|
} |