WIP: adding verification for proofs #569
Draft
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.
Proof CLI Commands
The proof commands provide functionality to list and synchronize Filecoin proofs from the blockchain.
Commands
singularity proof list
Lists proofs with optional filtering and pagination.
Usage
Options
--deal-id <ID>
- Filter proofs by deal ID--proof-type <TYPE>
- Filter proofs by type:replication
,spacetime
--provider <PROVIDER>
- Filter proofs by storage provider (e.g.,f01000
)--verified
- Show only verified proofs--unverified
- Show only unverified proofs--limit <NUMBER>
- Limit number of results (default: 100)--offset <NUMBER>
- Offset for pagination (default: 0)Examples
Output
The command outputs a table with the following columns:
ID
- Proof record IDDealID
- Associated deal IDProofType
- Type of proof (replication/spacetime)MessageID
- Blockchain message CIDHeight
- Block heightMethod
- Proof method nameVerified
- Whether proof was verifiedProvider
- Storage provider IDCreatedAt
- When proof was recordedWith
--verbose
flag, additional columns are shown:BlockCID
- Block CID where proof was includedSectorID
- Sector ID (if available)ErrorMsg
- Error message (if any)UpdatedAt
- Last update timesingularity proof sync
Synchronizes proofs from the Filecoin blockchain into the local database.
Usage
Options
--deal-id <ID>
- Sync proofs for specific deal ID--provider <PROVIDER>
- Sync proofs for specific storage providerExamples
Behavior
--deal-id
is provided, syncs proofs for that specific deal--provider
is provided, syncs proofs for that specific providerOutput
The command outputs a success message upon completion:
Global Options
These options can be used with any proof command:
--json
- Output results in JSON format--verbose
- Show verbose output with additional details--database-connection-string <CONNECTION>
- Database connection string--lotus-api <URL>
- Lotus API endpoint (default: https://api.node.glif.io/rpc/v1)--lotus-token <TOKEN>
- Lotus API tokenExamples
Basic Usage
JSON Output
Filtering Examples
Monitoring Examples
Integration with Other Commands
The proof commands work alongside other Singularity commands:
Error Handling
--verbose
flag to see detailed error informationPerformance Notes