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

    good first issueGood for newcomersteam/filecoin-pin"Filecoin Pin" project is a stakeholder for this work.team/fs-wgFOC working group is a stakeholder for this work, and thus wants to track it on their project board.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions