-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move reusable API parts to a trait #1614
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #1614 +/- ##
==========================================
+ Coverage 85.92% 85.95% +0.02%
==========================================
Files 151 151
Lines 11471 11471
Branches 505 505
==========================================
+ Hits 9857 9860 +3
+ Misses 1614 1611 -3
|
Plugins won't need to re-implement splitted part and API rules will be more or less standard across base and plugins.
What about this one, especially in light of #1640? FWIW my opinion is current approach is good for these reasons:
|
# Conflicts: # eclair-node/src/main/scala/fr/acinq/eclair/api/Service.scala
We have plans to heavily re-work the JSON API in the not-too-distant future, so I don't think we'll take in changes like the ones you propose until we've figured out where we want to go in more details. Extending the API for custom nodes can very easily be done in a fork for now, it's a part that doesn't move much so it's easy to keep up-to-date with |
Will keep it open to give it a chance to be considered still. |
Is this still necessary? I believe the changes we made to plugins recently enabled something similar to what this PR was doing. |
Just forgot about this one, not relevant any more indeed. |
This takes all reusable parts from
Service
trait and puts them into a more generally applicableAbstractService
trait. The goal is to provide reusable parts for plugins which would establish API of their own (HC is such a plugin).