From 09af4550d1864e9c5438a8eabe0da6fcdba8b682 Mon Sep 17 00:00:00 2001 From: 0xLucian <0xluciandev@gmail.com> Date: Mon, 2 Oct 2023 14:34:16 +0300 Subject: [PATCH] chore: add README instructions on how to export a multisig VIP to Gnosis Safe JSON format --- README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a50526f8..179b077ee 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,37 @@ Proceed by executing the following command: npx hardhat run scripts/executeMultiSigTx.ts --network sepolia ``` -After executing the commant, provide the proposal name to be executed and press enter: +After executing the command, provide the proposal name to be executed and press enter: ``` Name of tx file (from ./multisig// dir) to execute => ``` + +### Export Gnosis Safe tx JSON + +Script to export a VIP in the form of a gnosis safe tx JSON format. + +Before executing this script make sure that: + +- The network you want to execute the multisig tx exist in `hardhat.config.ts` configuration +- The gnosis safe wallet address exists in `getSafeAddress` function in `multisig/helpers/utils.ts`. +- Make sure that the name of the network in `getSafeAddress` matches the network name in the `hardhat.config.ts` and also `chainID` for this network is correct. + +Proceed by executing the following command: + +``` +npx hardhat run scripts/createProposal.ts --network +``` + +After executing the command, enter the needed information for the script. +Here is example input for exporting an example (`multisig/proposals/sepolia/example.ts`) VIP into a JSON Gnosis Safe format: + +``` +npx hardhat run scripts/createProposal.ts --network sepolia +Number of the VIP to propose (if using gnosisTXBuilder press enter to skip ) => +Type of the proposal txBuilder/venusApp/bsc/gnosisTXBuilder => gnosisTXBuilder +Address of the governance contract (optional, press enter to skip) => +Name of tx file (from ./multisig/network(available)/ dir) to execute => example +``` + +The script should output a file `gnosisTXBuilder.json` that you can import in your Gnosis Safe UI.