8000 GitHub - kaichaosun/mansion: Using Substrate to build a real estate blockchain
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kaichaosun/mansion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

substrate-real-estate-node

A new SRML-based Substrate node, ready for hacking.

Tasks

DPM: Department of Property Management

  • Owner - create a property record
  • DPM - authenticate the new created property
  • Owner - put a property in market
  • Buyer - make an offer and lock a property in market
  • DPM - authenticate the purchase
  • Buyer/Owner - cancel the offer, unlock the property (nice to have)
  • Owner - confirm the lock (nice to have)

Run

./init.sh

./build.sh

cargo build --release

./target/release/template-node purge-chain --dev

./target/release/template-node --dev

JSON serialization for property data struct

{
  "Property": {
    "id": "H256",
    "size": "u64",
    "certificate_no": "u64",
    "is_authenticated": "bool"
  }
}

FAQ

Q: What's the private key of Alice? A: The key seed of prebuild accout Alice is //Alice, and bob's seed is //Bob, source code.

Q: Why system::Trait do not need to import? A: The use of system::Trait is a full path to system crate, no need to import with use keyword.

Q: Can all the user run a validator? A: For dev network, Alice is the only one and default validator. For local network, Alice and Bob are the available validators. If you are playing on kusama network with Polkadot, you need enough ksm to be selected as a validator.

Q: What's the serialised json format for Option?

Q: cargo build is slow, how to improve it? A: If it's related to network, try use a mirrored crates registry. If it's hardware related, invest on yourself with a powerful machine. :)

About

Using Substrate to build a real estate blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0