fiatjaf
1e4848d84d
nip61 and nip60 improvements and fixes.
v0.49.3
2025-02-04 13:43:18 -03:00
fiatjaf
48ce669a3d
sdk: increase sanity threshold of relay lists.
2025-02-04 10:33:28 -03:00
fiatjaf
e7432baeba
nip60: fix a bunch of stupid bugs.
2025-02-04 10:25:13 -03:00
fiatjaf
3c0f4a723a
nip60/nip61: update to latest nip changes.
...
(a single default wallet, always default to sats, no names etc)
2025-02-03 17:22:10 -03:00
fiatjaf
8446557788
debug log relay reconnections.
2025-02-03 10:35:42 -03:00
fiatjaf
d0f53b3b7a
nip61, and related modifications to nip60.
2025-02-03 10:34:31 -03:00
fiatjaf
c9f670d700
sdk: FetchWriteRelays() and comments explaining these relay functions.
2025-01-31 22:48:12 -03:00
fiatjaf
3f901954e6
nip60: emit history.
2025-01-31 15:20:41 -03:00
fiatjaf
b1571e0253
sdk: fix FetchFeedPage()
...
I'm not sure if it was even wrong before, but now at least I understand it and is checked against pen and paper.
2025-01-31 14:27:44 -03:00
fiatjaf
4200144489
nip60: fix mutex double-lock issue when saving change.
v0.49.2
2025-01-30 19:56:30 -03:00
fiatjaf
2b9c50a220
nip60: EnsureWallet() publishes an update if a wallet wasn't found.
2025-01-30 16:10:53 -03:00
fiatjaf
14c4101a03
nip60: Processed is also a function now.
2025-01-30 16:10:53 -03:00
fiatjaf
b86d5d52bb
nip60: Changes channel is a PublishUpdate hook now that must be set, to prevent unpublished updates -- and also now updates have more metadata so the client can display more info about them.
2025-01-30 10:32:23 -03:00
fiatjaf
f0054af4d8
nip60: just rely on nut08 overpaid fees to get change when melting, don't try to swap beforehand.
2025-01-30 09:45:00 -03:00
fiatjaf
be65134354
nip60: an e2e test with two wallets sending tokens around, but it's broken.
v0.49.1
2025-01-29 22:17:57 -03:00
fiatjaf
4ca8320e18
actually this is the real fix.
2025-01-29 22:12:42 -03:00
fiatjaf
181234d774
fix SubMany() global eosed tracking and SubManyNotifyEOSE() proper notification.
2025-01-29 21:36:08 -03:00
fiatjaf
78a9411d8a
nip60: prevent duplicate token entries after doing some operation.
2025-01-29 21:23:15 -03:00
fiatjaf
37db1c924a
nip60: fixes to pay and stuff because it was very broken.
2025-01-29 21:11:13 -03:00
fiatjaf
7c04b497ec
nip60: wallet.PayBolt11()
2025-01-29 14:55:07 -03:00
fiatjaf
26597452c5
nip60: stop requiring the "sat" string on history amounts.
2025-01-29 12:47:33 -03:00
fiatjaf
5e2d455b72
nip60: a helper to get amount from a bolt11 invoice.
2025-01-29 12:47:07 -03:00
fiatjaf
1e76aec884
nip60: fix receive proof saving, send nil to Processed, do a dedicated kind:5 filter, hack for initial processing race condition.
v0.49.0
2025-01-28 23:47:56 -03:00
fiatjaf
794561a3b3
nip60: slight improvement to lightning melt-mint flow.
2025-01-28 23:28:13 -03:00
fiatjaf
2244740f61
nip60: make it work with emitting events to be published dynamically and stuff.
2025-01-28 19:11:18 -03:00
fiatjaf
07b9b3e439
nip60: small fixes.
2025-01-28 16:48:44 -03:00
fiatjaf
edb2f782cf
pool.SubManyNotifyEOSE()
2025-01-28 16:12:53 -03:00
fiatjaf
7eba27f026
nip60: wallet.SendToken() and wallet.SwapProofs()
2025-01-28 15:25:17 -03:00
Josh Floth
bfc85a45a4
Fix nil pointer error in filter within sdk/feeds
2025-01-28 11:32:38 -03:00
fiatjaf
9c4c6529c9
nip60: make client better, fixes to receive flow, wallet helper methods.
2025-01-27 22:11:45 -03:00
fiatjaf
c6747cdf44
nip60: fixes, actual Cashu stuff and a wallet.Receive() method.
2025-01-27 16:33:33 -03:00
fiatjaf
3334f7a48b
implement nip60 events.
2025-01-25 23:35:53 -03:00
fiatjaf
17431dee59
do not close relay connection when ping fails because some relays just do not pong.
v0.48.4
2025-01-25 00:26:38 -03:00
fiatjaf
6daecc8bd2
sdk/hints: ok, we must have the db created wrongly first before we migrate it.
v0.48.3
2025-01-25 00:21:01 -03:00
fiatjaf
1ff5647b2d
sdk/hints: implement sql migrations.
2025-01-25 00:15:39 -03:00
fiatjaf
501b2a7679
sdk: FetchInboxRelays()
2025-01-24 14:35:24 -03:00
fiatjaf
e69eeb8938
nip10: rename GetImmediateReply() -> GetImmediateParent().
2025-01-23 17:52:26 -03:00
fiatjaf
550cf835be
pointer.MatchesEvent()
2025-01-23 16:53:15 -03:00
fiatjaf
2d941907e3
sdk: fix fetching specific event from note1 codes.
v0.48.2
2025-01-23 14:44:36 -03:00
fiatjaf
8d805b39bf
sdk: fix missing preemptive fallback to blank pubkey on FetchProfileMetadata().
2025-01-23 14:41:18 -03:00
fiatjaf
85c268b8e2
sdk: fix for when we have no record of ever trying to fetch replaceables.
v0.48.1
2025-01-21 17:42:07 -03:00
fiatjaf
df6aaa3ad3
sdk: test for feeds and a fix.
2025-01-20 13:45:43 -03:00
fiatjaf
f992c6e7ea
sdk: pubkey feeds, live and past pages.
2025-01-20 13:04:44 -03:00
fiatjaf
40538486d5
sdk/hints: use a single "hint" type instead of nprofile/nevent/tag/nip05.
v0.48.0
2025-01-18 18:19:54 -03:00
fiatjaf
6cffcc3b47
sdk: make it so replaceable stuff is automatically reloaded from time to time.
v0.47.3
2025-01-17 18:21:19 -03:00
fiatjaf
3fd33ce281
fix locking on generic list and set fetching, decrease dataloader batch size, test.
2025-01-17 17:39:24 -03:00
fiatjaf
3e1c0ddc7e
fix pinging relays: use the main relay context, not the relay connection temporary context.
v0.47.2
2025-01-17 14:08:54 -03:00
fiatjaf
06a15fdaab
follow list fetching test and related changes and fixes.
...
- make BatchedSubManyEose() use a single duplicate id index and use it for replaceable loaders;
- fixes parsing follow entry from kind:3 events (and others);
- adds a "cause" to most cancelation errors in relay/pool;
- remove the inherent cache from dataloader (we have our own hopefully);
- increase max frame size we can read from any websocket to 2**18 (262k), which gives over 2000 item lists.
v0.47.1
2025-01-17 13:44:51 -03:00
fiatjaf
adb97d46a7
NormalizeURL() shouldn't lowercase paths.
v0.47.0
2025-01-16 20:08:49 -03:00
fiatjaf
7be028ff7c
sdk: test and fix encode/decode relay lists.
2025-01-16 17:53:44 -03:00