-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(cheatcodes
): add cheatcode to calculate the IPFS CID V0 of a file content
#9862
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
Comments
cheatcodes
): add cheatcode to interact with IPFS
Hi @sakulstra, I moved this from |
After re-reading it appears For this ticket to be actionable I would like to define more clearly what features are requested:
If no interaction is necessary we should update the title to reflect that. |
@zerosnacks for our usecase generating the cid0 of a file/string is the only thing we need. |
cheatcodes
): add cheatcode to interact with IPFScheatcodes
): add cheatcode to calculate the IPFS CID V0 of a file content
This comment has been minimized.
This comment has been minimized.
I'd like to work on this. |
This comment has been minimized.
This comment has been minimized.
Hey! Do you still have some capacity to work on this? |
I can look into this , if possible? |
Hi @jenpaff, A little occupied as of now @Ayushdubey86 can work on this if he wants. |
assigned |
As per #10348 (comment) and internal discussion, we decided that this is not worth the complexity and additional dependencies for something already achievable through ffi. |
For us it would be quite useful to have a native way of hashing file contents and strings via foundry.
The reason is that in a lot of cases we want to store the ipfs hash of a file on-chain, but automating this is currently pain.
We currently do this via ffi + node, but it's a bit painful ux wise: https://github.com/bgd-labs/aave-cli/blob/main/src/ipfs/onlyHash.ts#L3-L24
Would be great if there was a native
ipfsCidV0(string memory filepath):bytes32
, so we can get rid of the node tooling we currently use to supplement foundry.The text was updated successfully, but these errors were encountered: