"use strict";
// Goal of this file is to inject all necessary device/signer dependency to coin-modules
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolver = exports.cliTools = exports.bridge = void 0;
const bridge_1 = require("@ledgerhq/coin-mina/bridge");
const signer_1 = __importDefault(require("@ledgerhq/coin-mina/signer"));
const ledger_mina_js_1 = require("@zondax/ledger-mina-js");
const currencies_1 = require("@ledgerhq/cryptoassets/currencies");
const setup_1 = require("../../bridge/setup");
const config_1 = require("../../config");
const createSigner = (transport) => {
    return new ledger_mina_js_1.MinaApp(transport);
};
const getCoinConfig = () => (0, config_1.getCurrencyConfiguration)((0, currencies_1.getCryptoCurrencyById)("mina"));
const bridge = (0, bridge_1.createBridges)((0, setup_1.executeWithSigner)(createSigner), getCoinConfig);
exports.bridge = bridge;
const resolver = (0, setup_1.createResolver)(createSigner, signer_1.default);
exports.resolver = resolver;
const cliTools = (0, bridge_1.makeCliTools)();
exports.cliTools = cliTools;
//# sourceMappingURL=setup.js.map