pallet-octopus-appchain-3.0.0-pre.0 doesn't have any documentation.
Octopus Appchain Pallet
This is a support component of Octopus Network.
Purpose
With this pallet, a chain built from substrate can join octopus network as an appchain.
An appchain can rent security from motherchain on demand.
Dependencies
Traits
This pallet depend on CreateSignedTransaction
.
Pallets
This pallet depend on pallet_session.
Installation
Runtime Cargo.toml
To add this pallet to your runtime, simply include the following to your runtime's Cargo.toml
file:
[]
= { = false, = '3.0.0' }
= { = false, = 'https://github.com/octopus-network/pallet-octopus-appchain.git' }
and update your runtime's std
feature to include this pallet:
= [
# --snip--
'pallet-session/std',
'pallet-octopus-appchain/std',
]
Runtime lib.rs
You should implement it's trait like so:
parameter_types!
and include it in your construct_runtime!
macro:
OctopusAppchain: ,
Genesis Configuration
See this commit of Barnacle for genesis configuration and other settings.
We will explain these configurations in detail later.
Reference Docs
You can view the reference docs for this pallet by running:
cargo doc --open