feat: emit contract events for create_prompt, buy_prompt, and price updates (#406) - #527
Open
opratem wants to merge 1 commit into
Open
feat: emit contract events for create_prompt, buy_prompt, and price updates (#406)#527opratem wants to merge 1 commit into
opratem wants to merge 1 commit into
Conversation
|
@opratem 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.
Description
Implements structured Soroban event emissions and off-chain wiring for core marketplace actions so indexers, webhooks, and the frontend can react in real time instead of relying solely on polling
get_all_prompts. The change adds explicit contract event coverage for prompt creation, purchases, and price updates, and connects those events to the existing webhook dispatcher and email notification services.Related Issue
Closes #406
Type of Change
Changes Made
Testing
Checklist
Screenshots
N/A � Smart contract and server service changes only.
Additional Notes
The event emissions already existed on-chain for these actions; this work closes the gap by ensuring they are explicitly tested and that the off-chain indexer reacts to them. The frontend
useContractSynchook already polls all contract events, so no client-side changes are required for real-time invalidation to begin using the new events.