A Parity Substrate node implementing Edgeware.
- Add its github repo to:
- Cargo.toml
- node/runtime/Cargo.toml
- node/runtime/wasm/Cargo.toml (be sure to have
default-features = false
)
- Changes to the runtime:
- Add it as an
extern crate
. - Implement its
Trait
with production types. - Add it to the
construct_runtime
macro with all implemented components.
- If its storage contains
config
elements, then you need to modify the chain spec:
- Add it to the
edgeware_runtime
's list ofConfig
types. - Add it to the
testnet_genesis
function, initializing all storage fields set toconfig()
.
- Build and run the chain.
curl https://sh.rustup.rs -sSf | sh
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup update stable
cargo install --git https://github.com/alexcrichton/wasm-gc
sudo apt install cmake pkg-config libssl-dev git clang libclang-dev
You will also need to install the following packages:
Linux:
sudo apt install cmake pkg-config libssl-dev git clang libclang-dev
Mac:
brew install cmake pkg-config openssl git llvm
./build.sh
cargo build --release
If you've rebuilt the runtime and are using the default development chain storage location (~/.local/share/Substrate/chains/development/
), run the ./purge-chain.sh
script to clear your old chain's history.
./target/release/edgeware --chain edgeware