Skip to main content
Version: v1.2

HatsGatekeeperMultiple

A gatekeeper contract which allows users to sign up to MACI only if they are wearing one of the specified hats

NotCriterionHat

error NotCriterionHat()

criterionHat

mapping(uint256 => bool) criterionHat

Tracks hats that users must wear to be eligible to register

constructor

constructor(address _hats, uint256[] _criterionHats) public payable

Deploy an instance of HatsGatekeeperMultiple

Parameters

NameTypeDescription
_hatsaddressThe Hats Protocol contract
_criterionHatsuint256[]Array of accepted criterion hats

register

function register(address _user, bytes _data) public

Registers the user

Parameters

NameTypeDescription
_useraddressThe address of the user
_databytesadditional data