0xProject / 0x-launch-kit-frontend

Apache License 2.0
114 stars 208 forks source link

Sale workflow #314

Closed fvictorio closed 5 years ago

fvictorio commented 5 years ago

Depends on #313.

Add "Sell" button to individual asset page.

The button only shows up for assets that are owned by the current user, and that are not already on sale. Clicking it opens the modal for configuring the sale. After confirming, the modal shows a workflow similar to the one used for selling tokens: first you have to unlock the asset and then sign the order.

Note: There's a "Set Expiration Date" dropdown in the sale modal. I think that, for now, we can just hardcode some values there: 1 days, 2 days, 5 days, etc.

Dutch auction

Check this scenario in the 0x starter project to see how an order is created using the dutch auction contract.

fvictorio commented 5 years ago

Closed by #363.