PrimeDAO / prime-deals-dapp

DAO to DAO negotiations facilitated, ratified, and archived.
https://www.prime.xyz/deals
3 stars 1 forks source link

988 - Gnosis safe #1013

Closed hiaux0 closed 2 years ago

hiaux0 commented 2 years ago

What was done

Links for research

https://ethereum.stackexchange.com/questions/122635/signing-messages-as-a-gnosis-safe-eip1271-support https://ethereum.stackexchange.com/questions/122458/web3-eth-personal-sign-with-walletconnect-and-gnosis-safe https://ethereum.stackexchange.com/questions/117935/using-personal-sign-with-walletconnect-and-gnosis-safe/120440#120440= https://ethereum.stackexchange.com/questions/124444/gnosissafe-signing-and-verifying-a-signature https://ethereum.stackexchange.com/questions/128319/eip1271-signing-message-as-signer https://ethereum.stackexchange.com/questions/124444/gnosissafe-signing-and-verifying-a-signature https://ethereum.stackexchange.com/questions/116909/executing-transaction

Testing

Setup

  1. npm run start-dev (note, this PR adds (temporarily!) webpack devServer as https. Needed to expose manifest.json)
  2. Make sure to rebuild firebase functions locally
  3. Go to eg. https://gnosis-safe.io/app/eth:0x7450Aa5BCd1dc38A6Ac89e4D3BE976BE6AeBE9bc/home
  4. Add Safe app (Apps -> Custom App -> https://localhost:3340)
  5. Accept discliamer
  6. Authenticate to firebase (new part, where a tx on Safe Wallet is created)

Integration steps

https://www.notion.so/primedao/WIP-Gnosis-Safe-App-Instructions-2ef58ab2d719472185055430ff6de227#0760d7ee415d408da9fb38adddf7547c

Testing the app

Before

Wallet works

After

Wallet works Appears in Gnosis Safe App

vercel[bot] commented 2 years ago

Deployment failed with the following error:

Header at index 0 has invalid `source` regular expression "*".

Learn More: https://vercel.link/invalid-route-source-pattern

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
prime-deals-dapp ✅ Ready (Inspect) Visit Preview Jun 9, 2022 at 9:34AM (UTC)
hiaux0 commented 2 years ago

Findings

Adding Custom App to Gnosis safe

Struggle