Fix governance events and migration lock#599
Merged
ogazboiz merged 2 commits intoMay 31, 2026
Merged
Conversation
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.
Description
This PR resolves two backend issues:
fee_config_updatedandadmin_transferredcontract governance events. Used an elegant, referentially safestreamId = 0system stream fallback to preserve Prisma schema integrity and foreign-key constraints.providerfrom"sqlite"to"postgresql"inmigration_lock.toml.Type of Change
Related Issues
Closes #524
Closes #525
Changes Made
providerinbackend/prisma/migrations/migration_lock.tomlto"postgresql".soroban-event-worker.ts):decodeU32helper function to decodeu32event values.ensureSystemStreamto upsert a system user and stream withstreamId = 0during transaction callbacks to prevent database foreign-key constraint violations when writing protocol-level events.processEventto allow single-topic events (topic.length === 1) for the two new protocol events while keeping thestreamIdrequirement for per-stream events.handleFeeConfigUpdatedandhandleAdminTransferredhandlers to write records of typesFEE_CONFIG_UPDATEDandADMIN_TRANSFERREDand broadcast payloads over the SSE admin channelsstream.fee_config_updatedandstream.admin_transferred.FEE_CONFIG_UPDATEDandADMIN_TRANSFERREDto allowed list arrays inevents.routes.ts(EVENT_TYPES) andstream.controller.ts(validEventTypes).{) inbackend/tests/integration/stream-actions.test.tsto allow the test runner to compile all files.Testing
Test Coverage
Test Steps
Breaking Changes
Screenshots/Demo
Checklist
Additional Notes