Skip to content

Commit

Permalink
Update maintain-guides-polkadot-opengov.md (#5081)
Browse files Browse the repository at this point in the history
Added step-by-step instructions for submitting a preimage
  • Loading branch information
loopedresolve authored Aug 7, 2023
1 parent 191e6dc commit eb3e4ca
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
Binary file modified docs/assets/governance/opengov-submit-preimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 23 additions & 9 deletions docs/maintain/maintain-guides-polkadot-opengov.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,33 @@ from the treasury at once.

### Submitting a Preimage

The act of creating a proposal is split from submitting the preimage for the proposal since the
storage cost of submitting a large preimage could be expensive. Allowing the preimage submission to
come as a separate transaction means that another account could submit the preimage for you and pay
the fee. The example below demonstrates the creation of a preimage on Kusama (**the same procedure
applies to Polkadot**). To propose that a remark "Expect Chaos!" be added to the blockchain, the
preimage hash would be `0x8ac3f722caf7677254e25ca4ad77d533ca893c7d2ad4009e258d749f2004ef94`.
The act of creating a proposal is split from submitting the preimage for the proposal since the storage cost of submitting a large preimage could be expensive. Allowing the preimage submission to come as a separate transaction means that another account could submit the preimage for you and pay the fee. The example below demonstrates the creation of a preimage to propose and approve a spend of treasury funds.

![submit preimage](../assets/governance/opengov-submit-preimage.png)

After the preimage is submitted successfuly on-chain, Polkadot-JS UI lists it under the tab of
Governance > Preimages.
Follow the steps below to submit a preimage as shown in the screenshot above.

1. Navigate to Governance -> Referenda.
2. Click on the "Add preimage" button.
3. From the *propose* drop-down field, select `treasury`.
4. From the unlabeled drop-down field to the right of the *propose* drop-down field, select `spend(amount, beneficiary)`.
5. In the `amount: Compact<u128> (BalanceOf)` text field, enter the spend amount.
6. The `beneficiary: MultiAddress (AccountIdLookupOf)` drop-down field will have `Id` selected by default. Select the beneficiary from the `Id: AccountId` drop-down field.


:::info

Copy the `preimage hash` value before clicking the "Submit preimage" button.

:::

7. Click the "Submit preimage" button.

After the preimage is submitted successfully on-chain, Polkadot-JS UI lists it under the tab of
Governance -> Preimages.



![preimage](../assets/governance/opengov-preimage-submitted.png)

### Submitting a Proposal

Expand Down

0 comments on commit eb3e4ca

Please sign in to comment.