๐งAdmins: Creating, Issuing, and Revising Hats
Last updated
Last updated
In Hats Protocol, admins are specific hats that can change a child hat's details, image, max supply, eligibility address, and toggle address โ as long as that child hat is mutable (immutable hats cannot be changed once deployed). Admin hats can also mint both mutable and immutable hats to new wearers, and transfer mutable hats from one address to another.
Each hat is an admin of all other hats linked directly below it, as seen in the diagram below:
Any Ethereum account can be a hat wearer: EOAs, DAOs, Smart Accounts (e.g. a Safe Multi-sig) or any other smart contract.
As described above, any smart contract can also be a hat wearer. This enables organizations to use dedicated smart contracts in order to perform some Hats Admins operations in an automated manner, according to a predefined logic. These particular kind of hat wearers are called Autonomous Admins. One example is using an automated admin in order to automatically enable eligible accounts to claim certain roles instead of manually minting.
We typically recommend leaving space for an Autonomous Admin hat just below the Top Hat, from which the rest of the tree will emerge. At first this hat can be unworn, but as it is not yet possible to introduce new levels into your tree later without recreating your hats, creating this dedicated role will future-proof your tree for handling automation/operational needs. See the example below for our recommended placement of the Autonomous Admin hat.
Check out this guide for an overview of the different kinds of roles that a Hats Tree might include, and some general recommendations on how to structure them.