Comment on page
Drafting, Exporting, and Deploying Tree Changes
How to propose changes in Edit Mode, export those changes to share with others, and deploy those changes through a multisig or DAO contract
You can create as many new hats and changes to the Hats tree as you’d like before deploying all changes in one transaction.
Use Edit Mode to draft, share, and deploy changes to your Hats tree
After making changes in edit mode, you have the option to deploy the changes for which you have admin authorities*. If you are wearing the Top Hat, this means you'll be able to deploy all the changes immediately.
To deploy all other changes, you can:
- 1.Export and share your proposed edits with others, and
- 2.Provide the transaction calldata necessary to deploy those changes onchain
Both of these options are described below.
*Each hat is an admin of all other hats linked directly below it. Therefore, wearers of certain hats will be able to deploy changes to other mutable hats for which their hat is an admin. This includes minting both mutable and immutable hats to new wearers, and transfer mutable hats from one address to another. For more information about Admins in a Hats tree, click here.
You can export the changes made in Edit Mode in order to share them with others. This is especially useful for sharing any changes for which you do not have the admin authority to deploy.
There are two options:
- 1.Exporting a JSON file to save and share your changes with others.
- 2.Exporting transaction Call Data in order to use in an onchain proposal.
To share your suggested changes with others, click the “Export” button found in Edit Mode, as seen in the screenshot below. Others can then import this JSON file into the same tree to see all the changes you’ve created.
Export and import changes to a tree using the buttons seen above
To deploy changes via a DAO or multisig-controlled hat (e.g. a DAO contract wearing the top-hat), copy the transaction call data using the information found in edit mode as seen in the screenshot below.
Use transaction call data to deploy changes through a multisig or DAO contract
We recommend including the associated JSON file in your proposal as well, so that others can review your changes directly within the Hats app by importing the JSON into the same tree and confirm the validity of the transaction.