908c8c03e6
* createUser cloud function; change User object * initial commit * listenForLogin: avoid race condition * createUser: allow capital letters in username * remove debugging * leaderboard: empty url for undefined avatar image
15 lines
226 B
TypeScript
15 lines
226 B
TypeScript
export type User = {
|
|
id: string
|
|
createdTime: number
|
|
|
|
name: string
|
|
username: string
|
|
avatarUrl?: string
|
|
|
|
balance: number
|
|
totalPnLCached: number
|
|
creatorVolumeCached: number
|
|
}
|
|
|
|
export const STARTING_BALANCE = 1000
|