28 Commits

Author SHA1 Message Date
fiatjaf
ab52b3efb2 sdk: ristretto is generic now, no need for the fiatjaf fork. 2024-10-22 08:02:52 -03:00
fiatjaf
986944059f sdk: remove an unnecessary type annotation because this linter thing is annoying. 2024-10-18 07:09:05 -03:00
fiatjaf
7ede46661c fix FetchSpecificEvent() behavior for the faster no-relays case. 2024-10-14 14:47:15 -03:00
fiatjaf
f0f4eb5276 sdk: default eventstore to NullStore instead of SliceStore. 2024-10-06 15:54:00 -03:00
fiatjaf
36c197af42 sdk: FetchSpecificEvent() 2024-10-06 15:54:00 -03:00
fiatjaf
69b97107a9 sdk: deduplicate relay selection for replaceable loader. 2024-09-26 21:09:18 -03:00
fiatjaf
ade77ad6c9 sdk: label some default queries. 2024-09-26 21:08:40 -03:00
fiatjaf
2c19358c3a sdk: I am crazy and had removed the actual cache.Set() calls. 2024-09-26 21:08:16 -03:00
fiatjaf
2edc0fb713 sdk: optimize caching lists (so we don't fetch twice in a row). 2024-09-25 23:45:49 -03:00
fiatjaf
8327310d52 improve SimplePool authHandler, rename IncomingEvent to RelayEvent so we can use it there. 2024-09-19 12:28:42 -03:00
kehiy
47243fdcc4 feat(event): adding more helpers. 2024-09-19 11:34:31 -03:00
fiatjaf
2b04ea9bc1 sdk: do not track hints from ephemeral events. 2024-09-17 08:06:04 -03:00
fiatjaf
2c09338ecb sdk/hints: sqlite backend and tests. 2024-09-16 22:23:55 -03:00
fiatjaf
072da132f4 move nostr-sdk repository into here because why not? 2024-09-11 10:14:13 -03:00
fiatjaf
1789d43d51
move sdk out to its own module. 2023-10-31 17:49:27 -03:00
fiatjaf
5847335506
sdk: return store event along with ProfileMetadata. 2023-10-31 15:22:55 -03:00
fiatjaf
711b0844b1
expose System properties. 2023-10-31 12:16:08 -03:00
fiatjaf
374dbbe1a0
sdk: fetch and cache profiles. 2023-10-31 11:00:46 -03:00
fiatjaf
c506cc0f8b
sdk taking shape. 2023-10-30 19:23:58 -03:00
fiatjaf
a0f6dec451
fix sdk. 2023-10-02 09:13:36 -03:00
Isaque Veras
0f66883dc7 feat(kind): using constants 2023-09-07 07:05:01 -03:00
Kay
ac2350c722 style: using effective go and refactoring 2023-08-21 15:50:05 -03:00
fiatjaf
c0c20b8401
validate and normalize relay urls received from kind 3 and 10002. 2023-07-08 08:16:30 -03:00
fiatjaf
9b2b3b9039
inbox-outbox relay barebones helpers on sdk package. 2023-07-08 07:50:54 -03:00
fiatjaf
b269dd9ce9
sdk: return start and end on references for replacement. 2023-05-26 19:22:59 -03:00
fiatjaf
1c118cd83e
take context.Context for nip-05 resolving. 2023-05-04 13:20:15 -03:00
fiatjaf
b0031bfd86
sdk.ParseReferences() 2023-03-27 08:47:59 -03:00
fiatjaf
392013fa25
sdk package with higher-level functions. 2023-02-27 16:45:45 -03:00