all files / contracts/interfaces/ IEscrow.sol

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
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 34 35 36 37 38 39 40 41 42 43 44 45 46                                                                                           
// SPDX-License-Identifier: MIT
 
pragma solidity >=0.6.2;
 
interface IEscrow {
    enum EscrowStatuses {
        Launched,
        Pending,
        Partial,
        Paid,
        Complete,
        Cancelled
    }
 
    function status() external view returns (EscrowStatuses);
 
    function addTrustedHandlers(address[] memory _handlers) external;
 
    function setup(
        address _reputationOracle,
        address _recordingOracle,
        address _exchangeOracle,
        uint8 _reputationOracleFeePercentage,
        uint8 _recordingOracleFeePercentage,
        uint8 _exchangeOracleFeePercentage,
        string memory _url,
        string memory _hash
    ) external;
 
    function abort() external;
 
    function cancel() external returns (bool);
 
    function complete() external;
 
    function storeResults(string memory _url, string memory _hash) external;
 
    function bulkPayOut(
        address[] memory _recipients,
        uint256[] memory _amounts,
        string memory _url,
        string memory _hash,
        uint256 _txId
    ) external;
}