Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Add a context factory with GSN fallback for onboarding #5

Open
spalladino opened this issue Jul 25, 2019 · 0 comments
Open

Add a context factory with GSN fallback for onboarding #5

spalladino opened this issue Jul 25, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@spalladino
Copy link
Contributor

spalladino commented Jul 25, 2019

Add a factory and corresponding hook that creates a reasonable provider according to the following:

  • If there is no injected provider (ie metamask), create a new key pair (or load one from local storage if found), and set up a GSN provider with it backed by a fallback provider (such as infura).
  • If there is an injected provider, but without funds on the current network, create a new GSN provider that relies on the injected provider for signing (ie do not set a specific key, and let the RelayClient use eth_sign)
  • If there is an injected provider with funds, use it.
@spalladino spalladino added the enhancement New feature or request label Aug 5, 2019
@frangio frangio removed their assignment Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants