Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow override of parachain pallet ID and
authorize_upgrade
call ID (…
…#12) * allow override of parachain pallet and call IDs * move doc to adoc * restrucutre the adoc
- Loading branch information
1 parent
d7e6cb9
commit 4b3319b
Showing
5 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
Similar to https://github.com/chevdor/subwasm[subwasm], the parachain pallet ID and the `authorize_upgrade` call ID can be overriden by `PARACHAIN_PALLET_ID` and `AUTHORIZE_UPGRADE_PREFIX` environmental variables, respectively. It will affect the generated proposal hash `parachain_authorize_upgrade_hash`. | ||
|
||
If unset, the two envs will have the following default values: | ||
- `PARACHAIN_PALLET_ID`: `0x01` | ||
- `AUTHORIZE_UPGRADE_PREFIX`: `0x03` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Srtool build | ||
|
||
on: push | ||
|
||
jobs: | ||
srtool: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
chain: ["statemine", "westmint"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Srtool build | ||
id: srtool_build | ||
uses: chevdor/srtool-actions@v0.4.0 | ||
env: | ||
# optional: will override the parachain pallet ID and authorize_upgrade call ID, | ||
# which will result in a different parachain_authorize_upgrade_hash | ||
PARACHAIN_PALLET_ID: 0x1e | ||
AUTHORIZE_UPGRADE_PREFIX: 0x02 | ||
with: | ||
chain: ${{ matrix.chain }} | ||
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime | ||
- name: Summary | ||
run: | | ||
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.chain }}-srtool-digest.json | ||
cat ${{ matrix.chain }}-srtool-digest.json | ||
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters