Commit graph

3080 commits

Author SHA1 Message Date
P. Reis
7d2258ff50 refactor: delete old controllers code: swapNutzapsToWalletController, createNutzapInformationController and createCashuWalletController 2025-02-12 20:11:02 -03:00
P. Reis
96a16a9fd0 feat: create GET '/api/v1/ditto/cashu/mints' endpoint 2025-02-12 16:33:56 -03:00
P. Reis
7095519198 chore: remove done comments 2025-02-12 13:46:37 -03:00
P. Reis
03946fabc8 test: GET /wallet must be successful 2025-02-11 22:11:06 -03:00
P. Reis
5e86844c12 feat: craete GET '/api/v1/ditto/cashu/wallet' endpoint
refactor: remove old swap controller and create swapNutzapsMiddleware
2025-02-11 22:10:33 -03:00
P. Reis
76f91687bd test: split test into 2 test functions 2025-02-11 12:58:02 -03:00
P. Reis
edd9512b01 test: PUT '/api/v1/ditto/cashu/wallet' endpoint must NOT be successful 2025-02-11 11:45:14 -03:00
P. Reis
89840eb279 refactor: create walletSchema and use it where required 2025-02-11 11:29:58 -03:00
P. Reis
1ff6511b39 test: PUT '/api/v1/ditto/cashu/wallet' endpoint 2025-02-11 11:07:46 -03:00
P. Reis
b74a0ffac0 refactor: create NIP-60 wallet and NIP-61 nutzap information event in the same endpoint 2025-02-11 10:59:04 -03:00
P. Reis
5076cdcc33 Merge branch 'main' into cashu 2025-02-10 17:18:40 -03:00
Alex Gleason
425edf2174
Add controller test, refactor some middlewares 2025-02-10 12:41:41 -06:00
Alex Gleason
1368304d25
Add cashuApp (rough draft) 2025-02-10 12:04:46 -06:00
P. Reis
00d10c7f9b refactor: TODO comments 2025-02-10 13:24:19 -03:00
Alex Gleason
1c4f0a87d5 Merge branch 'index-u-tags' into 'main'
feat: index 'u' tags

See merge request soapbox-pub/ditto!644
2025-02-10 16:04:50 +00:00
P. Reis
5a19a35847 Merge branch 'main' into cashu
Conflicts:
	deno.json
2025-02-10 12:48:55 -03:00
P. Reis
f85e7f7c33 feat: index 'u' tags 2025-02-09 21:27:38 -03:00
Alex Gleason
424272c97b Merge branch 'nip05-db' into 'main'
Store NIP-05 in the database

See merge request soapbox-pub/ditto!641
2025-02-09 23:46:50 +00:00
Alex Gleason
16f3a13364
SimpleLRU: respect AbortSignal 2025-02-09 17:22:53 -06:00
Alex Gleason
a597eae674
Merge remote-tracking branch 'origin/main' into nip05-db 2025-02-09 15:11:20 -06:00
Alex Gleason
8db0238c9a Merge branch 'asyncutil' into 'main'
@lambdalisue/async -> @core/asyncutil

See merge request soapbox-pub/ditto!643
2025-02-09 21:07:40 +00:00
Alex Gleason
433c2a4347
@lambdalisue/async -> @core/asyncutil 2025-02-09 15:06:13 -06:00
Alex Gleason
56e478a65d Merge branch 'rm-fetch-worker' into 'main'
Remove fetchWorker

See merge request soapbox-pub/ditto!642
2025-02-09 21:04:24 +00:00
Alex Gleason
838f773b84
Remove fetchWorker 2025-02-09 15:02:15 -06:00
Alex Gleason
a98bfdd0c6
fetchWorker: try throwing a preemptive AbortError inside the worker itself 2025-02-09 14:52:43 -06:00
Alex Gleason
93874df063
fetchWorker: log responses 2025-02-09 14:50:28 -06:00
Alex Gleason
576a66460f
fetchWorker: preemptively throw if signal is aborted 2025-02-09 14:45:26 -06:00
Alex Gleason
ebbde66824
Add @core/asyncutil 2025-02-09 14:34:12 -06:00
Alex Gleason
41419e84dc
Refetch nip05 if last_verified is null 2025-02-09 14:20:32 -06:00
Alex Gleason
8386fe7609
try-catch favicon fetch 2025-02-09 13:32:47 -06:00
Alex Gleason
dd009de5be
Wrap nip05 updates in a try-catch 2025-02-09 13:31:17 -06:00
Alex Gleason
8c60a4842b
Fix NIP05 verification 2025-02-09 13:27:05 -06:00
Alex Gleason
48507b7505
faviconCache: check favicon.ico explicitly 2025-02-09 11:57:09 -06:00
P. Reis
cde091132e fix: remove comment 2025-02-09 11:54:12 -03:00
Alex Gleason
e7027af1ae
Fix hydrating mentions 2025-02-08 10:13:38 -06:00
Alex Gleason
b8c67a85d0
hydrate: move gatherMentions down 2025-02-08 09:58:02 -06:00
P. Reis
efceee505a fix: pass privkey to cashuWallet.receive 2025-02-07 23:49:57 -03:00
P. Reis
361ef9a600 fix: stop trying to decrypt kind 7376 content (lol), log errors 2025-02-07 23:32:21 -03:00
P. Reis
55cc109376 Merge branch 'main' into cashu 2025-02-07 22:53:34 -03:00
P. Reis
f9da100936 refactor(swapNutzapsToWalletController): change to POST method 2025-02-07 22:41:39 -03:00
Alex Gleason
5811a19151
Fix mentions in statuses? 2025-02-07 19:05:37 -06:00
Alex Gleason
7780507a15
Add semaphore to nip05 script 2025-02-07 18:17:50 -06:00
Alex Gleason
b902abc7cc
Use an even simpler query for db:populate:nip05 script 2025-02-07 18:13:39 -06:00
Alex Gleason
b0dc7faaff
Simplify db:populate:nip05 script 2025-02-07 17:49:39 -06:00
Alex Gleason
a4a26d7575
Make db:populate:nip05 script more efficient 2025-02-07 17:48:07 -06:00
Alex Gleason
5157a90b63
Add populate:nip05 script 2025-02-07 16:03:22 -06:00
Alex Gleason
93141c1db1
Hook everything up? (In a messy way) 2025-02-07 15:39:25 -06:00
P. Reis
a6c7bbd751 createNutzapInformationController: add TODO message 2025-02-07 18:11:39 -03:00
Alex Gleason
d9b0bc1437
Add nip05 and favicon results to the database, make renderAccount synchronous 2025-02-07 13:39:56 -06:00
Alex Gleason
af262b5d52
Whoops, fix streak days calculation 2025-02-07 12:06:34 -06:00