cosmos-hackathon

module
v0.0.0-...-6b2e056 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: Apache-2.0

README

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

overview

Technology

Video demo

1. Publish - Set sell - Order - Payment with balance enough to buy

Balance enough

2. Payment with balance not enough to buy

Balance not enough

Functionality

1.Register second hand items (3 steps)

image_2020_5_18

Screenshot from 2020-05-18 20-08-20

82bcd4ce632f0ed68b79e892833f9c57

2.Sell and set min price of items

Screenshot from 2020-05-18 20-10-42

Screenshot from 2020-05-18 20-12-04

Screenshot from 2020-05-18 20-22-01

3.Other user buy items

Screenshot from 2020-05-18 20-22-50

Order price must bigger min Price Screenshot from 2020-05-18 20-26-15

Order successfully Screenshot from 2020-05-18 20-34-33

4.Seller can choose order which they want to sell

image_2020_5_18 (1)

Screenshot from 2020-05-18 20-55-45

5.Buyer trigger transaction

Orders are accepted to display with world payment Screenshot from 2020-05-18 20-56-36

If buyer didn't have enough token of sunchain, they could swap atom token to producttoken

image_2020_5_18 (2)

Run application

Prerequisites :

git clone git@github.com:trinhtan/cosmos-hackathon.git
cd cosmos-hackathon

Run Network

  1. Make install to get bcd and bccli
  2. Initialized chain example can find at init.sh
  3. Run single validator by bcd start --rpc.laddr=tcp://0.0.0.0:26657 --pruning=nothing
  4. Start server Go: bccli rest-server --chain-id sunchain --trust-node
  5. 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL