Background
`src/matches/entities/creator-event.entity.
Goal
Add columns to CreatorEvent for the new campaign fields, write a migration,
and update the indexer's EventCreated handling to capture them from the
(updated) contract event payload.
Tasks
- Entity changes (
src/matches/entities/creator-event.entity.ts):
- Migration: new file in
src/migrations/, e.g.
- Indexer —
extractEventData() 'EventCreated' case: add
- Indexer —
handleEventCreated(): pass the new fields through to
start_time: new Date(Number(data.start_time) * 1000)
end_time: new Date(Number(data.end_time) * 1000)
prize_pool: this.readStr(data, 'prize_pool') || '0'
reward_distribution: (data.reward_distribution as number[]) ?? []
Acceptance Criteria
Background
`src/matches/entities/creator-event.entity.
Goal
Add columns to
CreatorEventfor the new campaign fields, write a migration,and update the indexer's
EventCreatedhandling to capture them from the(updated) contract event payload.
Tasks
src/matches/entities/creator-event.entity.ts):src/migrations/, e.g.extractEventData()'EventCreated'case: addhandleEventCreated(): pass the new fields through tostart_time: new Date(Number(data.start_time) * 1000)end_time: new Date(Number(data.end_time) * 1000)prize_pool: this.readStr(data, 'prize_pool') || '0'reward_distribution: (data.reward_distribution as number[]) ?? []Acceptance Criteria
creator_eventstable has the 8 new columns + 2 new indexes afterEventCreatedevents that include the new fields populate all 8EventCreatedevents that are missing the new fields (e.g. emitted by