Skip to Content
Architecture

Architecture

How Clout connects Farcaster events → worker → smart contracts.

Layers

  • UI: Frames + Web app + user wallet.
  • Worker: Polls Farcaster, validates actions, writes on-chain.
  • Contracts: BountyManager, BountyDirectory, payout + fees.
  • Infra: Base L2, Neynar API, RPC, signer keys.

Worker flow (simplified)

  1. Detect a Farcaster action (follow/like/recast/reply).
  2. Match with active bounties for that target.
  3. Validate → send proof → record on-chain.
  4. Contract re-checks and emits events.

Minimal data model

  • Bounties keep cursors to avoid double-processing.
  • Participants stored as (bounty + user) unique entries.

Rules

  • Poll every ~10–30s.
  • Ignore events before bounty start or users already rewarded.
  • Only valid, trusted actions get recorded.
Last updated on