@@ -86,7 +86,7 @@ var listUnspentCommand = cli.Command{
86
86
ShortName : "l" ,
87
87
Usage : "List unspent static address outputs." ,
88
88
Description : `
89
- List all unspent static address outputs.
89
+ List all unspent static address outputs.
90
90
` ,
91
91
Flags : []cli.Flag {
92
92
cli.IntFlag {
@@ -134,8 +134,8 @@ var withdrawalCommand = cli.Command{
134
134
ShortName : "w" ,
135
135
Usage : "Withdraw from static address deposits." ,
136
136
Description : `
137
- Withdraws from all or selected static address deposits by sweeping them
138
- back to our lnd wallet.
137
+ Withdraws from all or selected static address deposits by sweeping them
138
+ to the internal wallet or an external address .
139
139
` ,
140
140
Flags : []cli.Flag {
141
141
cli.StringSliceFlag {
@@ -226,8 +226,9 @@ func withdraw(ctx *cli.Context) error {
226
226
}
227
227
228
228
var listDepositsCommand = cli.Command {
229
- Name : "listdeposits" ,
230
- Usage : "Display a summary of static address related information." ,
229
+ Name : "listdeposits" ,
230
+ Usage : "Displays static address deposits. A filter can be applied to " +
231
+ "only show deposits in a specific state." ,
231
232
Description : `
232
233
` ,
233
234
Flags : []cli.Flag {
@@ -247,39 +248,6 @@ var listDepositsCommand = cli.Command{
247
248
Action : listDeposits ,
248
249
}
249
250
250
- var listStaticAddressSwapsCommand = cli.Command {
251
- Name : "listswaps" ,
252
- Usage : "Display a summary of static address related information." ,
253
- Description : `
254
- ` ,
255
- Action : listStaticAddressSwaps ,
256
- }
257
-
258
- var summaryCommand = cli.Command {
259
- Name : "summary" ,
260
- ShortName : "s" ,
261
- Usage : "Display a summary of static address related information." ,
262
- Description : `
263
- Displays various static address related information like deposits,
264
- withdrawals and statistics. The information can be filtered by state.
265
- ` ,
266
- Flags : []cli.Flag {
267
- cli.StringFlag {
268
- Name : "filter" ,
269
- Usage : "specify a filter to only display deposits in " +
270
- "the specified state. Leaving out the filter " +
271
- "returns all deposits.\n The state can be one " +
272
- "of the following: \n " +
273
- "deposited\n withdrawing\n withdrawn\n " +
274
- "looping_in\n looped_in\n " +
275
- "publish_expired_deposit\n " +
276
- "sweep_htlc_timeout\n htlc_timeout_swept\n " +
277
- "wait_for_expiry_sweep\n expired\n failed\n ." ,
278
- },
279
- },
280
- Action : summary ,
281
- }
282
-
283
251
func listDeposits (ctx * cli.Context ) error {
284
252
ctxb := context .Background ()
285
253
if ctx .NArg () > 0 {
@@ -345,6 +313,14 @@ func listDeposits(ctx *cli.Context) error {
345
313
return nil
346
314
}
347
315
316
+ var listStaticAddressSwapsCommand = cli.Command {
317
+ Name : "listswaps" ,
318
+ Usage : "Shows a list of finalized static address swaps." ,
319
+ Description : `
320
+ ` ,
321
+ Action : listStaticAddressSwaps ,
322
+ }
323
+
348
324
func listStaticAddressSwaps (ctx * cli.Context ) error {
349
325
ctxb := context .Background ()
350
326
if ctx .NArg () > 0 {
@@ -369,6 +345,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
369
345
return nil
370
346
}
371
347
348
+ var summaryCommand = cli.Command {
349
+ Name : "summary" ,
350
+ ShortName : "s" ,
351
+ Usage : "Display a summary of static address related information." ,
352
+ Description : `
353
+ Displays various static address related information about deposits,
354
+ withdrawals and swaps.
355
+ ` ,
356
+ Action : summary ,
357
+ }
358
+
372
359
func summary (ctx * cli.Context ) error {
373
360
ctxb := context .Background ()
374
361
if ctx .NArg () > 0 {
0 commit comments