Skip to content

Index

Synapse Core - Warm Storage Contract Operations

import * as WarmStorage from '@filoz/synapse-core/warm-storage'
InterfaceDescription
DataSetData set type
GetDataSetsOptions-
PDPOfferingPDP offering details (decoded from capability k/v pairs)
PDPProvider-
Type AliasDescription
AddPiecesOptions-
ClientDataSetABI Client data set
CreateDataSetAndAddPiecesOptions-
CreateDataSetOptions-
DeletePieceOptions-
getClientDataSetsTypeABI function to get the client data sets
GetDataSetOptions-
GetPiecesOptions-
GetProviderOptions-
getProviderType-
Piece-
PollForDeletePieceStatusOptions-
ReadAddressesResult-
ServicePriceResult-
ServiceProviderInfo-
TerminateDataSetOptions-
UploadOptions-
FunctionDescription
addPiecesAdd pieces to a data set
createDataSetCreate a data set
createDataSetAndAddPiecesCreate a data set and add pieces to it
deletePieceDelete a piece from a data set
getDataSetGet a data set by ID
getDataSetMetadataGet the metadata for a data set
getDataSetsGet all data sets for a client
getPiecesGet the pieces for a data set
getProvider-
pollForDeletePieceStatusPoll for the delete piece status.
readAddresses-
readProvidersGet the providers for the warm storage.
servicePriceGet the service price for the warm storage.
terminateDataSet-
upload-