// Goal of this file is to inject all necessary device/signer dependency to coin-modules
import { createBridges } from "@ledgerhq/coin-icon/bridge/index";
import makeCliTools from "@ledgerhq/coin-icon/cli-transaction";
import iconResolver from "@ledgerhq/coin-icon/hw-getAddress";
import Icon from "@ledgerhq/hw-app-icon";
import { createResolver, executeWithSigner } from "../../bridge/setup";
import { getEnv } from "@ledgerhq/live-env";
const createSigner = (transport) => {
    return new Icon(transport);
};
const getCurrencyConfig = () => {
    return {
        status: {
            type: "active",
        },
        infra: {
            indexer: getEnv("ICON_INDEXER_ENDPOINT"),
            indexer_testnet: getEnv("ICON_TESTNET_INDEXER_ENDPOINT"),
            node_endpoint: getEnv("ICON_NODE_ENDPOINT"),
            node_testnet_endpoint: getEnv("ICON_TESTNET_NODE_ENDPOINT"),
            debug_endpoint: getEnv("ICON_DEBUG_ENDPOINT"),
            debug_testnet_endpoint: getEnv("ICON_TESTNET_DEBUG_ENDPOINT"),
        },
    };
};
const bridge = createBridges(executeWithSigner(createSigner), getCurrencyConfig);
const resolver = createResolver(createSigner, iconResolver);
const cliTools = makeCliTools();
export { bridge, cliTools, resolver };
//# sourceMappingURL=setup.js.map