UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

28 lines (25 loc) 765 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parameterChangeProposal = void 0; /** * Formats ParameterChangeProposal messages for display * @param message of type ParameterChangeProposal * @returns object with ParameterChangeProposal fields */ var parameterChangeProposal = function parameterChangeProposal(message) { return { proposalType: 'Parameter Change Proposal', title: message.getTitle(), description: message.getDescription(), changesList: message.getChangesList().map(function (change) { return { subspace: change.getSubspace(), key: change.getKey(), value: change.getValue() }; }) }; }; exports.parameterChangeProposal = parameterChangeProposal;