warm-storage
Warm Storage Contract Operations
Example
Section titled “Example”import * as WarmStorage from '@filoz/synapse-core/warm-storage'Namespaces
Section titled “Namespaces”Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| DataSet | Data set type |
| Events | - |
| GetDataSetsOptions | - |
| PDPOffering | PDP offering details (decoded from capability k/v pairs) |
| PDPProvider | - |
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| AddPiecesOptions | - |
| ClientDataSet | ABI Client data set |
| CreateDataSetAndAddPiecesOptions | - |
| CreateDataSetOptions | - |
| DeletePieceOptions | - |
| getClientDataSetsType | ABI function to get the client data sets |
| GetDataSetOptions | - |
| GetPiecesOptions | - |
| GetProviderOptions | - |
| getProviderType | - |
| Piece | - |
| PieceInputWithMetadata | - |
| ReadAddressesResult | - |
| ServiceProviderInfo | - |
| TerminateDataSetOptions | - |
| UploadOptions | - |
| WaitForDeletePieceStatusOptions | - |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| addApprovedProvider | Add an approved provider for the client |
| addApprovedProviderCall | Create a call to the addApprovedProvider function |
| addPieces | Add pieces to a data set |
| createDataSet | Create a data set |
| createDataSetAndAddPieces | Create a data set and add pieces to it |
| deletePiece | Delete a piece from a data set |
| formatAllDataSetMetadata | - |
| formatAllPieceMetadata | - |
| getAllDataSetMetadata | Get all metadata for a data set formatted as a MetadataObject |
| getAllDataSetMetadataCall | Create a call to the getAllDataSetMetadata function |
| getAllPieceMetadata | Get all metadata for a piece formatted as a MetadataObject |
| getAllPieceMetadataCall | Create a call to the getAllPieceMetadata function |
| getApprovedProviders | Get approved provider IDs with optional pagination |
| getApprovedProvidersCall | Create a call to the getApprovedProviders function |
| getDataSet | Get a data set by ID |
| getDataSets | Get all data sets for a client |
| getPieces | Get the pieces for a data set |
| getProvider | - |
| getServicePrice | Get the service price for the warm storage |
| getServicePriceCall | Create a call to the getServicePrice function |
| readAddresses | - |
| readProviders | Get the providers for the warm storage. |
| removeApprovedProvider | Remove an approved provider for the client |
| removeApprovedProviderCall | Create a call to the removeApprovedProvider function |
| terminateDataSet | - |
| upload | - |
| waitForDeletePieceStatus | Wait for the delete piece status. |