// Goal of this file is to inject all necessary device/signer dependency to coin-modules
import { createBridges } from "@ledgerhq/coin-solana/bridge/js";
import makeCliTools from "@ledgerhq/coin-solana/cli-transaction";
import solanaResolver from "@ledgerhq/coin-solana/hw-getAddress";
import { createMessageSigner, createResolver, executeWithSigner, } from "../../bridge/setup";
import { getCurrencyConfiguration } from "../../config";
import { getCryptoCurrencyById } from "../../currencies";
import { signMessage } from "@ledgerhq/coin-solana/hw-signMessage";
import { LegacySignerSolana } from "@ledgerhq/live-signer-solana";
const createSigner = (transport) => new LegacySignerSolana(transport);
const getCurrencyConfig = () => {
    return getCurrencyConfiguration(getCryptoCurrencyById("solana"));
};
const bridge = createBridges(executeWithSigner(createSigner), getCurrencyConfig);
const messageSigner = {
    signMessage: createMessageSigner(createSigner, signMessage),
};
const resolver = createResolver(createSigner, solanaResolver);
const cliTools = makeCliTools();
export { bridge, cliTools, messageSigner, resolver };
//# sourceMappingURL=setup.js.map