A smart contract is a set of promises, specified in digital form, including protocols within which parties perform on the promises

Nick Szabo (1996)

Ethereum is a decentralized platform for application. Solidity is an object-oriented, high-level language for the implementation of smart contracts.

My goal was to create a (sort of) gold bars exchange platform where the transactions will be stored on the Ethereum platform. My prototype has been inspired by this sample published on the Azure Blockchain-Workbench github: Azure simple marketplace.

After having checked the solidity code in the platform Remix. I have created a combined front-end / back-end web application (server-side rendering) to test my smart contract. My prototype is an implementation of this Next.js, Redux boilerplate published here on github.

I still use MongoDB to store the list of the smart contract created on the blockchain. The purpose is simply to make my front-end app more responsive. But at the end, I will maybe switch to a full blockchain storage solution.

My PoC is published on Heroku: https://gold-bars-exchange.herokuapp.com/.

… I just have this interrogation: Is it better to store each asset as an independant contract on the blockchain ? or should I store all my assets in a single mapping structure of the same smart contract ? So far I don’t have the answer…