Listing

A Listing is an offer from a seller to sell, rent, announce, or exchange something. Active listings can be searched and browsed in Origin DApps.

Event Sourcing

The current state of a particular listing is built up from the actions that have modified it. For example:

The blockchain provides an absolute ordered list of events that happened on it (block number and transaction index). This allows everyone to apply events in the same order, so everyone can calculate the same state for the listing. In case of a conflict, everyone can agree which offers are valid and which are not. For example:

Creating a Listing

A listing’s initial data is posted to IPFS as JSON (listing schema). A blockchain transaction createListing is then sent to the marketplace contract to announce the listing to the world.

Withdrawing a Listing

Sending the blockchain transaction withdrawListing marks a listing as no longer able to be purchased.