manifold/common/user.ts

27 lines
575 B
TypeScript
Raw Normal View History

export type User = {
2022-01-10 23:52:03 +00:00
id: string
createdTime: number
2022-01-10 23:52:03 +00:00
name: string
username: string
avatarUrl?: string
2022-01-10 23:52:03 +00:00
balance: number
totalDeposits: number
totalPnLCached: number
creatorVolumeCached: number
2022-01-10 23:52:03 +00:00
}
export const STARTING_BALANCE = 1000
export const SUS_STARTING_BALANCE = 10 // for sus users, i.e. multiple sign ups for same person
export type PrivateUser = {
id: string // same as User.id
username: string // denormalized from User
email?: string
unsubscribedFromResolutionEmails?: boolean
initialDeviceToken?: string
initialIpAddress?: string
}