SelectionDataSet
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:14
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.
A PdpDataSet satisfies this shape, so the PdpDataSet[] returned by getPdpDataSets() can be passed as-is. fetchProviderSelectionInput() does this, and the SDK uses that function for provider selection.
Properties
Section titled “Properties”clientDataSetId
Section titled “clientDataSetId”clientDataSetId:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:18
Client-scoped data set ID, required when signing AddPieces for this data set
dataSetId
Section titled “dataSetId”dataSetId:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:16
PDP Verifier data set ID
hasActivePieces
Section titled “hasActivePieces”hasActivePieces:
boolean
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:24
Whether the data set contains at least one active piece
live:
boolean
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:28
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:30
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:22
Data set metadata (key-value pairs)
pdpEndEpoch
Section titled “pdpEndEpoch”pdpEndEpoch:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:26
End epoch for PDP service (0 = active)
providerId
Section titled “providerId”providerId:
bigint
Defined in: packages/synapse-core/src/warm-storage/location-types.ts:20
Provider that owns this data set