This Piece is an introduction to the Ambrosus Marketplace written by Ambrosus Lead Blockchain Developer and Marketplace architect Marek Kirejczyk. The code for the marketplace is open-source and can be found here. The demo for marketplace is here (running on Kovan Testnet).

As we develop Ambrosus protocol, we build prototype applications to showcase and test its usage. Today we are presenting our new application — Ambrosus Marketplace.

Marketplace

Ambrosus Marketplace is a dapp that allows trustless wholesale food trade over the internet. Buyers and sellers from all around the world can meet and make trade agreements. Two things that differentiate our market for all other online food markets are:

Measured quality. Items on the market have a smart contract attached to it that stores measurements from IoT devices recording information about particular food batches during sourcing, production and/or distribution stages. The quality, storage, and transportation conditions are visible.

Automatic settlement. The smart contract based agreement automatically ensures that payment condition is meet. If package reach destination and the requirements about quality are met, payment is released. If there is an issue with quality or delivery payment a decision to make a payment is up to the buyer. There are also options to pre-code partial refunds if quality is below the agreed one, but still acceptable to the buyer.

The agreement is doing an escrow with stable tokens (e.g., EUR stable token that represents EUR).

Let’s play

Make sure you are running in ethereum browser (MetaMask, Mist or Parity plugin with Chrome). You can test it on any etherum network, however, recommend one of ethereum test networks Kovan or Ropsten. If you would like to browse our existing demo market, you need to run on Kovan. If you would like to create new markets, add offers or do any modifications to the market, you will need test ether.

Quick start

The fastest way to start playing with our demo market stored on Kovan network. To do that just go to ambrosus-demo.com and enter the market address: (edit)0x86579883d164b1b6553ce7bcdb34f693cfeeaa58

Marketplace

If you would like to create an offer, just click on “Create Offer” button and off you go.

Creating offer

You can also initiate agreement by clicking filling in on a buy button. To buy something you first need to get some stable tokens that represent EUR. Thankfully we are on demo market contains a mock Stable Token, so you can just go to profile and charge you account.

Profile screen, where you can charge your account and add requirements

When you make a payment, you need to confirm by paying the amount of money into agreement escrow.

Once you buy an item, you can see it your orders. Depending if measurements meet requirements payment can be approved and reimbursed.

Note that currently demo is not connected to IOT devices, but you can simulate injecting measurements to smart contract by going to “add measurements” on item screen.

Welcome screen

Creating a new market

If you would like to create a market for scratch just on welcome screen just hit “Create new Market”. Before you are able to create offers, you need to create requirements first. You can do that in the profile section.

Under the hood

The market is an js interface to what is going under the hood. Note application has no backend all logics happens on Ethereum blockchain. Application stores images and measurements stored on IPFS.

The market is a very first application running on (an early stage) Ambrosus protocol. You can check the code on our GitHub: https://github.com/ambrosus

Have fun!