Skip to content

Conversation

@Zebedeusz
Copy link

@Zebedeusz Zebedeusz commented Aug 22, 2025

E2E tests of PoP functionalities:

  • storage initialization,
  • PoI flow,
  • PoI flow with custom transaction extensions.

Bandersnatch keys used in the tests were generated with the script in this PR: paritytech/verifiable#24

These tests are made to work with this runtime: https://github.com/paritytech/individuality-runtimes/pull/2 built with config attribute "testing", needed to disable bulletin chain communication - to fix.

Comment on lines 34 to 36
Sudo: {
key: defaultAccounts.alice.address,
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have sudo in polkadot and kusama

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, I will switch to governance origins

await fundAccount(peopleClient, defaultAccounts.alice.address)

const interveneTx = peopleClient.api.tx.mobRule.intervene(latestCaseIndex, { Truth: { True: null } })
const sudoInterveneTx = peopleClient.api.tx.sudo.sudo(interveneTx)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you need Alice as sudo to be able to submit this extrinsic with a root origin?

Normally, this would be done by injecting the desired call/origin into the scheduler pallet's storage for execution next block, but the People chain does not have that pallet available (unless PoP changes that).

Alternatively, you can send an XCM Transact from the relay chain to the people chain containing this mobRule.intervene extrinsic.
Check out sendXcmFromRelayToPeople in packages/shared/src/people.ts.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good help that! Thank you

@rockbmb
Copy link
Collaborator

rockbmb commented Oct 2, 2025

Let me know when you want a review!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants