Keyan
2fc529419e
reduce territory price with prorated refund for actives ( #1761 )
2024-12-23 18:50:35 -06:00
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
k00b
16b7160d36
increase create invoice timeout
2024-12-18 13:47:03 -06:00
k00b
faeefdc498
increase send payment timeout
2024-12-18 12:09:07 -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
Riccardo Balbo
bdd24130f9
Nip46 auth with NDK ( #1636 )
...
* 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>
* nip46 auth
* style tweak, remove unmaintained signers from the list
* don't use modal
* workaround url parsing
* use kind 27235
* add kind 27235 metadata
* show suggestion after a timeout
* Update lib/nostr.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update components/nostr-auth.js
Co-authored-by: ekzyis <ek@stacker.news>
* fix unrelated lnauth crash when closing ext prompt
* make ui consistent ...
* give buttons spacing
---------
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>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-13 20:25:34 -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
06a3a71eb9
Use new TimeoutError
2024-12-13 16:29:00 +01:00
ekzyis
fc4303658d
Use AbortSignal.timeout + custom timeout error message ( #1718 )
...
* refactor: replace custom logic with AbortSignal.timeout
* Use custom timeout error message
* Include method and url in fetch timeout error
* Fix error not rethrown
2024-12-13 08:38:42 -06:00
ekzyis
66b7352bf0
Fix forever edits ( #1716 )
...
* Fix forever edits
* Refactor edit check on server
2024-12-12 09:35:30 -06:00
k00b
98fae6c9ae
prioritize payment reliability
2024-12-11 15:38:38 -06:00
Keyan
713227b255
invite paid action ( #1681 )
2024-12-04 12:10:30 -06:00
Riccardo Balbo
7f11792111
Custom invite code and note ( #1649 )
...
* Custom invite code and note
* disable autocomplete and hide invite code under advanced
* show invite description only to the owner
* note->description and move unser advanced
* Update lib/validate.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update lib/webPush.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update api/typeDefs/invite.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update pages/invites/index.js
Co-authored-by: ekzyis <ek@stacker.news>
* Update pages/invites/index.js
Co-authored-by: ekzyis <ek@stacker.news>
* fix
* apply review suggestions
* change limits
* Update lib/validate.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* don't show invite id in push notification
* remove invoice metadata from push notifications
* fix form reset, jsx/dom attrs, accidental uncontrolled prop warnings
* support underscores as we claim
* increase default gift to fit inflation
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-12-01 16:31:47 -06:00
soxa
76e384b188
fix can't upload from iOS camera/mov files ( #1667 )
...
* fix can't upload from iOS camera/mov files
* pivot: iOS automatically transcodes HEVC mov files to H264, custom error if codec not supported
2024-11-30 19:12:13 -06:00
Felipe Bueno
55d1f2c952
Introduce SubPopover ( #1620 )
...
* Introduce SubPopover
* add truncation to sub description popover
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-29 19:58:18 -06:00
ekzyis
799a39b75f
Fix deposit push notifications ( #1662 )
2024-11-28 11:48:08 -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
Riccardo Balbo
d238eafdde
fix typo signular -> singular ( #1623 )
2024-11-20 16:26:18 -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
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
Keyan
a44d0daf09
paid action payment methods as an array ( #1584 )
...
* introduce fee credits & allow paid actions to specify payment method priority
* fix merge issue
* express supported paid action payment methods as an array
* log force payment method skipping methods
* fix stuff
* immutable context
* immutable paidAction context and other fixes
---------
Co-authored-by: Riccardo Balbo <riccardo0blb@gmail.com>
2024-11-12 19:00:51 -06:00
Riccardo Balbo
18700b4201
configurable sybil fee ( #1577 )
...
* configurable sybil fee
* document getSybilFeePercent
* fixes
* remove null check
* refine at the margins
---------
Co-authored-by: k00b <k00b@stacker.news>
2024-11-11 16:59:52 -06:00
ekzyis
72e2d19433
supercharged wallet logs ( #1516 )
...
* Inject wallet logger interface
* Include method in NWC logs
* Fix wrong page total
* Poll for new logs every second
* Fix overlapping pagination
* Remove unused total
* Better logs for incoming payments
* Use _setLogs instead of wrapper
* Remove inconsistent receive log
* Remove console.log from wallet logger on server
* Fix missing 'wallet detached' log
* Fix confirm_withdrawl code
* Remove duplicate autowithdrawal log
* Add context to log
* Add more context
* Better table styling
* Move CSS for wallet logs into one file
* remove unused logNav class
* rename classes
* Align key with second column
* Fix TypeError if context empty
* Check content-type header before calling res.json()
* Fix duplicate 'failed to create invoice'
* Parse details from LND error
* Fix invalid DOM property 'colspan'
* P2P zap logs with context
* Remove unnecessary withdrawal error log
* the code assignment was broken anyway
* we already log withdrawal errors using .catch on payViaPaymentRequest
* Don't show outgoing fee to receiver to avoid confusion
* Fix typo in comment
* Log if invoice was canceled by payer
* Automatically populate context from bolt11
* Fix missing context
* Fix wrap errors not logged
* Only log cancel if client canceled
* Remove unused imports
* Log withdrawal/forward success/error in payment flow
* Fix boss not passed to checkInvoice
* Fix TypeError
* Fix database timeouts caused by logger
The logger shares the same connection pool with any currently running transaction.
This means that we enter a classic deadlock when we await logger calls: the logger call is waiting for a connection but the currently running transaction is waiting for the logger call to finish before it can release a connection.
* Fix cache returning undefined
* Fix typo in comment
* Add padding-right to key in log context
* Always use 'incoming payment failed:'
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-11-08 13:26:40 -06:00
Keyan
0891e51c9e
fix passphrase scanning ( #1553 )
2024-11-07 16:24:41 -06:00
Keyan
d117549348
fix lightning module resolution ( #1551 )
...
* fix tsx usage
* Revert "Revert "Merge pull request #1521 from riccardobl/tordev""
This reverts commit 4cc3780eca
.
* lightning module resolution
* fix our one test
2024-11-07 09:03:54 -06:00
k00b
4cc3780eca
Revert "Merge pull request #1521 from riccardobl/tordev"
...
This reverts commit 3112fc30d8
, reversing
changes made to 803daed2df
.
2024-11-05 20:08:33 -06:00
Riccardo Balbo
571a230b3c
fix require is not defined in ES module scope
2024-11-04 20:09:34 +01:00
Riccardo Balbo
048c27fa7e
Merge branch 'master' into tordev
2024-11-04 10:38:00 +01:00
Keyan
d9e9a6722a
Merge pull request #1528 from riccardobl/trace
...
decode minified stacktrace
2024-11-03 17:28:25 -06:00
Keyan
08b160d663
Merge branch 'master' into tordev
2024-11-03 14:52:21 -06:00
Riccardo Balbo
9e39e0bd01
Merge branch 'master' into tordev
2024-11-03 00:36:42 +01:00
Riccardo Balbo
1d6f1a962b
Merge branch 'master' into trace
2024-11-03 00:36:30 +01:00
Riccardo Balbo
6cb4870595
Merge branch 'master' into blinkreceiver
2024-11-02 11:44:54 +01:00
Riccardo Balbo
c3c3fe1ccb
Always return original stack trace
2024-10-31 15:54:54 +01:00
Riccardo Balbo
be9b919b60
decode minified stacktrace
2024-10-31 15:43:20 +01:00
k00b
b1fc341017
sync/desync from localstorage on vault connect/disconnect
2024-10-30 18:37:45 -05:00
k00b
0c8180d89c
fix active vault check and optional vaultEntries
2024-10-30 13:49:57 -05:00
k00b
dce5762f63
get vault working
2024-10-30 13:49:57 -05:00
k00b
aa04adacea
remove unused phoenix schema
2024-10-30 13:49:57 -05:00
k00b
e96982c353
refactor wallet validation
2024-10-30 13:49:57 -05:00
k00b
ccdf346954
server side config saves
2024-10-30 13:49:47 -05:00
k00b
4826ae5a7b
wip upsertWallet
2024-10-30 13:45:09 -05:00
k00b
2bdbb433df
webln saves at least *double kazoo*
2024-10-30 13:45:09 -05:00
k00b
da020cf899
complete fantasy scaffolding
2024-10-30 13:44:18 -05:00
Riccardo Balbo
b70dbeb6d6
user vault and server side client wallets
2024-10-30 13:41:09 -05:00
Riccardo Balbo
d9a51f9c1c
Merge branch 'master' into tordev
2024-10-29 11:21:25 +01:00
ekzyis
b50bb2fcc1
Replace unicode currency symbols in inline math
2024-10-28 20:00:00 +01:00
Riccardo Balbo
96e1f86bca
use patched authenticatedLndGrpc instead of privoxy to handle non onion grpc traffic
2024-10-26 20:06:22 +02:00