Skip to main content
Version: v2.0_alpha

HatsGatekeeperSingle

A gatekeeper contract which allows users to sign up to MACI only if they are wearing a specified hat

criterionHat

uint256 criterionHat

The hat that users must wear to be eligible to register

constructor

constructor(address _hats, uint256 _criterionHat) public payable

Deploy an instance of HatsGatekeeperSingle

Parameters

NameTypeDescription
_hatsaddressThe Hats Protocol contract
_criterionHatuint256The required hat

register

function register(address _user, bytes) public

Registers the user

Parameters

NameTypeDescription
_useraddressThe address of the user
bytes