Commit graph

38 commits

Author SHA1 Message Date
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
Wilmer Paulino
b2eac6697c multi: expose accounts through ListAccounts RPC
Now that we have the ability to create new accounts, it is also useful
to expose them over the RPC interface to provide digestible account
information to users.
2020-01-10 16:58:01 -08:00
Wilmer Paulino
b2782dd7f7 multi: integrate account.Manager into server
This commit serves as the final part required for the server to properly
handle an RPC request for a new account.
2020-01-10 16:58:00 -08:00
Wilmer Paulino
f96cfe7162 auctioneer: extend Client to implement account.Auctioneer interface
The auctioneer.Client to satisfy the account.Auctioneer dependency
required by the account.Manager. It provides wrappers around the
server-related RPCs with better type usage.
2020-01-10 16:57:57 -08:00
Oliver Gugger
4518ab86f5 mod+cmd/agora: use protobuf hex display to print JSON 2019-12-13 17:26:40 +01:00
Wilmer Paulino
6c211172fe multi: add persistent bolt storage
In this commit, we add a persistent store backed by bolt for the client
portion of CLM in which we'll store critical information required for
its proper operation.
2019-12-11 18:59:58 -08:00
Oliver Gugger
ef1175c512 cmd/agora: add trader command line utility 2019-11-28 13:46:56 +01:00
Oliver Gugger
ee98f90ef1 auctioneer+trader: add trader server daemon 2019-11-28 13:46:55 +01:00