Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

sweatpotato13/substrate-parachain-boilerplate

Repository files navigation


Nest Logo


Substrate Parachain boilerplate

Substrate Parachain boilerplate
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

1. Introduction
2. Overview
3. Building
4. Run
5. Development

1. Introduction

Welcome to the Substrate Boilerplate! This is a starting point for building custom blockchains using the Substrate blockchain development framework from Parity Technologies.

Substrate is a modular and scalable framework that allows you to easily create custom blockchains with unique features and functionalities. The Substrate Boilerplate provides a template for building a Substrate-based blockchain with a basic set of features and components.

(back to top)

2. Overview

The Substrate Boilerplate includes the following features:

  • Consensus: Proof of Authority (PoA, Aura) consensus algorithm
  • Governance: Council-based governance model
  • Token: Native token with initial supply
  • Runtime Modules: Example runtime modules for accounts, balances, and identity

With these features, you can quickly create a basic blockchain with a built-in token economy and governance system.

(back to top)

3. Building

Install Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

and install rust nightly:

rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

and install other dependencies like profobuf, llvm:

# MacOS
brew install llvm protobuf
# Ubuntu
sudo apt-get install -y protobuf-compiler llvm

build infra-did node:

cargo build --release

(back to top)

4. Run

You can start local development chain

./target/release/parachain-template-node --dev --alice --tmp

or start local chain

./target/release/parachain-template-node --chain=local --alice --tmp

(back to top)

5. Development

You can start local development parachain with relay chain using zombienet

zombienet spawn --provider native zombienet/local-dev.toml

And apply rust formatter

cargo +nightly fmt

Releases

No releases published

Packages

No packages published