Follow the steps below to get started with the Societal's node.
Install nix and optionally direnv and
lorri for a fully plug and play experience for setting up
the development environment. To get all the correct dependencies activate direnv direnv allow and
lorri lorri shell.
First, complete the basic Rust setup instructions.
Use Rust's native cargo command to build and launch the node:
cargo run --release -- --devThe cargo run command will perform an initial build. Use the following command to build the node
without launching it:
cargo build --releaseOnce the project has been built, the following command can be used to explore all parameters and subcommands:
./target/release/societal-node -hLearn more about parachains here, and parathreads here.
Refer to the Prepare a local relay chain section of the Build a parachain tutorial
Refer to Connect a local parachain section of the Build a parachain tutorial
Once the node template is running locally, you can connect it with Polkadot-JS Apps front-end to interact with your chain. Click here connecting the Apps to your local node template.
Alternativley you can use the Societal's front-end to connect with the local node. Please find the societal front-end repo here. Follow the readme for instructions on how to build and run the front-end.
Review Societal's runtime implementation included in this node. This file configures several pallets that make up Societal's runtime. Each pallet has its own code block that begins with impl $PALLET_NAME::Config for Runtime, which define its configuration settings. Then the pallets are composed into a single runtime by way of the construct_runtime! macro.
First, install Docker and Docker Compose.
Then run the following command to spin up Rococo Local Testnet.
# Run Rococo local testnet docker-compose configuration
./scripts/docker_run.shThe following WS ports are used for nodes to connect to via PolkadotJS:
Alice Node: 9944
Bob Node: 9945
Charlie Node: 9946
Societal: 9954
Parachain 2001: 9955
Asset Hub: 9956
To run Unit Tests, execute the following command:
cargo testTo run Unit Tests with benchmarks included, execute the following command:
cargo test --features runtime-benchmarks