Skip to content

sync: switch base from bitquery to cdp - #994

Closed
craigbidenbot[bot] wants to merge 5 commits into
mainfrom
craig/switch-base-bitquery-to-cdp
Closed

sync: switch base from bitquery to cdp#994
craigbidenbot[bot] wants to merge 5 commits into
mainfrom
craig/switch-base-bitquery-to-cdp

Conversation

@craigbidenbot

@craigbidenbot craigbidenbot Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Switch the base chain transfer indexer from Bitquery to CDP. Just flips the enabled flags on the two sync configs.

Changes

  • sync/transfers/trigger/chains/evm/base/cdp/config.ts: enabled: falsetrue
  • sync/transfers/trigger/chains/evm/base/bitquery/config.ts: enabled: truefalse

Test Plan

  • Verify CDP sync task runs on */5 * * * * cron and pulls base transfers
  • Confirm bitquery sync task no longer fires

Requested by @shafu0x in #craig-shafu.

Enable cdp config, disable bitquery for base chain transfers.
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
x402scan Ready Ready Preview, Comment Jun 21, 2026 9:57pm

Request Review

craigbidenbot Bot added 2 commits June 21, 2026 21:45
Match the bitquery sync-state pattern on CDP so the cursor persists
across runs, errors get recorded, and we skip the bitquery window to
avoid log_index dupes (bitquery used Log.EnterIndex, CDP uses receipt
log_index).
Allow passing a thunk for syncStateCutoverAt so the cutover anchors on
deploy time, not a hardcoded UTC instant. base/cdp now uses () => new
Date() so merging later doesn't leave a stale cutover in the past.
craigbidenbot Bot added 2 commits June 21, 2026 21:52
Hardcode to when Bitquery stopped indexing (3:20pm ET).
Reverted now that base/cdp uses a hardcoded cutover instant.
@fmhall

fmhall commented Jul 30, 2026

Copy link
Copy Markdown
Member

Closing as obsolete: this was an emergency cutover for the 2026-06-21 Bitquery indexing outage, and it was never merged. Since then main has deliberately settled on Bitquery for Base sync (baseBitqueryConfig.enabled: true with sync-state cursoring via f0d8db1; CDP config disabled), and Base indexing is verified current as of today. If Bitquery has another outage we'd want a fresh cutover anchored at that moment rather than this one.

@fmhall fmhall closed this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants