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