@ledgerhq/coin-celo
Version:
58 lines • 1.69 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.acceptTransaction = void 0;
const specs_1 = require("@ledgerhq/coin-framework/bot/specs");
const typeWording = {
send: "Send",
lock: "Lock",
unlock: "Unlock",
withdraw: "Withdraw",
vote: "Vote",
revoke: "Revoke",
activate: "Activate",
register: "Create Account",
};
exports.acceptTransaction = (0, specs_1.deviceActionFlow)({
steps: [
{
title: "Review",
button: specs_1.SpeculosButton.RIGHT,
},
{
title: "Amount",
button: specs_1.SpeculosButton.RIGHT,
expectedValue: ({ account, status }) => (0, specs_1.formatDeviceAmount)(account.currency, status.amount, {
forceFloating: true,
}),
},
{
title: "Address",
button: specs_1.SpeculosButton.RIGHT,
expectedValue: ({ transaction }) => transaction.recipient,
},
{
title: "Max Fees",
button: specs_1.SpeculosButton.RIGHT,
},
{
title: "No Gateway Fee",
button: specs_1.SpeculosButton.RIGHT,
},
{
title: "Validator",
button: specs_1.SpeculosButton.RIGHT,
},
{
title: "Type",
button: specs_1.SpeculosButton.RIGHT,
expectedValue: ({ transaction }) => {
return typeWording[transaction.mode];
},
},
{
title: "Accept",
button: specs_1.SpeculosButton.BOTH,
},
],
});
//# sourceMappingURL=speculos-deviceActions.js.map