Skip to content

futureversecom/trn-seed

Repository files navigation

The Root Network Seed 🌱

Implementation of The Root Network node in Rust, based on the Substrate framework.

This repo contains runtimes for the Root Network Mainnet and Porcini (Testnet). For more specific guides on how to build applications, see the docs.

If you are looking for the chain details for EVM development, checkout chainlist.org

💫 Features

  • L1 Blockchain
  • Integrated EVM
  • On-Chain Assets
  • In-Chain Exchange
  • On-Chain Collectible Protocol
  • Any-Token Gas
  • Identity Protocol
  • Cross-Chain Bridge

⚙️ Running

Run using docker image

Docker images are published for every tagged release, you can quickly have a node running without pulling down the source code and build

# Root chainspec
docker run -p 9944:9944 -p 30333:30333 ghcr.io/futureversecom/seed:latest --chain=root
# Porcini chainspec
docker run -p 9944:9944 -p 30333:30333 ghcr.io/futureversecom/seed:latest --chain=porcini
# Dev chainspec
docker run -p 9944:9944 -p 30333:30333 ghcr.io/futureversecom/seed:latest --dev --unsafe-rpc-external --rpc-port=9944 --rpc-cors=all

Run using source code

First install Rust. You may need to add Cargo's bin directory to your PATH environment variable.

curl https://sh.rustup.rs -sSf | sh

If you already have Rust installed, make sure you're using the latest version by running:

rustup update

Build the client by cloning this repository and running the following commands from the root directory of the repo:

cargo build --release

After building the source code, run the following commands to start the node.

# Root chainspec
./target/release/seed --chain=root
# Porcini chainspec
./target/release/seed --chain=porcini
# Dev chainspec
./target/release/seed --dev --unsafe-rpc-external --rpc-port=9944 --rpc-cors=all

🚧 Development

Getting the right toolchain

To get the right toolchain execute the following command:

rustup show

Run Unit Tests

cargo test --all --all-features

Run E2E Tests

Refer to the instruction here

Formatting & Linting

cargo fmt --all

Benchmarks

See the wiki

📥 Provide Feedback

  • Start a Discussion with a question, piece of feedback, or idea you want to share with the team.
  • Open an Issue if you believe you've encountered a bug that you want to flag for the team.