/hat-wearing-eligibility

A Hats Protocol eligibility module that determines eligibility based on wearing of another hat

Primary LanguageSolidityMIT LicenseMIT

Hat Wearing Eligibility

A Hats Protocol eligibility module that conditions eligibility for one hat based on wearing another hat.

Overview and Usage

One use of a hat is to serve as an encapsulation of a set of logic and conditions that serve as baseline eligibility criteria for other hats. This eligibility module builds on that idea by allowing a hat to be used as an eligibility criterion for another hat.

Development

This repo uses Foundry for development and testing. To get started:

  1. Fork the project
  2. Install Foundry
  3. To install dependencies, run forge install
  4. To compile the contracts, run forge build
  5. To test, run forge test