-
Notifications
You must be signed in to change notification settings - Fork 384
Cleanup PolygonPessimisticConsensus 1 #575
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
base: feature/v12
Are you sure you want to change the base?
Conversation
| /* eslint-disable no-unsafe-optional-chaining */ | ||
| /* eslint-disable @typescript-eslint/no-unused-expressions */ | ||
| /* eslint-disable @typescript-eslint/no-use-before-define */ | ||
| /* eslint-disable no-plusplus, no-await-in-loop */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some things re this file:
- The diff is missleading. I havent added code, just removed. And some very very minor renaming and changes.
- To avoid more complexity in here, leaving this as TODO. This file is named
UpgradeToPPbut there is ashould create rollup type validium & migrate to ALGatewaytest. I guess that test doesn't belong here. If so, will move it in a different PR.
|
|
||
| describe('Polygon Rollup Manager with Polygon Pessimistic Consensus', () => { | ||
|
|
||
| describe('Polygon Rollup Manager with zkevm etrog migration to ECDSA Multisig with real prover', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this, since this test contains migration zkevm etroc to ECDSA as well, not just to PP.
| await polTokenContract.transfer(trustedSequencer, ethers.parseEther('1000')); | ||
| }); | ||
|
|
||
| it('should check the initialized parameters', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed this logic since it is already tested here: https://github.com/agglayer/agglayer-contracts/blob/feature/v12/test/contractsv2/PolygonRollupManager.test.ts#L225-L256 It was a copy paste, so no need to be duplicated.
This PR is part of a series of multiple PRs cleaning up the legacy
PolygonPessimisticConsensus. All code referencing such feature is removed. This can be done since there are noPolygonPessimisticConsensusdeployed in any chain (mainnet, testnets, etc), no migrations to/fromPolygonPessimisticConsensusare expected in the future and no new deployment with such types will happen in the future.Since the changes are rather big for a single PR, more PRs will follow up addressing the following in parts:
NOTE: Do not merge this PR until feature/v13 branch is created.