feat: implement FileRegistry contract#35
Open
web3buidlerz wants to merge 7 commits into
Open
Conversation
On-chain registry for x402 pay-per-use file metadata. Removes the default HTS/HederaToken example contracts, adds deploy script and unit tests, and makes Hedera network forking opt-in so FileRegistry tests run offline. Cherry-picked from 6236777 onto current dev with conflict resolution: - keep dev Hedera verify scripts - drop HTS deploy script removed by this change Co-authored-by: Cursor <cursoragent@cursor.com>
baditu
reviewed
Jun 5, 2026
baditu
left a comment
Collaborator
There was a problem hiding this comment.
Files cannot currently be removed or delisted after registration. Do we want to also add this feature ?
| * @return ids The file ids in the returned page. | ||
| * @return files The file metadata in the returned page. | ||
| */ | ||
| function getFiles( |
Collaborator
There was a problem hiding this comment.
this function can become expensive. Maybe we can have a MAX_PER_PAGE, but for the purposes of this template, we are ok
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.
On-chain registry for x402 pay-per-use file metadata. Removes the default HTS/HederaToken example contracts, adds deploy script and unit tests, and makes Hedera network forking opt-in so FileRegistry tests run offline.
Cherry-picked from 6236777 onto current dev with conflict resolution:
Description
Concise description of proposed changes, We recommend using screenshots and videos for better description
Additional Information
Related Issues
Closes #{issue number}
Note: If your changes are small and straightforward, you may skip the creation of an issue beforehand and remove this section. However, for medium-to-large changes, it is recommended to have an open issue for discussion and approval prior to submitting a pull request.
Optional — contact or attribution (GitHub handle, Hedera account ID, or EVM-style address):