feat: off-chain sync and async task infrastructure#87
Merged
anonfedora merged 2 commits intoFracverse:masterfrom Feb 25, 2026
Merged
feat: off-chain sync and async task infrastructure#87anonfedora merged 2 commits intoFracverse:masterfrom
anonfedora merged 2 commits intoFracverse:masterfrom
Conversation
anonfedora
approved these changes
Feb 25, 2026
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.
Off-chain sync and async task infrastructure
Ensures the off-chain database stays in sync with on-chain reality and handles asynchronous tasks (email/notifications).
Changes
EventBridgeService
PaymentSettled,PaymentFailed,PaymentInitiatedEVENT_BRIDGE_POLL_MS,EVENT_BRIDGE_ERROR_BACKOFF_MS)SOROBAN_CONTRACT_IDSQueueService
add*Jobmethods and shared retry/backoff optionszaps:jobscloses [WORKERS] On-Chain Event Bridge and Background Jobs #62
JobProcessors
user_data,analytics,backup,on_chain_syncAll processors use structured logging and consistent error handling.
JobProcessorRegistry
Worker configuration
WORKER_CONCURRENCY)JOB_MAX_RETRIES,JOB_BACKOFF_DELAY_MS)New files
server/src/config/worker.config.tsserver/src/types/job-payloads.tsserver/src/processors/– email, notification, sync, blockchain-tx, index (registry)server/src/utils/soroban-events.tsEnvironment variables
See
server/.env.examplefor:SOROBAN_CONTRACT_IDSEVENT_BRIDGE_POLL_MS,EVENT_BRIDGE_ERROR_BACKOFF_MSWORKER_CONCURRENCY,JOB_MAX_RETRIES,JOB_BACKOFF_DELAY_MS