Skip to content

benchmark cost of superchain upgrade (OPCM - Upgrade 13) #13835

@maurelian

Description

@maurelian

We should benchmark the cost of the opcm.upgrade() method given the number of chains we'll want to upgrade at once for cycle 34, since deploying new contracts is expensive. We want to make sure that if we're near the block gas limit we know sooner rather than later.

This will require expanding the existing test_upgrade_succeeds test so that it can read all standard chains from the SCR and upgrade them all at once.

Rather than adding this to Benchmarks.t.sol this should simply be done by measuring the cost of the call to opcm.upgrade() and failing if the cost exceeds some amount of gas (for now lets just use 15MM).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions