UNPKG

@ledgerhq/coin-stacks

Version:
34 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bignumber_js_1 = require("bignumber.js"); function getDeviceTransactionConfig(input) { const fields = []; fields.push({ type: "stacks.extendedAmount", label: "Amount", value: input.transaction.amount, }); fields.push({ type: "stacks.extendedAmount", label: "Fees", value: input.transaction.fee ? input.transaction.fee : new bignumber_js_1.BigNumber(0), }); fields.push({ type: "address", label: "Recipient", address: input.transaction.recipient, }); fields.push({ type: "text", label: "Nonce", value: input.transaction.nonce ? input.transaction.nonce.toFixed() : "0", }); fields.push({ type: "stacks.memo", label: "Memo", value: input.transaction.memo || "", }); return fields; } exports.default = getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.js.map