Skip to content

SelectionDataSet

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:13

Dataset with piece count, for provider selection.

Picks the fields that selectProviders() and findMatchingDataSets() need, plus activePieceCount which is fetched separately via multicall.

Core callers can spread a PdpDataSet directly: { ...ds, activePieceCount }. SDK callers map from EnhancedDataSetInfo (different field names).

activePieceCount: bigint

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:21

Number of active pieces in the dataset (0 = empty)


dataSetId: bigint

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:15

PDP Verifier data set ID


live: boolean

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:25

Whether the data set is live in the PDP Verifier


managed: boolean

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:27

Whether the data set is managed by the current Warm Storage contract


metadata: MetadataObject

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:19

Data set metadata (key-value pairs)


pdpEndEpoch: bigint

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:23

End epoch for PDP service (0 = active)


providerId: bigint

Defined in: packages/synapse-core/src/warm-storage/location-types.ts:17

Provider that owns this data set