UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

19 lines 589 B
/** * Formats ParameterChangeProposal messages for display * @param message of type ParameterChangeProposal * @returns object with ParameterChangeProposal fields */ export 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() }; }) }; };