Hello Everyone,
I’ve been using MoneroMarket a good deal and thought it would be cool to build a version of that for Cosmos now that CosmWasm is coming to the Hub.
Idea
The basic economic engine would be a CosmWasm smart contract that had messages for creating posts, editing posts, deleting posts, and signing off for funds release. The actual listing data would be stored on IPFS. For example, Party A would create a listing selling a chair. They would supply a picture, title, description, and set their price, say 5 $ATOM. Upon creating a listing, the CosmWasm contract would supply an iterative Post ID to the listing which would be stored on the contract along with the listing price and returned IPFS link.
Diagram:
When someone purchases an item, they send their funds to the smart contract address. When the seller sends the item, they click a button marking the item as sold, which is stored along with the post id in the smart contract. Once the buyer gets the item, they click a button acknowledging receipt which also signs the message releasing funds from the smart contract to the seller. Each message would need 2/3 signatures to release funds, with the third signature being the constract instantiation address (mine or multisig) for arbitration of disputes.
Let me know your thoughts. I think this could drive some use case to the Hub and I’d enjoy making it. From a technical perspective, it will be a relatively simple smart contract lift (I know Rust) with a prioritization for auditability. I’m not a UI guy, but maybe someone else could help with that part.
Edit: I added the diagram to IPFS. I can’t include links or embedded images. To view, you can change hxxps → https and view the diagram.