forked from ArtemKolodko/synthetix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
IFuturesMarketManager.sol
33 lines (20 loc) · 1.12 KB
/
IFuturesMarketManager.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pragma solidity ^0.5.16;
interface IFuturesMarketManager {
function markets(uint index, uint pageSize) external view returns (address[] memory);
function markets(
uint index,
uint pageSize,
bool proxiedMarkets
) external view returns (address[] memory);
function numMarkets() external view returns (uint);
function numMarkets(bool proxiedMarkets) external view returns (uint);
function allMarkets() external view returns (address[] memory);
function allMarkets(bool proxiedMarkets) external view returns (address[] memory);
function marketForKey(bytes32 marketKey) external view returns (address);
function marketsForKeys(bytes32[] calldata marketKeys) external view returns (address[] memory);
function totalDebt() external view returns (uint debt, bool isInvalid);
function isEndorsed(address account) external view returns (bool);
function allEndorsedAddresses() external view returns (address[] memory);
function addEndorsedAddresses(address[] calldata addresses) external;
function removeEndorsedAddresses(address[] calldata addresses) external;
}