Skip to content

feat(backend): index LendingPool, RemittanceNFT and MultisigGovernance events in event indexer #437

@Akpolo

Description

@Akpolo

💬 Want to contribute? Join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0

Problem

The event indexer currently only tracks LoanManager events. LendingPool, RemittanceNFT, and MultisigGovernance contract events are never indexed. This means:

  1. Dashboard pool stats are incomplete (deposits and withdrawals missing)
  2. NFT score changes and seizure events are not queryable
  3. Governance activity is invisible to the frontend

Expected Behavior

The indexer should subscribe to and store events from all four contracts:

  • LendingPool: Deposit, Withdraw, EmergencyWithdraw
  • RemittanceNFT: ScoreUpdated, NFTSeized, NFTBurned, NFTMinted
  • MultisigGovernance: ProposalCreated, ProposalApproved, ProposalFinalized

Each event type should be stored in the appropriate database table with the relevant fields.

Location

backend/src/services/eventIndexer.ts (or equivalent indexer service)

Impact

Without this, dashboard pool utilization stats are wrong, borrower NFT history is not queryable, and governance transparency is broken.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions