Draft
Conversation
This commit adds support for tracking f41 PDP (Proof of Data Possession) deals alongside legacy f05 market deals. Changes: - Add DealType field to Deal model (market vs pdp) - Add PDP-specific fields: ProofSetID, ProofSetLive, NextChallengeEpoch - Add migration to set deal_type='market' for existing deals - Update deal tracker to set DealType when inserting market deals - Add PDPTracker worker type and service stub - Add pdp-tracker CLI command - Add deal-type filter to deal list command The PDPTracker service is a stub awaiting go-synapse integration (PR #2). Once go-synapse is merged, the PDPClient interface will be implemented to fetch proof set data from the PDPVerifier contract. Part of: Filecoin Foundation contract milestone 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for tracking f41 PDP (Proof of Data Possession) deals alongside legacy f05 market deals.
Part of Filecoin Foundation contract milestone 1 — depends on go-synapse PR #2 for full integration.
Changes
Model Updates (
model/replication.go)DealTypetype with valuesmarket(legacy f05) andpdp(f41)DealTypefield toDealstruct with default'market'ProofSetID- on-chain proof set IDProofSetLive- whether proof set is actively challengedNextChallengeEpoch- next challenge due epochWorker Type (
model/basetypes.go)PDPTrackerworker typeMigration (
model/migrate.go)inferDealTypes()to setdeal_type='market'for existing dealsDeal Tracker (
service/dealtracker/dealtracker.go)DealType: model.DealTypeMarketwhen inserting market dealsPDP Tracker Service (
service/pdptracker/pdptracker.go)PDPClientinterface for go-synapse integrationCLI Updates
singularity run pdp-trackercommand--deal-typefilter tosingularity deal listNext Steps (after go-synapse PR #2 merges)
PDPClientinterface using go-synapse'sProofSetManagerTesting