Skip to content

feat: implement events emission with tests and docs#512

Merged
Baskarayelu merged 2 commits intoQuickLendX:mainfrom
icedoutskay:feature/events-emission
Feb 26, 2026
Merged

feat: implement events emission with tests and docs#512
Baskarayelu merged 2 commits intoQuickLendX:mainfrom
icedoutskay:feature/events-emission

Conversation

@icedoutskay
Copy link

@icedoutskay icedoutskay commented Feb 26, 2026

Closes #260


Description

This PR implements a comprehensive and consistent event emission system for all critical smart contract operations. By centralizing event logic, we ensure that off-chain indexers and frontends can reliably track state changes across the Soroban ecosystem.

What’s Changed

  • Centralized Event Logic: Created src/events.rs to handle all emit_* functions, ensuring uniform data structures.

  • Critical Operations Covered:

  • Invoices: Created, Verified, and Cancelled.

  • Bidding: Placed, Accepted, and Withdrawn.

  • Escrow: Created and Released.

  • System: Added events for Audits and Fee distributions.

  • Testing Suite: Added src/test_events.rs to verify that payloads contain correct identifiers (UUIDs, Pubkeys) and accurate i128 amounts.

  • Documentation: Updated docs/contracts/events.md with the full event schema for downstream integration.


Closes: #[260]


@Baskarayelu Baskarayelu merged commit 77a628b into QuickLendX:main Feb 26, 2026
@Baskarayelu Baskarayelu self-requested a review February 26, 2026 16:58
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.

Implement Events Emission

2 participants