ekzyis
74aa41d5f4
Add orders.created_at column
2024-08-26 16:15:51 -05:00
ekzyis
215a9fb3b6
Show quantity of user shares
2024-08-26 06:15:33 -05:00
ekzyis
5587aeb03a
Fix query for lmsr.Q1 & lmsr.Q2
2024-08-26 05:57:31 -05:00
ekzyis
3075f12fc1
Fix lmsr_b since maximum possible loss was off
2024-08-26 05:50:09 -05:00
ekzyis
6b6bbbf621
Add 'expiry=' to 'invoice pending' log
2024-08-26 05:50:09 -05:00
ekzyis
df7726e313
Update market form on input change
2024-08-26 05:50:09 -05:00
ekzyis
bd7b2715bd
Calculate probabilities using LMSR
2024-08-25 00:48:03 -05:00
ekzyis
d87b97d235
Move postgresql.conf into db/
2024-08-25 00:45:52 -05:00
ekzyis
256dba2a46
Implement LMSR cost function
2024-08-25 00:45:14 -05:00
ekzyis
6c723b0304
Return 404 if market not paid
2024-08-24 22:30:04 -05:00
ekzyis
607e1007d0
Remove MATCHMAKING.md
2024-08-24 22:12:34 -05:00
ekzyis
3d1251cd4a
Merge branch 'htmx-templ-rewrite' into develop
2024-08-24 22:09:46 -05:00
ekzyis
845157c954
Add market form + page
...
* market form with question, description and end date
* markets cost 1k sats
* a goroutine polls pending invoices from the db and checks LND for their status
* markets are listed on front page (after paid)
* market page contains buttons to bet yes or no
* users have names now
TODO:
* show correct market percentage
* show how percentage changed over time in chart
* validate end date
* implement betting / order form
2024-08-24 02:35:15 -05:00
ekzyis
698cc5c368
Add min-height to #content
2024-08-11 04:56:54 -05:00
ekzyis
07648c30f6
Add postgresql to shell.nix
2024-08-08 03:08:24 -05:00
ekzyis
e540b78994
Fix duplicate build steps
2024-08-08 01:39:32 -05:00
ekzyis
65e7adc7fa
Add remote port forwarding command to hotreload.sh
2024-08-08 01:39:32 -05:00
ekzyis
a2b717b336
Add shell.nix
2024-07-21 20:39:30 -05:00
ekzyis
139bb2e5b1
Remove unnecessary argument
2024-07-21 20:39:12 -05:00
ekzyis
9b8734f5a9
Add QR component
2024-07-15 12:55:48 +02:00
ekzyis
db23fbb64a
Use hex-encoded tls cert and macaroon
2024-07-15 08:00:57 +02:00
ekzyis
3957d4d774
Return 501 Not Implemented for nostr auth
2024-07-15 06:22:50 +02:00
ekzyis
26485a2307
Fix error rendering
2024-07-15 06:16:46 +02:00
ekzyis
642e7785a1
Fix login redirects
2024-07-15 06:16:27 +02:00
ekzyis
897d973b8d
Fix theme-color
2024-07-14 13:48:02 +02:00
ekzyis
dfd5bb728a
Remove -color suffix
2024-07-14 13:48:02 +02:00
ekzyis
782bfec93a
Implement logout
2024-07-14 13:39:42 +02:00
ekzyis
8d84e29d34
Improve htmx comment about 302 Found in session check
2024-07-14 12:49:38 +02:00
ekzyis
738d511f01
Call tx.Rollback() in bail
2024-07-14 12:38:16 +02:00
ekzyis
23ab67e8fc
Always use c.JSON in HandleSessionCheck
2024-07-14 12:01:41 +02:00
ekzyis
2ec59e96eb
Return c.JSON
2024-07-12 22:15:48 +02:00
ekzyis
2b8ab8b51c
Fix duplicate logs
2024-07-12 20:41:41 +02:00
ekzyis
3ac346df4f
Fix route
2024-07-12 20:35:47 +02:00
ekzyis
36ac326767
Check status code instead of returned error
2024-07-12 20:32:50 +02:00
ekzyis
4e13271dbd
Don't throw if user already exists on signup
2024-07-12 20:30:34 +02:00
ekzyis
0f3866866a
Don't use assert format version unnecessarily
2024-07-12 20:21:12 +02:00
ekzyis
df1886632b
Fix tests
2024-07-12 20:11:03 +02:00
ekzyis
9a92444eee
Add session middleware
2024-07-12 15:30:50 +02:00
ekzyis
2653e816bb
Implement LNURL-auth
2024-07-12 15:18:44 +02:00
ekzyis
8b841aaa09
Rename header to nav
2024-07-12 13:25:00 +02:00
ekzyis
2af3278f15
Remove text-center in /about
2024-07-12 13:21:35 +02:00
ekzyis
6a3a384012
Fix error pages
2024-07-12 11:00:51 +02:00
ekzyis
8aa72dbfa0
Use hx-* attributes
2024-07-12 11:00:51 +02:00
ekzyis
ee3e5e82e4
Remove old code
...
* removed code that will not be used
* removed code that will most likely be rewritten
2024-07-12 11:00:51 +02:00
ekzyis
4ba568951d
Update db schema
2024-07-12 10:59:57 +02:00
ekzyis
94d1f6c1d8
Add login page
2024-07-12 07:12:57 +02:00
ekzyis
fb26910e41
Fix footer margin
2024-07-11 02:59:36 +02:00
ekzyis
815c03efc5
Add Gitea link in /about
2024-07-11 02:46:40 +02:00
ekzyis
8b21d4ac67
Update favicon
2024-07-11 02:46:15 +02:00
ekzyis
a87ce02819
Add figlet component
2024-07-10 09:25:46 +02:00