CryptoMarket is a smart contract. What does it mean? Is a marketplace that runs without any server, that cannot be censured and its security is based on cryptographic functions.
The project is composed of two parts:
- The smart contract, written in Solidity
- The front-end, written in HTML5 that shows the smart contract status
The main contract
Marketplace, inherit the storage function by another contract
ProductBox. So, the products array and every function related to that are in the
ProductBox contract, instead, every function related to the orders are in the
Of course, as every smart contract, its data are stored over the blockchain and are public. So, everyone can store data into this contract and can get the products. Each product created in this marketplace is associated with an Ethereum address. Only that address can delete that product.
In order to try it, you need to have something that injects Web3 into the site. The simplest way to satisfy that dependency is to use Google Chrome with MetaMask Extension
The project is deployed over the Rinkeby Test Net. So, if you use MetaMask, open it and then select Rinkeby If you have no Ether on Rinkeby Test Net, you can receive some free Ether here in order to try the contract.
The frontend is hosted on this site: CryptoMarket FrontEnd
Privacy (not yet implemented)
Every line of code is available on GitHub: CryptoMarket Repository