@@ -85,7 +85,7 @@ var listUnspentCommand = cli.Command{
85
85
ShortName : "l" ,
86
86
Usage : "List unspent static address outputs." ,
87
87
Description : `
88
- List all unspent static address outputs.
88
+ List all unspent static address outputs.
89
89
` ,
90
90
Flags : []cli.Flag {
91
91
cli.IntFlag {
@@ -133,8 +133,8 @@ var withdrawalCommand = cli.Command{
133
133
ShortName : "w" ,
134
134
Usage : "Withdraw from static address deposits." ,
135
135
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 .
138
138
` ,
139
139
Flags : []cli.Flag {
140
140
cli.StringSliceFlag {
@@ -225,8 +225,9 @@ func withdraw(ctx *cli.Context) error {
225
225
}
226
226
227
227
var 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." ,
230
231
Description : `
231
232
` ,
232
233
Flags : []cli.Flag {
@@ -246,39 +247,6 @@ var listDepositsCommand = cli.Command{
246
247
Action : listDeposits ,
247
248
}
248
249
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
-
282
250
func listDeposits (ctx * cli.Context ) error {
283
251
ctxb := context .Background ()
284
252
if ctx .NArg () > 0 {
@@ -344,6 +312,14 @@ func listDeposits(ctx *cli.Context) error {
344
312
return nil
345
313
}
346
314
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
+
347
323
func listStaticAddressSwaps (ctx * cli.Context ) error {
348
324
ctxb := context .Background ()
349
325
if ctx .NArg () > 0 {
@@ -368,6 +344,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
368
344
return nil
369
345
}
370
346
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
+
371
358
func summary (ctx * cli.Context ) error {
372
359
ctxb := context .Background ()
373
360
if ctx .NArg () > 0 {
0 commit comments