Skip to content

Comments

feat: add Ark LNClient#1191

Draft
rolznz wants to merge 9 commits intomasterfrom
feat/ark
Draft

feat: add Ark LNClient#1191
rolznz wants to merge 9 commits intomasterfrom
feat/ark

Conversation

@rolznz
Copy link
Contributor

@rolznz rolznz commented Mar 16, 2025

Testing out the Ark SDK. Currently you can send and receive vtxos via custom node commands and see your off-chain balance. You can pay and receive lightning payments (although receive will throw an error because we don't set the preimage yet)

TODOs:

  • Onboarding experimental warning
  • Onboarding actually works (setting backend type to Ark via onboarding)
  • Do not allow in cloud setup (needs local file storage) - or test switching to in-memory? is there a trust tradeoff there?
    • test same seed recovering with a brand new hub
    • test same seed in fulmine
  • failed payment tests
    • invoice already paid by other wallet - Ark successfully recovers the funds
      • re-test that Alby hub correctly marks the payment as failed
      • invoice already paid by other wallet - exit the goroutine before the recovery is started
    • invoice expired - alby hub prevents this
    • swap expired (recipient not online at all)
  • pending payment tests
    • recipient is offline then later comes online after hub shutdown while waiting for swap
  • Save pending swaps
    • Test restarting app while swap is in process (manual command to recover)
    • Test recovering funds when boltz failed to pay (e.g. pay a previously valid invoice that then expires)
  • Provide preimage when making invoice
  • Refreshing VTXOs background task
  • List VTXOs (via debug tools only)
  • List off-chain transactions?
  • Understand better how the swaps work: how long is the swap valid (2 weeks? or what is the RefundLocktime for? why doesn't the Typescript SDK do the same? do they just base it from the boltz state?)
    • if boltz definitely fails to pay it allows immediate refund
  • is it ok for now to save pending swaps in the config object (none of our other LNClients need this or have their own data stores)

@rolznz rolznz changed the title feat: add experimental ark lnclient with off-chain (native ark) send and receive via custom node commands feat: add experimental ark lnclient with off-chain (native ark) send and receive Mar 16, 2025
@rolznz rolznz changed the title feat: add experimental ark lnclient with off-chain (native ark) send and receive feat: add Ark LNClient Dec 1, 2025
@rolznz rolznz added this to the v1.22.0 milestone Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant