Introduction
The L1/L2 Node and Component Framework — the foundation everything else builds on
The Platform section covers the two foundational pieces of Cocoon:
The L1/L2 Node introduces the RollupDriver interface and the node deployment modes (L1, L2, Combined, Validator). It generalizes the pattern already proven by Caplin (embedded CL) and Polygon/Bor (embedded L2) into a unified framework for running any rollup type alongside the Erigon L1 node.
The Component Framework is the architectural refactor that makes the L1/L2 Node composable. It breaks the current monolithic eth.New() constructor into discrete components with typed providers, dependency ordering, and a lifecycle state machine. Without it, selective composition of L1/L2 modes would require complex conditional logic spread across the codebase.
Last updated