// Goal of this file is to inject all necessary device/signer dependency to coin-modules
import { createBridges, makeCliTools } from "@ledgerhq/coin-mina/bridge";
import minaResolver from "@ledgerhq/coin-mina/signer";
import { MinaApp } from "@zondax/ledger-mina-js";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
import { createResolver, executeWithSigner } from "../../bridge/setup";
import { getCurrencyConfiguration } from "../../config";
const createSigner = (transport) => {
    return new MinaApp(transport);
};
const getCoinConfig = () => getCurrencyConfiguration(getCryptoCurrencyById("mina"));
const bridge = createBridges(executeWithSigner(createSigner), getCoinConfig);
const resolver = createResolver(createSigner, minaResolver);
const cliTools = makeCliTools();
export { bridge, cliTools, resolver };
//# sourceMappingURL=setup.js.map