Skip to content

contracts-bedrock: upgrade script for post sherlock#5292

Merged
tynes merged 4 commits intodevelopfrom
feat/sherlock-upgrade
Mar 30, 2023
Merged

contracts-bedrock: upgrade script for post sherlock#5292
tynes merged 4 commits intodevelopfrom
feat/sherlock-upgrade

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Mar 29, 2023

Description

Includes a complete upgrade script that can be ran for upgrading any op-stack based chain that was deployed before the sherlock audit fixes were all included.

The script is ran with the following command:

forge script \
    scripts/upgrades/PostSherlock.s.sol \
    --rpc-url $ETH_RPC_URL \
    --private-key $PRIVATE_KEY \
    --sig 'run(address,address)' \
    $SAFE_ADDRESS \
    $PROXY_ADMIN_ADDRESS

Signers should run the script and be sure to add any required flags so that hardware wallets can be used. The script will submit a single transaction that approves the upgrade and then checks to see if there have been enough approvals and then triggers the upgrade if there have been enough approvals.

This comes with test coverage but requires a goerli RPC url. To run the tests, use the following command:

forge test --contracts scripts/upgrades --rpc-url $ETH_RPC_URL

@tynes tynes requested a review from a team as a code owner March 29, 2023 17:58
@tynes tynes requested a review from maurelian March 29, 2023 17:58
@changeset-bot
Copy link

changeset-bot bot commented Mar 29, 2023

⚠️ No Changeset found

Latest commit: 859bb8e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Mar 29, 2023

Deploy Preview for opstack-docs canceled.

Name Link
🔨 Latest commit 859bb8e
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/6425938b47426b00085f4dd2

Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Comments - Nice work!

Copy link
Contributor

@clabby clabby left a comment

Choose a reason for hiding this comment

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

LGTM- Double checked the versions and addresses for the goerli implementations / proxies and checks out. Agree w/ @refcell that approvals should be in memory, but given that it's a script I don't mind if we keep it as is. Deferring to @maurelian for explicit approval.

tynes and others added 3 commits March 30, 2023 06:33
Includes a complete upgrade script that can be ran
for upgrading any op-stack based chain that was deployed
before the sherlock audit fixes were all included.

The script is ran with the following command:

```bash
forge script \
    scripts/upgrades/PostSherlock.s.sol \
    --rpc-url $ETH_RPC_URL \
    --private-key $PRIVATE_KEY \
    --sig 'run(address,address)' \
    $SAFE_ADDRESS \
    $PROXY_ADMIN_ADDRESS
```

Signers should run the script and be sure to add any required
flags so that hardware wallets can be used. The script will
submit a single transaction that approves the upgrade and
then checks to see if there have been enough approvals and
then triggers the upgrade if there have been enough approvals.

This comes with test coverage but requires a goerli RPC url.
To run the tests, use the following command:

```bash
forge test --contracts scripts/upgrades --rpc-url $ETH_RPC_URL
```
@tynes tynes force-pushed the feat/sherlock-upgrade branch from baef049 to dd22a77 Compare March 30, 2023 13:33
@tynes
Copy link
Contributor Author

tynes commented Mar 30, 2023

Something is wrong with the cache in CI, getting disk corruption errors. Am currently running the integration test build locally to debug

@tynes tynes merged commit b315cda into develop Mar 30, 2023
@tynes tynes deleted the feat/sherlock-upgrade branch March 30, 2023 14:14
trianglesphere added a commit that referenced this pull request Mar 31, 2023
…-upgrade"

This reverts commit b315cda, reversing
changes made to f738fcf.
mergify bot added a commit that referenced this pull request Mar 31, 2023
Revert "Merge pull request #5292 from ethereum-optimism/feat/sherlock-upgrade"
tynes added a commit that referenced this pull request Mar 31, 2023
tynes added a commit that referenced this pull request Apr 1, 2023
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.

3 participants