SelectionDataSet
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:13
Dataset with piece-presence information used for provider selection.
Picks the fields that selectProviders() and findMatchingDataSets() need, plus whether the data set contains at least one active piece.
Core callers can spread a PdpDataSet directly. SDK callers map from EnhancedDataSetInfo (different field names).
Properties
Section titled “Properties”dataSetId
Section titled “dataSetId”dataSetId:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:15
PDP Verifier data set ID
hasActivePieces
Section titled “hasActivePieces”hasActivePieces:
boolean
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:21
Whether the data set contains at least one active piece
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
Section titled “managed”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
Section titled “metadata”metadata:
MetadataObject
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:19
Data set metadata (key-value pairs)
pdpEndEpoch
Section titled “pdpEndEpoch”pdpEndEpoch:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:23
End epoch for PDP service (0 = active)
providerId
Section titled “providerId”providerId:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:17
Provider that owns this data set