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