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

Polkadot Collectives Genesis

Compare
Choose a tag to compare
@muharem muharem released this 05 Oct 11:53
· 792 commits to master since this release
de63130

This release is based on the Parachain Runtimes v9290 release.

The release includes artifacts used to launch new Polkadot Collectives parachain (source code).

The Wasm runtime and the genesis head data are used to register the new parachain in the Polkadot network. The chainspec file, which includes both and additional configurations, is used to launch collators.

To verify the artifacts, you need to compile the wasm runtime using the same release tag and run an srtool build. For the rest you run the following commands from the cloned cumulus repository:

# from cumulus root directory 
git co parachains-v9290

# translate built by srtool binary wasm runtime into hexadecimal string 
cat $path_runtime_wasm | od -A n -v -t x1 | tr  -d ' \n' > $path_runtime_wam_hex

# upload spec file and place built hex runtime into
cat collectives-polkadot-spec.json \
    | jq --rawfile code $path_runtime_wasm_hex '.genesis.runtime.system.code = ("0x" + $code)' \ 
    > $path_spec_file

# build command tool to build the raw spec and the head data
cargo build --release

# build raw spec file 
./target/release/polkadot-parachain build-spec --chain $path_spec_file --raw > $path_spec_file_raw

# head data
./target/release/polkadot-parachain export-genesis-state --chain $path_spec_file > $path_head_data

(Note that you will need the od tool that comes natively with any Linux-based system and the jq tool to run the script.)

The resulting files $path_runtime_wasm, $path_spec_file, $path_spec_file_raw, $path_head_data should correspond to the collectives-polkadot_runtime-v9290.compact.compressed.wasm, collectives-polkadot-spec.json, collectives-polkadot-spec-raw.json, collectives-head-data files from the release assets.

Polkadot Collectives

🏋️ Runtime Size:		650.86 KB (666482 bytes)
🔥 Core Version:		collectives-9290 (collectives-0.tx0.au1)
🗜 Compressed:			Yes: 81.41%
🎁 Metadata version:		V14
🗳️ Blake2-256 hash:		0x6c68260eddf3a551fa5869ed17183cb6639adc400e63d4f60d92ca8e1a5c805a
📦 IPFS:			QmeY2i6kB6dKpc9HJ91rGfDDV1rUHmfG3kngB2FPQ9K1sJ