2022-01-10 21:07:57 +00:00
|
|
|
// Currently, comments are created after the bet, not atomically with the bet.
|
|
|
|
// They're uniquely identified by the pair contractId/betId.
|
|
|
|
export type Comment = {
|
2022-02-04 03:04:56 +00:00
|
|
|
id: string
|
2022-01-10 23:52:03 +00:00
|
|
|
contractId: string
|
|
|
|
betId: string
|
2022-02-04 03:04:56 +00:00
|
|
|
userId: string
|
|
|
|
|
2022-01-10 23:52:03 +00:00
|
|
|
text: string
|
|
|
|
createdTime: number
|
2022-02-04 03:04:56 +00:00
|
|
|
|
2022-01-10 21:07:57 +00:00
|
|
|
// Denormalized, for rendering comments
|
2022-01-10 23:52:03 +00:00
|
|
|
userName?: string
|
|
|
|
userUsername?: string
|
|
|
|
userAvatarUrl?: string
|
|
|
|
}
|