UNPKG

filecoin-pin

Version:

Bridge IPFS content to Filecoin Onchain Cloud using familiar tools

24 lines 893 B
/** * Node.js CAR Blockstore that writes blocks to a file on disk. */ import type { CID } from 'multiformats/cid'; import type { Logger } from 'pino'; import { CARBlockstoreBase, type CARBlockstoreStats } from './car-blockstore-base.js'; export type { CARBlockstoreStats }; export interface CARBlockstoreOptions { rootCID: CID; outputPath: string; logger?: Logger; } /** * A blockstore that writes blocks directly to a CAR file as they arrive. * This eliminates the need for redundant storage during IPFS pinning operations. */ export declare class CARWritingBlockstore extends CARBlockstoreBase { private readonly fileBackend; private readonly eventEmitter; constructor(options: CARBlockstoreOptions); on(event: string, listener: (...args: any[]) => void): this; emit(event: string, ...args: any[]): boolean; } //# sourceMappingURL=car-blockstore.d.ts.map