Skip to content

Commit

Permalink
feat: pending sweeps CLI command (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Aug 23, 2024
1 parent 3808455 commit df32696
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/cli/commands/PendingSweeps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Arguments } from 'yargs';
import { GetPendingSweepsRequest } from '../../proto/boltzrpc_pb';
import { ApiType, BuilderTypes } from '../BuilderComponents';
import { callback, loadBoltzClient } from '../Command';

export const command = 'pendingsweeps';

export const describe = 'lists the swap ids that have pending sweeps';

export const builder = {};

export const handler = (
argv: Arguments<BuilderTypes<typeof builder> & ApiType>,
): void => {
loadBoltzClient(argv).getPendingSweeps(
new GetPendingSweepsRequest(),
callback(),
);
};

0 comments on commit df32696

Please sign in to comment.