Skip to content

warm-storage

Warm Storage Contract Operations

import * as WarmStorage from '@filoz/synapse-core/warm-storage'
NamespaceDescription
addApprovedProvider-
addApprovedProviderCall-
createDataSetAndAddPieces-
getAllDataSetMetadata-
getAllDataSetMetadataCall-
getAllPieceMetadata-
getAllPieceMetadataCall-
getApprovedProviders-
getApprovedProvidersCall-
getServicePrice-
getServicePriceCall-
removeApprovedProvider-
removeApprovedProviderCall-
InterfaceDescription
DataSetData set type
Events-
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-
PieceInputWithMetadata-
ReadAddressesResult-
ServiceProviderInfo-
TerminateDataSetOptions-
UploadOptions-
WaitForDeletePieceStatusOptions-
FunctionDescription
addApprovedProviderAdd an approved provider for the client
addApprovedProviderCallCreate a call to the addApprovedProvider function
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
formatAllDataSetMetadata-
formatAllPieceMetadata-
getAllDataSetMetadataGet all metadata for a data set formatted as a MetadataObject
getAllDataSetMetadataCallCreate a call to the getAllDataSetMetadata function
getAllPieceMetadataGet all metadata for a piece formatted as a MetadataObject
getAllPieceMetadataCallCreate a call to the getAllPieceMetadata function
getApprovedProvidersGet approved provider IDs with optional pagination
getApprovedProvidersCallCreate a call to the getApprovedProviders function
getDataSetGet a data set by ID
getDataSetsGet all data sets for a client
getPiecesGet the pieces for a data set
getProvider-
getServicePriceGet the service price for the warm storage
getServicePriceCallCreate a call to the getServicePrice function
readAddresses-
readProvidersGet the providers for the warm storage.
removeApprovedProviderRemove an approved provider for the client
removeApprovedProviderCallCreate a call to the removeApprovedProvider function
terminateDataSet-
upload-
waitForDeletePieceStatusWait for the delete piece status.