Looking for a function which takes an array of data representing different Hats, and for each Hat an instruction of whether to Create a new hat with that data or Edit an existing hat with that data.
We also want to enforce some business logic (like the tree structure) near this top level input.
[ ] IN CODE ONLY, NO UI YET
[ ] functions which take the minimally necessary amount of data needed to craft a proposal (or, the data to be fed into a proposal), for
[ ] 1: creating a brand new full hat tree, given a Safe address (top hat plus any layers of children). See below for more description
[ ] 2. creating just a top hat, given a Safe address
[ ] 3: creating a tree structure underneath a top hat, given a top hat
Looking for a function which takes an array of data representing different Hats, and for each Hat an instruction of whether to Create a new hat with that data or Edit an existing hat with that data.
We also want to enforce some business logic (like the tree structure) near this top level input.
Each hat should have