Skip to content

fix: do not call to synapse-sdk directly #31

@SgtPooki

Description

@SgtPooki

const warmStorage = await WarmStorageService.create(synapse.getProvider(), synapse.getWarmStorageAddress())
// Query the PDP server for the dataset and its pieces
const pdpServer = new PDPServer(null, serviceURL)
console.debug('[DatasetPieces] Fetching pieces for dataSetId:', storageContext.dataSetId)
const dataSetData = await pdpServer.getDataSet(storageContext.dataSetId)

we should be using a filecoin-pin method for this. I believe we need to get some methods from FilOzone/synapse-sdk#249 merged in prior to piping it through filecoin-pin

cc @rvagg @BigLep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions