Annoying:
Annoying:
common/
data structurefunctions/src/
Backend modification
web/lib/firestore/
Firestore queries for:web/hooks
use hookweb/
frontend viewsAnnoying: Adding a new API using the server approach requires
functions/src/increment
functions/src/serve.ts
web/lib/firebase/api.ts
Vs Vercel functions which just need:
Bet vs Txn
Cert vs Contract
certId
vs contractId
Grouped transactions representation, vs loose txns?
Are negative shares okay in a TXN?
Ideally: All changes to db are logged, and we have full rollback capability