-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
985cb10
commit 0cb6f51
Showing
18 changed files
with
619 additions
and
30 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
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,32 @@ | ||
import { Arguments } from 'yargs'; | ||
import BuilderComponents from '../BuilderComponents'; | ||
import { callback, loadBoltzClient } from '../Command'; | ||
import { SendCoinsRequest } from '../../proto/boltzrpc_pb'; | ||
|
||
export const command = 'sendcoins <currency> <address> <amount> [fee_per_byte]'; | ||
|
||
export const describe = 'sends coins to a specified address'; | ||
|
||
export const builder = { | ||
currency: BuilderComponents.currency, | ||
address: { | ||
describe: 'address to which the funds should be sent', | ||
type: 'string', | ||
}, | ||
amount: { | ||
describe: 'amount that should be sent', | ||
type: 'number', | ||
}, | ||
fee_per_byte: BuilderComponents.feePerByte, | ||
}; | ||
|
||
export const handler = (argv: Arguments<any>) => { | ||
const request = new SendCoinsRequest(); | ||
|
||
request.setCurrency(argv.currency); | ||
request.setAddress(argv.address); | ||
request.setAmount(argv.amount); | ||
request.setSatPerVbyte(argv.fee_per_byte); | ||
|
||
loadBoltzClient(argv).sendCoins(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
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.