How alyssadaypin/sequencer--001 works
This is a multi-crate Starknet sequencer: its intended product workflow accepts transactions, orders and executes them into blocks, reaches consensus, commits state, and exposes node services. The tree also shows L1 event handling, class compilation/storage, synchronization, proofs, peer networking, and monitoring. The excerpts substantiate several batcher-to-helper relationships; most other service connections are not shown, so those links are marked unverified rather than asserted as source-backed calls.
Main entry points: batcher.rs Batcher · gateway.rs Gateway · storage_reader_server.rs Sequencer storage · build_proposal.rs Consensus orchestrator
Components 21
Transaction and blocks
- Mempool
crates/apollo_mempool/src/mempool.rs - Batcher
crates/apollo_batcher/src/batcher.rs - Block builder
crates/apollo_batcher/src/block_builder.rs - Transaction executor
crates/apollo_batcher/src/transaction_executor.rs
Consensus and networking
- Consensus
crates/apollo_consensus/src/manager.rs - Consensus orchestrator
crates/apollo_consensus_orchestrator/src/build_proposal.rs - Peer network
crates/apollo_network/src/network_manager/mod.rs - Propeller protocol
crates/apollo_propeller/src/engine.rs
State and proofs
- Commitment manager
crates/apollo_batcher/src/commitment_manager/commitment_manager_impl.rs - State committer
crates/apollo_batcher/src/commitment_manager/state_committer.rs - Central sync
crates/apollo_central_sync/src/lib.rs - Sequencer storage
crates/apollo_storage/src/storage_reader_server.rs - Storage proofs
crates/starknet_transaction_prover/src/running/storage_proofs.rs
Node services
- Gateway
crates/apollo_gateway/src/gateway.rs - L1 events
crates/apollo_l1_events/src/transaction_manager.rs - Class management
crates/apollo_class_manager/src/class_storage.rs - Cairo compiler
crates/apollo_compile_to_casm/src/compiler.rs - HTTP server
crates/apollo_http_server/src/http_server.rs - RPC
crates/apollo_rpc/src - Monitoring dashboards
crates/apollo_dashboard/src/dashboard.rs
Other components
- Transaction client
Connections 19
- Transaction client → Gateway: submits transactions
- Gateway → Mempool: forwards transactions
- Mempool → Batcher: provides transactions
- Batcher → Block builder: builds blocks
crates/apollo_batcher/src/batcher.rs - Batcher → Transaction executor: executes transactions
- Batcher → Commitment manager: adds commitment tasks
crates/apollo_batcher/src/batcher.rs - Commitment manager → State committer: dispatches tasks
crates/apollo_batcher/src/commitment_manager/commitment_manager_impl.rs - State committer → Sequencer storage: writes commitments
- Consensus orchestrator → Batcher: requests proposals
- Consensus orchestrator → Consensus: coordinates consensus
- Consensus → Peer network: exchanges messages
- Propeller protocol → Peer network: adapts peer protocol
- Central sync → Sequencer storage: updates state
- Storage proofs → Sequencer storage: queries state proofs
- L1 events → Batcher: supplies L1 handlers
- Class management → Cairo compiler: stores compiled classes
- HTTP server → Gateway: routes requests
- HTTP server → RPC: serves RPC
- Monitoring dashboards → Transaction client: reports health