PredictionMarket
contract PredictionMarket
Index
Reference
Events
OrderCanceled
event OrderCanceled(uint orderId)
- Parameters:
orderId
- uint
OrderPlaced
event OrderPlaced(uint orderId, address user, OrderType orderType, uint amount, uint price)
- Parameters:
orderId
- uintuser
- addressorderType
- OrderTypeamount
- uintprice
- uint
Payout
event Payout(address user, uint amount)
- Parameters:
user
- addressamount
- uint
TradeMatched
event TradeMatched(uint orderId, address user, uint amount)
- Parameters:
orderId
- uintuser
- addressamount
- uint
Functions
PredictionMarket
function PredictionMarket(uint duration) public payable
- Parameters:
duration
- uint
cancelOrder
function cancelOrder(uint orderId) public
- Parameters:
orderId
- uint
orderBuy
function orderBuy(uint price) public payable
- Parameters:
price
- uint
orderSell
function orderSell(uint price, uint amount) public
- Parameters:
price
- uintamount
- uint
resolve
function resolve(bool _result) public
- Parameters:
_result
- bool
tradeBuy
function tradeBuy(uint orderId) public payable
- Parameters:
orderId
- uint
tradeSell
function tradeSell(uint orderId, uint amount) public
- Parameters:
orderId
- uintamount
- uint
withdraw
function withdraw() public