Skip to content

feat: canonical idempotency key for Soroban events#612

Open
Chrisland58 wants to merge 1 commit into
Disciplr-Org:mainfrom
Chrisland58:feat/event-key-idempotency
Open

feat: canonical idempotency key for Soroban events#612
Chrisland58 wants to merge 1 commit into
Disciplr-Org:mainfrom
Chrisland58:feat/event-key-idempotency

Conversation

@Chrisland58
Copy link
Copy Markdown

Adds canonical Soroban event idempotency by deriving and persisting a stable event_key from txHash:ledger:eventIndex.

Extends processed_events with event_key text unique not null
Backfills existing events where possible
Parses canonical event keys in eventParser.ts
Uses the canonical key in eventProcessor.ts for duplicate detection
Adds tests in eventProcessor.idempotency.test.ts
Documents the new idempotency contract in event-processing.md
This makes retry handling deterministic and prevents duplicate processed-event inserts for the same Soroban event.
closes #471

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 tenant data residency tagging on Org model and query enforcement in src/middleware/orgAuth.ts

1 participant