UNPKG

@ethersphere/swarm-cli

Version:
15 lines (14 loc) 641 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StampCommand = void 0; const text_1 = require("../../utils/text"); const root_command_1 = require("../root-command"); class StampCommand extends root_command_1.RootCommand { async printDepthAndAmount(id) { const stamp = await this.bee.getPostageBatch(id); this.console.log((0, text_1.createKeyValue)('Stamp ID', stamp.batchID.toHex())); this.console.log((0, text_1.createKeyValue)('Depth', stamp.depth)); this.console.log((0, text_1.createKeyValue)('Amount', stamp.amount)); } } exports.StampCommand = StampCommand;