20 Commits

Author SHA1 Message Date
fiatjaf
1e40fecdc2 sdk: when FetchSpecificEvent() can't find anything return nil and no errors. 2025-09-29 17:04:47 -03:00
fiatjaf
f69c78cba7 irrelevant minor things. 2025-09-29 16:20:19 -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
f60fc08f8d eventstore: QueryEvents() to take a maxLimit param now so everything is clearer. 2025-05-11 09:36:59 -03:00
fiatjaf
a58015b3e9 sdk: FetchSpecificEvent takes an option SaveToLocalStore that defaults to false. 2025-05-06 16:39:31 -03:00
fiatjaf
3723924561 nip61: perhaps simplify the function signature and support specific source mints. 2025-05-05 16:56:22 -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
0130725321 sdk finally compiles. 2025-04-17 00:36:33 -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
fiatjaf
5bfaed2740 docstrings for many functions. 2025-03-04 11:42:44 -03:00
fiatjaf
fec4524324 sdk: FetchSpecificEvent() takes options. 2025-02-16 18:45:29 -03:00
fiatjaf
2d941907e3 sdk: fix fetching specific event from note1 codes. 2025-01-23 14:44:36 -03:00
fiatjaf
40538486d5 sdk/hints: use a single "hint" type instead of nprofile/nevent/tag/nip05. 2025-01-18 18:19:54 -03:00
fiatjaf
febf022124 add some basic sdk tests, fix saving hints (normalize urls), checkduplicates arg order, kvdb stuff and other things. 2025-01-16 17:39:16 -03:00
fiatjaf
e1971d12c0 WithCheckDuplicate(), let's see if this works. 2025-01-15 14:29:38 -03:00
fiatjaf
36ddf1eb36 sdk: FetchSpecific from input string or from a pointer. 2025-01-12 21:29:39 -03:00
fiatjaf
acf63fa7cd fetchspecificevent also accepts a hex id and saves hints. 2025-01-01 17:59:02 -03:00
fiatjaf
7ede46661c fix FetchSpecificEvent() behavior for the faster no-relays case. 2024-10-14 14:47:15 -03:00
fiatjaf
36c197af42 sdk: FetchSpecificEvent() 2024-10-06 15:54:00 -03:00