manifold/common/comment.ts

17 lines
382 B
TypeScript
Raw Normal View History

// 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
2022-01-10 23:52:03 +00:00
contractId: string
betId?: string
userId: string
2022-01-10 23:52:03 +00:00
text: string
createdTime: number
// Denormalized, for rendering comments
userName: string
userUsername: string
2022-01-10 23:52:03 +00:00
userAvatarUrl?: string
}