UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

27 lines (24 loc) 834 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.softwareUpgradeProposal = void 0; /** * Formats SoftwareUpgradeProposal messages for display * @param message of type SoftwareUpgradeProposal * @returns object with SoftwareUpgradeProposal fields */ var softwareUpgradeProposal = function softwareUpgradeProposal(message) { var plan = message.getPlan(); return { proposalType: 'Software Upgrade Proposal', title: message.getTitle(), description: message.getDescription(), plan: { name: plan === null || plan === void 0 ? void 0 : plan.getName(), height: plan === null || plan === void 0 ? void 0 : plan.getHeight(), info: plan === null || plan === void 0 ? void 0 : plan.getInfo() } }; }; exports.softwareUpgradeProposal = softwareUpgradeProposal;