Skip to content

Substrate node implementing all our edgeware features.

License

Notifications You must be signed in to change notification settings

akhanaton/edgeware-node

 
 

Repository files navigation

edgeware-node

A Parity Substrate node implementing Edgeware.

Implemented Modules

Edge

SRML

Adding A Module

  1. Add its github repo to:
  1. 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.
  1. If its storage contains config elements, then you need to modify the chain spec:
  • Add it to the edgeware_runtime's list of Config types.
  • Add it to the testnet_genesis function, initializing all storage fields set to config().
  1. Build and run the chain.

Usage

Initial Setup

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

Building

./build.sh
cargo build --release

Running

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

About

Substrate node implementing all our edgeware features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 98.1%
  • Other 1.9%