Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Based on the code analysis so far, I can generate the final response:
Marking "Take orders" as complete appears premature
While basic order-taking functionality exists (
take_order
method), the implementation appears incomplete:Please consider:
🔗 Analysis chain
Verify the completeness of the "Take orders" implementation
While marking the "Take orders" feature as complete, several dependent features are still pending implementation:
Please verify that the current implementation:
Let's verify the implementation completeness:
Let's gather more specific information about the implementation.
Let's gather more specific information about the buy/sell implementation.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 534
Script:
Length of output: 10967
Script:
Length of output: 4370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with the rabbit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grunch, glad we agree. If there's anything I can assist with in implementing the remaining aspects of the "Take orders (Buy & Sell)" feature—such as handling encrypted DMs (Nostr event kind 4), hold invoice processing, or order status updates—please feel free to reach out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested by with this you confirm that someone can take a buy order, mostro send you a lightining invoice and mostrui shows the QR code to pay it, and mostrui can handle the invoice payment by the seller, is this the behavior we have right now on take buy ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grunch, based on the current codebase analysis, it appears that the functionality you described—where someone can take a buy order, Mostro sends a Lightning invoice, mostrui displays the QR code for payment, and mostrui handles the invoice payment by the seller—is not fully implemented yet.
Specifically:
Given that these critical components are missing, it might be premature to mark the "Take orders (Buy & Sell)" feature as complete in the README. It may be advisable to keep this item unchecked until the full functionality is implemented and tested.
If you'd like, I can assist with outlining the steps needed to implement these features.
🔗 Analysis chain
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, you're right, it just send take-buy action to mostro. But mostrui doesn't show the QR code to pay for it nor can it handle the payment of the invoice by the seller.
I will close this pr until the whole process is completed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.