Badger-Finance / gitcoin

Repo for gitcoin hack-a-thons,bonunties and code snippets.
7 stars 0 forks source link

dapp to allow gnosis-safe deligation via metamask/ledger #20

Closed Tritium-VLK closed 3 years ago

Tritium-VLK commented 3 years ago

Gnosis safe has a way to delegate addresses to submit transactions to the safe, but not vote for them. The problem is, the private key which the delegation will be under is required in order to make the delegation. Further, the gnosis UI has no ability to do this, and they currently have no functional tools.

We're looking to delegate under hardware wallets, which means that we have no way to enter the private key into a tool like this fork of safe-cli .

It seems like we need some sort of a dapp that can connect to metamask and/or ledger live directly and sign and submit a delegation request.

Requirements:

  1. The tool should be easy to run locally, preferably in a docker container such that it can be brought up on MacOS by downloading the repo, and running docker-compose build && docker-compose up and then connected to via a port on localhost.
  2. The tool should be as simple as possible and easy to audit, and/or come with some code reviews from the gnosis community.
  3. The tool should be open-source and at best useful to other members of the gnosis community.

Gnosis mentioned that the following tool use to be able to do this, but has not been maintained since last year. https://github.com/rmeissner/sapp-admin-tools. If you choose, you could get this up and running (via docker).

An acceptable submission will be something we can start up and test in a test-multisig wallet within 10 minutes (clone, docker-compose, http(s) to localhost, connect a wallet, see all current deligates, select and delete any that exist, enter a new address and label and submit to add.

Here are further docs from Gnosis on how to make this happen.

https://docs.gnosis.io/safe/docs/tutorial_tx_service_set_delegate/

We will pay a 50 badger bounty for the submission that we use to add delegates. We will try/evaluate submissions based on the 1: the quality of the readme, 2: how soon it was submitted. We will pay an additional 50 badger and favor any submission that has been shared with and approved by the gnosis community and/or has other DAO's that say it is also useful to them. You are responsible for providing this evidence.

You can find the gnosis community on their discord here: https://discord.gg/rTUuyQTKrF

You can talk to badger about this hack-a-thon here: https://discord.gg/Tf2PucrXcE

We would love to see you continue to maintain this project going forward, and would potentially structure further bounties to extend this work and/or promote gitcoin grants matching for a developer who wanted to continue building this kind of tooling for the opensource community. Further, Badger is interested in more advanced multisig type governance and would love to have a dev who is happy build, own, maintain and share this stuff working with us.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 100.0 BADGER (2498.0 USD @ $24.98/BADGER) attached to it.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 2 weeks, 6 days from now. Please review their action plans below:

1) soptq has started work.

A dapp that demonstrates how to allow Gnosis-Safe delegation through Metamask or Ledger, without revealing users' private key.

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 100.0 BADGER (2287.00 USD @ $22.87/BADGER) has been submitted by:


gitcoinbot commented 3 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 100.0 BADGER (2050.00 USD @ $21.71/BADGER) attached to this issue has been approved & issued to @soptq.