Skip to content

Releases: paritytech/srtool

Srtool 1.53.0-0.9.15 (31a423e0)

06 Jul 09:37
Compare
Choose a tag to compare

Description

The SRTOOL Docker image has been tagged as:

  • paritytech/srtool:1.53.0
  • paritytech/srtool:1.53.0-0.9.15

You can find it on Docker Hub.

Prefer using paritytech/srtool:1.53.0 unless you really must pin a specific version or use an ancient version for some reason. Specifying the version (0.9.15) is not recommended.

Changes since v0.9.14

  • 31a423e: chore - switch from chevdor to paritytech
  • d66ceed: ci - switch from artifacts to using the cache to reduce storage usage
  • 3f299b8: ci - add release workflow
  • e0bd6b6: ci - use RUNTIME_DIR to fetch wasm artifacts
  • 60e97c0: ci - add manual builds workflows
  • 4cc380b: test - add test for all the cumulus chains and the bridges
  • 69dfae9: ci - add matrix to build polkadot, kusama, westend
  • 92d2ec2: test - add checks to the outputs

v0.9.14

29 Jun 10:24
Compare
Choose a tag to compare

Base image and Rust compiler

  • 🎉 Moving from rust nightly to rust stable 1.53.0
  • version bump to 0.9.14

Fixes

  • prevent issue for chains that do not build yet a compressed runtime (even though the list of those is shrinking to close to nothing)

Documentation

  • doc update
  • update of the samples

Testing

This new version has been extensively tested with several chains from Parity and 3rd party developers. You can find the list below.

Parity

  • ✅ Polkadot
  • ✅ Kusama
  • ✅ Westend
  • ✅ Millau and Rialto bridges
  • ✅ Statemine
  • ✅ Statemint
  • ✅ Westmint
  • ❌ Rococo see note
  • ❌ Shell see note

NOTE: The chains not building yet are due to file tree structures and not issues in srtool itself.

Acala

  • ✅ Karura

Moonbeam

  • ✅ Moonriver

Plasm

  • ✅ Shiden

v0.9.13

29 Jun 10:24
b7f99fb
Compare
Choose a tag to compare

⚠️ Despite the large number of changes, this version is paving the way for the next one and it is NOT recommended using this version. Use either nightly-2021-03-15 or jump ahead and use 1.53.0.

Base image & Rust compiler

  • version bump to 0.9.13
  • switch rustc to nightly-2021-06-20
  • engrave the image name into the image itself
  • switch the base image from ubuntu:bionic to ubuntu:20.04
  • install new dependencies (tera-cli and subwasm) using the prebuilt debian packages
  • swap the previous ipfs calls for calls to subwasm
  • swap the previous substrate-runtime-hasher calls for calls to subwasm

More Output & compressed runtimes

  • new analyse.sh script to provide the output required for both uncompressed and compressed runtimes
  • add support for compressed runtimes in the build script
  • new script to get the context
  • restructure the json output while keeping it mostly compatible (gen has been renamed to generator). New keys are info, context and runtimes
  • replace the previous handcrafting of the text output by a call to tera-cli driven by a swappable template

Documentation

  • generate a markdown file form the source asciidoc
  • doc update
  • new logos
  • new samples

Fixes

  • fetch the cargo version from the runtime crate vs the Cargo.toml in the root of the repo previously

v0.9.10

29 Jun 10:23
Compare
Choose a tag to compare

Starting at tag v0.8.30 of the polkadot repo, a new feature is required for both Polkadot and Kusama.
This new feature is however not supported for testnets such as Westend or Rococo.
In this version of the build script, we check what runtime we build and pass the appropriate features accordingly.
So in short, this version allow building westend and rococo runtimes as well (again).

v0.9.9

29 Jun 10:22
Compare
Choose a tag to compare

Fix bug resulting in a colored output despite using the --app flag

v0.9.8

29 Jun 10:22
Compare
Choose a tag to compare

New features: version detection, ipfs hash and new /out volume [chevdor]

Version 0.9.7 will work only with polkabot version 0.8.30 and above. Version 0.9.8 detects the version and apply the appropriate features.
This version fixes a few bugs and add the ipfs hash to the output.

v0.9.7

29 Jun 10:20
Compare
Choose a tag to compare

IMPORTANT: This is a mandatory version to build runtimes for Polkadot/Kusama/Westend releases after v0.8.29.

  • new script version (0.9.7) to conform with paritytech/polkadot#2522
  • new infoand version scripts. Those pass additional arguments to jq. So you can run srtool info -cM for instance, for a CI friendly output
  • new rustc nigtly version: nightly-2021-03-15

The image can be found at https://hub.docker.com/layers/chevdor/srtool/nightly-2021-03-15/images/sha256-ea0740f750a0e7e5642cf67812f545900967662a0534ff1c8de3b35b0ba7432c?context=repo

v0.9.6

29 Jun 10:20
Compare
Choose a tag to compare

IMPORTANT: This is the last version of srtool that will allow building polkadot runtimes up to 0.8.29.

Changes

  • Upgrade to rustc nightly-2021-02-25
  • new version of the script to support:
    • new --app flag: it shows the user's logs but also shows the json output at the end
    • new version script
  • Add the image version in the repo: RUSTC_VERSION
  • prepend 0x to the sha256 hash
  • json output is now on a single line

Upgrade

To upgrade, make sure that you replace export RUSTC_VERSION=nightly-2020-10-27 by export RUSTC_VERSION=nightly-2021-02-25in your.bash{rc, _profile}`.

Then close and restart your shell.

Finally, run srtool again. You may for instance run srtool version to ensure you have the latest version.

v0.9.5

29 Jun 10:19
Compare
Choose a tag to compare

Short version

This version bumps up srtool to v0.9.5.
It also bumps up the rustc compiler version to a version required by the new polkadot/substrate runtime.

This upgrade is mandatory if you want to use srtool after polkadot v0.7.24.

Longer version

In order to update your srtool to a smarter version that understand the new kusama, you need to EDIT the alias/function your stored in your .bashrc or .bash_profile file (assuming your followed the readme).

After editing it, you need to either close and re-open your shell or source it with source ~/.bash_profile.

This alias contained the string export RUSTC_VERSION=nightly-2019-12-07. You need to replace nightly-2019-12-07 by nightly-2020-03-12. That will bump, not only your srtool to v0.9.5 but also the rustc version of srtool to a recent nightly version.

You do not need and should not change the rest of the alias.

NOTE: Unfortunately, using the stable rustc 1,42 seems to be not enough.

Before running srtool again, I strongly suggest deleting your target/srtool folder.

Running srtool on the polkadot tag v0.7.24 should give you the following after some ⏲︎:

✨ Your Substrate WASM Runtime is ready! ✨
Summary:
  Generator  : srtool v0.9.5
  GIT commit : c03658dc8483181a224c2bd48629a84adeb7b224
  GIT tag    : v0.7.24
  GIT branch : heads/v0.7.24
  Time       : 2020-03-14T19:45:35Z
  Rustc      : rustc 1.43.0-nightly (c20d7eecb 2020-03-11)
  Size       : 1393 KB (1426837 bytes)
  Content    : 0x0061736d0100000001d0023060037f7f...6565636220323032302d30332d313129
  Package    : kusama-runtime
  Proposal   : 0x18dbb7f3b2033b89200b7c04622eeee91eb3b35ed29a6712267a7dbbb22ce02f
  SHA256     : 834a21cb58313f4b3e240dc479a83a27e30934cae4dd9fc6f943ff3da7d58c61
  Wasm       : ./target/srtool/release/wbuild/kusama-runtime/kusama_runtime.compact.wasm

v0.9.3

29 Jun 10:18
Compare
Choose a tag to compare
  • Fix an issue in the command recommend to upgrade