A new SRML-based Substrate node, ready for hacking.
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)
./init.sh
./build.sh
cargo build --release
./target/release/template-node purge-chain --dev
./target/release/template-node --dev
{
"Property": {
"id": "H256",
"size": "u64",
"certificate_no": "u64",
"is_authenticated": "bool"
}
}
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. :)