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.
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.