Skip to content

feat: add organization residency tagging and residency-aware read DB …#611

Open
Chrisland58 wants to merge 1 commit into
Disciplr-Org:mainfrom
Chrisland58:feat/data-residency-tag
Open

feat: add organization residency tagging and residency-aware read DB …#611
Chrisland58 wants to merge 1 commit into
Disciplr-Org:mainfrom
Chrisland58:feat/data-residency-tag

Conversation

@Chrisland58
Copy link
Copy Markdown

Implemented canonical Soroban event idempotency by deriving a stable event_key from txHash:ledger:eventIndex.

Added a Knex migration to extend processed_events with event_key text unique not null
Backfilled existing rows when possible from current event metadata
Updated eventParser.ts to derive eventKey from Soroban event payload
Updated eventProcessor.ts to use eventKey for duplicate detection and persistence
Added
src/tests/eventProcessor.idempotency.test.ts to verify canonical key generation, duplicate rejection, and storage
Updated event-processing.md to document the new event key contract and idempotency behavior
This makes retry handling safe and deterministic by enforcing uniqueness on the canonical event key rather than relying on weaker or inconsistent event identity fields.
closes #470

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.

Add Soroban event ingestion idempotency key derived from txHash and ledger in src/services/eventProcessor.ts

1 participant