"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDeviceTransactionConfig = void 0;
const deviceTransactionConfig_1 = __importDefault(require("../generated/deviceTransactionConfig"));
const account_1 = require("../account");
async function getDeviceTransactionConfig(arg) {
    const mainAccount = (0, account_1.getMainAccount)(arg.account, arg.parentAccount);
    const f = deviceTransactionConfig_1.default[mainAccount.currency.family];
    if (!f)
        return [];
    return await f(arg);
}
exports.getDeviceTransactionConfig = getDeviceTransactionConfig;
//# sourceMappingURL=deviceTransactionConfig.js.map