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 = 'removepair <pair_id>'; exports.describe = 'remove a trading pair'; exports.builder = (argv) => argv .positional('pair_id', { description: 'the trading pair ticker to remove', type: 'string', }) .example('$0 removepair LTC/BTC', 'remove the LTC/BTC trading pair'); exports.handler = (argv) => __awaiter(void 0, void 0, void 0, function* () { const request = new xudrpc_pb_1.RemovePairRequest(); request.setPairId(argv.pair_id.toUpperCase()); (yield command_1.loadXudClient(argv)).removePair(request, command_1.callback(argv)); }); //# sourceMappingURL=removepair.js.map