Conversation
b8611f6 to
5e9bc0e
Compare
467a5a4 to
665ad0a
Compare
7e0cff1 to
4b60ea1
Compare
89ba629 to
2220ab7
Compare
2220ab7 to
d4261f5
Compare
t-bast
reviewed
Mar 5, 2025
Member
t-bast
left a comment
There was a problem hiding this comment.
Mostly small architectural comments and nits at that point, the overall flow looks good!
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/OfferManager.scala
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/DefaultHandler.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala
Outdated
Show resolved
Hide resolved
1f1f024 to
242fa8c
Compare
t-bast
reviewed
Mar 6, 2025
eclair-node/src/main/scala/fr/acinq/eclair/api/handlers/Offer.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/DefaultHandler.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/DefaultOfferHandler.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/DefaultOfferHandler.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/DefaultOfferHandler.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/DefaultOfferHandler.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/OfferManager.scala
Outdated
Show resolved
Hide resolved
3dde178 to
e6ed8fd
Compare
This commit doesn't contain any implementation change, it only focuses on refactoring, adding comments, logs, applying formatter suggestions and improving tests.
t-bast
reviewed
Mar 7, 2025
eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/fixtures/MinimalNodeFixture.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/test/scala/fr/acinq/eclair/wire/protocol/OfferTypesSpec.scala
Outdated
Show resolved
Hide resolved
t-bast
reviewed
Mar 10, 2025
Member
t-bast
left a comment
There was a problem hiding this comment.
Some improvements to the tests, and we should be good to go!
eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/payment/OfferPaymentSpec.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/payment/OfferPaymentSpec.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/payment/OfferPaymentSpec.scala
Show resolved
Hide resolved
eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/payment/OfferPaymentSpec.scala
Show resolved
Hide resolved
t-bast
approved these changes
Mar 10, 2025
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2976 +/- ##
==========================================
- Coverage 86.02% 85.84% -0.19%
==========================================
Files 228 234 +6
Lines 20452 21100 +648
Branches 846 846
==========================================
+ Hits 17594 18113 +519
- Misses 2858 2987 +129
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Enable basic offer management without the need for a plugin.
Offers allow a wide range of use-cases and it would be impossible to cover everything in eclair which is why we have relied on plugins to manage offers. However most users will not need advanced features, with this PR we aim to provide the basic features that will be enough for 95% of users. Advanced users can still use a plugin to manage more complex offers.
Supported use-cases: