Commit graph

24 commits

Author SHA1 Message Date
Adithya Vardhan
0c421375e5
chore: update to use sat/msat suffixes everywhere (#2271)
* chore: align internal models and methods to use sat/msat suffixes

* chore: update request structs to use sat/msat suffixes

* fix: default max amount to 0 during app creation

* fix: simplify helper functions

* chore: remove unused lnclient probing methods

* chore: remove unused json tags on swap struct

* chore: update frontend to use sat/msat suffixes everywhere

* chore: use request types in frontend

* fix: linting

* fix: remove deprecated sat and msat fields in frontend

* chore: further changes

* fix: avoid sat/msat resolver variable shadowing

* fix: validate Support Alby amounts
2026-05-01 15:41:56 +05:30
Anshuman
1d3f9ecd41
feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153)
* feat: add both Sat and Msat companion fields for all ambiguous balance/amount properties

* feat: add sat and msat companion fields to backend API responses

* chore: align frontend types and other missing fields

* chore: keep old formula for calculating total fee sat

* chore: remove unnecessary balance assignments in cashu and phoenix

* chore: add deprecated comment to non unit fields

* chore: rename callers and variable to specify units

* chore: remove msat fields for channel size and liquidity fields

* chore: drop msat fields from onchain channel size and liquidity responses

* chore: further changes

* chore: remove amount msat field onchain tx

* chore: remove msats from onchain balance response

* chore: remove msat fields for swaps

* chore: remove msat fields for punishment reserves

* chore: simplify rebalancing fee calculation

* chore: remove unnecessary fields

* chore: mark deprecated fields in frontend types

---------

Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
2026-04-17 13:53:28 +05:30
Adithya Vardhan
de60b2565c
fix: unlock error when node is not started (#2151)
* fix: unlock error when node is not started

* chore: use ErrLNClientNotStarted variable
2026-04-07 17:38:47 +05:30
Adithya Vardhan
4efe735acf
fix: prevent LN client access during shutdown (#2096)
* fix: prevent LN client access during shutdown

* chore: run mockery

* chore: push lnClientShuttingDown inside stopLNClient

* fix: use atomic bool for synced access
2026-02-27 15:45:09 +07:00
Roland
4b82192e04
chore: enable 0-conf for LDK flashsats channels (#1884) 2025-11-07 00:13:10 +07:00
Roland
1ebd8e19cb
fix: check payment is not nil before setting invoice and fee (#1790) 2025-10-14 13:24:50 +07:00
Roland
8223f0a11e
Revert "chore: do not pass channel expiry blocks to alby create LSP order endpoint" (#1762)
Revert "chore: do not pass channel expiry blocks to alby create LSP order end…"

This reverts commit 26342781e9.
2025-09-23 12:18:46 +07:00
Roland
26342781e9
chore: do not pass channel expiry blocks to alby create LSP order endpoint (#1754)
(so alby can dynamically choose it based on channel costs)
2025-09-22 22:12:47 +07:00
Adithya Vardhan
55e5477076
feat: request channel info + orders from alby oauth endpoint (#1714)
* feat: request channel info + orders from alby oauth endpoint

* fix: tests

* chore: use identifier instead of url

* chore: change timeout to 30s

* fix: handle optional invoice when requesting lsp order

* chore: minor code cleanup, fixed incorrect error messages

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
2025-09-18 13:04:46 +07:00
Adithya Vardhan
4e0b9c5b37
chore: use NewRequestWithContext instead of NewRequest (#1677) 2025-09-02 19:52:30 +07:00
Roland
13c24c7a87
feat: choose payment method when opening first channel (#1606)
* feat: choose payment method when opening first channel (WIP)

* chore: update terms

* chore: consume lsp endpoint, display fees+LSP in manual channel flow, first channel ui improvements

* chore: improve handling of fee_credits payment method

* chore: add terms and description

* feat: add terms to manual increase incoming capacity flow

* chore: add error handling for get_info endpoint

* feat: allow alby account to pay for manual channel order

* chore: use consistent logging methods

* chore: rename lsp balance sats field to be consistent

* chore: update to use consistent field name for public key in auto channel request

* chore: rename channel suggestion url and type fields

* feat: support included payment method

* chore: update LDK startup peers

* chore: move non-oauth methods out of alby oauth service

* chore: improve terms around duration, only display duration in terms modal
2025-08-27 23:34:15 +07:00
Roland
56fa7c89cf
fix: pass token to LNServer to indicate 0-conf support (#1339) 2025-05-25 14:13:40 +07:00
Roland
4c5db75590
fix: update required_channel_confirmations and funding_confirms_within_blocks to match lsps1 spec (#870) 2024-12-16 16:00:38 +07:00
Roland
bfb79a3493
chore: set token for olympus LSP (#665) 2024-09-20 23:29:05 +07:00
Roland
ca4f1fa1bc
fix: use 1 channel confirmation for non-LDK node types (#641)
* fix: use 1 channel confirmation for non-LDK node types

* fix: properly get ln backend type from config
2024-09-11 23:07:43 +07:00
Roland
8837aeefe7
chore: set user agent when doing lsp requests (#488) 2024-08-15 21:13:06 +07:00
Roland
5027a05f99
chore: reduce number of info logs, remove echologrus middleware (#408)
* chore: reduce number of info logs, remove echologrus middleware

* chore: add extra properties to echo request logger
2024-08-06 21:30:13 +07:00
Roland
b86c39d542
feat: new first channel flow (#324)
* feat: new first channel flow

* chore: hide public channel checkbox behind advanced options

* chore: always use new channel flow

* chore: add extra links to other ways to open channels

* fix: check if payment exists on order response

* chore: remove request to pay channel with alby shared node funds, add error handling

* feat: use auto channel flow for first channel

* chore: better other options on channel purchase pages

* chore: add user agent to alby api requests

* chore: remove unused lsp types

* chore: remove unused constant

* fix: hide sidebar hint on first channel flow

* fix: sync wallet on opening page

* fix: do not shown 0 confirmations on opening first channel page

* fix: make sure confetti only shows once

* fix: only show transferred alby funds toast once

* feat: add minimum threshold, add illustration

* fix: add constant

* fix: spacing, illustrations, copy

* fix: copy

* fix: copy

* fix: exchange light / dark images

* chore: update first channel opened page CTA to go to wallet

---------

Co-authored-by: René Aaron <rene@twentyuno.net>
2024-07-25 20:57:16 +07:00
Roland Bewick
3088373477 chore: rename everything to alby hub 2024-07-05 20:32:40 +07:00
Roland
b54ed570bb
fix: exclude tor uris from lsps1 info response (#535) 2024-06-28 21:21:08 +07:00
Roland
42d70d53ac
feat: Split new channel flow into "Increase Spending Balance" and "Increase Receiving Capacity" (#500) 2024-06-26 11:44:52 +07:00
Roland
2c4f14237a
fix: update LSPS1 to match latest spec changes (#483) 2024-06-24 10:33:41 +07:00
Roland
9db3f336c3
fix: correct amounts in LSPS1 order summary (#450) 2024-06-17 22:44:54 +07:00
Roland
d06b421769
Split service into packages (#435) 2024-06-17 19:42:09 +07:00
Renamed from lsp/lsp_service.go (Browse further)