owned this note
owned this note
Published
Linked with GitHub
I am building a runtime for https://github.com/polkadot-fellows/runtimes/issues/36.
## Reproduce
- See https://github.com/kianenigma/polkadot/tree/kiz-staking-patch-9430. Compare this against the 9430 release to make sure it only has the appropriate `diff`:
- https://github.com/paritytech/polkadot/compare/release-v0.9.43...kianenigma:polkadot:kiz-staking-patch-9430?expand=1
- build https://github.com/kianenigma/polkadot @ `c9cb340` with `srtools` version `1.70.0`.
- eg. `srtool-cli build --package kusama-runtime --runtime-dir ./runtime/kusama`
- Or more detailed, thanks to @chevdor:
```bash
export RUNTIME=kusama # polkadot | westend
# Docker are up and running, some issues have been found with podman
cd /tmp
git clone git@github.com:kianenigma/polkadot.git
cd polkadot
git checkout kiz-staking-patch-9430
git log -n1
# shows commit `c9cb3408f1aa64a8e472f48f747b7c331d3e2bc9`
srtool build --engine docker -p $RUNTIME-runtime -r runtime/$RUNTIME
```
You should come to the following output:
### Westend
```
🏋️ Runtime size: 1.245 MB (1,305,465 bytes)
🗜 Compressed: Yes, 78.98%
✨ Reserved meta: OK - [6D, 65, 74, 61]
🎁 Metadata version: V14
🔥 Core version: westend-9431 (parity-westend-0.tx22.au2)
🗳️ system.setCode hash: 0xdde987f895f65622c5e578d0b84fa4e2282835b5c84cf9533ea257bb48e0c1f4
🗳️ authorizeUpgrade hash: 0x8dfe9ad2685d0e062f4d999c6f99ea221fbfc5837801482a5f4d885284107e37
🗳️ Blake2-256 hash: 0xb51ea6e47d35fd03870c4809c8c8ea081976393dfabd0c55e121e62bb6f2aced
📦 IPFS: https://www.ipfs.io/ipfs/Qmdib7SJynDQVm7g1maJ4dWVtYWHmkQXRW1yDfLzc4e69R
```
### Kusama
```
🏋️ Runtime size: 1.414 MB (1,482,846 bytes)
🗜 Compressed: Yes, 79.08%
✨ Reserved meta: OK - [6D, 65, 74, 61]
🎁 Metadata version: V14
🔥 Core version: kusama-9431 (parity-kusama-0.tx23.au2)
🗳️ system.setCode hash: 0x70b3593847944d06f5a4e45b0775dc1bf828444e8589e15cd301b0cd50a339ab
🗳️ authorizeUpgrade hash: 0x3795c29d6b1e94a3b0b9945686f68bf458ef541855516e8e42e44079c08a2514
🗳️ Blake2-256 hash: 0xf59bdc04d20eda7f30e6cbda80b0d1b467a69167390479b9a4ca54409f027d90
📦 IPFS: https://www.ipfs.io/ipfs/QmU7RAkef7bdPzKXDq3Q1MFRDRA4tVGMTLZEqRLcaCRvdW
```
### Polkadot
```
🏋️ Runtime size: 1.413 MB (1,481,776 bytes)
🗜 Compressed: Yes, 78.84%
✨ Reserved meta: OK - [6D, 65, 74, 61]
🎁 Metadata version: V14
🔥 Core version: polkadot-9431 (parity-polkadot-0.tx24.au0)
🗳️ system.setCode hash: 0xb0662506ffa4f28284ba8531c5246777927995253655258a5c4d00d74a56b2b0
🗳️ authorizeUpgrade hash: 0x9066bbc134ae69a2ec7034312a49950c5b2b5b0415d17148d03796ea9c189202
🗳️ Blake2-256 hash: 0x18ddfc15895641e2ef68d72514db282e1bc26e5922be51fc0f5adb0cb66f79f8
📦 IPFS: https://www.ipfs.io/ipfs/QmbUBD9C475J6P19fGXW9QRNkQra4dVWE4TkrfLCJe3Q9T
```
For all 3 runtimes, the metadata changes should ONLY be to `System.Version`:
```
[≠] pallet 0: System -> 1 change(s)
- constants changes:
[≠] Version: [ 32, 112, 111, 108, 107, 97, 100, 111, 116, 60, 112, 97, 114, 105, 116, 121, 45, 112, 111, 108, 107, 97, 100, 111, 116, 0, 0, 0, 0, 215, 36, 0, ... ]
[Value([Changed(29, U8Change(215, 214))])]
SUMMARY:
- Compatible.......................: true
- Require transaction_version bump.: false
```
## Submission
```
[opengov-cli] ./opengov-cli submit-referendum -p ksm_call -n kusama -t whitelisted-caller master ✱
No enactment time specified. Defaulting to `After(10)`.
Specify an enactment time with `--at <block>` or `--after <blocks>`.
Submit the preimage for the Fellowship referendum:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/extrinsics/decode/0x2000882c0070b3593847944d06f5a4e45b0775dc1bf828444e8589e15cd301b0cd50a339ab
Open a Fellowship referendum to whitelist the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/extrinsics/decode/0x17002b0f024fab7f6f395c4271910db0d5d5bc12f2699f93a019cbca458b8fa2a4b2e7b11622000000010a000000
Preimage for the public referendum too large (1482860 bytes). Not included in batch.
A file was created that you can upload in `preimage.note_preimage` in Apps UI.
Submission should have the hash: 0x5630fd3611946ddcccb52b8e2140e0887ac9976293ea5229c0af65b0fd91eac4
Open a public referendum to dispatch the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/extrinsics/decode/0x15002b0d02a0b2e9801bae436106b275b0bc80c355627f7278306544841ff8d0ab9fc147aa66a01600010a000000
Batch to submit on Kusama Relay Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/extrinsics/decode/0x18040c2000882c0070b3593847944d06f5a4e45b0775dc1bf828444e8589e15cd301b0cd50a339ab17002b0f024fab7f6f395c4271910db0d5d5bc12f2699f93a019cbca458b8fa2a4b2e7b11622000000010a00000015002b0d02a0b2e9801bae436106b275b0bc80c355627f7278306544841ff8d0ab9fc147aa66a01600010a000000
```
---
```
[opengov-cli] ./opengov-cli submit-referendum -p dot_call -n polkadot -t whitelisted-caller --at 17840000 master ✭ ✱
Submit the preimage for the Fellowship referendum:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x2b00d41f0003010003082f00000603c23d126d216f881700b0662506ffa4f28284ba8531c5246777927995253655258a5c4d00d74a56b2b0
Open a Fellowship referendum to whitelist the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x3d003e0102cc3ffc59fca8d91492e411509354a5ca42acdde1d74038f8e049e110c67f01d635000000010a000000
Preimage for the public referendum too large (1481790 bytes). Not included in batch.
A file was created that you can upload in `preimage.note_preimage` in Apps UI.
Submission should have the hash: 0xd08755656009d14804256ed6a03200ffc47c6339925b96c40709ade1727e13b7
Open a public referendum to dispatch the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/extrinsics/decode/0x1500160d02b3567e1b3e7d1c55ab64a6811833c6568c887139761e7ff14d94c22ececbab9e389c16000080371001
Batch to submit on Polkadot Relay Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/extrinsics/decode/0x1a04041500160d02b3567e1b3e7d1c55ab64a6811833c6568c887139761e7ff14d94c22ececbab9e389c16000080371001
Batch to submit on Polkadot Collectives Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x2804082b00d41f0003010003082f00000603c23d126d216f881700b0662506ffa4f28284ba8531c5246777927995253655258a5c4d00d74a56b2b03d003e0102cc3ffc59fca8d91492e411509354a5ca42acdde1d74038f8e049e110c67f01d635000000010a000000
```