mantikoros
1036c2df0d
sendMarketCloseEmails: check undefined
2022-02-17 12:34:57 -06:00
mantikoros
dcbdc66df5
Close emails ( #50 )
...
* script init for stephen dev
* market close emails
* order of operations
* template email
* sendMarketCloseEmail: handle unsubscribe
* remove debugging
* marketCloseEmails: every hour
2022-02-17 12:18:02 -06:00
mantikoros
482a72f4e1
welcome email: include link to manifold
2022-02-16 22:42:52 -06:00
mantikoros
2d66be5208
resolve market: fix probability bounds
2022-02-12 00:19:45 -06:00
James Grugett
d02611a37a
Add id field to markets api endpoint
2022-02-10 16:35:20 -06:00
Austin Chen
66624ff92c
Send a welcome email to new users
2022-02-08 03:26:33 -08:00
mantikoros
4f0b94150c
sellBet: handle case where bettor equals market creator
2022-02-06 17:18:30 -06:00
mantikoros
03f36cf954
User profile ( #44 )
...
* add id, userId to comment
* change user info cloud function and script; move cleanUsername to common
* change user info script
* fix rules
* add fund button: useLocation hook
* profile page
* merge
* profile stuff
* avatar uploading to storage bucket
* changeUserInfo: use transaction
* Styles for profile page
* Edit mode for profile, and more styles
Co-authored-by: James Grugett <jahooma@gmail.com>
2022-02-03 21:04:56 -06:00
James Grugett
75fd870d69
Put back old leaderboard calculation. Use totalDeposits field
2022-02-02 00:21:39 -06:00
James Grugett
473534bc35
Catch user update
2022-02-01 21:35:41 -06:00
James Grugett
ca29a43da9
Calculate global leaderboard from contract bets
2022-02-01 21:30:43 -06:00
James Grugett
0eac8d9c5c
Yarn workspaces ( #42 )
...
* Try yarn workspaces
* Add versions to sub package.json files
2022-02-01 15:25:51 -06:00
James Grugett
7c50b55331
Match lowercase tags for folds
2022-02-01 12:29:14 -06:00
mantikoros
f06ca8305c
Resolve prob ( #41 )
...
* rename MKT to PROB; show resolved probability; move format utilities to common
* ProbabilitySelector
* resolve to PROB
* prob and mkt labels
2022-01-30 15:51:30 -06:00
James Grugett
83f4fd3555
Scripts: Init admin
2022-01-30 15:11:01 -06:00
jahooma
6696ac2a15
Make about optional for folds
2022-01-27 12:57:36 -06:00
jahooma
9764a03189
Add create market to top of fold activity. Auto-adds the primary tag of the fold.
2022-01-27 12:45:35 -06:00
jahooma
2e7a8210bb
No symbols in fold primary tag. Limit Name to 140 chars
2022-01-26 17:45:07 -06:00
jahooma
348c8d565a
Fold delete
2022-01-26 14:56:15 -06:00
jahooma
ef8157025f
Compute fold follower count from cloud function.
2022-01-26 14:27:16 -06:00
jahooma
c3f49c44a0
Cardify folds in fold list
2022-01-26 12:44:16 -06:00
Austin Chen
29b946671b
Expand backup documentation
2022-01-25 15:27:44 -06:00
Austin Chen
a52b2992af
Back up comments and bets subcollections too
2022-01-25 15:13:11 -06:00
James Grugett
8b9d0e5dba
New fold page UI with tabs ( #37 )
...
* Tabbed fold page
* Implement market, leaderboard tab views for fold. And edit dialog
* Add about field to Fold
2022-01-25 14:47:25 -06:00
jahooma
705d5cada7
Add lowercaseTags field to contracts. ante / closeTime non-optional in new contract code
2022-01-24 16:33:10 -06:00
Austin Chen
7534847e8d
Back up Firestore tables to cloud bucket
2022-01-24 13:26:19 -06:00
jahooma
aa1022546d
Implement leaderboards for folds!
2022-01-22 17:59:50 -06:00
James Grugett
60f68b178d
Folds ( #34 )
...
* Fold type, fold page, query for fold contracts
* Tsconfig: target esnext, nounused locals: false
* Store tags in field on contract. Script to update contract tags
* Show tags on fold page
* Load all fold comments server-side to serve better feed
* Fix the annoying firebase already initialized error!
* Add links to /edit and /leaderboards for fold
* Page with list of folds
* UI for creating a fold
* Create a fold
* Edit fold page
2022-01-21 17:21:46 -06:00
jahooma
5ce23c0bdb
Add userId to email template so users can unsubscribe
2022-01-19 12:43:12 -06:00
mantikoros
4528615863
Private user ( #32 )
...
* PrivateUser
* createUser: create private user; detect multiple signups
* include user properties in private user
* script: create private users
* unsubscribing from market resolution emails
* track total deposits
2022-01-18 21:36:46 -06:00
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
jahooma
56c7e2597d
Schedule cloud function to update user metrics: totalPnL, creatorVolume
2022-01-17 15:39:34 -06:00
mantikoros
8331e7afc5
migration script now re-simulates individual markets specified in command line
2022-01-16 15:53:40 -06:00
Austin Chen
6e92e3fba1
DX: Cloud Functions tooling
2022-01-16 01:59:05 -05:00
jahooma
f6079e68d0
Choose random hot contracts from top 16 every 5 minutes.
2022-01-15 00:44:33 -06:00
mantikoros
3fa2926559
create page design; require minimum ante; lower phantom ante amount; createContract checks
2022-01-14 17:39:17 -06:00
mantikoros
58fbc40276
migration script
2022-01-13 12:49:47 -06:00
mantikoros
a8896375c7
migration script
2022-01-12 23:43:41 -06:00
jahooma
de043de589
Add visibility field to contracts. Hot contracts & activity feed show only visibility 'public'.
2022-01-12 19:53:50 -06:00
mantikoros
23e7c8aaf3
script to port to new dpm ( #27 )
...
* initial commit
* antes
* rename path, compute to contractPath, contractMetrics
* merge
* Include antes as bets; more calculations
* fees on estimated winnings
* mkt payout calculation
* contract: remove startPool, add phantomShares
* Merge branch 'main' into new-dpm
* dpm migration script
* my service account
* script to correct afterProb of last bet
2022-01-12 15:21:03 -06:00
mantikoros
9d5490cf9a
Switch to new dpm mechanism ( #26 )
...
* initial commit
* antes
* rename path, compute to contractPath, contractMetrics
* merge
* Include antes as bets; more calculations
* fees on estimated winnings
* mkt payout calculation
* contract: remove startPool, add phantomShares
* Merge branch 'main' into new-dpm
* dpm migration script
* my service account
2022-01-12 13:01:04 -06:00
mantikoros
f10f7bbaea
market data cloud function
2022-01-11 13:30:18 -06:00
mantikoros
0fef0eeccb
functions: change entry point after adding common directory
2022-01-11 13:30:00 -06:00
mantikoros
df4ecb3fe2
move prettier config to top level
2022-01-10 17:44:42 -06:00
mantikoros
a1aeabeab4
move market logic to common
2022-01-10 16:49:13 -06:00
mantikoros
8266fb995c
safer payUser
2022-01-10 16:49:13 -06:00
jahooma
c5ab1ba2e0
HTML resolved market email
2022-01-10 16:08:38 -06:00
mantikoros
b97a65cf2c
refactor data structures, calculations to common directory
2022-01-10 15:07:57 -06:00
jahooma
829c8a4b75
Disallow selling after close time! Enforce no trading after close on server.
2022-01-10 10:33:02 -06:00
jahooma
6b4417d8b8
Every 15 minutes, compute contract volume in last 24 hours and 7 days
2022-01-09 13:34:42 -06:00