I am sorry for the question, but is this the diamond for the ERC1155 token?
You are welcome. That Aavegotchi diamond implements ERC721 and ERC1155. So two tokens at the same Ethereum address. ERC721 for the Aavegotchis and ERC1155 for the wearables and items.
No, that is a function that got called after the diamond was deployed to initialize state of the diamond.
The diamond proxy is here: https://github.com/aavegotchi/aavegotchi-contracts/blob/master/contracts/shared/Diamond.sol
ERC1155 is implemented in two facets of the diamond.
This one: https://github.com/aavegotchi/aavegotchi-contracts/blob/master/contracts/Aavegotchi/facets/ItemsFacet.sol
And this one: https://github.com/aavegotchi/aavegotchi-contracts/blob/master/contracts/Aavegotchi/facets/ItemsTransferFacet.sol
Those facets include other custom functions as well, like ERC998-based functions for transferring ERC1155 items to ERC721 tokens.
Thank you very much. Let me check!
That's really amazing to have both ERC721 and ERC1155 implemented on the same contract and thank you for sharing this with the community.