Skip to content

feat: Add fisherman service scaffold #422

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

snowmead
Copy link
Contributor

@snowmead snowmead commented Jul 23, 2025

TL;DR

Added a new Fisherman Service to monitor and process file deletion requests in the StorageHub network.

What changed?

  • Created a new shc-fisherman-service crate with the following components:
    • FishermanService actor that monitors blockchain events for file deletion requests
    • Event types for processing file deletion requests (ProcessFileDeletionRequest)
    • FileDeletionTarget enum to specify where files should be deleted from (BSP or Bucket)
    • Event loop implementation to handle blockchain monitoring and command processing
  • Added a task handler in the client to process file deletion requests
    • Implemented FishermanProcessFileDeletionTask to handle the construction of proofs and submission to the blockchain
  • Integrated the new service into the existing codebase:
    • Added the new crate to workspace members
    • Updated dependencies in relevant Cargo.toml files

Why make this change?

The Fisherman Service is a critical component for permissionless file deletion in the StorageHub network. It enables:

  • Monitoring the blockchain for file deletion requests
  • Constructing proofs of inclusion from Bucket/BSP forests
  • Submitting these proofs to allow storage providers to remove files from their storage

Copy link
Contributor Author

snowmead commented Jul 23, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@snowmead snowmead changed the title feat: Add fisherman service foundation and task infrastructure feat: Add fisherman service scaffold Jul 23, 2025
snowmead and others added 3 commits July 28, 2025 08:49
- Create fisherman-service crate with actor-based architecture
- Add ProcessFileDeletionRequest event and handler structure
- Implement fisherman_process_file_deletion task (placeholder)
- Add fisherman-service to workspace members
- Register fisherman task module

The fisherman service monitors file deletion requests and will
construct proofs of inclusion for storage providers to safely
remove files from their Merkle forests.

🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>
@snowmead snowmead force-pushed the snowmead/feat-fisherman-service-core branch from 8eb66e0 to 25c0437 Compare July 28, 2025 12:49
…cture (#432)

- Add FileOperationIntention and FileOperation types to common types
- Replace file key/deletion target with signed file operation intention in events
- Remove database dependency from fisherman service constructor
- Update ProcessFileDeletionRequest command to include signed intention data
- Streamline task handling to use structured signed intentions
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants