-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Parachains
https://poc-2.polkadot.io/#/storage > parachains > activeParachains()
Obtain Basic Adder Example by Rob (was in branch rh-simple-parachain) https://github.com/paritytech/polkadot/tree/master/polkadot/parachain/test-chains/basic_add or try fork of the Basic Adder by Adrian (apparently fixes compile errors)
Also try adder-collator in branch rh-simple-parachain (appears to have disappeared...). Run adder-collator binary with arguments to connect it to validators in the network, which also runs the relay chain OR try fork of the Basic Adder by Adrian (apparently fixes compile errors) https://github.com/adrianbrink/polkadot/tree/ab/fix_adder
Go to https://poc-2.polkadot.io/#/extrinsics
Select Account to deploy it
Either:
democracy > propose(proposal, value) > democracy > startReferendum(proposal, voteThreshold) > parachains > registerParachain(id, code, headerData), drag-and-drop / upload the compiled WASM binary from Rob or Adrian to Parachain Code, enter headData, Super majority approval, balance/deposit: 100,000
OR
democracy > propose(proposal, value) > parachains > registerParachain(id, code, headerData), drag-and-drop / upload the compiled WASM binary from Rob or Adrian to Parachain Code, enter headData, ...
Note: View Minimum Deposit that's required at https://poc-2.polkadot.io/#/storage > democracy > minimumDeposit() > click "+"
NOTE: Remember the REFERENDUM_ID
View Referendum Info / Count https://poc-2.polkadot.io/#/storage > democracy > referendumInfoOf(referendum) > enter REFERENDUM_ID > click "+" (then just wait for it to appear) https://poc-2.polkadot.io/#/storage > democracy > referendumCount() >click "+""
View Voting Period at https://poc-2.polkadot.io/#/storage > democracy > votingPeriod() > click "+"
View Launch Period at https://poc-2.polkadot.io/#/storage > democracy > launchPeriod() > click "+" Alternatively view the list of "proposedReferenda" or "activeReferenda" with Polka-UI https://github.com/paritytech/polka-ui or http://polkadash.io/
View Polkadot Node logs until it says Super majority approval Send transaction and query the Parachain Basic Adder (Test) Parachain is too simple for transactions to be executed against it, as it's a minimal test parachain for adding a number. References:
Above summary has been built by @luke based on notes I've taken by following comments made by @rphmeier, @jaco, @adrianbrink in #polkadot-watercooler