Skip to content

Fix TatumScanAdapter pagination fields and deduplicate cleaner#17

Draft
cursor[bot] wants to merge 2 commits intofeature/tatum-pluginfrom
cursor/tatum-scan-logic-unification-e0bd
Draft

Fix TatumScanAdapter pagination fields and deduplicate cleaner#17
cursor[bot] wants to merge 2 commits intofeature/tatum-pluginfrom
cursor/tatum-scan-logic-unification-e0bd

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Mar 17, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

This PR fixes two bugs in the TatumScanAdapter:

  1. Made pagination fields optional: The prevPage and nextPage fields in asTatumTransactionsResponse are now properly marked as optional using asOptional(asString). These cursor-based pagination fields are only present for certain chains (e.g., Tezos) and are absent for Ethereum Classic, which uses offset-based pagination. Without this fix, the cleaner would throw on every scan request for Ethereum Classic.

  2. Eliminated duplicated cleaner definition: Extracted the asTatumTransactionsResponse cleaner to a shared export in TatumScanAdapter.ts and imported it in tatum.ts. This prevents future inconsistencies between the two implementations.

Changes:

  • Added asOptional to imports in TatumScanAdapter.ts
  • Changed prevPage and nextPage from asString to asOptional(asString) in the cleaner
  • Exported asTatumTransactionsResponse from TatumScanAdapter.ts
  • Removed duplicate cleaner definition from tatum.ts and imported the shared one

All tests pass and the Tatum scan adapter is now functional for Ethereum Classic.

Open in Web Open in Cursor 

Edgar (Edge Agent) and others added 2 commits March 16, 2026 18:01
We need dependable address activity detection on chains where existing providers
were missing coverage or produced inconsistent updates in production.

Using Tatum as the common integration point reduces monitoring blind spots and
makes webhook event handling more reliable under real-world delivery behavior.
…tion

- Make prevPage and nextPage optional in asTatumTransactionsResponse
- Extract shared cleaner to prevent inconsistencies between implementations
- Import asOptional in TatumScanAdapter.ts

Fixes:
- Bug 8ac467b9: TatumScanAdapter now handles chains without cursor pagination
- Bug 95a29670: Eliminated duplicated Tatum scan logic cleaner
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.

1 participant