@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
151 lines • 9.25 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEVICE_LABELS_CONFIG = void 0;
const devices_1 = require("@ledgerhq/devices");
const AppInfos_1 = require("../enum/AppInfos");
const DeviceLabels_1 = require("../enum/DeviceLabels");
const TOUCHSCREEN_DEVICE_CONFIG = {
receiveVerify: {
[]: DeviceLabels_1.DeviceLabels.VERIFY_BSC,
[]: DeviceLabels_1.DeviceLabels.VERIFY_COSMOS,
[]: DeviceLabels_1.DeviceLabels.VERIFY_ETHEREUM,
[]: DeviceLabels_1.DeviceLabels.VERIFY_POLKADOT,
[]: DeviceLabels_1.DeviceLabels.VERIFY_POLYGON,
[]: DeviceLabels_1.DeviceLabels.VERIFY_SOLANA_ADDRESS,
[]: DeviceLabels_1.DeviceLabels.PROVIDE_PUBLIC_KEY,
default: DeviceLabels_1.DeviceLabels.ADDRESS,
},
receiveConfirm: {
default: DeviceLabels_1.DeviceLabels.CONFIRM,
},
delegateVerify: {
[]: DeviceLabels_1.DeviceLabels.VIEW_HEADER,
default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
},
delegateConfirm: {
[]: DeviceLabels_1.DeviceLabels.CONTINUE_TO_ACTION,
default: DeviceLabels_1.DeviceLabels.HOLD_TO_SIGN,
},
sendVerify: {
default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
},
sendConfirm: {
default: DeviceLabels_1.DeviceLabels.HOLD_TO_SIGN,
},
};
exports.DEVICE_LABELS_CONFIG = {
[]: {
receiveVerify: {
[]: DeviceLabels_1.DeviceLabels.VERIFY_ADDRESS,
[]: DeviceLabels_1.DeviceLabels.PUBKEY,
default: DeviceLabels_1.DeviceLabels.ADDRESS,
},
receiveConfirm: {
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
default: DeviceLabels_1.DeviceLabels.APPROVE,
},
delegateVerify: {
[]: DeviceLabels_1.DeviceLabels.TYPE_DELEGATE,
[]: DeviceLabels_1.DeviceLabels.RECEIVER,
[]: DeviceLabels_1.DeviceLabels.VIEW_HEADER,
[]: DeviceLabels_1.DeviceLabels.DELEGATE_FROM,
[]: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
[]: DeviceLabels_1.DeviceLabels.CHAIN_ID,
[]: DeviceLabels_1.DeviceLabels.CHAIN_ID,
default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
},
delegateConfirm: {
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.CONTINUE_TO_ACTION,
[]: DeviceLabels_1.DeviceLabels.APPROVE,
[]: DeviceLabels_1.DeviceLabels.ACCEPT_RISK,
default: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
},
sendVerify: {
[]: DeviceLabels_1.DeviceLabels.TRANSFER,
[]: DeviceLabels_1.DeviceLabels.TRANSACTION_TYPE,
[]: DeviceLabels_1.DeviceLabels.TYPE_SEND,
[]: DeviceLabels_1.DeviceLabels.CHAIN_STATEMINT,
default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
},
sendConfirm: {
[]: DeviceLabels_1.DeviceLabels.APPROVE,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.APPROVE,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.CONTINUE,
default: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
},
},
[]: TOUCHSCREEN_DEVICE_CONFIG,
[]: TOUCHSCREEN_DEVICE_CONFIG,
[]: TOUCHSCREEN_DEVICE_CONFIG,
default: {
receiveVerify: {
[]: DeviceLabels_1.DeviceLabels.VERIFY_BSC,
[]: DeviceLabels_1.DeviceLabels.PLEASE_REVIEW,
[]: DeviceLabels_1.DeviceLabels.VERIFY_ETHEREUM,
[]: DeviceLabels_1.DeviceLabels.PLEASE_REVIEW,
[]: DeviceLabels_1.DeviceLabels.VERIFY_POLYGON,
[]: DeviceLabels_1.DeviceLabels.VERIFY_SOLANA_ADDRESS,
default: DeviceLabels_1.DeviceLabels.ADDRESS,
},
receiveConfirm: {
[]: DeviceLabels_1.DeviceLabels.CONFIRM,
[]: DeviceLabels_1.DeviceLabels.CONFIRM,
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
[]: DeviceLabels_1.DeviceLabels.CONFIRM,
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
[]: DeviceLabels_1.DeviceLabels.CONFIRM,
[]: DeviceLabels_1.DeviceLabels.CONFIRM,
default: DeviceLabels_1.DeviceLabels.APPROVE,
},
delegateVerify: {
[]: DeviceLabels_1.DeviceLabels.PLEASE_REVIEW,
[]: DeviceLabels_1.DeviceLabels.RECEIVER,
[]: DeviceLabels_1.DeviceLabels.VIEW_HEADER,
[]: DeviceLabels_1.DeviceLabels.REVIEW_TRANSACTION_TO,
default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
},
delegateConfirm: {
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.ACCEPT_AND_SEND,
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.CONTINUE_TO_ACTION,
[]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
[]: DeviceLabels_1.DeviceLabels.SIGN,
default: DeviceLabels_1.DeviceLabels.APPROVE,
},
sendVerify: {
[]: DeviceLabels_1.DeviceLabels.REVIEW_TRANSACTION_TO,
[]: DeviceLabels_1.DeviceLabels.TRANSACTION_TYPE,
default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
},
sendConfirm: {
[]: DeviceLabels_1.DeviceLabels.SIGN_TRANSACTION,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.SIGN,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.APPROVE,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.SIGN_TRANSACTION,
[]: DeviceLabels_1.DeviceLabels.APPROVE,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
[]: DeviceLabels_1.DeviceLabels.ACCEPT,
default: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
},
},
};
//# sourceMappingURL=deviceLabelsData.js.map