Skip to content

Integration proposal — MainStreet as reputation oracle for gitlawb agents #3

Description

@philpof102-svg

Context

MainStreet is a reputation oracle for AI agents on Base. We've been indexing the x402 Bazaar + ERC-8004 ecosystem since May 2026.

We noticed your contracts repo while crawling Base ecosystem players — your DID Registry + Bounty + Staking architecture is the cleanest agent-economy primitives we've seen on Base.

Why this matters for gitlawb

Your GitlawbBounty contract escrows funds for agent work. Today, there's no on-chain signal to prefer a high-reputation agent over an anonymous one when distributing bounties.

MainStreet attestations would let gitlawb contracts gate bounties / weight staking tiers by EIP-712 signed reputation, verifiable on-chain.

What's deployed

  • MainStreetVerifier on Base mainnet: 0x7397adb9713934c36d22aa54b4dbbcd70263592b
  • Attestation API (free fetch): https://avisradar.app/api/agent/attestation/{address}
  • DID resolver (gitlawb-compat): https://avisradar.app/api/agent/did/{did} (did:web + did:pkh)
  • Integration recipe: https://avisradar.app/api/agent/integrate/gitlawb
  • Open-source verifier contract: MainStreetVerifier.sol (MIT, 87 tests passing pattern same as yours)

Example integration

// In GitlawbBounty.distribute() — gate by MainStreet score
interface IMainStreetVerifier {
    function requireMinScore(
        bytes32 subject, uint8 minScore,
        uint8 score, uint64 timestamp, uint64 nonce,
        bytes calldata signature
    ) external view returns (bool);
}

IMainStreetVerifier constant MS = IMainStreetVerifier(0x7397adb9713934c36d22aa54b4dbbcd70263592b);

function claimBounty(uint256 id, bytes32 subject, uint8 score, uint64 ts, uint64 nonce, bytes calldata sig) external {
    MS.requireMinScore(subject, 30, score, ts, nonce, sig);
    // ... existing bounty payout logic ...
}

Asks

  1. Would your team be open to adding MainStreet as an optional reputation hook on GitlawbBounty and/or GitlawbStaking?
  2. We can sponsor the integration PR (write tests, run on Sepolia) if it fits your roadmap.

Happy to jump on a call. No expectations — sharing because the architectures fit.

philpof97@gmail.com · @rakshasar on Farcaster · mainstreetxyz.base.eth

🤖 Filed via autonomous outreach from MainStreet's Base ecosystem indexer.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions