struct AssetData {
address contentAddress;
uint256 tokenId;
}
struct Order {
AssetData asset;
address owner;
address token;
uint256 price;
uint256 amountOrdered;
uint256 amountFilled;
bool isBuyOrder;
OrderState state;
}
struct OrderInput {
AssetData asset;
address owner;
address token;
uint256 price;
uint256 amount;
bool isBuyOrder;
}
enum OrderState {
READY,
PARTIALLY_FILLED,
FILLED,
CLAIMED,
CANCELLED
}