gnosis / safe-browser-extension

MIT License
18 stars 8 forks source link

Gnosis Safe Authenticator

Install through Web Chrome Store

Mainnet version: https://chrome.google.com/webstore/detail/gnosis-safe/iecodoenhaghdlpodmhooppdhjhmibde

Rinkeby version: https://chrome.google.com/webstore/detail/gnosis-safe-rinkeby/gkiklnclpcbphbiaickiepnnnahefkoc

Manual Installation

Install dependencies

npm install

Build

Build files to ./build folder.

touch .env
npm run build

Run the Gnosis Safe Authenticator

The extension will be loaded up and active.

Dapp interaction

The web3 provider injected by the Gnosis Safe Authenticator has been separated in a different github repository (SafeWeb3Provider) and is imported and injected by this extension.

Dapps must be whitelisted in order to have full access to the provider.

It is highly recommended to integrate it in your Dapp to asure a good performance.

Different situations:

Example of a simple Dapp interacting with the Gnosis Safe Authenticator and Metamask:

safe_web3_provider