Commit Graph

129 Commits

Author SHA1 Message Date
fiatjaf
80d0546ce6 we should be doing this since years ago: force an EOSE if the relay refuses to give us one. 2025-08-25 22:42:05 -03:00
fiatjaf
2875648ee3 handle wot filter error. 2025-07-24 13:25:08 -03:00
fiatjaf
f38ce069a9 fix type assertions from [32]byte to nostr.PubKey or nostr.ID. 2025-05-22 08:52:45 -03:00
fiatjaf
f4855dba4e BatchedSubManyEose => BatchedQueryMany 2025-05-12 09:25:02 -03:00
fiatjaf
f60fc08f8d eventstore: QueryEvents() to take a maxLimit param now so everything is clearer. 2025-05-11 09:36:59 -03:00
fiatjaf
c0934e0639 since and until are not pointers anymore because that is too annoying. 2025-05-08 09:32:54 -03:00
fiatjaf
a58015b3e9 sdk: FetchSpecificEvent takes an option SaveToLocalStore that defaults to false. 2025-05-06 16:39:31 -03:00
fiatjaf
05bf7b9c4f sdk: more PrepareNote() tests. 2025-05-06 00:03:47 -03:00
fiatjaf
ce2148901d sdk: finish PrepareNote() 2025-05-05 23:38:23 -03:00
fiatjaf
3723924561 nip61: perhaps simplify the function signature and support specific source mints. 2025-05-05 16:56:22 -03:00
fiatjaf
aaf0740513 partial docs update. 2025-04-21 15:44:45 -03:00
fiatjaf
59bddab471 sdk/hints: silence badger logger. 2025-04-21 10:26:33 -03:00
fiatjaf
110ff7624f sdk: get rid of With*** mods on NewSystem() 2025-04-21 10:13:29 -03:00
fiatjaf
15c6093c9b define a nostr.Kind type for event kinds, make adjustments everywhere and fix some horrible bugs with mmm, lmdb and badger querying and deleting. 2025-04-20 11:15:41 -03:00
fiatjaf
fb688575e8 sdk tests compile but not all pass yet. 2025-04-18 11:59:25 -03:00
fiatjaf
1c56906506 fix some pubkeys that were strings still. 2025-04-17 00:54:50 -03:00
fiatjaf
0130725321 sdk finally compiles. 2025-04-17 00:36:33 -03:00
fiatjaf
a7be696243 a bunch of conversions and api tweaks on khatru and eventstore. 2025-04-17 00:15:15 -03:00
fiatjaf
5b8954461f it never ends. 2025-04-16 02:59:47 -03:00
fiatjaf
cb0dd45a32 go mod tidy works now at least. 2025-04-15 18:40:56 -03:00
fiatjaf
2b5b646a62 a big bundle of conversions and other changes. 2025-04-15 17:13:57 -03:00
fiatjaf
376834cbf9 more conversions. 2025-04-15 00:00:03 -03:00
fiatjaf
b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
Kay
40535e6b19 feat(nip11): update to nips pr nostr-protocol/nip#1821 2025-04-13 14:15:43 -03:00
fiatjaf
a90f9e61a2 sdk: prepare note for publication (wip). 2025-04-10 17:49:03 -03:00
fiatjaf
0fc00d8a68 sdk/hints: eliminate two unnecessary unsafe conversions on copy. 2025-04-07 15:14:56 -03:00
fiatjaf
14beb34363 sdk: hint tracker to use new nip27 parser. 2025-04-06 13:33:30 -03:00
fiatjaf
a88b34ed3c sdk/hints: simplify memory. 2025-04-06 11:56:48 -03:00
fiatjaf
2e28cc809a sdk/hints: HintsDB.GetDetailedScores() 2025-04-06 11:47:08 -03:00
fiatjaf
198dc6ebda fix (break) sys.FetchWriteRelays() signature. 2025-04-04 23:40:27 -03:00
fiatjaf
087e6c220a sdk: include level1 follows in the wot. 2025-04-04 14:34:16 -03:00
fiatjaf
72eeabd2f4 sdk: wot knows its size. 2025-04-04 14:32:08 -03:00
fiatjaf
4705719c76 sdk: fix wot filter. 2025-04-04 13:47:39 -03:00
fiatjaf
c3cfb21097 sdk: replaceable loader checks if result exists first on map. 2025-04-03 23:25:59 -03:00
fiatjaf
f3ef256e65 sdk: wot xor filter has a proper .Contains() function. 2025-04-03 23:25:08 -03:00
fiatjaf
0d5daf66bf sdk: beginnings of basic wot helpers. 2025-03-28 21:49:26 -03:00
fiatjaf
a60e225a5f sdk/dataloader simplify and fix lock issues, now it will work. 2025-03-28 17:41:41 -03:00
fiatjaf
d1fca24cc3 sdk/dataloader: fix lock around reset()/create new batch logic. 2025-03-25 19:45:17 -03:00
fiatjaf
15d946dad8 sdk: update list of fallback relays. 2025-03-25 17:37:47 -03:00
fiatjaf
ca9c2d7c57 sdk/hints: add lmdb implementation. 2025-03-25 17:06:28 -03:00
fiatjaf
a1e2a46b5b sdk/hints: add badger implementation. 2025-03-25 17:00:37 -03:00
fiatjaf
3ebfc7812b sdk: simplified dataloader event more. should be faster. 2025-03-24 15:50:10 -03:00
fiatjaf
78dbf9def5 use our own dataloader and simplify batch replaceable requests, removing bugs. 2025-03-24 15:50:10 -03:00
fiatjaf
d2ceac48f6 sdk: FetchWriteRelays() shouldn't have a hardcoded fallback, it's better to fail. 2025-03-12 00:18:41 -03:00
fiatjaf
769887fac1 sdk: ConcurrentMetadata test to fail properly. 2025-03-10 09:57:35 -03:00
fiatjaf
bbccd56108 kvstore: get rid of useless copy()s 2025-03-10 03:05:41 -03:00
fiatjaf
459273216c replace deprecated functions in multiple places. 2025-03-10 02:56:12 -03:00
fiatjaf
8d869009b0 localhost and 127.0.0.1 are "virtual" relays, but not when running go test 2025-03-10 02:49:08 -03:00
fiatjaf
7e04bbb4b8 breaking pointer mess
- ExternalPointer (?)
- nip27, nip22 and nip10 functions to return pointers
- get rid of sdk/thread helpers that were just a thin layer over nip10 and nip22
2025-03-10 02:38:06 -03:00
fiatjaf
5bfaed2740 docstrings for many functions. 2025-03-04 11:42:44 -03:00