feat: add TypeORM migrations for webhook_subscriptions, soroban_event_logs and index - #197
Merged
chizzy192 merged 1 commit intoJul 29, 2026
Conversation
…_logs and index Closes StellarState#168 Closes StellarState#167 Closes StellarState#166
|
@silifatzoffun74-art Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
webhook_subscriptionstable migration withuser_idFK tousers(id)(ON DELETE CASCADE),url,secret,event_types(jsonb),active, timestamps, plus aWebhookSubscriptionentity model.soroban_event_logstable migration withcontract_id,ledger_sequence(bigint),topic,tx_hash,payload(jsonb),processed,created_at, plus aSorobanEventLogentity model.IDX_SOROBAN_EVENTS_CONTRACT_LEDGERonsoroban_event_logs (contract_id, ledger_sequence DESC)in its own migration, ordered after the table-creation migration.Migration timestamps are ordered so TypeORM runs them in the correct sequence: webhook_subscriptions table → soroban_event_logs table → composite index.
Test plan
npx tsc --noEmit— no errorsnpx eslint src/**/*.ts— clean (also runs via pre-commit hook)npx jest— 400/401 passing; 1 pre-existing failure intests/validate-invoice-for-publish.test.tsunrelated to this change (invoice validation error ordering), left untouchedsrc/migrations)Closes #168
Closes #167
Closes #166