Coder Social home page Coder Social logo

blockchain-capstone's Introduction

Udacity Blockchain Capstone

The capstone will build upon the knowledge you have gained in the course in order to build a decentralized housing product.

Install

npm install -g ganache-cli
npm install .

Testing

ganache-cli -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"
npm run compile
npm run test-erc721
npm run test-square-verifier
npm run test-soln-square-verifier

ZoKrates

docker run -v ~/github/Blockchain-Capstone/zokrates/code:/home/zokrates/code -ti zokrates/zokrates /bin/bash
cd code/square
~/zokrates compile -i square.code
~/zokrates setup
~/zokrates compute-witness -a 3 9
~/zokrates generate-proof
~/zokrates export-verifier

Deployment

  1. Go to Infura to create an account for creating a project.
  2. Get the ENDPOINT url for Rinkeby test network.
  3. Get the test ETH from faucet.rinkeby.io
  4. Config truffle-config.js with Infura ENDPOINT
  5. Run npm run deploy

Deploy result

   Deploying 'RealEstateERC721Token'
   > contract address:    0x846eF385549Ee30165eD2B51f8437EE41dEfb99A

   Deploying 'SquareVerifier'
   > contract address:    0xCFE6ba31934D78f75d0C7829DE213a35e7BCB8cd

   Deploying 'SolnSquareVerifier'
   > contract address:    0x7190a33E02E110eB5A231A348F5F268ad23a54a7

Contract ABI (xxxxx.json) located in build/contracts

Mint token

  1. Go to Remix - Solidity IDE
  2. Choose injected web3 and copy contract address to "At address"
  3. Mint 10 token according to proof.json and tokenid is from 1 to 10

Result: Total Supply: 10 RE https://rinkeby.etherscan.io/token/0x846eF385549Ee30165eD2B51f8437EE41dEfb99A

Opensea storefront

  1. My storefront is on https://rinkeby.opensea.io/assets/realestatev26
  2. tokenid from 1001 to 1005 is brought by 0xf17f52151EbEF6C7334FAD080c5704D77216b732 https://rinkeby.opensea.io/recent/realestatev26

Project Resources

blockchain-capstone's People

Contributors

iambryanwho avatar kylesf avatar lorenzozaccagnini avatar sakyalin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.