-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add frame connector + fix issues with WalletLink (#286)
* feat(connectors): wip WalletLink connector * feat(connectors): add `WalletLink` to example * Update packages/walletlink/package.json Co-authored-by: Noah Zinsmeister <noahwz@gmail.com> * make walletlink a peer dep * import walletlink like WC * fix import * feat: add frame connector + fix WalletLink connector * update peerDeps add @web3-react/frame dep to example add build to example and fix * clean up webpack config * regen yarn.lock, README tweak * try not testing against node 16 * use exports instead of module * only use expected dynamic import output Co-authored-by: Noah Zinsmeister <noahwz@gmail.com>
- Loading branch information
1 parent
d707d19
commit dbcd9e3
Showing
26 changed files
with
3,406 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ jobs: | |
- macOS-latest | ||
node_version: | ||
- 14 | ||
- 16 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { initializeConnector } from '@web3-react/core' | ||
import { Frame } from '@web3-react/frame' | ||
|
||
export const [frame, useFrame] = initializeConnector<Frame>(Frame, []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import { UseStore } from 'zustand' | ||
import { UseStore } from 'zustand/esm' | ||
import { Connector, Web3ReactState } from '@web3-react/types' | ||
import { network, useNetwork } from './network' | ||
import { metaMask, useMetaMask } from './metaMask' | ||
import { walletConnect, useWalletConnect } from './walletConnect' | ||
import { walletLink, useWalletLink } from './walletLink' | ||
import { frame, useFrame } from './frame' | ||
|
||
export const connectors: [Connector, UseStore<Web3ReactState>][] = [ | ||
[network, useNetwork], | ||
[metaMask, useMetaMask], | ||
[walletConnect, useWalletConnect], | ||
[walletLink, useWalletLink], | ||
[frame, useFrame], | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.