manifold/functions/src
Marshall Polaris 5217270073
Serious business API validation & big cleanup of createContract, placeBet (#302)
* Add the great Zod as a dependency to help us

* Tweak eslint

* Rewrite a ton of stuff in createContract and placeBet

* Clean up error reporting in API

* Make sure the UI is enforcing validated limits on lengths

* Remove unnecessary Math.abs

* Better type on `BetInfo`

* Kill `manaLimitPerUser`

* Clean up hacky parameters on bet info functions

* Validate `closeTime` as a valid timestamp in the future
2022-05-26 14:37:51 -07:00
..
email-templates Typo fix; fixes #216 (#218) 2022-05-13 18:22:10 -04:00
scripts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
add-liquidity.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
api.ts Serious business API validation & big cleanup of createContract, placeBet (#302) 2022-05-26 14:37:51 -07:00
backup-db.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
call-cloud-function.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
change-user-info.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
create-answer.ts Serious business API validation & big cleanup of createContract, placeBet (#302) 2022-05-26 14:37:51 -07:00
create-contract.ts Serious business API validation & big cleanup of createContract, placeBet (#302) 2022-05-26 14:37:51 -07:00
create-fold.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
create-user.ts Revert "Better random (#213)" 2022-05-16 20:26:51 -04:00
emails.ts Fix comment links from /activity & add to emails (#320) 2022-05-25 16:47:08 -06:00
fetch.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
get-feed-data.ts Categories (#132) 2022-05-12 10:07:10 -05:00
index.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
keep-awake.ts turn keep awake on 2021-12-24 16:14:02 -05:00
market-close-emails.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
on-create-bet.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
on-create-comment.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
on-fold-delete.ts Fold delete 2022-01-26 14:56:15 -06:00
on-fold-follow.ts Compute fold follower count from cloud function. 2022-01-26 14:27:16 -06:00
on-view.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
place-bet.ts Serious business API validation & big cleanup of createContract, placeBet (#302) 2022-05-26 14:37:51 -07:00
redeem-shares.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
resolve-market.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
sell-bet.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
sell-shares.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
send-email.ts Send emails for new comments on markets you commented on or created. 2022-02-22 20:35:07 -06:00
stripe.ts Update mantic.markets -> manifold.markets (#212) 2022-05-13 07:07:51 -04:00
transact.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
unsubscribe.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
update-contract-metrics.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
update-feed.ts Update activity feed every hour to decrease cost 2022-05-23 15:29:18 -05:00
update-recommendations.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
update-user-metrics.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
utils.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00