TrueFiEng / useDApp

Framework for rapid Dapp development. Simple. Robust. Extendable. Testable
https://usedapp.io
MIT License
1.58k stars 369 forks source link

Gnosis Safe App integration - any idea guys? #454

Open trozler opened 2 years ago

trozler commented 2 years ago

Hey trying to integrate gnosis safe apps with useDApp, but a little unsure on which how to go about this.

From their SDK it seems the "safe-apps-web3-react package" or "safe-apps-provider package" might the way to go.

Any idea guys?

Help would be much appreciated.

jhirn commented 2 years ago

I launched a smart contract with sub payouts to a genosis safe with this library and was bit hard by this: https://help.gnosis-safe.io/en/articles/5249851-why-can-t-i-transfer-eth-from-a-contract-into-a-safe

Didn't use any additional JS packages but the solidity was affected due to the gas price of a sub call in the EVM. I'm not sure if you need additional direct integration but the useContractCall can be used to directly interact with the Genosis safe contract calls. I recommend getting familiar with their API and testing in test net before launching your smart contract. =)