Commit graph

75 commits

Author SHA1 Message Date
ffranr
d63837109c
perms: move perms.go into poolrpc
This change narrows the import scope for lightning-node-connect (LNC).
Instead of importing the entire pool package, LNC now only needs to
import poolrpc.

It also brings pool in line with the structure used in our other
projects.
2025-05-08 00:36:26 +01:00
Andras Banki-Horvath
f21a1c3f3c
build(deps): bump golang.org/x/net from 0.35.0 to 0.38.0 in /poolrpc
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.35.0 to 0.38.0.
2025-04-17 07:50:21 +02:00
Oliver Gugger
e883a60eb8
mod: bump dependencies
Replaces https://github.com/lightninglabs/pool/pull/498.
2025-03-13 11:55:57 -05:00
Elle Mouton
3fdb609002
docker: update dockerfile go versions 2025-03-05 12:37:49 +02:00
Elle Mouton
909f3b8826
auctioneerrpc+poolrpc: go.mod go bump 2025-03-05 12:30:55 +02:00
Andras Banki-Horvath
0382f9762b
poolrpc: convert poolrpc into a go module 2024-10-14 14:05:38 +02:00
Oliver Gugger
36e4629078
multi: bump lnd to v0.18.0-beta 2024-05-31 10:39:23 +02:00
Oliver Gugger
602c66ee77
poolrpc+auctioneerrpc: re-generate after dep update 2024-03-15 18:13:53 +01:00
Oliver Gugger
d000a6b7b1
auctioneerrpc: add simple taproot channel enum types 2023-10-24 17:45:26 +02:00
Oliver Gugger
31f714dafc
multi: update to lnd v0.17.0-beta 2023-10-03 19:38:20 +02:00
Oliver Gugger
1b1d0b69e0
multi: add new account version 2023-03-08 17:42:06 +01:00
positiveblue
53835f527f
rpc: regenerate protos 2023-01-06 01:57:54 -08:00
positiveblue
033991dbad
build: update go to v1.19.4-beta 2023-01-06 01:53:11 -08:00
Robyn
cd632058b0
account: expose historical account modification fees via RPC
This commit adds a new RPC endpoint which returns a per-account list of account modification fees.
2022-11-15 12:54:28 +00:00
positiveblue
e6b45a76a4
rpc: update the comment for 2022-10-27 07:37:54 -07:00
positiveblue
b2a5c14e0c
rpc: add auction type field to orders 2022-10-18 06:44:01 -07:00
positiveblue
091d8f5735
rpc: add is_public field to orders 2022-10-18 04:34:22 -07:00
positiveblue
f82b5759d8
poolrpc: add unannounced/zeroconf field to sidecars 2022-10-18 04:34:21 -07:00
positiveblue
b4b21da1c7
rpc: add new fields for unannounced and zero conf channels
For unannounced channels:
Bids can decide if they are interested in announced or unannounced
channels (exclusive or).

Asks can decide in what market they want to provide liquidity:
announced channels, unannounced channels or both.

For zero conf channels:
New constraints based on how many blocks are needed before considering a
channel "confirmed".
2022-10-18 04:34:20 -07:00
Oliver Gugger
a63985d614
multi: add account version to RPCs and manager 2022-09-12 17:20:10 +02:00
Evan Kaloudis
ba000d9b82
poolrpc/gen_protos.sh: remove js build tag 2022-09-08 10:37:54 -04:00
Oliver Gugger
b63e0051fd
multi: use Golang 1.18 everywhere 2022-08-03 19:26:01 +02:00
Oliver Gugger
bd58d1e036
multi: improve trace logging 2022-06-17 14:51:02 +02:00
positiveblue
c85f2175dc
poolrpc: add list of allowed node ids to Order 2022-04-22 00:25:18 -07:00
positiveblue
6027ccd3d6
multi: bump btcec/v2 and btcutil to new versions 2022-03-28 15:22:41 +02:00
positiveblue
34d03652ec
poolrpc: add fields to Recovery Requests 2022-01-26 01:17:28 -08:00
positiveblue
9e36c749b6
poolrpc: add auto_renew_extension_blocks to NextBatchInfoResponse 2021-12-02 22:55:21 -08:00
Oliver Gugger
7f2f481810
Merge pull request #305 from lightninglabs/auto-renew
multi: extend account expiry after using it
2021-11-29 16:03:21 +01:00
positiveblue
b1848de6ca
poolrpc: add account_expiry to Deposit/Withdraw
Follows the same format than in RenewAccount: one of `absolute_expiry`
or `relative_expiry`.
2021-11-09 12:17:54 -08:00
Wilmer Paulino
321e3c3598
order+auctioneer: allow submission of order channel type to auctioneer 2021-11-02 16:47:53 -07:00
positiveblue
15a1b79a1b poolrpc: add optional raw sat/byte parameter to InitAccountRequest 2021-09-29 19:55:09 -07:00
Oliver Gugger
e111facc28
rpcserver+poolrpc: add ListSidecars and CancelSidecar RPCs
With this commit we add two new RPCs for handling sidecar tickets.
ListSidecars will show all sidecar tickets known to the local database,
including those where our node is on the receiving end of a sidecar
channel.
CancelSidecar will cancel a specific sidecar ticket. If an order was
created for it, that bid order will be canceled. Doing so will make sure
the ticket isn't executed any further.
2021-09-29 15:41:34 +02:00
Oliver Gugger
7b2d457dd3
multi: update ticket state after submitting order
When manually submitting an order, we want to update the state of the
ticket in the main database to the same state that we update the ticket
that's stored within the orders's TLV data.
2021-09-29 15:41:34 +02:00
Oliver Gugger
a5cf85aba2
multi: add DecodeSidecarTicket RPC
To make it possible to decode a sidecar ticket through RPC instead of
only relying on the output of the CLI, we add the DecodeSidecarTicket
RPC method to the trader daemon.
2021-09-22 17:00:43 +02:00
Oliver Gugger
acda1cd479
poolrpc: generate JSON/WASM client stubs 2021-08-03 13:28:49 +02:00
Oliver Gugger
938e608ab2
multi: update lnd master with grpc-gateway upgrade
To make pool work with the latest lnd version inside of LiT, we need
to upgrade the grpc-gateway library to the same v2 version here too.
2021-07-29 14:01:23 +02:00
Oliver Gugger
a81090a8ac
poolrpc+auctioneerrpc: use docker to compile protos
To pin down exactly the versions of our proto compilation tools we use,
we do the actual compilation step inside a docker container.
2021-07-29 13:40:47 +02:00
carla
b39f6716fe
multi: add matched order nonce to lease
Update leases to include the nonce of the order that the match was
with. This is required to match a lease with the event list provided
by an order in the case of multiple matches (and thus get a timestamp
for that lease).
2021-06-22 09:17:13 +02:00
Olaoluwa Osuntokun
064ef461d2
poolrpc: modify OfferSidecarRequest to embed bid expose auto flag
In this commit, we modify the `OfferSidecarRequest` to instead embed the
entire bid order. This makes parsing on the command line a bit easier,
and sets us up for auto negotiation, as we'll need to have the entire
bid ahead of time so we can submit it during ticket negotiation.
2021-05-09 19:24:52 -07:00
Oliver Gugger
063f29a73d
Merge pull request #253 from guggero/rest-lsat-url
poolrpc: namespace URI of LSAT REST call
2021-05-06 12:14:40 +02:00
Oliver Gugger
c97f3ceeb0
poolrpc: namespace URI of LSAT REST call
When trying to enable a single unified REST proxy in LiT, we noticed
that one URI collides between Loop and Pool (/v1/lsat/tokens).
We change the URI in Pool to fix the collision.

This is a potentially breaking change! Though we do not use REST in LiT
and are not aware of other projects using Pool's REST API yet so it
should impact a small number of users (or nobody really in the best
case).
2021-05-05 16:01:46 +02:00
Oliver Gugger
ddbc7444d5
poolrpc+rpcserver: implement QuoteOrder RPC
We create an RPC wrapper around the new order.NewQuote function with the
goal of replacing the calculation that currently only exists in the CLI
with an actual RPC call.
2021-05-05 15:57:34 +02:00
Oliver Gugger
01e88189c8
poolrpc: fix command example that broke API docs
The command example for the `sidecar expectchannel` was incorrect which
lead to the API docs generator erroring out.
2021-04-21 15:24:37 +02:00
Oliver Gugger
5f7f4cd7f4
multi: add sidecar channel info to leases list
A sidecar channel uses different multisig keys than a normal order so we
need to fix the lookup in the batch transaction. While we're at it, we
might as well return the self chan balance and whether it was a sidecar
channel in the leases response.
2021-04-07 14:19:30 +02:00
Oliver Gugger
15eeee2a3e
multi: add sidecar offer/register/expect RPCs
With this commit we add the ability to both create/expect a sidecar offer as a
provider as well as registering an offer as the recipient to the main
RPC server.
2021-04-07 14:14:10 +02:00
Oliver Gugger
2b46e31e6c
multi: add sidecar ticket to RPC bid order
The local database can now store a sidecar ticket with a bid order. We
now also need to accept it on the local RPC interface and forward it to
the auctioneer.
2021-04-06 13:36:30 +02:00
Oliver Gugger
660801b537
auctionerrpc+poolrpc: add self_chan_blance field 2021-03-19 16:50:28 +01:00
Oliver Gugger
30bf63635c
auctioneer+poolrpc+rpcserver: add market info to getinfo call
With the server now exposing this new RPC, we want to add the output of
it to the getinfo call to give users an idea what the current market
situation looks like.
2021-03-17 13:08:48 +01:00
Oliver Gugger
ffd2613b0f
rpcserver+poolrpc: expose state of --newnodesonly flag in RPC
With this commit we expose the state of the global --newnodesonly flag
of the Pool daemon in the GetInfo RPC call.
2021-03-04 16:34:37 +01:00
Oliver Gugger
6d0bda3fbb
poolrpc+rpcserver: optimize batch snapshot URI for REST
Fixes #204 by allowing multiple REST URI patterns for the batch
snapshots call.
2021-02-02 09:57:20 +01:00