Skip to content

Conversation

@alrevuelta
Copy link
Collaborator

@alrevuelta alrevuelta commented Nov 25, 2025

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 no PolygonPessimisticConsensus deployed in any chain (mainnet, testnets, etc), no migrations to/from PolygonPessimisticConsensus are 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:

  • Updates in AgglayerManager and tests (this)
  • Update scripts and tools
  • Update previous version. As agreed in previous versions we will only keep things that are deprecated but still existing onchain.
  • Other cleanups.

NOTE: Do not merge this PR until feature/v13 branch is created.

@alrevuelta alrevuelta changed the base branch from main to feature/v12 November 25, 2025 17:01
/* 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 */
Copy link
Collaborator Author

@alrevuelta alrevuelta Nov 25, 2025

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 UpgradeToPP but there is a should create rollup type validium & migrate to ALGateway test. 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', () => {
Copy link
Collaborator Author

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 () => {
Copy link
Collaborator Author

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.

@alrevuelta alrevuelta marked this pull request as ready for review November 25, 2025 17:26
@alrevuelta alrevuelta changed the title Polpesconsensus clean1 Cleanup PolygonPessimisticConsensus 1 Nov 25, 2025
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.

2 participants