Platform
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.
- Proposal and deployment modes — L1-only, L2-only, Combined, and Validator, with rollup type support.
- RollupDriver and L1DataSource interfaces, L2 staged sync pipeline, chain config, implementation phases.
- Breaking the monolithic startup into lifecycle-managed components with typed providers and a dependency graph.