Skip to content

op-core Extraction: Decouple monorepo from op-geth #20257

Open
26 of 28 issues completed
Open

Description

@sebastianst

Goal

Switch the optimism monorepo's Go services from depending on the op-geth fork of go-ethereum to upstream go-ethereum directly, without opening any upstream PRs. OP-Stack-specific code moves into new op-core/* packages.

Plan

Full analysis, rationale, and migration strategy: see docs/ai/opgeth-decoupling.md.

The plan is organised as sections §0–§13. Each sub-issue below references the relevant section(s).

Target package layout

Package Content
op-core/types/ DepositTx, PostExecTx, Receipt (OP-extended receipt)
op-core/fees/ RollupCostData, L1CostFunc, NewL1CostFuncFjord, OperatorCost, TxRollupCostData
op-core/params/ OptimismConfig, ChainConfig (embeds upstream), LoadChainConfig
op-core/superchain/ Moved verbatim from op-geth (embedded registry zip + sync-superchain.sh); absorbs op-service/superutil/
op-core/eip1559/ Holocene/Jovian EIP-1559 helpers

Scope

In scope: op-node, op-service, op-batcher, op-proposer, op-challenger, op-faucet, op-supernode, cannon, op-e2e, op-acceptance-tests, op-devstack.

Out of scope:

  • op-program (client and host) — depends on op-geth state execution; kona supersedes it (in the monorepo at rust/kona).
  • op-supervisor — deprecated, being replaced by op-supernode.

Sub-issues (tracking)

Sub-issues will be linked below. Rough phasing:

  • Phase 1 (foundation, parallelisable): extract packages into op-core/*; remove deprecated ProtocolVersions watching.
  • Phase 2 (swap call-sites): update imports across op-node / op-service / op-batcher.
  • Phase 3 (ethclient layer): make op-service/sources the OP-aware client; migrate op-batcher L2 fetch and op-service/txinclude receipts.
  • Phase 4 (tests): migrate op-e2e L2 call sites; split wait.go; delete op-e2e/opgeth/; audit op-devstack/sysgo.
  • Phase 5 (cutover): flip go.mod to upstream go-ethereum; delete shims.

🤖 Generated by Claude Code

Activity

  1. self-assigned this
    on Apr 23, 2026
  2. changed the title [-]Decouple monorepo from op-geth[/-] [+]op-core Extraction: Decouple monorepo from op-geth[/+] on Apr 23, 2026
  3. nonsense commented on Apr 30, 2026

    @nonsense
    Contributor

    We should also include the PostExecTx here. I added it alongside the DepositTx.

  4. 16 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions