Important Note
Be sure to use Mumbai Polygon Network for the Live Demo. Click here!
Inspiration
Actually the market place make more public, every question is public and also needs a lot of information and had a lot of issues from the users like if they don't have the money or what if the seller doesn't want to deliver the product.
OpenMarket try to fix that problem using web3. The seller can know if the buyer have enough money and also in order to the seller can withdraw the money needs a Random Number generated by Chainlink that it's given to the buyer afther deposit the money.
What it does
In OpenMarket you can connect your wallet and start to selling your products as NFT and also can buy.
Do you worry too much about token price? You can sell your products with the price in Matic or USD.
Do you want to ask something? Not problem, with OpenMarket you can create Chats with the owner of the product and ask anything in a private way.
Are you afraid about the deliver of the product? Don't worry, the seller can't get your money until you give him the random number that Chainlink generated.
How we built it
- We used Solidity for the Smart contracts, deployed with Hardhat.
- The backend was made using SLS framework and Express.js and it's deployed at AWS
- We used React, Thirdweb and Ether.js to develop the frontend.
- The UI/UX design was made with Figma
- We used event listener using javascript and ether.js to save the data of the smart contract when event was emitted
Challenges we ran into
The most difficult step was create the real time chat and of course the test. But with a lot of testing and change on the code we were able to finish the socket using Lambda functions in aws.
Accomplishments that we're proud of
It was my first time using Chainlink but thanks to the docs and the videos I can create de random number and use the data-feeds easily.
Also it was my first time creating a real-time chat from scratch so I'm glad that it works.
What we learned
- How to use Chainlink
- How to implement a real time chat
What's next for OpenMarket
We're proud of what we built and I think that we can make it bigger but for a Hackathon I think that it's a great project with a lot of develop and testing.
Built With
- amazon-web-services
- chainlink
- hardhat
- react
