manifold/common/user.ts
mantikoros 908c8c03e6
Create user cloud function (#31)
* 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
2022-01-18 01:18:38 -06:00

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