-
Notifications
You must be signed in to change notification settings - Fork 23
(WIP) feat(synapse-core): add sp-fetch module for SP-to-SP piece transfers #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: hugomrdias/move-tests
Are you sure you want to change the base?
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
synapse-dev | 3c5cdb9 | Jan 20 2026, 09:09 AM |
- Added `datasets-create` command for creating datasets. - Introduced `datasets-terminate` command for terminating datasets. - Implemented `pieces-upload` command for uploading files to datasets. - Updated `datasets` command to include block number information. - Added `debug` flag to global flags for enabling debug mode. - Introduced utility functions for handling cancellation and generating hash links. - Removed deprecated `dataset-terminate` command. - Updated package dependencies to include new libraries.
- Added `asChain` function to convert viem chains to Filecoin chains. - Introduced `DownloadPieceError` for improved error handling during piece downloads. - Updated `createDataSetAndAddPieces` to streamline dataset creation and piece addition. - Refactored `signAddPieces` and `signCreateDataSet` to support optional metadata. - Added utility functions for handling streams and async iterables. - Updated package dependencies, including adding `chai` and `@types/chai` for testing. - Introduced new tests for piece utilities and random functions to ensure reliability.
- Updated `pollForDataSetCreationStatus` to `waitForDataSetCreationStatus` for better readability. - Changed `pollForAddPiecesStatus` to `waitForAddPiecesStatus` to maintain consistency in naming conventions.
- Replaced `Piece.MAX_UPLOAD_SIZE` with `SIZE_CONSTANTS.MAX_UPLOAD_SIZE` for consistency. - Updated function calls from `pollForAddPiecesStatus` to `waitForAddPiecesStatus` in `StorageContext`. - Changed `pollForDataSetCreationStatus` to `waitForDataSetCreationStatus` for clarity. - Removed outdated test files for `piece` and `rand` utilities to streamline the codebase.
- Added `AtLeastOnePieceRequiredError` for better error management when no pieces are provided. - Updated `CreateDataSetOptions` and `AddPiecesOptions` to include new optional fields: `clientDataSetId` and `recordKeeper`. - Refactored `createDataSet` and `addPieces` functions to utilize the new options and improve signature handling. - Renamed `pollForDeletePieceStatus` to `waitForDeletePieceStatus` for consistency with naming conventions. - Enhanced tests for typed data to cover new functionalities and ensure robustness.
- Removed the `PDPAuthHelper` class to simplify authentication processes. - Updated `PDPServer` to directly utilize the `Client` from `viem` for improved integration. - Refactored `StorageContext` to eliminate dependencies on the removed `PDPAuthHelper`, enhancing clarity and maintainability. - Adjusted metadata handling to use `MetadataObject` for consistency across the codebase. - Removed outdated tests related to `PDPAuthHelper` and updated existing tests to reflect the new structure.
- Updated `pollForDeletePieceStatus` to `waitForDeletePieceStatus` to align with naming conventions established in previous commits.
c2011f6 to
7af205b
Compare
|
Added a temporary utils/example-sp-fetch-e2e.js testing file to test the sp-sp fetch flow. It stores pieces with one SP, confirms they are parked, then asks the second SP to fetch from the first and confirms they are parked. It's working currently on devnet using FilOzone/foc-devnet#34 👌. |
ac3552a to
3c5cdb9
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
0a20df0 to
a231d32
Compare
Ref: filecoin-project/curio#864
Part of #494