feat: add MainStreet action provider (onchain-verifiable reputation check)#1279
Open
philpof102-svg wants to merge 1 commit into
Open
feat: add MainStreet action provider (onchain-verifiable reputation check)#1279philpof102-svg wants to merge 1 commit into
philpof102-svg wants to merge 1 commit into
Conversation
🟡 Heimdall Review Status
|
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.
What
Adds a MainStreet action provider — a pre-payment reputation check for Base counterparties.
check_reputation(address)returns a SAFE / CAUTION / BLOCK verdict + 0–100 score for any Base wallet, agent, or token, so an agent can refuse to pay a BLOCK-rated or unscored counterparty before it transacts (e.g. before an x402 settlement). Pairs naturally with the existingx402anderc8004providers.MainStreet is an onchain reputation oracle on Base: each verdict is an EIP-712-signed attestation, verifiable onchain against the MainStreetVerifier contract (
0x7397adb9713934c36d22aa54b4dbbcd70263592b) — the signal is checkable, not "trust us". Free read API (100 checks/day/IP), fully open source.Implementation
defillama/messari(no wallet/config required; network-agnostic).index.ts+ provider README, registration inaction-providers/index.ts, an entry in the package README, unit tests (mockfetch, covering SAFE / BLOCK / unknown / HTTP error / network error / supportsNetwork), and a changeset.Links
@raskhaaa/mainstreet-oracle· repo: github.com/philpof102-svg/mainstreetclaude mcp add --transport http mainstreet https://avisradar-production.up.railway.app/mcp