Skip to content

refactor change-to-swap and submarine-payment parts from GUI to backend #10694

Open
accumulator wants to merge 4 commits into
spesmilo:masterfrom
accumulator:swap_gui_to_backend_refactor
Open

refactor change-to-swap and submarine-payment parts from GUI to backend #10694
accumulator wants to merge 4 commits into
spesmilo:masterfrom
accumulator:swap_gui_to_backend_refactor

Conversation

@accumulator

Copy link
Copy Markdown
Member

Move submarine swap support code from qt gui to backend and common_qt, where applicable.

This covers the functionality for swap use during payments (so, change-to-ln and
submarine-payments) present in gui/qt/confirm_tx_dialog, not the 'standalone' swap.

This is in preparation for adding the same functionality to qml.

  • move backend code present in GUI to backend
  • move common Qt GUI swap support code from TxEditor to SubmarineSwapMixin

@accumulator accumulator force-pushed the swap_gui_to_backend_refactor branch from d8aced5 to b75385e Compare June 8, 2026 15:10
…as SubmarineSwapMixin

    This covers the functionality for swap use during payments (so, change-to-ln and
    submarine-payments) present in gui/qt/confirm_tx_dialog, not the 'standalone' swap.

    This is in preparation for adding the same functionality to qml.

    - move swap support code from TxEditor to SubmarineSwapMixin
    - don't require wallet instance at construction, allow late setting of wallet

swaps: add initialize/destroy methods to SwapServerTransport, to simplify consumer side, adds
a done callback so the transport can be used once ready or failure can be handled.
@accumulator accumulator force-pushed the swap_gui_to_backend_refactor branch from b75385e to 7c72834 Compare June 8, 2026 22:20
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