Skip to content

Add script for generating upgrade tx specs#673

Merged
geoknee merged 4 commits intomainfrom
upgrade-tx-spec-script
Sep 19, 2025
Merged

Add script for generating upgrade tx specs#673
geoknee merged 4 commits intomainfrom
upgrade-tx-spec-script

Conversation

@teddyknox
Copy link
Contributor

Description

Adds a set of scripts that make it easy to generate specifications for upgrade/proxy update transactions.
Tests

I manually compared the result of this script to previous specifications for upgrade/proxy update transactions, given the same input.

Additional context

Used to generate #672.

@teddyknox teddyknox requested review from a team as code owners April 22, 2025 11:37
@teddyknox teddyknox force-pushed the upgrade-tx-spec-script branch 2 times, most recently from 5d4346b to 9b6e587 Compare April 22, 2025 11:56
@teddyknox teddyknox changed the title Add script for generating upgrade txs Add script for generating upgrade tx specs Apr 22, 2025
@teddyknox teddyknox requested review from protolambda and tynes April 22, 2025 13:54
@teddyknox teddyknox force-pushed the upgrade-tx-spec-script branch from 9b6e587 to d0b3baa Compare April 22, 2025 16:36
@teddyknox teddyknox requested a review from sebastianst April 23, 2025 18:56
@emhane emhane added the H-interop Hardfork: change planned for Interop upgrade label Apr 24, 2025
@emhane emhane added the A-meta Area: changes in the contributor workflow and planning label Apr 24, 2025
Copy link
Contributor

@emhane emhane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a workflow for manually dispatching this script in ci pls?

@teddyknox teddyknox force-pushed the upgrade-tx-spec-script branch from d0b3baa to 099875a Compare April 28, 2025 17:08
@teddyknox
Copy link
Contributor Author

@emhane as a test? Or what would be the purpose?

@emhane
Copy link
Contributor

emhane commented Apr 28, 2025

@emhane as a test? Or what would be the purpose?

for creating new specs when needed and, yes, for not relying on manual test to check its validity

@teddyknox teddyknox force-pushed the upgrade-tx-spec-script branch 2 times, most recently from 3706ac1 to f6ebd7a Compare April 29, 2025 21:18
@teddyknox teddyknox requested a review from sebastianst April 30, 2025 12:42
@tynes
Copy link
Contributor

tynes commented Jul 8, 2025

I would love to merge this but ideally it uses uv instead of pip

@geoknee geoknee mentioned this pull request Sep 12, 2025
@teddyknox teddyknox force-pushed the upgrade-tx-spec-script branch from 33fdc79 to 8349d40 Compare September 16, 2025 15:11
@teddyknox
Copy link
Contributor Author

@geoknee I've updated it to use uv.

geoknee added a commit that referenced this pull request Sep 18, 2025
@geoknee geoknee mentioned this pull request Sep 18, 2025
@geoknee
Copy link
Contributor

geoknee commented Sep 18, 2025

@teddyknox check out #778 for a few more pointers.

sebastianst pushed a commit that referenced this pull request Sep 18, 2025
* fix jovian specs

We had generated the upgrade transactions with an account which had already been used

cast nonce 0x4210000000000000000000000000000000000004 --rpc-url=https://mainnet.optimism.io
1

This means the upgrade transactions would revert. There is already a contract at the address we were trying to deploy to.

* commit script to generate specs

This anticipates #673

* lint

* remove file

* whitespace nits
@teddyknox teddyknox force-pushed the upgrade-tx-spec-script branch from b93fca9 to 4eafb0d Compare September 19, 2025 00:11
@teddyknox teddyknox requested a review from geoknee September 19, 2025 05:04
@geoknee geoknee merged commit 0f25e5d into main Sep 19, 2025
5 checks passed
@geoknee geoknee deleted the upgrade-tx-spec-script branch September 19, 2025 09:24
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-meta Area: changes in the contributor workflow and planning H-interop Hardfork: change planned for Interop upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants