Skip to content

Commit b7d3347

Browse files
committed
feeadjuster: migrate to uv shebang
1 parent 02b548e commit b7d3347

File tree

5 files changed

+1545
-2
lines changed

5 files changed

+1545
-2
lines changed

feeadjuster/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ and following forwarding events. There is a threshold for balance deltas that mu
55
also set the max htlc for channels according to available liquidity. This may reduce transaction failures but it will also reveal
66
information about what the current channel balance is.
77

8+
## Installation
9+
10+
You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
11+
plugin like a binary. After `uv` is installed you can simply run
12+
13+
```
14+
lightning-cli plugin start /path/to/feeadjuster.py
15+
```
16+
17+
For general plugin installation instructions see the repos main
18+
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
19+
820
## Options
921

1022
- `feeadjuster-deactivate-fuzz` boolean (default `False`) deactivates update threshold randomization and hysterisis

feeadjuster/feeadjuster.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run --script
2+
3+
# /// script
4+
# requires-python = ">=3.9.2"
5+
# dependencies = [
6+
# "pyln-client>=24.11"
7+
# ]
8+
# ///
9+
210
import random
311
import statistics
412
import time

feeadjuster/pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[project]
2+
name = "feeadjuster"
3+
version = "0.1.0"
4+
description = "Dynamically adjusts fees according to channel balances"
5+
readme = "README.md"
6+
requires-python = ">=3.9.2"
7+
8+
[dependency-groups]
9+
dev = [
10+
"pytest>=7.4,<9",
11+
"pytest-xdist>=3.7,<4",
12+
"pytest-timeout>=2.4,<3",
13+
"pyln-testing>=24.11.1",
14+
"pyln-client>=24.11.1",
15+
"pyln-proto>=24.11.1",
16+
]

feeadjuster/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)