You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to be able to buy a ticket to an event and have it be protected by offer safety. I do not want to have to specify things that are not important to me, like a seat number.
Status
A user hoping to purchase a ticket to an event must ask the contract or another user for a list of available tickets, and then perform a search among the tickets available to find the ones they want to buy. When the full list is available, this is very awkward. When the full list isn't available, the situation is very bad: the user cannot be protected by offer safety for their purchase of the tickets, because they don't know enough about the tickets to specify what they want.
Details
See test-sellTickets.js for this particular example.
Story
As a user, I want to be able to buy a ticket to an event and have it be protected by offer safety. I do not want to have to specify things that are not important to me, like a seat number.
Status
A user hoping to purchase a ticket to an event must ask the contract or another user for a list of available tickets, and then perform a search among the tickets available to find the ones they want to buy. When the full list is available, this is very awkward. When the full list isn't available, the situation is very bad: the user cannot be protected by offer safety for their purchase of the tickets, because they don't know enough about the tickets to specify what they want.
Details
See
test-sellTickets.js
for this particular example.The contract has a function
getAvailableItems
:agoric-sdk/packages/zoe/test/unitTests/contracts/test-sellTickets.js
Lines 203 to 205 in 0f02d52
Then the user must search for the tickets they want:
agoric-sdk/packages/zoe/test/unitTests/contracts/test-sellTickets.js
Lines 225 to 230 in 0f02d52
Then the user can actually make a proposal and get offer safety for the tickets they want:
agoric-sdk/packages/zoe/test/unitTests/contracts/test-sellTickets.js
Lines 232 to 235 in 0f02d52
Next Steps
Please see the Amount Patterns Implementation Plan issue
The text was updated successfully, but these errors were encountered: