UNPKG

@ledgerhq/live-common

Version:
49 lines 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.acceptTransaction = void 0; const specs_1 = require("@ledgerhq/ledger-wallet-framework/bot/specs"); exports.acceptTransaction = (0, specs_1.deviceActionFlow)({ steps: [ { title: "Transaction Type", button: specs_1.SpeculosButton.RIGHT, expectedValue: () => "Payment", }, { title: "Amount", button: specs_1.SpeculosButton.RIGHT, expectedValue: ({ account, status }) => (0, specs_1.formatDeviceAmount)(account.currency, status.amount), }, { title: "Fee", button: specs_1.SpeculosButton.RIGHT, expectedValue: ({ account, status }) => (0, specs_1.formatDeviceAmount)(account.currency, status.estimatedFees), }, { title: "Destination Tag", button: specs_1.SpeculosButton.RIGHT, expectedValue: ({ transaction }) => String(transaction.tag), }, { title: "Destination", button: specs_1.SpeculosButton.RIGHT, trimValue: true, expectedValue: ({ transaction }) => transaction.recipient, }, { title: "Account", button: specs_1.SpeculosButton.RIGHT, trimValue: true, expectedValue: ({ account }) => account.freshAddress, }, { title: "Accept", button: specs_1.SpeculosButton.BOTH, }, { title: "Sign transaction", button: specs_1.SpeculosButton.BOTH, }, ], }); //# sourceMappingURL=deviceActions.js.map