33906adfe4
This reverts commit f52da72115
.
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
// Currently, comments are created after the bet, not atomically with the bet.
|
|
// They're uniquely identified by the pair contractId/betId.
|
|
export type Comment = {
|
|
id: string
|
|
contractId?: string
|
|
groupId?: string
|
|
betId?: string
|
|
answerOutcome?: string
|
|
replyToCommentId?: string
|
|
userId: string
|
|
|
|
text: string
|
|
createdTime: number
|
|
|
|
// Denormalized, for rendering comments
|
|
userName: string
|
|
userUsername: string
|
|
userAvatarUrl?: string
|
|
}
|