// Goal of this file is to inject all necessary device/signer dependency to coin-modules
import { LedgerSigner } from "@taquito/ledger-signer";
import makeCliTools from "@ledgerhq/coin-tezos/test/cli";
import tezosResolver from "@ledgerhq/coin-tezos/signer/index";
import Xtz from "@ledgerhq/hw-app-tezos";
import { createResolver } from "../../bridge/setup";
const createSigner = (transport) => {
    const xtz = new Xtz(transport);
    return {
        getAddress: (path, options) => xtz.getAddress(path, options),
        signOperation: (path, rawTxHex, options) => xtz.signOperation(path, rawTxHex, options),
        // Tezos [LedgerSigner](https://www.npmjs.com/package/@taquito/ledger-signer)
        createLedgerSigner: (path, prompt, derivationType) => {
            return new LedgerSigner(transport, path, prompt, derivationType);
        },
    };
};
const resolver = createResolver(createSigner, tezosResolver);
const cliTools = makeCliTools();
export { cliTools, resolver };
//# sourceMappingURL=setup.js.map