Commit graph

181 commits

Author SHA1 Message Date
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
sputn1ck
e76321b425
looprpc: add reservation ids to quote 2025-04-30 15:35:25 +02:00
Andras Banki-Horvath
565acbb83f
looprpc: extend liquidity params with fast publication 2025-04-29 18:56:48 +02:00
dependabot[bot]
9553bec620
build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /looprpc
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 19:00:51 +00:00
ffranr
64e6bbd451
perms: move perms.go into looprpc
The Lightning Node Connect (LNC) WASM client currently imports both
`looprpc` and the entire `loop` module to access `perms.go`. This
creates problems because `loop` imports `taproot-assets`, resulting in
too many symbols for the WASM build.

To fix this, we will move `perms.go`—which defines RPC endpoint
permissions—into `looprpc`. After this change, the LNC WASM client will
import only `looprpc`, while the rest of `loop` can continue importing
`taproot-assets` without affecting the LNC WASM build.
2025-04-28 12:56:21 -03:00
Boris Nagaev
6d3f65a0f2
looprpc: rename field in WithdrawDepositsResponse
It returns an address, but the field was called pk_script, which was confusing.
Also renamed it in the code.
2025-04-24 11:19:59 -03:00
Boris Nagaev
1480536132
looprpc: update swapserverrpc to v1.0.13
swapserverrpc/v1.0.11 was force-pushed causing build errors with GOPROXY=direct.

Also updated in main go.mod, however it didn't fail, because replace to local
dir is used.
2025-04-24 11:19:59 -03:00
Boris Nagaev
301c4756b4
looprpc: run 'make rpc' 2025-04-24 11:19:59 -03:00
Sam Korn
b55521cb41
looprpc: add simple pagination to the ListSwaps command
This commit adds the ability to set a max_swaps and an index_offset
flag to the ListSwaps command. These new fields are applied AFTER
the initial filtering step. The response also now passes additional
information about the index count and total swaps filtered.
2025-04-19 22:31:45 -06:00
Andras Banki-Horvath
9a6266f9f7
loop: add the commit_hash to GetInfoResponse, change version semantics
With this commit we extend GetinfoResponse with the strict commit hash
(which also includes whether the build tree was clean or dirty).
2025-04-04 12:47:30 +02:00
sputn1ck
832a0526d6
liquidity: add easy asset params 2025-03-25 11:15:41 +01:00
Slyghtning
bf3a55948d
looprpc: update go to 1.23.6 2025-03-21 09:14:26 +01:00
dependabot[bot]
c8072e874a
build(deps): bump golang.org/x/net from 0.33.0 to 0.36.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-13 11:51:53 -03:00
Slyghtning
e17e5522ac
looprpc: static address amount for withdrawals 2025-02-09 15:40:16 +01:00
dependabot[bot]
b54fc7181b
build(deps): bump golang.org/x/net from 0.27.0 to 0.33.0 in /looprpc
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-31 14:43:35 +00:00
sputn1ck
95aae0e800
loopout/asset: add asset rate 2025-01-22 15:40:57 +01:00
sputn1ck
fddad8a964
looprpc: rename assetamt to max amt 2025-01-22 15:40:57 +01:00
sputn1ck
3e3c863819
loopout: add asset accounting 2025-01-21 18:26:20 +01:00