Skip to content

PoP tests#379

Open
Zebedeusz wants to merge 7 commits intoopen-web3-stack:masterfrom
Zebedeusz:zebedeusz/pop_tests
Open

PoP tests#379
Zebedeusz wants to merge 7 commits intoopen-web3-stack:masterfrom
Zebedeusz:zebedeusz/pop_tests

Conversation

@Zebedeusz
Copy link
Copy Markdown

@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 thread packages/networks/src/chains/people.ts Outdated
Comment on lines +34 to +36
Sudo: {
key: defaultAccounts.alice.address,
},
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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