TAGS

azure-simple-marketplace-box

CREATED

UPDATED

STARS

INSTALL

...

REPOSITORY
GitHub Download
Please wait: Fetching readme...

b"Simple Marketplace Sample Application for Azure Blockchain Workbench\n====================================================================\n\nOverview\xc2\xa0\n---------\n\nThe Simple Marketplace application expresses a workflow for a simple transaction\nbetween an owner and a buyer in a marketplace.\xc2\xa0 The state transition diagram\nbelow shows the interactions among the states in this workflow.\xc2\xa0\n\n
\n\nApplication Roles\xc2\xa0\n------------------\n| Name | Description |\n|------------------------|---------------------------------------------------|\n|Owner\xc2\xa0|A person who wants to sell on the marketplace. |\n|Buyer\xc2\xa0|A person who wants to buy from the marketplace. |\n\n
\n\nStates\xc2\xa0\n-------\n\n| Name | Description |\n|------------------------|---------------------------------------------------|\n|ItemAvailable\xc2\xa0|Indicates that an owner has made the item they want to sell available in the marketplace.\n|OfferPlaced\xc2\xa0|Indicates that a seller has made an offer to buy the item listed by an owner.\n|Accepted\xc2\xa0|Indicates that the owner has accepted the buyer's offer for the item.\n\n
\n\nWorkflow Details\n----------------\n\n![workflow details for application](https://raw.githubusercontent.com/truffle-box/azure-simple-marketplace-box/master/media/a98d6da0441c39cf0e2d82b2f4faaff3.png)\n\nAn instance of the Simple Marketplace application's workflow starts in the\nItemAvailable state when an Owner makes an item available for sale by specifying\nits description and price.\xc2\xa0 A buyer can then make an offer by specifying their\nprice for the item.\xc2\xa0 This action causes the state to change from ItemAvailable\nto OfferPlaced.\xc2\xa0 Now, if the owner agrees to the buyer's offer, then owner calls\nthe function to accept an offer, and the workflow reaches a successful\nconclusion state denoted by the Accepted state.\xc2\xa0 If the owner, however, is not\nsatisfied with the offer, then the owner can call the function to reject the\noffer.\xc2\xa0 On rejection, the state changes to ItemAvailable indicating that the\nitem is still up for sale.\xc2\xa0 The transitions between the ItemAvailable and the\nOfferPlaced states can continue until the owner is satisfied with the offer\nmade.\xc2\xa0\n\nA happy path shown in the transition diagram traces an owner making an item\navailable, a buyer making an offer, and the owner accepting the offer.\xc2\xa0\n\n
\n\nApplication Files\n-----------------\n\n[SimpleMarketplace.sol](https://raw.githubusercontent.com/truffle-box/azure-simple-marketplace-box/master/contracts/SimpleMarketplace.sol)\n"