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)
- Detect a Farcaster action (follow/like/recast/reply).
- Match with active bounties for that target.
- Validate → send proof → record on-chain.
- 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