Skip to content

Introduce Flow utilities and OffersMessageFlow implementation#3639

Merged
valentinewallace merged 6 commits intolightningdevkit:mainfrom
shaavan:flow
Jun 2, 2025
Merged

Introduce Flow utilities and OffersMessageFlow implementation#3639
valentinewallace merged 6 commits intolightningdevkit:mainfrom
shaavan:flow

Conversation

@shaavan
Copy link
Copy Markdown
Member

@shaavan shaavan commented Mar 3, 2025

This PR presents an alternative approach to #3412.

It introduces the Flow trait and its implementation, OffersMessageFlow, as a mid-level API that abstracts most Offers-related logic out of ChannelManager, while allowing ChannelManager to be parameterized over Flow.

This improves modularity and separation of concerns, making the Offers-related code more maintainable. Additionally, it provides a set of functional utilities for users who do not use ChannelManager in their workflow.

Loading
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.

6 participants