Skip to content

warm-storage

Warm Storage Contract Operations

import * as WarmStorage from '@filoz/synapse-core/warm-storage'
NamespaceDescription
addApprovedProvider-
addApprovedProviderCall-
addApprovedProviderSync-
createDataSetAndAddPieces-
getAllDataSetMetadata-
getAllDataSetMetadataCall-
getAllPieceMetadata-
getAllPieceMetadataCall-
getApprovedProviders-
getApprovedProvidersCall-
getServicePrice-
getServicePriceCall-
pullPieces-
removeApprovedProvider-
removeApprovedProviderCall-
removeApprovedProviderSync-
waitForPullStatus-
InterfaceDescription
DataSetData set type
Events-
GetDataSetsOptions-
Type AliasDescription
AddPiecesOptions-
ClientDataSetABI Client data set
CreateDataSetAndAddPiecesOptions-
CreateDataSetOptions-
DeletePieceOptions-
getClientDataSetsTypeABI function to get the client data sets
GetDataSetOptions-
GetPiecesOptions-
Piece-
PieceInputWithMetadata-
PullPieceInputInput piece for a pull request with typed PieceCID.
PullToExistingDataSetOptionsOptions for pulling pieces into an existing data set.
PullToNewDataSetOptionsOptions for creating a new data set and pulling pieces into it.
ReadAddressesResult-
TerminateDataSetOptions-
UploadOptions-
WaitForDeletePieceStatusOptions-
FunctionDescription
addApprovedProviderAdd an approved provider for the client
addApprovedProviderCallCreate a call to the addApprovedProvider function
addApprovedProviderSyncAdd an approved provider for the client and wait for confirmation
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
extractAddApprovedProviderEventExtracts the ProviderApproved event from transaction logs
extractRemoveApprovedProviderEventExtracts the ProviderUnapproved event from transaction logs
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
getServicePriceGet the service price for the warm storage
getServicePriceCallCreate a call to the getServicePrice function
parseAllDataSetMetadataParse the contract output into a MetadataObject
parseAllPieceMetadataParse the contract output into a MetadataObject
pullPieces-
readAddresses-
removeApprovedProviderRemove an approved provider for the client
removeApprovedProviderCallCreate a call to the removeApprovedProvider function
removeApprovedProviderSyncRemove an approved provider for the client and wait for confirmation
terminateDataSet-
upload-
waitForDeletePieceStatusWait for the delete piece status.
waitForPullStatusWait for pull completion.