Commit graph

37 commits

Author SHA1 Message Date
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
Oliver Gugger
e7d44f0c71
poolrpc+rpcserver: add GetInfo and StopDaemon RPCs
To give developers and users more information about the current state of
the trader daemon, we add a new GetInfo RPC that shows a summary of all
accounts and orders known to the system.
And because there currently is no other way than to <ctrl>+c or kill the
daemon, we add a StopDaemon RPC as well for proper shutdown.
2021-02-02 09:57:14 +01:00
Oliver Gugger
76838927c8
poolrpc: add initiator string to submission requests
To give any CLI or UI the option to identify themselves, an initiator
field is added that will be appended to the binary's user agent string
before sending it to the server.
2021-01-29 12:56:22 +01:00
Oliver Gugger
83b458b504
multi: move auctioneer proto to auctioneerrpc package
As a preparation to extract the auctioneer proto package into its own
sub-module, we move it out of the poolrpc package.
2021-01-22 10:41:44 +01:00
Oliver Gugger
ae21a944c6
poolrpc: extract REST annotations 2021-01-22 10:28:00 +01:00
Wilmer Paulino
bcdd267e22
rpc: add RenewAccount RPC 2021-01-08 14:02:25 +01:00
Oliver Gugger
919f453651
poolrpc+order: group orders and prices by duration markets 2021-01-08 14:02:13 +01:00
Oliver Gugger
83795453c7
multi: expose duration bucket state 2021-01-08 14:02:10 +01:00
Oliver Gugger
31b832ae80
multi: remove max order duration
Because the order/lease duration is now governed by the lease durations,
the maximum order duration is no longer needed.
2021-01-08 14:02:09 +01:00
Oliver Gugger
466bb45b2f
poolrpc: add batch creation timestamp to snapshot 2021-01-08 14:02:07 +01:00
Oliver Gugger
fde059c096
poolrpc: add batch query RPCs 2020-11-30 23:44:22 +01:00
Oliver Gugger
ae75931d1b
make+poolrpc: add rpc-format command 2020-11-30 23:20:51 +01:00
Oliver Gugger
fbdf455cb5
poolrpc: add active_only flag to ListAccounts 2020-11-24 11:25:46 +01:00
Wilmer Paulino
8c0c6f49e2
auctioneer: include input sig scripts for account deposits
This ensures that the auctioneer can arrive at the correct transaction
such that it can continue to track the state of the account on the
chain.
2020-11-09 18:01:38 -08:00
Wilmer Paulino
d7e74bf97e
rpc: add new NextBatchInfo RPC 2020-10-30 16:28:02 -07:00
Wilmer Paulino
1e7864eeca
auctioneer: add next batch tick and fee params to Terms RPC 2020-10-30 16:28:00 -07:00
Wilmer Paulino
c61e827553
poolrpc: include batch tx fee rate in snapshot 2020-10-30 16:27:59 -07:00
Wilmer Paulino
8173e4874a
auctioneer: cancel order with nonce preimage instead
This prevents traders from canceling an order that does not belong to
them. Previously, the order nonce was required, but this could be
learned from any trader by matching with it throughout batch execution.
2020-10-21 13:10:54 -07:00
Wilmer Paulino
f45245e8fc
order+rpc: introduce MinUnitsMatch field 2020-10-12 19:51:27 -07:00
Olaoluwa Osuntokun
4b41c323c7 poolrpc: add new calls for Bid node rating system, and node rating queries 2020-10-09 15:53:43 -07:00
Johan T. Halseth
e056405a7b
poolrpc: add active_only option to ListOrders 2020-10-07 11:23:42 +02:00
Olaoluwa Osuntokun
63be83dc01 poolrpc: move towards set duration buckets instead of min/max duration
In this commit, we make a series of RPC changes to do away with the
min/max order preference and instead replace that with a single unified
field for the duration of a lease. The Terms method has been extended to
return the current set of active leases. Things have been done in this
way to allow us to announce a new duration, accept orders, but not yet
enable market clearing for it.

The changes in this commit were intended to be non-breaking, which is
why the Bid/Ask message distinction still exists, even though with this
commit they nearly share all the same fields. In the future further
fields may be added that still make both messages asymmetric.
2020-10-05 17:28:56 -07:00
Oliver Gugger
5e714c4f42
poolrpc+rpcserver: list order events in verbose mode
We add a new verbose flag to the ListOrdersRequest message that causes
the RPC server to include all events of an order in the response.
The orders are now also returned sorted by their creation timestamp.
2020-10-01 13:16:55 +02:00
Olaoluwa Osuntokun
eb7020a060
multi: add order and clearing rate to leases, show absolute expiry 2020-09-17 17:40:30 -07:00
Wilmer Paulino
9becbf6231
clmrpc: add Leases RPC 2020-09-15 11:57:25 -07:00
Olaoluwa Osuntokun
ff59e3719f
pool: rename clmrpc to poolrpc 2020-09-09 19:55:01 -07:00