Skip to content

Latest commit

 

History

History
112 lines (74 loc) · 3.65 KB

README.md

File metadata and controls

112 lines (74 loc) · 3.65 KB

Udacity Blockchain Capstone

The capstone project is to build a decentralized real estate marketplace.

Install

To install, download or clone the repo, then:

npm install
cd eth-contracts/
truffle compile

Test

To run truffle tests:

truffle test

Rinkeby Details

See rinkeby_deployment.txt for Contract address and other information

Owner account address -

0x6038c699e6bc985605d36819E10B722981a2D5cc

Mint details on Etherscan

Open Sea details

Sold House - Asset ID 111, 1, 6,7,8

Deploying

  • Create a .env file (in eth-contracts) with MNEMONIC & Infura ENDPOINT_KEY
  • truffle compile
  • truffle migrate --network rinkeby

Tests

truffle test
Using network 'development'.


Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.



  Contract: TestERC721Mintable
    match erc721 spec
      ✓ should return total supply
      ✓ should get token balance (91ms)
      ✓ should return token uri
      ✓ should transfer token from one owner to another (285ms)
    have ownership properties
      ✓ should return contract owner
      ✓ should fail minting when address is not contract owner
    have pausable properties
      ✓ can pause and unpause (151ms)
      ✓ should return pause status (40ms)
      ✓ should fail minting when contract is paused (96ms)

  Contract: Test SolnSquareVerifier
    test token minting by providing solution
      ✓ should mint token for correct proof (741ms)
      ✓ should not allow solution reuse (722ms)
      ✓ should not mint token for incorrect proof (1295ms)

  Contract: Test SquareVerifier
    test verification
      ✓ should return true for correct proof (658ms)
      ✓ should return false for incorrect proof (628ms)


  14 passing (13s)



Project Resources

*Graduation Certificate