-
Notifications
You must be signed in to change notification settings - Fork 32
chore: fix breaking changes due to PDP v2.2.0 #685
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
Conversation
chore(pdp): M3 Calibnet contract addresses
chore: update ABIs and ABIgen with make
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses breaking changes introduced in PDP v2.2.0 by updating the codebase to accommodate API changes in the PDP contract. The main changes involve removing the deprecated createDataSet()
function, updating the addPieces()
method signature, and simplifying the calculateProofFee()
function call.
- Removed
createDataSet()
functionality as it no longer exists in PDP v2.2.0 - Updated
addPieces()
to include the required listener address parameter - Simplified
calculateProofFee()
call by removing the gas fee estimate parameter
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
tasks/pdp/task_prove.go | Updates calculateProofFee call to match simplified v2.2.0 signature |
pdp/handlers.go | Disables createDataSet endpoint and updates addPieces with listener address |
cmd/pdptool/main.go | Comments out createDataSet CLI command due to API removal |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
"strconv" | ||
"strings" | ||
|
||
"github.com/ethereum/go-ethereum/accounts/abi/bind" |
Copilot
AI
Oct 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The new import for bind
is only used once in the file. Consider evaluating if this import adds significant overhead or if there's a more lightweight alternative for the single bind.CallOpts{}
usage.
Copilot uses AI. Check for mistakes.
fix: remove redundnat .json files and add comment on where these ABIs can be found
9b1157e
to
d896afc
Compare
Resolve PDP v2.2.0 breaking changes
cfb6e10
to
ef848cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we plan to preserve pdptool
then we should update it or rip the binary completely instead of leaving the dead code.
// Datasets are now created implicitly when adding the first piece via addPieces | ||
// To create a dataset, use the add-pieces command with your first piece | ||
/* DISABLED - createDataSetCmd removed in PDP v2.2.0 | ||
var createDataSetCmd = &cli.Command{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably update this command instead of deleting it as there is no way to create dataSet now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I have updated the createDataSetCmd in 7666fb4.
…ece addition flow Re-enable and update createDataSetCmd to use combined dataset creation + piece addition flow
…ist. fix: lint error by adding the createDataSetCmd back to the commands list.
Sadly this isn't going to work and it's going to require more surgery than this.
There's 2 paths here:
In #678 I suggested that we should keep the I don't really mind which way, perhaps it's a little cleaner if we just delete So I think that @virajbhartiya you should start on this branch and make it work with new data sets, where But you also need to get an end-to-end setup going so you can try this out with the new contracts that it's supposed to work with and Synapse that it's supposed to interact with so we're not just guessing that it might work. |
Yes, please feel free to take over this @virajbhartiya. I know @TippyFlitsUK can be helpful in updating his PDP SP to whatever branch if that helps you get a E2E setup you can test against, just give him a nudge in this Slack thread once you have the updates landed in, and tell him which branch to update to. |
Better not point an existing SP using our current contracts to this branch, it needs to be a fresh SP without any existing state wrt data sets cause this is a fresh deploy of PDPVerifier etc. |
Which is why I suggested Viraj use https://www.notion.so/filecoindev/FWSS-End-to-end-Testing-Setup-265dc41950c1808082e8c5f9940a04c9#265dc41950c1808082e8c5f9940a04c9 alternatively, if @TippyFlitsUK wants to set up yet another SP to help that's fine, but I'd prefer devs be able to do their own end-to-end locally so we're not just guessing and/or waiting for others. |
e188e1f
to
ec0db84
Compare
Support create and upload will be fixed in #692. Closing this PR |
On top of #680