manifold/common/like.ts

10 lines
284 B
TypeScript
Raw Permalink Normal View History

export type Like = {
id: string // will be id of the object liked, i.e. contract.id
userId: string
type: 'contract' | 'post'
createdTime: number
tipTxnId?: string // only holds most recent tip txn id
}
2022-10-01 20:57:47 +00:00
export const LIKE_TIP_AMOUNT = 10
export const TIP_UNDO_DURATION = 2000