GithubHelp home page GithubHelp logo

isabella232 / safe-browser-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gnosis/safe-browser-extension

0.0 0.0 0.0 25.56 MB

License: MIT License

JavaScript 83.96% CSS 15.32% HTML 0.24% Shell 0.48%

safe-browser-extension's Introduction

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

  • Visit chrome://extensions in your Google Chrome browser.
  • Ensure that the Developer mode checkbox in the top of the page is checked.
  • Click the button Load unpacked extensions... and open the ./build folder in the file-selection dialog.

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:

  • Only the Gnosis Safe Authenticator is installed

    • Dapp is not whitelisted
      • Dapp integrates safe-web3-provider
        • Dapp is unusable. Local safe-web3-provider is empty (no Safe account data and pop-up never opens).
      • Dapp is not integrated with the Safe
        • Dapp is unusable.
    • Dapp is whitelisted
      • Dapp integrates safe-web3-provider
        • safe-web3-provider is injected by default. Local safe-web3-provider can be used if selected.
      • Dapp is not integrated with the Safe
        • safe-web3-provider is injected by default. Be careful if Dapp listens to the provider at load event. There is no problem with Dapps that load the provider using a button.
  • Both Gnosis Safe Authenticator and Metamask are installed

    • Dapp is not whitelisted
      • Metamask is used
    • Dapp is whitelisted
      • Dapp integrates safe-web3-provider
        • Local safe-web3-provider is used.
      • Dapp is not integrated with the Safe
        • Metamask is used.

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

safe_web3_provider

safe-browser-extension's People

Contributors

germartinez avatar rmeissner avatar fairlighteth avatar tschubotz avatar uxio0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.