Giter VIP home page Giter VIP logo

capstone's Introduction

Udacity Blockchain Capstone

The capstone will build upon the knowledge gained in the Udacity Blockchain course in order to build a decentralized housing product. This is a ERC721 token used to verify ownership of a property. zk-SNARKs is used to create a verification system which can prove that you are the owner of a title to the property without revealing specifics of the property. The tokens can then be placed in a blockchain marketplace (https://opensea.io) for sale.

Installation

Testing

  • cd ./eth-contracts
  • truffle test (All 11 tests should pass)

Rinkeby Deploy

  • cd ./eth-contracts
  • truffle migrate --network rinkeby --reset

Rinkeby Mint Tokens

  • export OWNER_ADDRESS="<my_address>"
  • export CONTRACT_ADDRESS="<deployed_contract_address>"
  • export MNEMONIC="<wallet_seed>"
  • export INFURA_KEY="<infura_key>"
  • node scripts/mint.js

Rinkeby Contract Details

Starting migrations...

Network name: 'rinkeby' Network id: 4 Block gas limit: 10000000 (0x989680)

1_initial_migration.js

Deploying 'Migrations'

transaction hash: 0x8f269b1aa1630e55d6b7ff3b59dcab2e0bef6f081b45db95793db1ede60d320d Blocks: 0 Seconds: 0 contract address: 0x1cDEF4F90f5FED3A9D07911Ea32507DF4d48AF67 block number: 8166259 block timestamp: 1614723597 account: 0x320eAff365D72c2DD5c052E927d0A619D63099f0 balance: 7.716501923 gas used: 225237 (0x36fd5) gas price: 10 gwei value sent: 0 ETH total cost: 0.00225237 ETH

Saving migration to chain. Saving artifacts


Total cost: 0.00225237 ETH

2_deploy_contracts.js

Deploying 'ERC721Mintable'

transaction hash: 0x5621ace82666810c55731b055a5773c78539a497e2e72ef05c30a5a678bc595f Blocks: 1 Seconds: 12 contract address: 0x42bA5611DB8BE71Ae85b47B2a04033BEAa4B32C7 block number: 8166261 block timestamp: 1614723627 account: 0x320eAff365D72c2DD5c052E927d0A619D63099f0 balance: 7.688445373 gas used: 2763292 (0x2a2a1c) gas price: 10 gwei value sent: 0 ETH total cost: 0.02763292 ETH

Deploying 'Verifier'

transaction hash: 0x578a5d5b446729b0068c9335de2e1637ed3a95b075d6755b35ac810f361c5276 Blocks: 0 Seconds: 8 contract address: 0xCcaC16961C85ED23bc601c790BE7800BfFed1C31 block number: 8166262 block timestamp: 1614723642 account: 0x320eAff365D72c2DD5c052E927d0A619D63099f0 balance: 7.678769063 gas used: 967631 (0xec3cf) gas price: 10 gwei value sent: 0 ETH total cost: 0.00967631 ETH

Deploying 'SolnSquareVerifier'

transaction hash: 0x176cb27900e007a0ae50b7889f15fccbbe904085b900ab64d68bf775d52a9191 Blocks: 1 Seconds: 12 contract address: 0x8bD86F7F44F7edDFE9154cC32bD616302140bEA9 block number: 8166263 block timestamp: 1614723657 account: 0x320eAff365D72c2DD5c052E927d0A619D63099f0 balance: 7.635769993 gas used: 4299907 (0x419c83) gas price: 10 gwei value sent: 0 ETH total cost: 0.04299907 ETH

Saving migration to chain. Saving artifacts


Total cost: 0.0803083 ETH

Summary

Total deployments: 4 Final cost: 0.08256067 ETH

Rinkeby URLs

Project Resources

capstone's People

Contributors

iambryanwho avatar derekzak avatar kylesf avatar lorenzozaccagnini avatar

Watchers

 avatar James Cloos 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.