@@ -86,7 +86,9 @@ 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. This command uses lnd's
90
+ underlying wallet kit method ListUnspent to retrieve all static address
91
+ outputs.
90
92
` ,
91
93
Flags : []cli.Flag {
92
94
cli.IntFlag {
@@ -134,8 +136,8 @@ var withdrawalCommand = cli.Command{
134
136
ShortName : "w" ,
135
137
Usage : "Withdraw from static address deposits." ,
136
138
Description : `
137
- Withdraws from all or selected static address deposits by sweeping them
138
- back to our lnd wallet.
139
+ Withdraws from all or selected static address deposits by sweeping them
140
+ to the internal wallet or an external address .
139
141
` ,
140
142
Flags : []cli.Flag {
141
143
cli.StringSliceFlag {
@@ -226,8 +228,9 @@ func withdraw(ctx *cli.Context) error {
226
228
}
227
229
228
230
var listDepositsCommand = cli.Command {
229
- Name : "listdeposits" ,
230
- Usage : "Display a summary of static address related information." ,
231
+ Name : "listdeposits" ,
232
+ Usage : "Displays static address deposits. A filter can be applied to " +
233
+ "only show deposits in a specific state." ,
231
234
Description : `
232
235
` ,
233
236
Flags : []cli.Flag {
@@ -247,39 +250,6 @@ var listDepositsCommand = cli.Command{
247
250
Action : listDeposits ,
248
251
}
249
252
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
253
func listDeposits (ctx * cli.Context ) error {
284
254
ctxb := context .Background ()
285
255
if ctx .NArg () > 0 {
@@ -345,6 +315,14 @@ func listDeposits(ctx *cli.Context) error {
345
315
return nil
346
316
}
347
317
318
+ var listStaticAddressSwapsCommand = cli.Command {
319
+ Name : "listswaps" ,
320
+ Usage : "Shows a list of finalized static address swaps." ,
321
+ Description : `
322
+ ` ,
323
+ Action : listStaticAddressSwaps ,
324
+ }
325
+
348
326
func listStaticAddressSwaps (ctx * cli.Context ) error {
349
327
ctxb := context .Background ()
350
328
if ctx .NArg () > 0 {
@@ -369,6 +347,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
369
347
return nil
370
348
}
371
349
350
+ var summaryCommand = cli.Command {
351
+ Name : "summary" ,
352
+ ShortName : "s" ,
353
+ Usage : "Display a summary of static address related information." ,
354
+ Description : `
355
+ Displays various static address related information about deposits,
356
+ withdrawals and swaps.
357
+ ` ,
358
+ Action : summary ,
359
+ }
360
+
372
361
func summary (ctx * cli.Context ) error {
373
362
ctxb := context .Background ()
374
363
if ctx .NArg () > 0 {
0 commit comments