• Mark Tyneway's avatar
    contracts-bedrock: upgrade script for post sherlock · 1bd9a804
    Mark Tyneway authored
    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
    ```
    1bd9a804
Name
Last commit
Last update
..
actor-tests Loading commit data...
atst Loading commit data...
balance-monitor Loading commit data...
chain-mon Loading commit data...
common-ts Loading commit data...
contracts Loading commit data...
contracts-bedrock Loading commit data...
contracts-periphery Loading commit data...
core-utils Loading commit data...
data-transport-layer Loading commit data...
fault-detector Loading commit data...
hardhat-deploy-config Loading commit data...
message-relayer Loading commit data...
migration-data Loading commit data...
replica-healthcheck Loading commit data...
sdk Loading commit data...