Skip to content

Feat/arweave integration#5

Open
kempsterrrr wants to merge 11 commits intoagent0lab:mainfrom
kempsterrrr:feat/arweave-integration
Open

Feat/arweave integration#5
kempsterrrr wants to merge 11 commits intoagent0lab:mainfrom
kempsterrrr:feat/arweave-integration

Conversation

@kempsterrrr
Copy link

Implements native Arweave file data sources alongside existing IPFS support:

  • Added Arweave file data source templates (kind: file/arweave) for registration and feedback files
  • Unified handlers support both IPFS and Arweave using shared JSON parsing utilities
  • Storage-agnostic schema: cid field stores both IPFS CIDs and Arweave transaction IDs
  • agentURIType field now includes "arweave" for filtering and queries

Testing

  • Locally tested to verify Arweave agents indexed
  • Mixed queries (IPFS + Arweave) working correctly

William Kempster and others added 11 commits November 5, 2025 21:58
Changed event handler logic from separate if statements to if/else if pattern to ensure only one storage protocol is processed per event.

**Changes:**
- identity-registry.ts: Made IPFS/Arweave handlers mutually exclusive in handleAgentRegistered and handleTokenURISet
- reputation-registry.ts: Made IPFS/Arweave handlers mutually exclusive in handleFeedbackGiven

This prevents edge cases where malformed URIs could trigger both handlers and ensures cleaner event processing logic.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Fixed inaccuracies in the README regarding file data source support:
- Corrected IPFS template names (RegistrationFile, FeedbackFile)
- Clarified that only IPFS and Arweave URIs are processed by file data sources
- Noted that HTTPS/HTTP URIs are detected for classification only
- Updated data flow and trigger descriptions for accuracy

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ries9112
Copy link

@kempsterrrr I deployed the subgraph with Arweave support, but can't get the data to appear correctly unfortunately for registrationFile. I tried a number of things, but it doesn't seem like Arweave support is working from the things I have tried. Were you able to use Arweave this way to have data show up? I'm a big fan of this change, but not sure how well supported Arweave actually is by The Graph, I can't seem to get it to work

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