feat(compat): add Cipherscan API adapter#15
Merged
Conversation
7e7e33c to
fe68932
Compare
fe68932 to
6e49d3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
zinder-compat-cipherscan, an adapter that serves Cipherscan's current HTTP and WebSocket contracts from Zinder. Cipherscan can use Zinder as its chain-data backend without changing its routes, query behavior, or response formats.Surface added
Mining distribution
Adds a product-neutral, time-indexed block-production projection with durable coverage, restart recovery, atomic reorg rollback, and continuation cursors that remain stable during ordinary chain advancement. The adapter uses that contract to preserve Cipherscan's supported periods, fallback coercion, exact paid-fee totals, five-minute raw-period cache keys, response shape, and adapter-owned pool registry.
Architecture boundary
Zinder owns canonical chain facts, reusable projections, coverage and freshness metadata, and product-neutral gRPC queries. The adapter owns Cipherscan route names, request coercion, response envelopes, display units, cache behavior, pool metadata, and product formulas.
Labels, node and GeoIP inventory, mining behavior products, turnstile classification, cross-chain analytics, name services, identity-risk analytics, finalizer registries, public fork reports, physical chain-size history, and server-side viewing-key scanning remain explicitly sidecar-owned or unavailable. This change does not add Zinder schemas for those surfaces.
The endpoint ownership matrix is documented in
docs/plans/cipherscan-adapter-architecture.md. The block-production projection is specified indocs/adrs/0033-time-indexed-block-production.md. Setup, Cipherscan wiring, deployment topology, configuration, and operational probes are documented inservices/zinder-compat-cipherscan/README.md.