As an open cross-chain bridge protocol based on Substrate, Darwinia aims to build the Internet of Tokens, including decentralized tokens swap, exchange, and market.
Building from Source
NOTE: Substrate development for windows is not properly supported! It is highly recommend to use Windows Subsystem Linux (WSL) and follow the instructions for Ubuntu/Debian. Check out Getting Started on Windows for more detail.
For Unix-based user, just grab the source code and build it. Make sure you have Rust and the support software installed.
Install Rust first:
curl https://sh.rustup.rs -sSf | sh
rustup default nightly rustup target add wasm32-unknown-unknown
Additional packages may also be required:
sudo apt install cmake pkg-config libssl-dev git clang libclang-dev
brew install cmake pkg-config openssl git llvm
Then, clone the Darwinia source code and build the target:
# Fetch the code git clone https://github.com/darwinia-network/darwinia.git cd darwinia # Build the node (The first build will be long (~30min)) cargo build --release
Run a development chain with:
cargo run --release -- --dev