shapeshift / lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChainAdapters: add supportsWallet function

kaladinlight opened this issue · comments

commented

Overview

There are several places in web that require switching and independent checks to validate wallet support for each chain adapter. If we were to expose a helper function on the chain adapters, this would allow us to more generically interact with adapter that have known wallet support on common functions.

References and additional details

2 examples I have come across so far
https://github.com/shapeshift/web/blob/main/src/components/Modals/FiatRamps/views/Manager.tsx
https://github.com/shapeshift/web/blob/main/src/context/AppProvider/AppContext.tsx

Acceptance Criteria

  • expose supportsWallet function on base chain adapter that can perform the appropriate wallet checks in a generic manner

Need By Date

No response

Screenshots/Mockups

No response

Estimated effort

No response