Guide for Preparing Transactions
Last updated
Last updated
When a request comes in to create a new subcourt, start by checking the final Snapshot voting results to see the parameters of the new court.
To prepare the transaction itself, head over to the respective block explorer of the court deployment.
See links to contract deployments here Deployment Addresses
Then connect your wallet and navigate to the write contract section of the block explorer.
Fill in the parameters of the createSubcourt function like so 👇
Before writing to the contract, make sure your wallet is connected to the network of the deployment you’re trying to write to. In the example above, we’ll need to be connected to Gnosis Chain.
Note: It’s best practice to take a screenshot of the input parameters so that whoever executes the transaction can double check.
Click on Write and navigate to the hex section on your wallet. From there, copy the raw transaction data and paste it somewhere safe.
The first step of preparing a PolicyRegistry transaction is writing and pinning the policy JSON. To make this easy, we use the file-to-ipfs package.
Create a json file and write the policy according to what was specified in the snapshot proposal.
In the index.js file, run the following script to pin whichever policies you’ve written.
Copy + Paste the output somewhere safe before closing terminal.
Go to the PolicyRegistry deployment Deployment Addresses
Write the inputs into the setPolicy function (subcourtID and URI string).
Follow the same steps outlined in the createSubcourt guide to get the raw transaction data.
Make a copy of this template and fill in the necessary informaton.
If submitting through Discord tag @xpriment626 and share the link to your doc.
If submitting through Telegram tag @clesaege and share the link to your doc.
If submitting through Slack share the link to your doc on the public #dev channel.