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

Statemint Shell (Updated Bootnodes)

Compare
Choose a tag to compare

This release publishes the data used for starting the Shell parachain on Polkadot that is later meant to become Statemint.

It contains updated bootnodes and an added verification script compared to the previous Shell release.

It is based on the shell runtime in the Statemine v504 release (it is only added as an asset to this release for convenience).

Generate the Artifacts

You can verify the artifacts for this release by first running an srtool build of the shell runtime for the Statemine v504 release, then running the following scripts inside a checkout of the cumulus repo in the branch release-statemint-shell:

We first build the collator binary:

cargo build --locked --release -p polkadot-collator

We then build our own artifacts. The resulting shell-head-data and shell-spec-raw.json files should exactly match the shell-statemint-head-data and shell-statemint.json released here.

WASM=https://github.com/paritytech/cumulus/releases/download/statemine-v5.0.0/shell_runtime-v2.compact.compressed.wasm
TARGET=/tmp/shell.wasm
wget -O $TARGET $WASM
./scripts/create_shell_spec.sh $TARGET

Verification

We then compare the generated files with what has been checked in this repo.
⚠️ Note that we sort the chainspecs to get consistent hashes.

echo "\nWhat we generated"
jq --sort-keys . shell-spec-raw.json > generated_sorted.json
shasum -a 256 shell-head-data
shasum -a 256 generated_sorted.json

echo "\nWhat was checked in"
jq --sort-keys . polkadot-parachains/res/shell-statemint.json > sorted.json
shasum -a 256 polkadot-parachains/res/shell-statemint-head-data 
shasum -a 256 sorted.json

Expected output:

What we generated
430150bab2a1e63a7b51a8918dac8405532cb178ac40ee9f8bfccf613cf29e3c  shell-head-data
02119c9d1f0453b02e3378f4ed6e9126ba9bad89c2bed448c6aa56bc2a2f3ce0  generated_sorted.json

What was checked in
430150bab2a1e63a7b51a8918dac8405532cb178ac40ee9f8bfccf613cf29e3c  polkadot-parachains/res/shell-statemint-head-data
02119c9d1f0453b02e3378f4ed6e9126ba9bad89c2bed448c6aa56bc2a2f3ce0  sorted.json