LibOrder

STRUCTURE OBJECTS

AssetData

Order

OrderInput

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;
}

ENUMBERABLES

OrderState

enum OrderState {
    READY,
    PARTIALLY_FILLED,
    FILLED,
    CLAIMED,
    CANCELLED
}

Last updated