Skip to content

warm-storage

Warm Storage Contract Operations

import * as WarmStorage from '@filoz/synapse-core/warm-storage'
NamespaceDescription
addApprovedProvider-
addApprovedProviderCall-
addApprovedProviderSync-
getAllDataSetMetadata-
getAllDataSetMetadataCall-
getAllPieceMetadata-
getAllPieceMetadataCall-
getApprovedProviders-
getApprovedProvidersCall-
getClientDataSets-
getClientDataSetsCall-
getDataSet-
getDataSetCall-
getPdpDataSet-
getPdpDataSets-
getServicePrice-
getServicePriceCall-
readAddresses-
removeApprovedProvider-
removeApprovedProviderCall-
removeApprovedProviderSync-
terminateService-
terminateServiceCall-
terminateServiceSync-
InterfaceDescription
PdpDataSetData set information returned from Warm Storage contract
Piece-
PieceWithMetadata-
Type AliasDescription
DataSetInfoData set information returned from Warm Storage contract
PdpDataSetInfo-
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
extractAddApprovedProviderEventExtracts the ProviderApproved event from transaction logs
extractRemoveApprovedProviderEventExtracts the ProviderUnapproved event from transaction logs
extractTerminateServiceEventExtracts the ServiceTerminated 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 for use with the Viem multicall, readContract, or simulateContract functions.
getClientDataSetsGet client data sets
getClientDataSetsCallCreate a call to the getClientDataSets function for use with the Viem multicall, readContract, or simulateContract functions.
getDataSetGet a data set by ID
getDataSetCallCreate a call to the getDataSet function for use with the multicall or readContract function.
getPdpDataSetGet a PDP data set by ID
getPdpDataSetsGet PDP data sets
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
readAddressesRead FOC addresses from the Warm Storage contract
readPdpDataSetInfoRead the PDP data set info.
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
terminateServiceTerminate a service (data set)
terminateServiceCallCreate a call to the terminateService function
terminateServiceSyncTerminate a service (data set) and wait for confirmation

Re-exports datasetMetadataObjectToEntry


Re-exports METADATA_LIMITS


Re-exports MetadataArray


Re-exports metadataArrayToObject


Re-exports MetadataDataSetInternal


Re-exports MetadataEntry


Re-exports MetadataObject


Re-exports MetadataPieceInternal


Re-exports pieceMetadataObjectToEntry