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