Skip to content

feat(attestation): add resilient IRIS attestation polling manager with exponential backoff & telemetry - #182

Open
forumevi wants to merge 1 commit into
circlefin:masterfrom
forumevi:feat/attestation-resilience-manager
Open

forumevi wants to merge 1 commit into
circlefin:masterfrom
forumevi:feat/attestation-resilience-manager

Conversation

@forumevi

Copy link
Copy Markdown

Summary

This PR replaces the static polling loop in useCrossChainTransfer with an AttestationResilienceManager to significantly improve the reliability of Circle IRIS Attestation API calls during cross-chain transfers.

Key Changes

  • Full Jitter Exponential Backoff: Implements a jittered exponential backoff algorithm (AttestationResilienceManager) to handle API rate limits (429) and transient network dropouts seamlessly.
  • Hook Integration: Integrated directly into src/hooks/use-cross-chain-transfer.ts with real-time UI logging, giving users visibility into attempt counts and elapsed time.
  • Fault Tolerance: Eliminates application crashes caused by rigid polling logic.
  • Unit Tests & Build Fixes: Added comprehensive unit tests under src/utils/__tests__/attestation-resilience.test.ts and configured tsconfig.json to properly scope production builds.

Verification

  • Verified production build via npm run build (Passed with zero errors).
  • Tested exponential backoff bounds and attestation completion logic via Jest tests.

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