Gnosis safe sdk: https://safe-global.github.io/safe-core-sdk/
- Install NodeJS - must be v18 or higher
- Install Yarn globally -
npm i -g yarn - Clone this repository -
git clone https://github.com/DistributedCollective/guard - Navigate to the new cloned repository folder and run
yarnto install packages - Run the application by executing
yarn dev
The app is configured to run on Mainnet RSK by default, if you need to run it on Testnet please amend .env file to have the line REACT_APP_CHAIN_ID=31 instead of REACT_APP_CHAIN_ID=30. You may also create a .env.local file in the same location with the same contents and it will override that found in .env
Connect to safe using your wallet
Use checkboxes to select modules you want disable or enable, "Propose & Approve" button will light up when you select at least one module.
Click "Propose & Approve" button to create a new transaction and sign it.
Once signed, you will see a download button, click it to download a proposal file. Share this file with other guardians.
You will also see transaction content and hash used to verify the proposal.
Other guardians need to open guardian website, connect to safe and open "Sign" page.
They then need to upload the proposal file.
Once uploaded, they will see transaction hash and who already signed it.
They can then click "Approve" / "Approve & Execute" or "Execute" button to sign / execute the transaction.
In most cases, last approver will execute the transaction (they will see "Approve & Execute" button). But if it was not executed, you will see "Execute" button once there is enought signers.
After execution, guardian website DOES NOT indicate it was executed or that last approval happened! Check it manually by opening transaction hash in explorer and checking for the events!