How 0xpolygon/kurtosis-cdk works
• L1 Chain: Represent the local L1 blockchain based on the ethereum-package. Indicate that it is fully customizable with multi-client support.
• L2 Chain: Show the Polygon CDK-based L2 network. Include key components such as:
• Sequencer (often implemented by “cdk-erigon” or legacy “zkevm-node”)
• Sequence sender and aggregator (e.g., via “cdk-node” or the newer zkevm-sequence-sender and aggregator if applicable)
• Additional modules (RPC nodes, provers, DAC, etc.)
• zkEVM Bridge: Represent the bridging infrastructure that connects the L1 and L2 chains.
• Additional services: Include any extra services such as the transaction spammer, monitoring tools, permissionless nodes; these are provided under “src/additional_services” and referenced in the docs.
• Kurtosis Enclave & Orchestration: Since this is deployed as a Kurtosis package, represent the overarching container/orchestration layer (Docker or Kubernetes) that encapsulates all these components. Also include the “kurtosis run” and “kurtosis clean” commands as part of the control flow.
Deployment & Configuration Layers
• CI/CD/Testing: Include an element for GitHub Actions and testing scripts (found in the “.github” directory) to highlight automation. This further emphasizes how continuous testing of configurations is integrated into the development cycle.
Relationships and Interactions
• From the L2 chain block, detail the interactions between the sequencer, sequence sender, and aggregator. Show communications between these components (e.g., state, transactions, and batch finality).
• ZkEVM bridge between the L1 and L2 elements.
• That additional services (monitoring, TX spammer, dashboards, etc.) interface with the running chains.
Architectural Patterns/Modules
• Modularity: Emphasize the separation between different services across directories (lib for core logic, src for additional services, and templates/configuration for deployment settings).
• Containerization: Show that each service (L1 chain, L2 chain components, additional services) runs inside its own isolated container managed by Kurtosis.
• Test & CI Automation: Represent the GitHub workflows and test configurations as integral parts of the overall system.