tdex-network / tdex-daemon-alpha

💰 Alpha Daemon implementation to run automated market making strategies on top of TDEX
MIT License
0 stars 2 forks source link

[CLI] Operator command #28

Closed tiero closed 4 years ago

tiero commented 4 years ago

We cannot force the operator to download additional software to make gRPC calls on the operator interface to get deposit and fee addresses. The CLI should allow doing this, hence we need to introduce the operator command and respectively operator deposit and operator balance

the command operator deposit should return by default a new address for the creation of a market. If passed the --fee flag it should return the address for the fee wallet instead.

the command operator balance --fee should work in the same way returning the balance for the fee account. Semantically would be nice to have a list of balance for each market when called without flag, but would be better to add this as operator rpc, instead of calling multiple times the trader balances endpoint for each market.