Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Mnemonics in E2E Tests #144

Open
rabi-siddique opened this issue Oct 28, 2024 · 0 comments
Open

Updating Mnemonics in E2E Tests #144

rabi-siddique opened this issue Oct 28, 2024 · 0 comments
Assignees

Comments

@rabi-siddique
Copy link
Contributor

rabi-siddique commented Oct 28, 2024

Currently, we have written end-to-end (E2E) tests in the eocn-gov project to verify governance functionality for different wallet roles. Specifically, these tests ensure:

  1. Gov4 Wallet Functionality: The gov4 wallet can successfully propose and vote on governance questions.
  2. Gov3 Wallet Restrictions: The gov3 wallet is restricted from proposing and voting on questions via the UI, reflecting its revoked governance rights.

Updating Mnemonics for Testnets

While the tests work as expected, updating the environment for testnet deployments requires modifying the mnemonics associated with gov3 and gov4 wallets. These mnemonic updates are crucial whenever Economic Committee (EC) changes are deployed to testnets. The relevant mnemonics are located in the test code, specifically in the object linked here: Mnemonic Configuration in utils.js.

Currently, this configuration looks like:

gov3Phrase: Cypress.env('GOV4_PHRASE'),
gov4Phrase: Cypress.env('GOV3_PHRASE'),

However, when deploying to testnets, this should be updated as follows:

gov3Phrase: Cypress.env('GOV3_PHRASE'),
gov4Phrase: Cypress.env('GOV4_PHRASE'),

This mnemonic switch is required to reflect the updated governance roles:

  • Gov4 will be assigned as the new Economic Committee (EC) member with active governance rights.
  • Gov3 will assume the role of the former EC member, who no longer has the authority to propose or vote on governance questions.

Essentially, we will update all sections of the code that include the comment // UNTIL https://github.com/Agoric/dapp-econ-gov/issues/144 in #142.

@rabi-siddique rabi-siddique self-assigned this Oct 28, 2024
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

No branches or pull requests

1 participant