You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ opengov-cli submit-referendum --proposal preimage.hex --network polkadot --track whitelisted-caller --after 100 --output-len-limit 1000 --output AppsUiLink
Submit the preimage for the Fellowship referendum:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x2b00d41f0004010004082f0000060342c78b76216f8817007a52bbb0760cc912f66fe3144fe009483e3084ccf3148d1163d25d81b88de234
Open a Fellowship referendum to whitelist the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x3d003e02021f62f8c5c6ec8aa23a6c6b66934e673ff263b9bff333a62d681cdde6ee34cf1b35000000010a000000
Submit the preimage for the public referendum:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/extrinsics/decode/0x0a00c90417031a020c630003000100a90f030c2f00000602b25ec1b65946c9015302b1ca223c39210800000000000000000000e1f50500000000000000000000000000a031a95fe3000000000000000000000000000000000000000000000000000000e40b5402000000000000000000000000000000000000000000000000000000000064a7b3b6e00d00000000000000002000630003000100a10f030c2f000006025e45e4240094000404405fbc5c7ba58845ad1f1a9a7c5bc12fad4086b7de790300000000000000000000002000630003000100a10f03142f00000602e2b62e3a7953c03501020109070400204dfe37731e8e2b4866ad0da9a17c49f434542c3477c5f914a3349acd88ba1a010b00f0ab75a40d200006028673d63a79534c351302010907041445746865720c45544812002000
Open a public referendum to dispatch the call:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/extrinsics/decode/0x1500160d029e75507531c432fe9b1c5e33c918438342d2e23262de92375151f379258e29a1320100000164000000
Batch to submit on Polkadot Relay Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-rpc.dwellir.com#/extrinsics/decode/0x1a04080a00c90417031a020c630003000100a90f030c2f00000602b25ec1b65946c9015302b1ca223c39210800000000000000000000e1f50500000000000000000000000000a031a95fe3000000000000000000000000000000000000000000000000000000e40b5402000000000000000000000000000000000000000000000000000000000064a7b3b6e00d00000000000000002000630003000100a10f030c2f000006025e45e4240094000404405fbc5c7ba58845ad1f1a9a7c5bc12fad4086b7de790300000000000000000000002000630003000100a10f03142f00000602e2b62e3a7953c03501020109070400204dfe37731e8e2b4866ad0da9a17c49f434542c3477c5f914a3349acd88ba1a010b00f0ab75a40d200006028673d63a79534c351302010907041445746865720c455448120020001500160d029e75507531c432fe9b1c5e33c918438342d2e23262de92375151f379258e29a1320100000164000000
Batch to submit on Polkadot Collectives Chain:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io#/extrinsics/decode/0x2804082b00d41f0004010004082f0000060342c78b76216f8817007a52bbb0760cc912f66fe3144fe009483e3084ccf3148d1163d25d81b88de2343d003e02021f62f8c5c6ec8aa23a6c6b66934e673ff263b9bff333a62d681cdde6ee34cf1b35000000010a000000
Storage Update
The fee charged to Asset Hub users must be updated via a storage update as it is a storage variable defined in the runtime here. The value is a Balance(Compact<u128>) little-endian integer which is SCALE encoded.
It is generated in the Snowbridge control tool during preimage generation.
You can use the typescript below to verify. Install deno to run: https://deno.com/
#!/usr/bin/env -S deno run --allow-env
import{xxhashAsHex}from"npm:@polkadot/util-crypto";import{BN}from"npm:@polkadot/util";console.log("Storage Key:",xxhashAsHex(":BridgeHubEthereumBaseFee:",128,true),);console.log("Storage Value:",newBN("86b7de79030000000000000000000000","hex","le",).toString(),);
Preview the resulting fee-lowering call on Bridge Hub
Preview the resulting fee-lowering call on Asset Hub
Preview the resulting eth create call on Asset Hub
Preview the resulting eth metadata creation call on Asset Hub
Testing
Tested using the Snowbridge runtime upgrade guide from step 3 onwards. Steps 1-2 which build the preimage are described in the section above using the Snowbridge control tool.
The Proposal
~6.12 DOT
to~1.49 DOT
.15000 Gwei
.Ether
, Symbol =ETH
, Decimals =18
.Referenda Links
https://polkadot.subsquare.io/referenda/1400
https://polkadot.polkassembly.io/referenda/1400
OpenGov
Storage Update
The fee charged to Asset Hub users must be updated via a storage update as it is a storage variable defined in the runtime here. The value is a
Balance
(Compact<u128>
) little-endian integer which is SCALE encoded.It is generated in the Snowbridge control tool during preimage generation.
You can use the typescript below to verify. Install deno to run: https://deno.com/
Building the Preimage
https://github.com/Snowfork/snowbridge/tree/main/control#governance-tools
Testing
Tested using the Snowbridge runtime upgrade guide from step 3 onwards. Steps 1-2 which build the preimage are described in the section above using the Snowbridge control tool.
https://docs.snowbridge.network/operations/test-runtime-upgrades
The text was updated successfully, but these errors were encountered: