Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (34 sloc) 1.78 KB
pragma solidity ^0.5.0;
/** @title SubContract
@author Freydal
*/
interface SubContract {
/** @dev Defines interface for reporting maker argument json.
@notice Defines interface for reporting maker argument json.
@return JSON string representing maker arguments.
*/
function makerArguments() external view returns (string memory);
/** @dev Defines interface for reporting taker argument json.
@notice Defines interface for reporting taker argument json.
@return JSON string representing taker arguments.
*/
function takerArguments() external view returns (string memory);
/** @dev Defines interface for Paradigm Order validation.
@notice Defines interface for Paradigm Order validation.
@param makerData Paradigm Order serialized based on makerArguments.
@return boolean representing validity of order
*/
function isValid(bytes32[] calldata makerData) external view returns (bool);
/** @dev Defines interface for determining remaining amount available in Paradigm order
@notice Defines interface for determining remaining amount available in Paradigm order
@param makerData Paradigm Order serialized based on makerArguments.
*/
function amountRemaining(bytes32[] calldata makerData) external view returns (uint);
/** @dev Defines interface to settlement of Paradigm order
@notice Defines interface to settlement of Paradigm order
@param makerData Paradigm Order serialized based on makerArguments.
@param takerData Arguments from taker of Paradigm order serialized based on takerArguments.
@return Number of asset successfully taken
*/
function participate(bytes32[] calldata makerData, bytes32[] calldata takerData) external returns (bool);
}
You can’t perform that action at this time.