Skip to content

Release: develop -> main#3392

Merged
TaprootFreak merged 6 commits intomainfrom
develop
Mar 12, 2026
Merged

Release: develop -> main#3392
TaprootFreak merged 6 commits intomainfrom
develop

Conversation

@github-actions
Copy link

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

davidleomay and others added 2 commits March 11, 2026 17:07
TaprootFreak
TaprootFreak previously approved these changes Mar 11, 2026
* fix: ICRC token scanning bugs and robustness improvements

- Fix batch loop break condition to use raw transaction count instead of
  filtered transfers, preventing skipped blocks with mint/burn/approve txs
- Pass fromBlock/toBlock through to ICRC token scanning for correct pollAddress behavior
- Reject assets with missing decimals instead of silently falling back to 8
- Reduce verbose logging by removing full address list dump every minute

* feat: unified global scanning + settings persistence for ICP register strategy

Replace per-address Rosetta calls with global query_blocks scan for native
ICP transfers. Persist scan progress in settings table per canister ID for
both native ICP and ICRC tokens. Unify both code paths with consistent
batched scanning, client-side filtering, and cold-start handling.

* test: update register strategy test for SettingService dependency

* refactor: consolidate ICP scan state into single JSON setting

Replace 5 individual setting entries (icpLastScannedBlock + one per
canister) with a single icpLastScannedBlocks JSON entry using
getObj/setObj.

* refactor: use asset ID as scan state key instead of canister ID

* refactor: deduplicate native and ICRC scan logic

Extract shared fetchTransfersBatched (batch loop) and scanAndCollect
(cold-start + persistence) to eliminate duplication between native ICP
and ICRC token scanning paths.

* chore: refactoring

---------

Co-authored-by: David May <david.leo.may@gmail.com>
@TaprootFreak TaprootFreak merged commit d43b8e7 into main Mar 12, 2026
12 checks passed
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.

5 participants