Riccardo Balbo
e4ca2d6e07
Refine #1739 and fix regression causing nostr crossposts and login to not work ( #1740 )
...
* Refine #1739 and fix regression causing crossposts and login to not work
* use temp nostr instance for signing
2024-12-19 08:27:45 -06:00
ekzyis
4db2edb1d9
Close relay connections after each NWC call ( #1739 )
2024-12-19 00:11:03 -06:00
ekzyis
6098d39574
Fix missing logs on save ( #1729 )
...
* Fix missing logs on save
* fix receive logs wrt device sync
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-16 17:37:31 -06:00
ekzyis
62a922247d
Add timeouts to all wallet API calls ( #1722 )
...
* Add timeout to all wallet API calls
* Pass timeout signal to wallet API
* Fix timeout error message not shown on timeout
* Fix cross-fetch throws generic error message on abort
* Fix wrong method in error message
* Always use FetchTimeoutError
* Catch NDK timeout error to replace with custom timeout error
* Also use 15s for NWC connect timeout
* Add timeout delay
2024-12-16 14:05:31 -06:00
ekzyis
14de23b21d
Refactor CLN function signatures ( #1726 )
2024-12-14 10:32:51 -06:00
ekzyis
3cdfe620d0
Refactor Blink function signatures ( #1725 )
...
This makes them consistent with function signatures of other wallets
2024-12-14 08:56:45 -06:00
ekzyis
77d22cfd77
Remove unused wallet context args ( #1724 )
2024-12-14 08:55:08 -06:00
ekzyis
285203889d
Remove unused import
2024-12-13 21:20:51 +01:00
ekzyis
a50a2c8bd1
Fix receiver fallbacks depend on fast polls ( #1723 )
2024-12-13 14:19:00 -06:00
Riccardo Balbo
d73f6323ff
NDK ( #1590 )
...
* ndk
* fix: remove duplicated zap note event template
* don't init Nip07 signer by default
* Update wallets/nwc/server.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* nwc protocol parsing workaround
* WebSocket polyfill for worker
* increase nwc timeout
* remove NDKNip46Signer type
* fix type annotation
* move eslint-disable camelcase to the top
* pass event args to the constructor
* fix error handling
* Update wallets/nwc/index.js
Co-authored-by: ekzyis <ek@stacker.news>
* Fix type annotation
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-12-13 13:28:36 -06:00
ekzyis
64ba7a56cb
Fix missing wallet error logging
2024-12-13 11:30:54 +01:00
ekzyis
8f092cdc66
Use consistent view about failed forwards
2024-12-11 20:09:49 +01:00
ekzyis
a46f81f1e1
Receiver fallbacks ( #1688 )
...
* Use same naming scheme between ln containers and env vars
* Add router_lnd container
* Only open channels to router_lnd
* Use 1sat base fee and 0ppm fee rate
* Add script to test routing
* Also fund router_lnd wallet
* Receiver fallbacks
* Rename to predecessorId
* Remove useless wallet table join
* Missing renaming to predecessor
* Fix payment stuck on sender error
We want to await the invoice poll promise so we can check for receiver errors, but in case of sender errors, the promise will never settle.
* Don't log failed forwards as sender errors
* fix check for receiver error
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-10 14:15:29 -06:00
ekzyis
a5fa40aa1b
Fix comment in useSendWallets ( #1691 )
2024-12-09 09:04:41 -06:00
ekzyis
ec904e6b4c
Move useInvoice and useQrPayment into own files ( #1686 )
2024-12-05 08:52:32 -06:00
k00b
105f7b07e5
make fallback retry cache updates a special case
2024-11-28 11:22:46 -06:00
k00b
cb028d217c
fix zap fallback retries in notifications
2024-11-28 10:48:22 -06:00
k00b
6b59e1fa75
usesendwallets
2024-11-27 19:39:20 -06:00
k00b
f89286ffdf
make logger use full wallet
2024-11-27 19:10:00 -06:00
k00b
67f6c170aa
readability improvements
2024-11-27 18:39:23 -06:00
ekzyis
f9169c645a
Fix [undefined] in logs
2024-11-28 01:36:29 +01:00
ekzyis
a0d33a23f3
Fix wallet save
2024-11-28 01:16:30 +01:00
k00b
b608fb6848
refactor out array of hooks
2024-11-27 17:31:08 -06:00
ekzyis
9cfc18d655
Return latest state of paid or failed invoice
2024-11-27 23:00:27 +01:00
ekzyis
68513559e4
Remove unnecessary error handling in LNC
...
We already wrap sendPayment with our own error handling so these errors will become instances of WalletPaymentErrors anyway
2024-11-27 23:00:27 +01:00
ekzyis
a4144d4fcc
Fix missing item invoice update for optimistic actions
2024-11-27 23:00:27 +01:00
ekzyis
0051c82415
Fix invoice retry even if no payment was attempted
2024-11-27 23:00:27 +01:00
ekzyis
14a92ee5ce
Fix filter for wallets that can send
...
Testing for canSend is not enough since it can also return true if the wallet is not enabled.
This is the case because we want to allow disabling wallets but canSend must still return true in this case if send is configured.
This should probably be changed such that canSend only returns true when the wallet is enabled without preventing disabling of wallets.
2024-11-27 23:00:27 +01:00
ekzyis
b1cdd953a0
Return last attempted invoice in canceled state
2024-11-27 23:00:27 +01:00
ekzyis
7e25e29507
Show aggregated wallet errors in QR code
2024-11-27 23:00:27 +01:00
ekzyis
be4ce5daf9
Allow retries of pessimistic actions
2024-11-27 23:00:27 +01:00
ekzyis
1f2b717da9
Fix last wallet not returning new invoice
2024-11-27 23:00:27 +01:00
ekzyis
413f76c33a
Refactor wallet error handling with inheritance
2024-11-27 23:00:27 +01:00
ekzyis
ed82d9cfc0
Fix payments if recv-only wallet enabled
2024-11-27 23:00:27 +01:00
ekzyis
d99caa43fc
Remove unnecessary sort
2024-11-27 23:00:27 +01:00
ekzyis
7036804c67
Fix old invoice passed to QR code
2024-11-27 23:00:27 +01:00
ekzyis
7742257470
Fix TypeError
2024-11-27 23:00:27 +01:00
ekzyis
bc0c6d1038
Fix SenderError name
2024-11-27 23:00:27 +01:00
ekzyis
5218a03b3a
sender fallbacks
2024-11-27 23:00:27 +01:00
ekzyis
2b47bf527b
Fix comment
2024-11-27 23:00:27 +01:00
Riccardo Balbo
e05989d371
Improve LNC realiability by being nicer ( #1658 )
...
* be nicer to lnc
* decrease timeout to 4 seconds
2024-11-27 12:46:40 -06:00
Keyan
0bff478d39
direct receives and send paid action ( #1650 )
...
* direct receives and send paid action
* remove withdrawl->invoiceForward has many relationship
* fix formatMsats implicit type expectations
* ui + dropping direct payment bolt11s
* squash migrations
* fix bolt11 dropping and improve paid action wallet logging
* remove redundant sender id
* fix redirect when funding account over threshold
* better logging
2024-11-27 07:39:05 -06:00
ekzyis
b0207a2906
Create useWalletStatus and useWalletSupport ( #1646 )
2024-11-23 20:19:22 -06:00
Riccardo Balbo
a7ea380476
fix LNC attachment and docs ( #1639 )
2024-11-22 18:03:02 -06:00
Riccardo Balbo
83341d5b7d
add in error message how high are estimated fees when too high ( #1634 )
2024-11-22 08:26:18 -06:00
ekzyis
277f8a20fb
Fix lnaddr not returning payment request ( #1626 )
2024-11-20 19:57:16 -06:00
ekzyis
7448cef932
Fix wallet status ignoring failed requests to create invoices ( #1624 )
2024-11-20 16:26:50 -06:00
ekzyis
f45144cb1c
Always check res.ok and content-type header ( #1621 )
...
* Always check res.ok and content-type header
* Fix blink body consumed before we use it
* Always consume response body to avoid memory leaks
2024-11-20 12:46:39 -06:00
ekzyis
570c842934
Wallet send+recv status derived from logs ( #1559 )
...
* Derive wallet status from logs
* Add send/recv icons
* Set status individually for send and recv
* Move status logic into own function
* Add LNbits, Blink, CLN, LND, phoenixd logo
* Fix wallet.status.any not using Status enum
* Fix WebLN being weird
* Use phoenixd logo with text
* Also use wallet logo on config page
* Also poll logs for wallet status
* Use logger.info for logs not relevant for wallet status
* Remove no longer used wallet badges
* Crop LND logo like other logos
* Fix all wallets show 'configure'
* Fix wallet status not respecting enabled
* Fix wallet.def.requiresConfig undefined
* Fix banner shown for WebLN
* Fix attach shown when configured
* Filter by context.status to determine wallet status
* Fix +- shown without context
* Fix missing theme support for wallet logos
2024-11-18 16:46:24 -06:00
Riccardo Balbo
9c55f1ebe2
Implement deposit as receive paidAction ( #1570 )
...
* lnurlp paid action
* lnurlp has 10% sybil fee
* fix merge issue
* Update pages/settings/index.js
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
* fix notifications
* fix destructure
* pass lud18Data to lnurlp action
* minor cleanup
* truncate invoice description to permitted length
* remove redundant targetUserId
* lnurlp paidAction -> receive paidAction
* remove redundant user query
* improve determining if peer is invoiceable
* fix inconsistent relative imports
* prevent paying self-proxied invoices and better held invoice cancellation
* make gun/horse streak zap specific
* unique withdrawal hash should apply to confirmed payments too
* prevent receive from exceeding wallet limits
* notifications
* fix notifications & enhance invoice/withdrawl page
* notification indicator, proxy receive based on threshold, refinements
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-15 18:38:14 -06:00