Modernize indexer toolchain and index provider preimages via Ink event#5
Open
gibsfinancedev wants to merge 2 commits into
Open
Modernize indexer toolchain and index provider preimages via Ink event#5gibsfinancedev wants to merge 2 commits into
gibsfinancedev wants to merge 2 commits into
Conversation
The original provider-commitment handler relied on call traces, which need a trace-capable archive endpoint and millions of trace calls over full history — impractical on the available endpoints. Replace it with an event-driven handler that decodes the Ink event's transaction calldata (`ink(info, data)`) to recover the section parameters and raw preimage bytes, indexing full history on an ordinary archive endpoint. This is the handler validated live on the 943 entropy indexer, ported back from the gitignored deploy copy so the source is canonical: - Add the Random:Ink event handler; guard the reconstructed section against the emitted one; skip indirectly-invoked inks with a warning. - Adapt the decoded section field to the current contract API (durationIsTimestamp was renamed to usesTimestamp); the on-chain tuple layout is unchanged, so historical calldata still decodes. - Fix the Heat and Cast handlers' all-columns selects, which used an undefined `schema.X._.columns` and crash-looped on the first event. - Drop an unused destructure in the Bleach handler. Supporting reconciliation so the source builds against ponder 0.16: - Install ponder 0.16.6 (package.json declared it; node_modules still carried the pre-upgrade 0.10.9, collapsing the typed Context). - Restore the chain-943 deployment-address record the config imports. - Exclude the local backups dir from typecheck.
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.
This branch brings the indexer toolchain up to date and makes the
provider preimage commitments indexable on chain 943 without call traces.
What's here
Index provider preimages via the Ink event (primary change)
The original provider-commitment handler read call traces, which need a
trace-capable archive endpoint and millions of trace calls over full
history. It is replaced with an event-driven handler that decodes the
Ink event's transaction calldata (
ink(info, data)) to recover thesection parameters and the raw preimage bytes, indexing full history on
an ordinary archive endpoint. This is the handler validated live on the
943 entropy indexer, ported back so the source is canonical.
Random:Inkevent handler; guard the reconstructed sectionagainst the emitted one; skip indirectly-invoked inks with a warning.
an undefined
schema.X._.columnsand crash-looped on the first event.(
durationIsTimestampwas renamed tousesTimestamp); the on-chaintuple layout is unchanged, so historical calldata still decodes.
Toolchain modernization (earlier commits on the branch)
Supporting reconciliation
Notes
ponder.config.ts, from stalecontract artifacts missing their generated type companions; that is a
separate contracts rebuild, out of scope for this branch.