"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: {
        [AppInfos_1.AppInfos.BNB_CHAIN.name]: DeviceLabels_1.DeviceLabels.VERIFY_BSC,
        [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.VERIFY_COSMOS,
        [AppInfos_1.AppInfos.ETHEREUM.name]: DeviceLabels_1.DeviceLabels.VERIFY_ETHEREUM,
        [AppInfos_1.AppInfos.POLKADOT.name]: DeviceLabels_1.DeviceLabels.VERIFY_POLKADOT,
        [AppInfos_1.AppInfos.POLYGON.name]: DeviceLabels_1.DeviceLabels.VERIFY_POLYGON,
        [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.VERIFY_SOLANA_ADDRESS,
        [AppInfos_1.AppInfos.SUI.name]: DeviceLabels_1.DeviceLabels.PROVIDE_PUBLIC_KEY,
        default: DeviceLabels_1.DeviceLabels.ADDRESS,
    },
    receiveConfirm: {
        default: DeviceLabels_1.DeviceLabels.CONFIRM,
    },
    delegateVerify: {
        [AppInfos_1.AppInfos.NEAR.name]: DeviceLabels_1.DeviceLabels.VIEW_HEADER,
        default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
    },
    delegateConfirm: {
        [AppInfos_1.AppInfos.NEAR.name]: 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 = {
    [devices_1.DeviceModelId.nanoS]: {
        receiveVerify: {
            [AppInfos_1.AppInfos.ETHEREUM.name]: DeviceLabels_1.DeviceLabels.VERIFY_ADDRESS,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.PUBKEY,
            default: DeviceLabels_1.DeviceLabels.ADDRESS,
        },
        receiveConfirm: {
            [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            [AppInfos_1.AppInfos.POLKADOT.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            default: DeviceLabels_1.DeviceLabels.APPROVE,
        },
        delegateVerify: {
            [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.TYPE_DELEGATE,
            [AppInfos_1.AppInfos.MULTIVERS_X.name]: DeviceLabels_1.DeviceLabels.RECEIVER,
            [AppInfos_1.AppInfos.NEAR.name]: DeviceLabels_1.DeviceLabels.VIEW_HEADER,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.DELEGATE_FROM,
            [AppInfos_1.AppInfos.TEZOS.name]: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
            [AppInfos_1.AppInfos.INJECTIVE.name]: DeviceLabels_1.DeviceLabels.CHAIN_ID,
            [AppInfos_1.AppInfos.OSMOSIS.name]: DeviceLabels_1.DeviceLabels.CHAIN_ID,
            default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
        },
        delegateConfirm: {
            [AppInfos_1.AppInfos.CELO.name]: DeviceLabels_1.DeviceLabels.ACCEPT,
            [AppInfos_1.AppInfos.MULTIVERS_X.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.NEAR.name]: DeviceLabels_1.DeviceLabels.CONTINUE_TO_ACTION,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.APPROVE,
            [AppInfos_1.AppInfos.TEZOS.name]: DeviceLabels_1.DeviceLabels.ACCEPT_RISK,
            default: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
        },
        sendVerify: {
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.TRANSFER,
            default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
        },
        sendConfirm: {
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.APPROVE,
            [AppInfos_1.AppInfos.TRON.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.STELLAR.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.RIPPLE.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.APTOS.name]: DeviceLabels_1.DeviceLabels.APPROVE,
            [AppInfos_1.AppInfos.SUI.name]: DeviceLabels_1.DeviceLabels.ACCEPT,
            [AppInfos_1.AppInfos.BITCOIN.name]: DeviceLabels_1.DeviceLabels.CONTINUE,
            default: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
        },
    },
    [devices_1.DeviceModelId.stax]: TOUCHSCREEN_DEVICE_CONFIG,
    [devices_1.DeviceModelId.europa]: TOUCHSCREEN_DEVICE_CONFIG,
    [devices_1.DeviceModelId.apex]: TOUCHSCREEN_DEVICE_CONFIG,
    default: {
        receiveVerify: {
            [AppInfos_1.AppInfos.BNB_CHAIN.name]: DeviceLabels_1.DeviceLabels.VERIFY_BSC,
            [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.PLEASE_REVIEW,
            [AppInfos_1.AppInfos.ETHEREUM.name]: DeviceLabels_1.DeviceLabels.VERIFY_ETHEREUM,
            [AppInfos_1.AppInfos.POLKADOT.name]: DeviceLabels_1.DeviceLabels.PLEASE_REVIEW,
            [AppInfos_1.AppInfos.POLYGON.name]: DeviceLabels_1.DeviceLabels.VERIFY_POLYGON,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.VERIFY_SOLANA_ADDRESS,
            default: DeviceLabels_1.DeviceLabels.ADDRESS,
        },
        receiveConfirm: {
            [AppInfos_1.AppInfos.BITCOIN.name]: DeviceLabels_1.DeviceLabels.CONFIRM,
            [AppInfos_1.AppInfos.BNB_CHAIN.name]: DeviceLabels_1.DeviceLabels.CONFIRM,
            [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            [AppInfos_1.AppInfos.ETHEREUM.name]: DeviceLabels_1.DeviceLabels.CONFIRM,
            [AppInfos_1.AppInfos.POLKADOT.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            [AppInfos_1.AppInfos.POLYGON.name]: DeviceLabels_1.DeviceLabels.CONFIRM,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.CONFIRM,
            default: DeviceLabels_1.DeviceLabels.APPROVE,
        },
        delegateVerify: {
            [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.PLEASE_REVIEW,
            [AppInfos_1.AppInfos.MULTIVERS_X.name]: DeviceLabels_1.DeviceLabels.RECEIVER,
            [AppInfos_1.AppInfos.NEAR.name]: DeviceLabels_1.DeviceLabels.VIEW_HEADER,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.REVIEW_TRANSACTION_TO,
            default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
        },
        delegateConfirm: {
            [AppInfos_1.AppInfos.CELO.name]: DeviceLabels_1.DeviceLabels.ACCEPT,
            [AppInfos_1.AppInfos.TEZOS.name]: DeviceLabels_1.DeviceLabels.ACCEPT_AND_SEND,
            [AppInfos_1.AppInfos.COSMOS.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            [AppInfos_1.AppInfos.INJECTIVE.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            [AppInfos_1.AppInfos.MULTIVERS_X.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.NEAR.name]: DeviceLabels_1.DeviceLabels.CONTINUE_TO_ACTION,
            [AppInfos_1.AppInfos.OSMOSIS.name]: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.SIGN,
            default: DeviceLabels_1.DeviceLabels.APPROVE,
        },
        sendVerify: {
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.REVIEW_TRANSACTION_TO,
            [AppInfos_1.AppInfos.RIPPLE.name]: DeviceLabels_1.DeviceLabels.TRANSACTION_TYPE,
            default: DeviceLabels_1.DeviceLabels.REVIEW_OPERATION,
        },
        sendConfirm: {
            [AppInfos_1.AppInfos.SOLANA.name]: DeviceLabels_1.DeviceLabels.SIGN_TRANSACTION,
            [AppInfos_1.AppInfos.TRON.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.STELLAR.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.RIPPLE.name]: DeviceLabels_1.DeviceLabels.SIGN,
            [AppInfos_1.AppInfos.APTOS.name]: DeviceLabels_1.DeviceLabels.APPROVE,
            [AppInfos_1.AppInfos.SUI.name]: DeviceLabels_1.DeviceLabels.ACCEPT,
            [AppInfos_1.AppInfos.BITCOIN.name]: DeviceLabels_1.DeviceLabels.SIGN_TRANSACTION,
            [AppInfos_1.AppInfos.KASPA.name]: DeviceLabels_1.DeviceLabels.APPROVE,
            [AppInfos_1.AppInfos.DOGECOIN.name]: DeviceLabels_1.DeviceLabels.ACCEPT,
            [AppInfos_1.AppInfos.BITCOIN_CASH.name]: DeviceLabels_1.DeviceLabels.ACCEPT,
            default: DeviceLabels_1.DeviceLabels.CAPS_APPROVE,
        },
    },
};
//# sourceMappingURL=deviceLabelsData.js.map