"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAlpacaCurrencyBridge = void 0;
const jsHelpers_1 = require("@ledgerhq/coin-framework/bridge/jsHelpers");
const getAccountShape_1 = require("./getAccountShape");
const signer_1 = require("./signer");
const postSync_1 = require("./postSync");
function getAlpacaCurrencyBridge(network, kind, customSigner) {
    const signer = customSigner ?? (0, signer_1.getSigner)(network);
    return {
        preload: () => Promise.resolve({}),
        hydrate: () => undefined,
        scanAccounts: (0, jsHelpers_1.makeScanAccounts)({
            getAccountShape: (0, getAccountShape_1.genericGetAccountShape)(network, kind),
            getAddressFn: signer.getAddress.bind(signer),
            postSync: postSync_1.postSync,
        }),
    };
}
exports.getAlpacaCurrencyBridge = getAlpacaCurrencyBridge;
//# sourceMappingURL=currencyBridge.js.map