masaun / skynet-asset-marketplace

Skynet Asset Marketplace is a marketplace that users can buy/sell uploaded files on skynet by using Siacoin (SC).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skynet Asset Marketplace

Introduction

  • Skynet Asset Marketplace is a marketplace that users can buy/sell uploaded files on skynet by using Siacoin (SC).
  • If users who want to sell their assets use this marketplace, they can list their assets which are uploaded on skynet can start sell them instantly.
  • Users who want to sell their assets on this marketplace put a price by Siacoin (SC) on their selling assets.

Use Case

[Use Case ①]:

  • Graphic Designer (especially, freelance) can sell their creative for company who want to buy their creative for creating good advertisements.
    • Graphic Designer create creatives by using many kind of type files(text, video, audio, etc...). Skynet can upload assets which are not only text files, but also video files and audio files. That's why skynet is eligible for this case.
    • In this case, Graphic Designer can track ownership of their assets.
    • In this case, Graphic Designer who is seller get Siacoin (SC) as compensation from companies who is buyer. And then, they can exchange from Siacoin (SC) to another cryptocurrancies via ShapeShift, Binance, etc... ( https://sia.tech/get-siacoin

Process which is from upload asset on skynet to listing and buying/seling on Skynet Asset Martketplace

  • ① Request result to CoinMarketCap via chainlink's oracle
    Screen Shot 2020-03-15 at 19 46 12
  • ② Form of uploading asset on Skynet Screen Shot 2020-03-15 at 19 46 27
  • ③ Register uploaded asset on skynet into Skynet Asset Marketplace. And then, they are listed on Skynet Asset Marketplace.
    (When it at this process, "hash" of uploaded file on skynet and owner address of asset and Selling price by siacoin(SC) are saved on blockchain)
    Screen Shot 2020-03-15 at 19 47 13
  • ④ Users can buy/sell listed and uploaded asset on Skynet in this marketplace
    Screen Shot 2020-03-15 at 19 47 23

Setup

Before installation

  • Install npm

  • Install truffle globally using:

npm install -g truffle

  • Install the Metamask add-on to your browser and create a wallet. Note down the mnemonics. Fund it with Ropsten ETH and Ropsten LINK.

  • Create an Infura account, get an endpoint URL for the Ropsten testnet and note it down.

  • (Optional) Install Visual Studio Code


Installation

  • ① Clone this repo using:

git@github.com:masaun/skynet-asset-marketplace.git

  • ② Go to the main directory (/skynet-asset-marketplace)

  • ③ Install the dependencies for the smart contract:

npm install

  • ④ Create the file that you are going to enter your Infura credentials:

cp wallet.json.example wallet.json

  • ⑤ Open the newly created wallet.json file and enter the mnemonics and the endpoint URL you have noted down earlier, similar to wallet.json.example.

  • ⑥ Deploy the contract (Ropsten LINK will be transferred from your wallet to the contract automatically during deployment)

npm run migrate:ropsten

  • ⑦ Go to the front-end project directory (/skynet-asset-marketplace/client)

  • ⑧ Install the dependencies for the front-end project:

npm install

  • ⑨ Start the server

npm run start


Recommendation when setup

  • After process of ⑥(Deploy the contract) above, it is better to transfer LINK token from Chainlink fancet on ropsten below to deployed contract address. (Chainlink fancet on ropsten below are able to transfer 100 LINK)
    https://ropsten.chain.link/

Reference and resources


About

Skynet Asset Marketplace is a marketplace that users can buy/sell uploaded files on skynet by using Siacoin (SC).


Languages

Language:JavaScript 91.1%Language:HTML 6.0%Language:CSS 2.9%