A web3action button used to perform any web3 call.
Can be used with an existing web3 connection infrastructure
or handles default useCases for browser wallet extensions.
[x] should request to connect if not connected
[x] should request to switch chain when not connected
[x] should react to any manual changes as long as isPressed is true
[ ] timeout needs to be cleared, and re-initialized on multiple presses
[x] fetches read only providers address as account, breaks the flow
[ ] should handle a provided switch function (opposed/next to generic switchNetwork from useEthers)
How Has This Been Tested?
Locally in story / ProtocolUI test implementation (Web)
Checklist:
[ ] PR title matches follow: (Feature|Bug|Chore) Task Name
[ ] My code follows the style guidelines of this project
[ ] I have followed all the instructions described in the initial task (check Definitions of Done)
[ ] I have performed a self-review of my own code
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I have added reference to a related issue in the repository
[ ] I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
[ ] I have added screenshots related to my pull request (for frontend tasks)
[ ] I have pasted a gif showing the feature.
[ ] @mentions of the person or team responsible for reviewing proposed changes
Description
A web3action button used to perform any web3 call. Can be used with an existing web3 connection infrastructure or handles default useCases for browser wallet extensions.
About # (link your issue here) https://github.com/GoodDollar/GoodProtocolUI/issues/232
Current issues
How Has This Been Tested?
Locally in story / ProtocolUI test implementation (Web)
Checklist: