mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
68 lines
2.5 KiB
Solidity
68 lines
2.5 KiB
Solidity
//SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
|
|
import { TokenInterface } from "../../common/interfaces.sol";
|
|
|
|
interface ManagerLike {
|
|
function safeCan(address, uint, address) external view returns (uint);
|
|
function collateralTypes(uint) external view returns (bytes32);
|
|
function lastSAFEID(address) external view returns (uint);
|
|
function safeCount(address) external view returns (uint);
|
|
function ownsSAFE(uint) external view returns (address);
|
|
function safes(uint) external view returns (address);
|
|
function safeEngine() external view returns (address);
|
|
function openSAFE(bytes32, address) external returns (uint);
|
|
function transferSAFEOwnership(uint, address) external;
|
|
function modifySAFECollateralization(uint, int, int) external;
|
|
function transferCollateral(uint, address, uint) external;
|
|
function transferInternalCoins(uint, address, uint) external;
|
|
}
|
|
|
|
interface SafeEngineLike {
|
|
function safeRights(address, address) external view returns (uint);
|
|
function collateralTypes(bytes32) external view returns (uint, uint, uint, uint, uint);
|
|
function coinBalance(address) external view returns (uint);
|
|
function safes(bytes32, address) external view returns (uint, uint);
|
|
function modifySAFECollateralization(
|
|
bytes32,
|
|
address,
|
|
address,
|
|
address,
|
|
int,
|
|
int
|
|
) external;
|
|
function approveSAFEModification(address) external;
|
|
function transferInternalCoins(address, address, uint) external;
|
|
function tokenCollateral(bytes32, address) external view returns (uint);
|
|
}
|
|
|
|
interface TokenJoinInterface {
|
|
function decimals() external returns (uint);
|
|
function collateral() external returns (TokenInterface);
|
|
function collateralType() external returns (bytes32);
|
|
function join(address, uint) external payable;
|
|
function exit(address, uint) external;
|
|
}
|
|
|
|
interface CoinJoinInterface {
|
|
function safeEngine() external returns (SafeEngineLike);
|
|
function systemCoin() external returns (TokenInterface);
|
|
function join(address, uint) external payable;
|
|
function exit(address, uint) external;
|
|
}
|
|
|
|
interface TaxCollectorLike {
|
|
function taxSingle(bytes32) external returns (uint);
|
|
}
|
|
|
|
interface ConnectorsInterface {
|
|
function chief(address) external view returns (bool);
|
|
}
|
|
|
|
interface IndexInterface {
|
|
function master() external view returns (address);
|
|
}
|
|
|
|
interface GebMapping {
|
|
function collateralJoinMapping(bytes32) external view returns(address);
|
|
} |