Background
Issue 1 adds start_time, end_time, prize_pool, reward_distribution,
entry_fee, category, banner_url, is_finalized to the CreatorEvent
entity, but none of the response DTOs or service mapping functions expose
them yet:
EventResponseDto (`src/creator-events/dto/event-response.
Goal
Thread the new CreatorEvent fields (and matching ContractEvent fields
from Issue 1) through to all event-facing response DTOs.
Tasks
EventResponseDto: add
EventByCodeResponseDto: add the same 6 fields. Update
SearchEventResultDto: add category: string,
EventStatsResponseDto: add prizePool: string and
500 XLM, split 40/30/20/5/5" without a second request.
- Reward distribution validation helper: add a small shared util (e.g.
Acceptance Criteria
Background
Issue 1 adds
start_time,end_time,prize_pool,reward_distribution,entry_fee,category,banner_url,is_finalizedto theCreatorEvententity, but none of the response DTOs or service mapping functions expose
them yet:
EventResponseDto(`src/creator-events/dto/event-response.Goal
Thread the new
CreatorEventfields (and matchingContractEventfieldsfrom Issue 1) through to all event-facing response DTOs.
Tasks
EventResponseDto: addEventByCodeResponseDto: add the same 6 fields. UpdateSearchEventResultDto: addcategory: string,EventStatsResponseDto: addprizePool: stringand500 XLM, split 40/30/20/5/5" without a second request.
Acceptance Criteria
GET /creator-events/:idresponse includesprizePool,GET /creator-events/invite/:code(public) response includes the sameGET /creator-events/search?q=...&category=footballfilters resultsGET /creator-events/:id/statsincludesprizePooland