Background
The contract's join_event (contract Issue 7) charges event.entry_fee
(if non-zero) from the joining user and adds it to event.prize_pool. The
indexer's current UserJoinedEvent handling only tracks
participant_count:
If entry_fee > 0, the cached `creator_events.
Goal
Capture the entry fee paid (if any) in the UserJoinedEvent event and add
it to the cached prize_pool, and add a running total of fees collected for
transparency.
Tasks
extractEventData() 'UserJoinedEvent' case: add
CreatorEvent entity (Issue 1): add
handleUserJoinedEvent(): after incrementing
event.prize_pool = (BigInt(event.prize_pool) + BigInt(data.entry_fee_paid)).toString()
event.total_entry_fees_collected = (BigInt(event.total_entry_fees_collected) + BigInt(data.entry_fee_paid)).toString()
EventStatsResponseDto (Issue 5): add
Acceptance Criteria
Background
The contract's
join_event(contract Issue 7) chargesevent.entry_fee(if non-zero) from the joining user and adds it to
event.prize_pool. Theindexer's current
UserJoinedEventhandling only tracksparticipant_count:If
entry_fee > 0, the cached `creator_events.Goal
Capture the entry fee paid (if any) in the
UserJoinedEventevent and addit to the cached
prize_pool, and add a running total of fees collected fortransparency.
Tasks
extractEventData()'UserJoinedEvent'case: addCreatorEvententity (Issue 1): addhandleUserJoinedEvent(): after incrementingevent.prize_pool = (BigInt(event.prize_pool) + BigInt(data.entry_fee_paid)).toString()event.total_entry_fees_collected = (BigInt(event.total_entry_fees_collected) + BigInt(data.entry_fee_paid)).toString()EventStatsResponseDto(Issue 5): addAcceptance Criteria
UserJoinedEventwithentry_fee_paid: "10000000"(1 XLM inUserJoinedEventwith noentry_fee_paid(free event) leavesprize_poolarithmetic usesBigIntand is correct for values