decentdao / decent-contracts

Your Safe, Superpowered
https://app.fractalframework.xyz
MIT License
3 stars 3 forks source link

DecentHats module #93

Closed adamgall closed 2 months ago

adamgall commented 2 months ago

Closes #92 Closes #94

See also https://github.com/decentdao/decent-contracts/pull/91


This PR implements a contract called DecentHats which will be temporarily added as a module to Safes, in order to create and configure a Hats tree for that Safe.

It also includes support for deploying instances of ERC6551 "Smart Accounts" for each new Hat.

In live environments, we'll use the HatsAccount1ofN implementation, which is deployed to various chains at address 0xfEf83A660b7C10a3EdaFdCF62DEee1fD8a875D29.

The ERC6551Registry also has a canonical address on all chains: 0x000000006551c19487814612e58FE06813775758.