mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 00:17:56 +00:00
ce2403808b
* WIP Release notes generation and templates * WIP Add new sections to the template * WIP renaming and wip * Fix runtime template * Add doc, NO_CACHE and tweaking of the templates * Renaming cl into cumulus to make room for the polkadot and substrate * Fetch data from Substrate and Polkadot * WIP convert bash script to ruby * Convert to Ruby * Fix host function delection * Extract priority to a macro * Fix misc changes * Draft release workflow * Fix runtime dir * Add ENV to ignore runtimes * Install tooling separately * WIP troubleshooting - remove sudo * Minor formatting fixes * Fix workflow * Add missing dep * Linting * Fix changelog script * Add missing tera install * Use absolute paths * Fix path + cleanup * Fix changelog generation * Add missing pre-release ENV * Fix rust version ENV * Fix release notes path * Fix output * Fix runtime_dir for cumulus * Fix ENV substitutions * Fix styling * Debugging * Styling * Fix call to fetch the runtime version * Cleanup and doc * Delete sample .env * Update scripts/changelog/templates/change.md.tera Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> * Change XCM emoji marker for a ✉️ Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
{# This macro shows one runtime #}
|
|
{%- macro runtime(runtime) -%}
|
|
|
|
### {{ runtime.name | capitalize }}
|
|
|
|
{%- if runtime.data.runtimes.compressed.subwasm.compression.compressed %}
|
|
{%- set compressed = "Yes" %}
|
|
{%- else %}
|
|
{%- set compressed = "No" %}
|
|
{%- endif %}
|
|
|
|
{%- set comp_ratio = 100 - (runtime.data.runtimes.compressed.subwasm.compression.size_compressed / runtime.data.runtimes.compressed.subwasm.compression.size_decompressed *100) %}
|
|
<!-- commit : {{ runtime.data.commit }} -->
|
|
<!-- tag : {{ runtime.data.tag }} -->
|
|
<!-- branch : {{ runtime.data.branch }} -->
|
|
<!-- pkg : {{ runtime.data.pkg }} -->
|
|
```
|
|
🏋️ Runtime Size: {{ runtime.data.runtimes.compressed.subwasm.size | filesizeformat }} ({{ runtime.data.runtimes.compressed.subwasm.size }} bytes)
|
|
🔥 Core Version: {{ runtime.data.runtimes.compressed.subwasm.core_version }}
|
|
🗜 Compressed: {{ compressed }}: {{ comp_ratio | round(method="ceil", precision=2) }}%
|
|
🎁 Metadata version: {{ runtime.data.runtimes.compressed.subwasm.metadata_version }}
|
|
🗳️ system.setCode hash: {{ runtime.data.runtimes.compressed.subwasm.proposal_hash }}
|
|
🗳️ authorizeUpgrade hash: {{ runtime.data.runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }}
|
|
#️⃣ Blake2-256 hash: {{ runtime.data.runtimes.compressed.subwasm.blake2_256 }}
|
|
📦 IPFS: {{ runtime.data.runtimes.compressed.subwasm.ipfs_hash }}
|
|
```
|
|
{%- endmacro runtime %}
|