14 Commits

Author SHA1 Message Date
01cc1d78ef Permissions for plpython3u and add claim_boost 2023-04-22 16:34:56 +07:00
Emil Nielsen
d0bcdde4c8 Small tweaks 2023-04-22 08:25:06 +07:00
9f01712230 Fix some functions still using integers, and use division for selling res 2023-04-21 20:00:35 +07:00
40060686a0 Change to floating point numbers for prices and claims 2023-04-21 19:26:02 +07:00
b9390c18ab Add some additional checking and clearer error messages to sql functions 2023-04-21 18:23:11 +07:00
2f809bf889 Get game config endpoint 2023-04-14 20:17:24 +07:00
46580c800e Fix staking multiple times bug and csv import bugs 2023-04-14 15:13:41 +07:00
08b227200b Sell resources endpoint and postgres function 2023-04-14 13:18:05 +07:00
06fe914fa6 Add a clear-data endpoint 2023-04-10 20:22:36 +07:00
e68de31a6a Leaderboards endpoint 2023-04-10 19:37:34 +07:00
5ae726064c Import config from Google spreadsheets into the database 2023-04-08 19:15:28 +07:00
9b753cf103 Porting database from SQLite to PostgreSQL
- New Postgres table schemas
- Using Stored Procedures with transactions that validate business logic
- User Ids now use UUID
- Updated and simplified all endpoints to call the stored procedures

Notes: There are still a few things missing that broke because of the migration,
in particular, because we moved a lot of the business logic into the database,
we now require that certain data that lived in the game-config.json to be
present in the database as well, to prevent cheating and truly have a single
source of truth.
2023-03-30 14:13:30 +07:00
9df27aea2d Delete database and comment out staking_event 2023-03-22 11:07:22 +07:00
99bc7a319f Merge feature/api
* Added backend capabilities with SQLite3
* Added routes for Next.js backend
2023-03-19 10:21:19 +07:00