Skip to content
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

add smaug plugin #644

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .ci/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,20 @@ def enumerate_plugins(basedir: Path) -> Generator[Plugin, None, None]:
plugins = list(
[x for x in basedir.iterdir() if x.is_dir() and x.name not in exclude]
)
pip_pytest = [x for x in plugins if (x / Path("requirements.txt")).exists()]
# Explicitly detect rust in case there's python testing code
rust_plugins = [x for x in plugins if (x / Path("Cargo.toml")).exists()]
print(f"Rust plugins: {list_plugins(rust_plugins)}")

pip_pytest = [x for x in plugins if (x / Path("requirements.txt")).exists() and x not in rust_plugins]
print(f"Pip plugins: {list_plugins(pip_pytest)}")

poetry_pytest = [x for x in plugins if (x / Path("pyproject.toml")).exists()]
poetry_pytest = [x for x in plugins if (x / Path("pyproject.toml")).exists() and x not in rust_plugins]
print(f"Poetry plugins: {list_plugins(poetry_pytest)}")

other_plugins = [
generic_plugins = [
x for x in plugins if x not in pip_pytest and x not in poetry_pytest
]
print(f"Other plugins: {list_plugins(other_plugins)}")
print(f"Generic plugins (includes Rust): {list_plugins(generic_plugins)}")

for p in sorted(pip_pytest):
yield Plugin(
Expand All @@ -94,7 +98,7 @@ def enumerate_plugins(basedir: Path) -> Generator[Plugin, None, None]:
},
)

for p in sorted(other_plugins):
for p in sorted(generic_plugins):
yield Plugin(
name=p.name,
path=p,
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@
[submodule "clnrest-rs"]
path = clnrest-rs
url = https://github.com/daywalker90/clnrest-rs.git
[submodule "smaug"]
path = smaug
url = https://github.com/chrisguida/smaug
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Community curated plugins for Core-Lightning.
| [sauron][sauron] | A Bitcoin backend relying on [Esplora][esplora]'s API | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsauron_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsauron_24.08.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsauron_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsauron_nightly.json) |
| [sitzprobe][sitzprobe] | A Lightning Network payment rehearsal utility | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsitzprobe_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsitzprobe_24.08.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsitzprobe_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsitzprobe_nightly.json) |
| [sling][sling] | Rebalance your channels with smart rules and built-in background tasks | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsling_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsling_24.08.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsling_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsling_nightly.json) |
| [smaug][smaug] | Send bkpr-compatible events to bkpr for external on-chain wallet movements | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsmaug_24.02.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsmaug_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsmaug_24.08.1.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsmaug_nightly.json) |
| [summars][summars] | Print configurable summary of node, channels and optionally forwards, invoices, payments | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummars_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummars_24.08.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummars_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummars_nightly.json) |
| [summary][summary] | Print a nice summary of the node status | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummary_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummary_24.08.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummary_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Fsummary_nightly.json) |
| [torq-plugin][torq-plugin] | Better CLN integration into [Torq](https://github.com/lncapital/torq) | ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ftorq-plugin_24.05.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ftorq-plugin_24.08.2.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ftorq-plugin_24.11.json) ![](https://img.shields.io/endpoint?url=https%3A%2F%2Flightningd.github.io%2Fplugins%2F.badges%2Ftorq-plugin_nightly.json) |
Expand Down Expand Up @@ -245,6 +246,7 @@ more detailed description (if any)
[sauron]: https://github.com/lightningd/plugins/tree/master/sauron
[sitzprobe]: https://github.com/niftynei/sitzprobe
[sling]: https://github.com/daywalker90/sling
[smaug]: https://github.com/chrisguida/smaug
[summars]: https://github.com/daywalker90/summars
[summary]: https://github.com/lightningd/plugins/tree/master/summary
[torq-plugin]: https://github.com/lncapital/torq-cln-plugin
Expand Down
1 change: 1 addition & 0 deletions smaug
Submodule smaug added at 28975c
Loading