"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.listenToSlotChanges = listenToSlotChanges;
const createStandaloneSubscription_1 = require("./createStandaloneSubscription");
function listenToSlotChanges(params) {
    return (0, createStandaloneSubscription_1.createStandaloneSubscription)({
        ...params,
        subscribe: (wsRpc, abortSignal) => wsRpc.slotNotifications().subscribe({ abortSignal }),
        toEvent: ({ slot }) => ({ slot }),
        errorPrefix: '[listenToSlotChanges]',
        callSiteName: 'listenToSlotChanges',
    });
}
//# sourceMappingURL=slotListener.js.map