Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support injected web3 provider (e.g. MetaMask or Status) #5

Open
4 tasks
Mischi opened this issue Aug 29, 2018 · 0 comments
Open
4 tasks

Support injected web3 provider (e.g. MetaMask or Status) #5

Mischi opened this issue Aug 29, 2018 · 0 comments

Comments

@Mischi
Copy link
Contributor

Mischi commented Aug 29, 2018

The Asure dApp comes with an integrated wallet. This makes it independent of external wallets such as MetaMask or Status and can also be used standalone in mobile browsers.

As a user of the Asure dApp and external wallets like MetaMask or Status, I would like to have the possibility to use the external wallet and to be able to do without the integrated Asure Wallet.

Implemenetation

When starting the Asure dApp it should be checked if an external Web3 provider is available (window.web3.currentProvider !== null). If it is, a new selection option should be created on the login screen. The user should be able to choose between internal or external wallet (e.g. window.web3.currentProvider AsureHdWalletProvider). The selection is then to be persisted in the Redux store.

Acceptance criteria

  • If window.web3.currentProvider is available, the user should be able to make a corresponding selection on the login screen.
  • The selection is stored in the Redux store for the duration of a user session and the window.web3.currentProvider is initialized with the AsureHdWalletProvider if the user has chosen the Asure dApp Wallet.
  • The current selection can be viewed in the settings.
  • All actions of Asure dApp work with MetaMask

How to start?

Your can find the dApp sources in packages/dapp

You could start by looking at the following files:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant