Skip to content

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.

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

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

PDP Verifier data set ID


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

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

Data set metadata (key-value pairs)


pdpEndEpoch: bigint

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

End epoch for PDP service (0 = active)


providerId: bigint

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

Provider that owns this data set