@@ -85,7 +85,7 @@ var listUnspentCommand = cli.Command{
8585 ShortName : "l" ,
8686 Usage : "List unspent static address outputs." ,
8787 Description : `
88- List all unspent static address outputs.
88+ List all unspent static address outputs.
8989 ` ,
9090 Flags : []cli.Flag {
9191 cli.IntFlag {
@@ -133,8 +133,8 @@ var withdrawalCommand = cli.Command{
133133 ShortName : "w" ,
134134 Usage : "Withdraw from static address deposits." ,
135135 Description : `
136- Withdraws from all or selected static address deposits by sweeping them
137- back to our lnd wallet.
136+ Withdraws from all or selected static address deposits by sweeping them
137+ to the internal wallet or an external address .
138138 ` ,
139139 Flags : []cli.Flag {
140140 cli.StringSliceFlag {
@@ -225,8 +225,9 @@ func withdraw(ctx *cli.Context) error {
225225}
226226
227227var listDepositsCommand = cli.Command {
228- Name : "listdeposits" ,
229- Usage : "Display a summary of static address related information." ,
228+ Name : "listdeposits" ,
229+ Usage : "Displays static address deposits. A filter can be applied to " +
230+ "only show deposits in a specific state." ,
230231 Description : `
231232 ` ,
232233 Flags : []cli.Flag {
@@ -246,39 +247,6 @@ var listDepositsCommand = cli.Command{
246247 Action : listDeposits ,
247248}
248249
249- var listStaticAddressSwapsCommand = cli.Command {
250- Name : "listswaps" ,
251- Usage : "Display a summary of static address related information." ,
252- Description : `
253- ` ,
254- Action : listStaticAddressSwaps ,
255- }
256-
257- var summaryCommand = cli.Command {
258- Name : "summary" ,
259- ShortName : "s" ,
260- Usage : "Display a summary of static address related information." ,
261- Description : `
262- Displays various static address related information like deposits,
263- withdrawals and statistics. The information can be filtered by state.
264- ` ,
265- Flags : []cli.Flag {
266- cli.StringFlag {
267- Name : "filter" ,
268- Usage : "specify a filter to only display deposits in " +
269- "the specified state. Leaving out the filter " +
270- "returns all deposits.\n The state can be one " +
271- "of the following: \n " +
272- "deposited\n withdrawing\n withdrawn\n " +
273- "looping_in\n looped_in\n " +
274- "publish_expired_deposit\n " +
275- "sweep_htlc_timeout\n htlc_timeout_swept\n " +
276- "wait_for_expiry_sweep\n expired\n failed\n ." ,
277- },
278- },
279- Action : summary ,
280- }
281-
282250func listDeposits (ctx * cli.Context ) error {
283251 ctxb := context .Background ()
284252 if ctx .NArg () > 0 {
@@ -344,6 +312,14 @@ func listDeposits(ctx *cli.Context) error {
344312 return nil
345313}
346314
315+ var listStaticAddressSwapsCommand = cli.Command {
316+ Name : "listswaps" ,
317+ Usage : "Shows a list of finalized static address swaps." ,
318+ Description : `
319+ ` ,
320+ Action : listStaticAddressSwaps ,
321+ }
322+
347323func listStaticAddressSwaps (ctx * cli.Context ) error {
348324 ctxb := context .Background ()
349325 if ctx .NArg () > 0 {
@@ -368,6 +344,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
368344 return nil
369345}
370346
347+ var summaryCommand = cli.Command {
348+ Name : "summary" ,
349+ ShortName : "s" ,
350+ Usage : "Display a summary of static address related information." ,
351+ Description : `
352+ Displays various static address related information about deposits,
353+ withdrawals and swaps.
354+ ` ,
355+ Action : summary ,
356+ }
357+
371358func summary (ctx * cli.Context ) error {
372359 ctxb := context .Background ()
373360 if ctx .NArg () > 0 {
0 commit comments