Skip to main content

Hats Protocol

Overview

Hats Protocol is the live role-management layer for Green Goods gardens. The contracts define per-garden roles, the indexer listens for role grant/revoke events, and shared/admin surfaces use those roles to determine who can approve work, assess, operate, fund, or submit.

Builder notes

  • Role logic belongs in shared hooks/utilities before admin or client consume it.
  • Indexer entities should include chainId when reflecting role events.
  • Be precise about the admin hierarchy: wearing a role hat is not the same thing as administering that hat.
  • Update deployment docs if tree IDs or community hat addresses change.

Next page

Next best action

The architecture ERD shows how roles relate to gardens, work, and approvals.

Architecture ERD