UNPKG

xud

Version:
28 lines 1.55 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.handler = exports.builder = exports.describe = exports.command = void 0; const xudrpc_pb_1 = require("../../proto/xudrpc_pb"); const command_1 = require("../command"); exports.command = 'removecurrency <currency>'; exports.describe = 'remove a currency'; exports.builder = (argv) => argv .positional('currency', { description: 'the ticker symbol for the currency', type: 'string', }) .example('$0 removecurrency BTC', 'remove BTC'); exports.handler = (argv) => __awaiter(void 0, void 0, void 0, function* () { const request = new xudrpc_pb_1.RemoveCurrencyRequest(); request.setCurrency(argv.currency.toUpperCase()); (yield command_1.loadXudClient(argv)).removeCurrency(request, command_1.callback(argv)); }); //# sourceMappingURL=removecurrency.js.map