Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Comment thread
maurelian marked this conversation as resolved.
File renamed without changes.
39 changes: 39 additions & 0 deletions src/tasks/sep/049-rev-share-betanet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 049-rev-share-betanet: RevShare Upgrade and Setup for Betanet
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we gonna need to change the number here too?


Status: [READY TO SIGN]

## Objective

Upgrade proxies and setup RevShare contracts for the RevShare Betanet chain. This task:

1. Deploys all needed contract implementations:
- FeeVaults
- FeeSplitter
- L1Withdrawer (pointing to the FeesDepositor on L1)
- RevShareCalculator (pointing to the L1Withdrawer and the ChainFeesRecipient)
2. Upgrades the fee vault proxy implementations (SequencerFeeVault, BaseFeeVault, L1FeeVault, OperatorFeeVault) on the Betanet L2
3. Sets FeeSplitter predeploy to point to the new FeeSplitter implementation and initializes it with the RevShareCalculator address

Target chain:

- revshare-beta-0 (chainId: 420120033)
Copy link
Copy Markdown
Contributor

@0xOneTony 0xOneTony Jan 14, 2026

Choose a reason for hiding this comment

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

Should this change once we have the new betanet? ethereum-optimism/devnets#248 cc @maurelian

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IDK tbh. But we should probably hold off on merging this until we do know.


## Simulation & Signing

Simulation commands for each safe:

```bash
# For stacked simulation (recommended for validation):
just simulate-stack sep 049-rev-share-betanet <council|foundation>

# For individual simulation:
cd src/tasks/sep/049-rev-share-betanet
SIMULATE_WITHOUT_LEDGER=1 just --dotenv-path "$(pwd)"/.env --justfile ../../../justfile simulate <council|foundation>
```

Signing commands for each safe:

```bash
cd src/tasks/sep/049-rev-share-betanet
just --dotenv-path "$(pwd)"/.env --justfile ../../../justfile sign <council|foundation>
```
29 changes: 29 additions & 0 deletions src/tasks/sep/049-rev-share-betanet/VALIDATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Validation

This document can be used to validate the inputs and result of the execution of the upgrade transaction which you are
signing.

## Expected Domain and Message Hashes

Validate the domain and message hashes. These values should match both the values on your ledger and
the values printed to the terminal when you run the task.

> [!CAUTION]
>
> Before signing, ensure the below hashes match what is on your ledger.
>
> ### Nested Safe 1 (Foundation): `0xDEe57160aAfCF04c34C887B5962D0a69676d3C8B`
>
> - Domain Hash: `0x37e1f5dd3b92a004a23589b741196c8a214629d4ea3a690ec8e41ae45c689cbb`
> - Message Hash: `0x48875a3a381e995496f156badf1b1502ac5f185d4d443d1584208a792f505a9a`
>
> ### Nested Safe 2 (Security Council): `0xf64bc17485f0B4Ea5F06A96514182FC4cB561977`
>
> - Domain Hash: `0xbe081970e9fc104bd1ea27e375cd21ec7bb1eec56bfe43347c3e36c5d27b8533`
> - Message Hash: `0x96f45cbc005f87ecd5e71c20849cf0e5a872794d19d21ac6ba77732475069d1c`

## Task Calldata

```
0x82ad56cb00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000071241bbae674967dd523e621c272ea32cf33119a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e41a80dc3800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a1f4f424901e0773e68c714077bcdd5cf8bcec230000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000ed9b99a703bad32ac96fddc313c0652e379251fd00000000000000000000000000000000000000000000000000000000000c35000000000000000000000000005f077b4c3509c2c192e50b6654d924fcb8126a6000000000000000000000000000000000000000000000000000000000
```
5 changes: 5 additions & 0 deletions src/tasks/sep/049-rev-share-betanet/addresses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"420120033": {
"ProxyAdminOwner": "0x1eb2ffc903729a0f03966b917003800b145f56e2"
}
}
28 changes: 28 additions & 0 deletions src/tasks/sep/049-rev-share-betanet/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# RevShare Upgrade And Setup Configuration

templateName = "RevShareUpgradeAndSetup"

# L2 chains to target
l2chains = [{name = "revshare-beta-0", chainId = 420120033}]

safeAddress = "ProxyAdminOwner"

# RevShareContractsUpgrader address
revShareUpgrader = "0x71241bbae674967dd523e621c272ea32cf33119a"

# RevShare configurations (one per chain) - flattened arrays
portals = ["0xa1F4F424901e0773e68C714077bCDD5CF8BcEc23"]

chainFeesRecipients = ["0x5f077b4c3509C2c192e50B6654d924Fcb8126A60"]

# 2 ether
l1WithdrawerMinWithdrawalAmounts = [2000000000000000000]

# FeesDepositor address in mainnet
l1WithdrawerRecipients = ["0xed9B99a703BaD32AC96FDdc313c0652e379251Fd"]
l1WithdrawerGasLimits = [800000]

fallbackAddressesJsonPath = "src/tasks/sep/049-rev-share-betanet/addresses.json"

[addresses]
ProxyAdminOwner = "0x1eb2ffc903729a0f03966b917003800b145f56e2"
1 change: 1 addition & 0 deletions src/tasks/sep/054-rev-share-ink-soneium/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TENDERLY_GAS=16700000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 049-rev-share-ink-soneium: RevShare Upgrade and Setup for Ink Sepolia and Soneium Minato
# 054-rev-share-ink-soneium: RevShare Upgrade and Setup for Ink Sepolia and Soneium Minato

Status: [CANCELLED]

Expand All @@ -21,24 +21,20 @@ Target chains:

## Simulation & Signing

> **Note:** This task depends on prior tasks in the Sepolia stack (047, 048). The hashes in VALIDATION.md
> were generated using `simulate-stack` which simulates all tasks in sequence. Running `simulate` individually
> may show different hashes because it doesn't account for nonce increments from prior tasks.

Simulation commands for each safe:

```bash
# For stacked simulation (recommended for validation):
just simulate-stack sep 049-rev-share-ink-soneium <council|foundation>
just simulate-stack sep 054-rev-share-ink-soneium <council|foundation>

# For individual simulation:
cd src/tasks/sep/049-rev-share-ink-soneium
cd src/tasks/sep/054-rev-share-ink-soneium
SIMULATE_WITHOUT_LEDGER=1 just --dotenv-path "$(pwd)"/.env --justfile ../../../justfile simulate <council|foundation>
```

Signing commands for each safe:

```bash
cd src/tasks/sep/049-rev-share-ink-soneium
cd src/tasks/sep/054-rev-share-ink-soneium
just --dotenv-path "$(pwd)"/.env --justfile ../../../justfile sign <council|foundation>
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ the values printed to the terminal when you run the task.
> ### Nested Safe 1 (Foundation): `0xDEe57160aAfCF04c34C887B5962D0a69676d3C8B`
>
> - Domain Hash: `0x37e1f5dd3b92a004a23589b741196c8a214629d4ea3a690ec8e41ae45c689cbb`
> - Message Hash: `0x525fe8644760f20a75f3e4b4e33f7e980d3c16270a1aa01e724a6a0b9c3cb888`
> - Message Hash: `0x03d36afd7fe0dc086bc76d9ab6bcde4614d1aa1de4be905d69350fa61c9c6c32`
>
> ### Nested Safe 2 (Security Council): `0xf64bc17485f0B4Ea5F06A96514182FC4cB561977`
>
> - Domain Hash: `0xbe081970e9fc104bd1ea27e375cd21ec7bb1eec56bfe43347c3e36c5d27b8533`
> - Message Hash: `0x7aab487c69b9f7c565a696bec5c74ea6ae486eeb746dabc87e7182d0cc5bf0e7`
> - Message Hash: `0x4c5dba38b1b98ca0918f14515153b7fbf04fdafca57bf640ef1dc9a508261efd`

## Task Calldata

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ l1WithdrawerGasLimits = [800000, 800000]
ProxyAdminOwner = "0x1Eb2fFc903729a0F03966B917003800b145F56E2"

[stateOverrides]
# Foundation Upgrades Safe
0xDEe57160aAfCF04c34C887B5962D0a69676d3C8B = [
{key = "0x0000000000000000000000000000000000000000000000000000000000000005", value = 65}
]

# Security Council
0xf64bc17485f0B4Ea5F06A96514182FC4cB561977 = [
{key = "0x0000000000000000000000000000000000000000000000000000000000000005", value = 60}
{key = "0x0000000000000000000000000000000000000000000000000000000000000005", value = 61}
]

# Proxy Admin Owner
0x1Eb2fFc903729a0F03966B917003800b145F56E2 = [
{key = "0x0000000000000000000000000000000000000000000000000000000000000005", value = 47}
]