Agoric / dapp-agoric-basics

This is a simple app for the Agoric smart contract platform.
0 stars 3 forks source link

feat: contract code to mint tickets #8

Closed LuqiPan closed 4 months ago

LuqiPan commented 5 months ago

My first stab at updating the contract to mint tickets, notably, update contract terms to accept inventory then check want against inventory to make sure we have enough inventory and check give against total price to make sure user offers enough tokens.

This is still pretty rough so any and all feedbacks are welcomed.

TODOs:

dckc commented 5 months ago

update UI code and tests accordingly

updating the UI code seems to fit more comfortably in a separate PR

aj-agoric commented 2 months ago

Marking this PR as done in the project board since this is merged.