import { makeScanAccounts } from "@ledgerhq/coin-framework/bridge/jsHelpers";
import { genericGetAccountShape } from "./getAccountShape";
import { getSigner } from "./signer";
import { postSync } from "./postSync";
export function getAlpacaCurrencyBridge(network, kind, customSigner) {
    const signer = customSigner ?? getSigner(network);
    return {
        preload: () => Promise.resolve({}),
        hydrate: () => undefined,
        scanAccounts: makeScanAccounts({
            getAccountShape: genericGetAccountShape(network, kind),
            getAddressFn: signer.getAddress.bind(signer),
            postSync,
        }),
    };
}
//# sourceMappingURL=currencyBridge.js.map