Skip to content

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).

dataSetId: bigint

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

PDP Verifier data set ID


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: 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