Commit graph

57 commits

Author SHA1 Message Date
Olaoluwa Osuntokun
eb7020a060
multi: add order and clearing rate to leases, show absolute expiry 2020-09-17 17:40:30 -07:00
Wilmer Paulino
7c7dfd0c36
Merge pull request #78 from guggero/macaroons
Add macaroon authentication
2020-09-17 15:17:24 -07:00
Johan T. Halseth
294b0341c4
poolcli: output reversed chanpoint 2020-09-17 20:09:17 +02:00
Johan T. Halseth
6183319c5d
poolcli: default the default max fee rate to a more reasonable 100 sat/b
A high max batch fee rate would reserve a lot of the account balance for
fees.

Note that if the actual fee rate goes higher than the max batch fee rate
set, then the orders won't be included in the batch, and the default
must be overridden.
2020-09-17 09:48:43 +02:00
Johan T. Halseth
120a2abfbc
poolcli: use sat/vbyte instead of sat/kw for batch feerate 2020-09-17 09:48:42 +02:00
Oliver Gugger
b100fd3d6a
cmd/pool: add macaroon params to CLI 2020-09-17 08:37:22 +02:00
Wilmer Paulino
acfd41ca55
llm: add auction leases command 2020-09-15 11:57:26 -07:00
Oliver Gugger
9bdfe415a6
cmd/pool: add TLS params to CLI 2020-09-12 09:08:14 +02:00
Oliver Gugger
ce235cbc1d
multi: extract config validation
As a preparation to add more configuration paths for TLS, we first
extract the config validation and path cleanup into its own function.
2020-09-12 09:08:13 +02:00
Olaoluwa Osuntokun
1e0035d3d4
multi: fix import order 2020-09-09 19:55:16 -07:00
Olaoluwa Osuntokun
33678c0ee6
cmd: rename llmd and llm to poold and pool 2020-09-09 19:55:07 -07:00
Johan T. Halseth
5fd1e7b7b3
cli: print worst case chain fee and batch fee rate 2020-09-03 15:02:41 +02:00
Oliver Gugger
e6d168e3ee
llm: add tlsCertPath and macaroonPath flags 2020-09-03 09:57:40 +02:00
Oliver Gugger
139be1584d
server+llmd: extract setup code into Run function 2020-09-03 09:57:36 +02:00
Oliver Gugger
9f36c3937c
config+llmd: turn DefaultConfig into a function
To make sure the default configuration cannot be changed by multiple
instances of the daemon we return a new copy for each caller.
2020-09-03 09:56:10 +02:00
Wilmer Paulino
00443bafca
llm: add bumpfee subcommand for accounts 2020-09-02 12:30:08 -07:00
Wilmer Paulino
f71adf7b67
multi: re-purpose account close tx field to latest tx 2020-09-02 12:10:23 -07:00
Olaoluwa Osuntokun
b6a9637b3e
Merge pull request #43 from guggero/new-nodes-only
Partial Batch Reject [1/2]: Reject batch partially on funding error or duplicate nodes
2020-08-24 18:41:51 -07:00
Wilmer Paulino
31d290d660
llm: add fee related flags for close account cmd 2020-08-24 13:33:17 -07:00
Oliver Gugger
e42497a4c6
cmd/llm: add force flag to ask order submission 2020-08-19 09:12:50 +02:00
Oliver Gugger
9cab2779e6
cmd/llmd: remove committed binary 2020-08-19 09:12:50 +02:00
Olaoluwa Osuntokun
fa6842b8eb
cmd/llm/account: add available_balance to json account output 2020-08-18 16:52:45 -07:00
Oliver Gugger
3df4e2f005
multi: move FeeSchedule to terms package
As a preparation to avoid package import cycles when introducing more
generic terms, we move the FeeSchedule interface and its
LinearFeeSchedule implementation to the terms package.
2020-08-18 13:15:34 +02:00
Oliver Gugger
978950600c
multi: update aperture, use lndclient, remove loop
To get rid of the loop dependency, we update aperture (which now houses
all the LSAT code) and use the standalone lndclient repository.
2020-08-11 19:41:01 +02:00
Johan T. Halseth
a2abc187f3
multi: rename FundingFeeRate to MaxBatchFeeRate
The funding feerate field was previoulsy unused, so we rename it to
"max batch fee rate" in order to use it to communicate to the server the
maximum fee rate we are willing to pay to be included in a batch.

We also increase the default value to 500 sat/vbyte.
2020-08-07 16:34:07 +02:00
Oliver Gugger
68e0e68284
cmd/llm: add listauth command 2020-08-03 11:08:55 +02:00
Oliver Gugger
e61f333b49
cmd/llm/account: add conf_target, fee preview to new command 2020-08-03 11:08:54 +02:00
Oliver Gugger
220976ca37
cmd/llm: fix unnecessary help print 2020-07-17 10:01:35 +02:00
Olaoluwa Osuntokun
46534d07d0 cmd/llm: fix bug in order submit confirmation 2020-07-16 23:36:00 -07:00
Olaoluwa Osuntokun
8e7049baa0
cmd/llm: add new auction snapshot command
In this commit, we add a new CLI command that allows a client to
"browse" the prior outcome of batches.
2020-07-16 15:24:23 -07:00
Olaoluwa Osuntokun
16a77c19df
cmd/llm: modify order acceptance to show breakdown and hide fixed_rate
In tihs commit, we modify the order acceptance commands (llm submit ask
and llm submit bid) to take the final percentage rather than the fixed
rate. Historically we've seen that people find thinking in fixed point
arithmetic difficult. So instead of exposing this value, we now poll the
user for the amount their willing to pay or accept as yield for the
_entire duration_.

With this change, users only need to think about the lump sum coupon
payment rather than the internal fixed rate. This should also lend to
better price discovery as distinct orders may end up with the same
rate_fixed when converted at the end.

In addition to this change, we now show a break down of the order
parameters which includes the execution fee.
2020-07-14 18:28:23 -07:00
Olaoluwa Osuntokun
407a76f6dd
cmd/llm: add new cli command for auction fee 2020-07-14 18:28:21 -07:00
Olaoluwa Osuntokun
9af15f4326
cmd/llm: fix height parsing for new account 2020-07-02 18:46:30 -07:00
Olaoluwa Osuntokun
9b164aa9ed
llm+llmd: parse new oneof for account expiry 2020-07-01 18:40:51 -07:00
Olaoluwa Osuntokun
57fa63c237
multi: rename, fix modules 2020-06-21 19:37:00 -07:00
Wilmer Paulino
182bd1badf agora: add account deposit command 2020-06-17 18:34:56 -07:00
Wilmer Paulino
f521327cb5 clmrpc: add DepositAccount RPC 2020-06-17 18:34:54 -07:00
Oliver Gugger
adcb145e76 client+cmd: add recover command 2020-06-05 16:24:33 +02:00
Oliver Gugger
c46bfef959 client+clmrpc: unify data types for amounts, fees and blocks
We use the same proto message types everywhere for these kinds
of fields:
- absolute amounts (sats): uint64
- fee rates (sat/kWU): uint64
- fee rates (ppm): uint32
- blocks (absolute and relative): uint32

Additionally we unify the comments and remove the [ json_name = "" ]
declarations in the trader proto as they aren't needed with the
jsonpb marshaller that we use.
Then we align the naming of the account key to be called trader key
everywhere instead of user's sub key.
2020-05-27 14:33:34 +02:00
Olaoluwa Osuntokun
f4df5ea56f client: add pprof support to config 2020-05-19 17:36:56 -07:00
Wilmer Paulino
a67669e188 cmd/agora: add account withdrawal command 2020-05-12 15:10:11 -07:00
Oliver Gugger
6cbd12ffd8 make+auctioncli: add CLI to interact with auction 2020-04-14 16:27:06 +02:00
Oliver Gugger
2c88c6de18 client: refactor to start/stop model 2020-02-26 11:59:36 -03:00
Oliver Gugger
c1954cc51c client+clmrpc: rename ChannelAuctioneerClient to Trader 2020-02-20 10:15:52 +01:00
Wilmer Paulino
9bf50766f7 multi: allow account closure through expiration and multi-sig paths
Traders are now able to close their accounts, whether or not they have
already expired, to arbitrary outputs or to a wallet output by default.
If an account hasn't expired, then the auctioneer's signature of the
closing transaction is required to successfully close the account.
2020-02-05 12:09:47 -08:00
Oliver Gugger
976df85bb1 trader: prepare to be used as library 2020-01-20 14:44:22 +01:00
Oliver Gugger
17a71068ad cmd/agora: add commands for submitting orders 2020-01-17 17:41:26 +01:00
Oliver Gugger
d59b603e45 client+order: store order 2020-01-17 17:41:25 +01:00
Oliver Gugger
42717b1074 mod: update to latest versions of lnd, loop and kirin 2020-01-13 09:23:32 +01:00
Wilmer Paulino
14cd61231c multi: expand response returned from InitAccount 2020-01-10 16:59:47 -08:00