Hey yall, just passing by to share the new – much simplified – theme registry system. It is live + usable on goerli here.
Tldr;
– PlatformIndex (uint256) is associated with a string. The string can be anything, including ipfs links. This info is stored in the stringStorageInfo mapping.
– the newPlatformIndex is what you call when you want to create a new platformIndex. The address who calls this is set as the admin for that index – which gives them the power to update the string info at this index (setPlatformIndex function), and add new admins (setAdmin function – u can pass in an array with however many new admins u want)
– the getString call takes in a platformIndex and returns the string for that index
– this was a quick draft and I didnt make a repo for it, but i tested it in remix and it seems to work. can formalize this + get it on github once we are settled about liking it or not
Front end thoughts
– This removes the ability to set other peoples indexes as yours. I think this is totally fine, as it simplifies the architecture, and we can still faciliates “setting other peoples indexes as yours” by just looking up the string value of another index and setting that as your own