Participate in Phala Network governance using PHA tokens and democratic processes.
Proposals cannot be revoked by the proposer, even if they never turn into a referendum. It is important to realize that there is no guarantee that PHA you use for proposing or seconding a proposal will be returned to that account in any given timeframe.On Phala Apps you can use the “Democracy” tab to make a new proposal. In order to submit a proposal, you will need to submit what’s called the preimage hash. The preimage hash is simply the hash of the proposal to be enacted. The easiest way to get the preimage hash is by clicking on the “Submit preimage” button and configuring the action that you are proposing. For example, if you wanted to propose that the account “Dave” would have a balance of 10 tokens your proposal may look something like the below image. The preimage hash would be
0xa50af1fadfca818feea213762d14cd198404d5496bca691294ec724be9d2a4c0
. You can copy this preimage hash and save it for the next step. There is no need to click Submit Preimage at this point, though you could. We’ll go over that in the next section.
undelegate
transaction must be sent from the account that you wish to clear of its delegation. For example, if Alice has delegated her tokens to Bob, Alice would need to be the one to call the undelegate
transaction to clear her delegation.
The easiest way to do this is from the “Extrinsics” tab of Polkadot Apps. Select the “democracy” pallet and the “undelegate” transaction type. Ensure that you are sending the transaction from the account you want to clear of delegations. Click “Submit transaction” and confirm.
Nay 0.1x => 0 Nay 1x => 1 Nay 2x => 2 Nay 3x => 3 Nay 4x => 4 Nay 5x => 5 Nay 6x => 6 Aye 0.1x => 128 Aye 1x => 129 Aye 2x => 130 Aye 3x => 131 Aye 4x => 132 Aye 5x => 133 Aye 6x => 134At first glance, it may be difficult to interpret what you voted on. We need to take a step back and consider the “voting data” at the binary level. The vote is stored as a byte using a bitfield data structure and displayed on the block explorer as a decimal integer. The bitfield stores both the conviction and aye/nay boolean, where the boolean is represented using the MSB of the byte. This would mean that the grouping of the 7 remaining bits is used to store the conviction.