feat(action-providers): add Graph Advocate provider (trader intel + agent reputation over x402)#1357
Open
PaulieB14 wants to merge 1 commit into
Open
Conversation
🟡 Heimdall Review Status
|
…gent reputation over x402) Adds a `graphadvocate` action provider with three paid actions (get_hyperliquid_trader_score, get_polymarket_trader_score, get_agent_reputation) that auto-pay a small USDC fee on Base through the agent's own wallet, reusing AgentKit's existing x402 signing stack (x402Client + wrapFetchWithPayment + registerExactEvmScheme) — no new dependencies. Base-only, with a per-call maxPaymentUsdc cap enforced before signing. Includes README, unit tests, and a changeset.
2c03dc4 to
39c8669
Compare
2 tasks
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.
Description
Adds a
graphadvocateaction provider giving agents paid access to Graph Advocate's onchain-intelligence endpoints. Three actions:get_hyperliquid_trader_score— Hyperliquid perps trading skill score (~$0.02 USDC)get_polymarket_trader_score— Polymarket trading skill score (~$0.01 USDC)get_agent_reputation— ERC-8004 identity + USDC-settlement reputation score (~$0.02 USDC)Each action POSTs to graphadvocate.com and auto-pays the small USDC fee on Base through the agent's own wallet, using the same x402 signing stack as the built-in
x402provider (x402Client+wrapFetchWithPayment+registerExactEvmScheme). No new dependencies.maxPaymentUsdc, default 1.0 / env-overridable) refuses any action priced above the cap before anything is signed.erc8004(identity) andx402(payments) providers by adding a reputation / skill-scoring layer. Fits WISHLIST → "Trading & Data".Tests
graphAdvocateActionProvider.test.tscoversupportsNetwork, the payment-cap guard (refuses before signing), and the EVM-wallet-only guard.tsc --noEmitpasses clean for the new provider against current types.Checklist
graphadvocate/README.md).changeset/graph-advocate-action-provider.md)🤖 Generated with Claude Code