decentdao / decent-contracts

Govern at startup speed
https://app.decentdao.org
MIT License
3 stars 3 forks source link

`[roles-0.1.0]` Create NFT-owned 'smart accounts' for each new Hat #94

Closed adamgall closed 4 months ago

adamgall commented 4 months ago

When new Hats are being created, we need to create smart accounts for those Hats along side them.

These smart accounts are ERC6551 accounts, which is a standard for "turning individual NFTs into full-blown identities onchain, with an address, controlled by the specific NFT owner".

Hats is an 1155 contract, so it works for this.

With this feature, we can stream Sablier funds directly to this new smart account address, because for all intents and purposes in this context that address is the Hat.