filecoin-pin
Version:
Bridge IPFS content to Filecoin Onchain Cloud using familiar tools
24 lines (21 loc) • 727 B
text/typescript
import type { ProviderInfo } from '@filoz/synapse-sdk'
import type { CLIAuthOptions } from '../utils/cli-auth.js'
export interface ImportOptions extends CLIAuthOptions {
filePath: string
/** Auto-fund: automatically ensure minimum 30 days of runway */
autoFund?: boolean
/** Piece metadata attached to the imported CAR */
pieceMetadata?: Record<string, string>
/** Data set metadata applied when creating or updating the storage context */
dataSetMetadata?: Record<string, string>
}
export interface ImportResult {
filePath: string
fileSize: number
rootCid: string
pieceCid: string
pieceId?: number | undefined
dataSetId: string
transactionHash?: string | undefined
providerInfo: ProviderInfo
}