-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #728 from BoltzExchange/lightning-fixes
Lightning fixes
- Loading branch information
Showing
18 changed files
with
602 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Arguments } from 'yargs'; | ||
import { AllowRefundRequest } from '../../proto/boltzrpc_pb'; | ||
import { ApiType, BuilderTypes } from '../BuilderComponents'; | ||
import { callback, loadBoltzClient } from '../Command'; | ||
|
||
export const command = 'allowrefund <id>'; | ||
|
||
export const describe = | ||
'skips the safety checks and allows cooperative refunds for a swap'; | ||
|
||
export const builder = { | ||
id: { | ||
type: 'string', | ||
describe: 'ID of the swap', | ||
}, | ||
}; | ||
|
||
export const handler = ( | ||
argv: Arguments<BuilderTypes<typeof builder> & ApiType>, | ||
): void => { | ||
const request = new AllowRefundRequest(); | ||
request.setId(argv.id); | ||
|
||
loadBoltzClient(argv).allowRefund(request, callback()); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.