Commit graph

198 commits

Author SHA1 Message Date
Slyghtning
c6b4362e2d
gomod: replace dario.cat/mergo 2026-06-03 18:41:17 +02:00
Slyghtning
51f984f7c0
looprpc: populate static swap timing and costs 2026-06-03 15:33:02 +02:00
Boris Nagaev
8ea9adbd35
looprpc: map custom channel reason
Static autoloop testing surfaced a SuggestSwaps failure when the
planner disqualified a custom asset channel.

Add the missing AutoReason enum value and handle ReasonCustomChannelData.
2026-05-22 02:20:36 -05:00
Boris Nagaev
e467ac932b
looprpc: expose static autoloop output
Extend the public rpc surface for static autoloop integration
without turning the planner on yet. SuggestSwaps responses can
now carry static-address loop-in requests and the new planner
reason for missing static candidates is mapped over rpc.
2026-05-22 02:20:36 -05:00
Boris Nagaev
ac58336104
looprpc: add autoloop loop-in source
Add a dedicated loop-in source enum to the liquidity parameters
rpc and wire it through the internal parameter model and CLI.

This keeps the source selection explicit before any static
autoloop planning lands, so operators can choose between the
legacy wallet-funded path and a future static-address-backed
path without relying on implicit fallback behavior.
2026-05-22 02:20:36 -05:00
Boris Nagaev
38481fe4a9
go.mod: fix gonum replaces
Remove gonum/plot replace in looprpc - not needed.

Add gonum replace to swapserverrpc. It was missing and caused recent CI errors.
2026-05-10 22:03:36 -05:00
Boris Nagaev
02dc98232c
looprpc: fix build
It depends on our protobuf-go fork. It failed with compilation errors when
building the module itself.
2026-05-07 02:37:00 -05:00
Boris Nagaev
e340797225
looprpc: fix permissions of two RPCs
Both SweepHtlc and StaticAddressLoopIn are active, so the "swap" entity
must have action=execute, not read.
2026-05-07 02:24:17 -05:00
dependabot[bot]
fc47f8ee3a
build: bump github.com/jackc/pgx/v5 from 5.9.0 to 5.9.2 in /looprpc
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.9.0 to 5.9.2.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.9.0...v5.9.2)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.9.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-23 00:34:27 +00:00
dependabot[bot]
e8bae4380c
build: bump github.com/jackc/pgx/v5 from 5.7.4 to 5.9.0 in /looprpc
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.4 to 5.9.0.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.4...v5.9.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.9.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-16 23:06:13 +00:00
dependabot[bot]
f128203ef3
build: bump go.opentelemetry.io/otel/sdk in /looprpc
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.40.0 to 1.43.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.40.0...v1.43.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-version: 1.43.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-11 05:31:54 +00:00
Boris Nagaev
5a482249f8
Reapply "build: bump google.golang.org/grpc to v1.79.3"
This reverts commit 98ca6a0986.
2026-03-20 17:06:14 -05:00
Boris Nagaev
358e5ceac9
Reapply "looprpc: bump github.com/docker/cli to 29.2.0"
This reverts commit 240a748049.
2026-03-20 17:06:09 -05:00
Boris Nagaev
240a748049
Revert "looprpc: bump github.com/docker/cli to 29.2.0"
This reverts commit 9d9b7b99ae.
2026-03-19 10:00:30 -05:00
Boris Nagaev
98ca6a0986
Revert "build: bump google.golang.org/grpc to v1.79.3"
This reverts commit 629bf3721b.
2026-03-19 10:00:22 -05:00
Boris Nagaev
629bf3721b
build: bump google.golang.org/grpc to v1.79.3 2026-03-19 01:20:06 -05:00
Boris Nagaev
9d9b7b99ae
looprpc: bump github.com/docker/cli to 29.2.0
Folloup for 37c14c98107ec85aa0577acada3ac2c533afb0b1
2026-03-18 18:11:55 -05:00
Slyghtning
5d96b70950
looprpc: align migrate replace 2026-03-09 14:39:46 +01:00
Slyghtning
3aa3d0e646
go: replace broken uint128 module host 2026-03-09 14:39:46 +01:00
dependabot[bot]
294f8b6852
build: otel/sdk 1.38.0 -> 1.40.0 2026-03-01 22:52:15 -05:00
Boris Nagaev
e7a9cb0774
Merge pull request #1077 from lightninglabs/dependabot/go_modules/looprpc/github.com/opencontainers/runc-1.2.8
build(deps): bump github.com/opencontainers/runc from 1.1.14 to 1.2.8 in /looprpc
2026-03-01 22:50:00 -05:00
Boris Nagaev
b00c737ec6
Merge pull request #1076 from lightninglabs/dependabot/go_modules/looprpc/github.com/go-viper/mapstructure/v2-2.4.0
build(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 in /looprpc
2026-03-01 22:49:22 -05:00
dependabot[bot]
4ac0da21d4
build(deps): bump github.com/opencontainers/runc in /looprpc
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.14 to 1.2.8.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.14...v1.2.8)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-version: 1.2.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 19:59:21 +00:00
dependabot[bot]
420eccfa2d
build(deps): bump github.com/go-viper/mapstructure/v2 in /looprpc
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases)
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
  dependency-version: 2.4.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 19:59:04 +00:00
dependabot[bot]
b5489710b9
build(deps): bump github.com/sirupsen/logrus in /looprpc
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-version: 1.9.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 19:59:02 +00:00
Slyghtning
d4c9ab0630
looprpc: add StaticOpenChannel permissions and fix StaticAddressLoopIn
Add macaroon permissions for the new StaticOpenChannel RPC method
and change StaticAddressLoopIn action from read to execute to match
other swap operations.
2026-02-26 09:37:26 +01:00
Slyghtning
f47b611557
looprpc: extend client.proto with lnrpc.OutPoint and lnrpc.OpenChannelRequest
In this commit we import the lnd's lightning.proto into client.proto to
then be able to use lnrpc.OutPoint and lnrpc.OpenChannelRequest instead
of the looprpc.OutPoint type.
This is safe because the lnrpc and looprpc versions of OutPoint are the
same type.
2026-02-26 09:37:26 +01:00
Slyghtning
6aaacf8b93
looprpc: prepare for lnrpc usage
In successive commits we want to access lnrpc specifc methods
and objects, so here we import github.com/lightningnetwork/lnd v0.20.1-beta
into looprpc and update relevant versions.
2026-02-26 09:35:59 +01:00
Boris Nagaev
9ee7a36f37
looprpc: add new method SweepHtlc 2026-01-15 03:06:22 -05:00
Slyghtning
175b7d601b
loooprpc: replace deprecated grpc.Dial with grpc.NewClient
- Update assets/client.go to use grpc.NewClient
- Update swap_server_client.go to use grpc.NewClient
- Replace grpc.WithInsecure() with insecure.NewCredentials()
2025-12-19 10:03:14 +01:00
Slyghtning
ea21d8d8f2
looprpc: exclude peers for easy autoloop 2025-11-21 15:05:51 +01:00
Boris Nagaev
62419ab17d
Merge pull request #1048 from starius/loop-stop
cli: add command "loop stop"
2025-11-20 23:33:35 -03:00
Boris Nagaev
a4dc59099b
cli: add command "loop stop"
* add StopDaemon RPC with permissions + REST binding
* expose `loop stop` CLI (with optional --wait) and wait logic
* pass daemon shutdown callback + unit test and regenerate docs/protos
2025-11-19 23:42:48 -03:00
dependabot[bot]
c2bb0524ae
build(deps): bump golang.org/x/crypto from 0.36.0 to 0.45.0 in /looprpc
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.36.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 02:03:23 +00:00
Boris Nagaev
d677e9d7e6
multi: downgrade Go to 1.24.9
This is needed, because LND and LiT use 1.24.9.
2025-11-17 14:11:26 -03:00
Boris Nagaev
508d90f384
multi: update Go to 1.24.10 2025-11-16 00:26:02 -03:00
Boris Nagaev
b9832c475a
go.mod: bypass gonum.org domain
Probably the domain has blocked our CI by IP address. This commit go-replaced
the packages with their GitHub versions to fix the CI check "go mod check".
2025-11-04 21:58:45 -03:00
sputn1ck
c8c78c6f7a
versioning fixups 2025-10-31 19:05:40 +01:00
sputn1ck
e4f64ec9cc
Revert "Merge pull request #1028 from starius/downgrade-deps"
This reverts commit b11c959bc8, reversing
changes made to 0a182ee308.
2025-10-31 18:48:26 +01:00
Boris Nagaev
7d58b65a84
go.mod: downgrade deps for litd release
lnd v0.19.3-beta
tapd v0.6.1
go 1.23.12 (except in tools/ where golangci-lint needs Go 1.24)

Remove docs generators as cli-docs depends on Go 1.24.
2025-10-31 10:23:52 -03:00
Boris Nagaev
854f0a2396
looprpc: add instantout and static to client.yaml 2025-10-28 00:48:54 -03:00
Slyghtning
d133a43e22
looprpc: add more fields to StaticAddressLoopInResponse 2025-10-08 21:34:48 +02:00
Slyghtning
f840852e8d
looprpc: add quoted amount in InQuoteResponse 2025-10-07 11:13:43 +02:00
Slyghtning
8464e4c687
looprpc: fast flag for QuoteRequest and StaticAddressLoopInRequest 2025-10-07 08:51:34 +02:00
Slyghtning
4931fb9ccd
looprpc: fractional amount for static address loop-ins
The QuoteRequest adds a field auto_select_deposits to signal
that the specified quote amount should be coin-selected from
the client's deposits to determine the number of deposits to
quote for.
The StaticAddressLoopInRequest gets a new amount field that
either indicates that the swap amount should be allocated
from the passed deposits or coin-selected from all available
deposits.
2025-09-25 11:13:34 +02:00
Slyghtning
b2a4d7af2d
staticaddr: show deposits as part of cli swap output 2025-08-20 17:07:29 +02:00
Slyghtning
a41334dd3d
staticaddr: add swap hash to deposit structs 2025-08-20 16:58:20 +02:00
Slyghtning
cd9bcdf6f7
looprpc: add ListStaticAddressWithdrawals for historic withdrawal information 2025-06-03 12:57:10 +02:00
Oliver Gugger
5d16c50762
multi: bump Go version to v1.23.9 2025-05-26 15:58:07 +02:00
Viktor Tigerström
cdcacfe753
multi: update GetInfoResponse response
Update the output of the `commit_hash` field in the GetInfoResponse.
The `commit_hash` field will contain the most recent commit_hash that
the build was based on. If the build had uncommitted changes, this field
will contain the most recent commit hash, suffixed by "-dirty".

Note that this change also changes the output of `commit` field in the
`--version` command. The `Commit` field will now contain most recent git
commit tag.
2025-05-22 18:01:36 +02:00