Welcome to SEMA (SecondHand Market) 👋
Buy Second hand items with Atom Token
The app allows users to post second hand items. Other users can set prices to buy products they like. If the seller accepts the transaction, the buyer will send the ATOM token, the ATOM will be exchanged to Sun token on the system used to pay for the product.
Architechture Overview
Technology
Video demo
1. Publish - Set sell - Order - Payment with balance enough to buy
2. Payment with balance not enough to buy
Functionality
1.Register second hand items (3 steps)
2.Sell and set min price of items
3.Other user buy items
Order price must bigger min Price
Order successfully
4.Seller can choose order which they want to sell
5.Buyer trigger transaction
Orders are accepted to display with world payment
If buyer didn't have enough token of sunchain, they could swap atom token to producttoken
Run application
Prerequisites :
git clone git@github.com:trinhtan/cosmos-hackathon.git
cd cosmos-hackathon
Run Network
Make install
to get bcd
and bccli
- Initialized chain example can find at
init.sh
- Run single validator by
bcd start --rpc.laddr=tcp://0.0.0.0:26657 --pruning=nothing
- Start server Go:
bccli rest-server --chain-id sunchain --trust-node
- Start Relayer:
cd relayer
and run command follow readme
Start frontend
yarn install
# OR
npm install
yarn serve
# OR
npm run serve
Open browsers in: http://localhost:8080
Author
👤 Sun Blockchain Research Team