Skip to content

Instantly share code, notes, and snippets.

@laboon
Last active August 7, 2019 18:37
Show Gist options
  • Save laboon/a300c88bbf2152203ef31e070fa15e99 to your computer and use it in GitHub Desktop.
Save laboon/a300c88bbf2152203ef31e070fa15e99 to your computer and use it in GitHub Desktop.

Polkadot Governance Workshop

Connecting the Polkadot UI

https://polkadot.js.org/apps/#/

Go to Settings -> Custom Endpoint

In "remote node/endpoint to connect to", type ws://127.0.0.1:9944/ (note: will change!)

Click "Save & Reload"

Create an Account

Go to Accounts

Click "Add Account"

Give it a name (this is only local)

Enter a password

Click "Save"

Click "Create and Backup Account"

Save the generated JSON file. You can use this along with the password to regenerate your account later (although it will only contain DOTs on this blockchain)

Post your address (NOT your mnemonic phrase! Keep that secret!) as an issue on this gist and I will send you some DEV DOTs.

Vote on a Referendum

Click on Democracy -> Democracy Overview

Look at "Referenda" tab

Click "Vote" on referendum you wish to vote on

Two choices -> "Aye, I approve" (yes) or "Nay, I do not approve" (no)

Click Sign and Submit

Note that it needs supermajority to pass

If it passes, will take effect 20 blocks after end of voting

Generate a Simple Proposal

Click on Democracy -> Submit Proposal

Select the user you wish to propose as (note: they will need some DEV DOTs)

Under "Propose", select "balances"

Next to that, select "setBalance"

For who: Address, enter your address

For new_free, type 99999

For new_reserved, leave it at 0

For value, set it to 10 (this is the minimum to propose - you will get it back later)

Click Submit, then Sign and Submit

Seconding

Go to Democracy -> Democracy Overview

Click on "Second"

You can add your own DEV DOTs to make it more likely your proposal will become a referendum. Currently only one referendum is active at a time (per launch period)

Council

Click Council

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment