Skip to content

feat: implement FileRegistry contract#35

Open
web3buidlerz wants to merge 7 commits into
mainfrom
feat/x402/file-registry
Open

feat: implement FileRegistry contract#35
web3buidlerz wants to merge 7 commits into
mainfrom
feat/x402/file-registry

Conversation

@web3buidlerz

Copy link
Copy Markdown
Collaborator

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

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):

web3buidlerz and others added 2 commits June 5, 2026 15:18
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 baditu requested a review from Copilot June 5, 2026 12:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@baditu baditu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Files cannot currently be removed or delisted after registration. Do we want to also add this feature ?

Comment thread packages/hardhat/contracts/FileRegistry.sol
* @return ids The file ids in the returned page.
* @return files The file metadata in the returned page.
*/
function getFiles(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function can become expensive. Maybe we can have a MAX_PER_PAGE, but for the purposes of this template, we are ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants