@@ -86,7 +86,9 @@ var listUnspentCommand = cli.Command{
8686 ShortName : "l" ,
8787 Usage : "List unspent static address outputs." ,
8888 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.
9092 ` ,
9193 Flags : []cli.Flag {
9294 cli.IntFlag {
@@ -134,8 +136,8 @@ var withdrawalCommand = cli.Command{
134136 ShortName : "w" ,
135137 Usage : "Withdraw from static address deposits." ,
136138 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 .
139141 ` ,
140142 Flags : []cli.Flag {
141143 cli.StringSliceFlag {
@@ -226,8 +228,9 @@ func withdraw(ctx *cli.Context) error {
226228}
227229
228230var 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." ,
231234 Description : `
232235 ` ,
233236 Flags : []cli.Flag {
@@ -247,39 +250,6 @@ var listDepositsCommand = cli.Command{
247250 Action : listDeposits ,
248251}
249252
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-
283253func listDeposits (ctx * cli.Context ) error {
284254 ctxb := context .Background ()
285255 if ctx .NArg () > 0 {
@@ -345,6 +315,14 @@ func listDeposits(ctx *cli.Context) error {
345315 return nil
346316}
347317
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+
348326func listStaticAddressSwaps (ctx * cli.Context ) error {
349327 ctxb := context .Background ()
350328 if ctx .NArg () > 0 {
@@ -369,6 +347,17 @@ func listStaticAddressSwaps(ctx *cli.Context) error {
369347 return nil
370348}
371349
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+
372361func summary (ctx * cli.Context ) error {
373362 ctxb := context .Background ()
374363 if ctx .NArg () > 0 {
0 commit comments