Skip to content

Commit

Permalink
feat: pending sweeps CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Aug 23, 2024
1 parent a5a3f4c commit f22f8b1
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 f22f8b1

Please sign in to comment.