Skip to content

Commit

Permalink
v17.1.0: adds Uniswap wallet extension support
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed May 10, 2024
1 parent c3a8f9d commit c337b5b
Show file tree
Hide file tree
Showing 12 changed files with 392 additions and 687 deletions.
134 changes: 77 additions & 57 deletions dist/esm/index.evm.js

Large diffs are not rendered by default.

184 changes: 102 additions & 82 deletions dist/esm/index.js

Large diffs are not rendered by default.

134 changes: 77 additions & 57 deletions dist/umd/index.evm.js

Large diffs are not rendered by default.

184 changes: 102 additions & 82 deletions dist/umd/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.evm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-evm",
"moduleName": "Web3Wallets",
"version": "17.0.0",
"version": "17.1.0",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.evm.js",
"module": "dist/esm/index.evm.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets",
"moduleName": "Web3Wallets",
"version": "17.0.0",
"version": "17.1.0",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.solana.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wallets-solana",
"moduleName": "Web3Wallets",
"version": "17.0.0",
"version": "17.1.0",
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
"main": "dist/umd/index.solana.js",
"module": "dist/esm/index.solana.js",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const supported = [
wallets.Binance,
wallets.TrustEVM,
wallets.Rabby,
wallets.Uniswap,
wallets.PhantomEVM,
wallets.BraveEVM,
wallets.OKXEvm,
Expand Down Expand Up @@ -63,6 +64,7 @@ const supported = [
wallets.Glow,
wallets.Solflare,
wallets.Rabby,
wallets.Uniswap,
wallets.BraveEVM,
wallets.BraveSVM,
wallets.Opera,
Expand Down
4 changes: 4 additions & 0 deletions src/wallets.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import MetaMask from './wallets/MetaMask'
import Opera from './wallets/Opera'
import PhantomEVM from './wallets/Phantom.evm'
import Rabby from './wallets/Rabby'
import Uniswap from './wallets/Uniswap'
import TokenPocket from './wallets/TokenPocket'
import TrustEVM from './wallets/Trust.evm'
import WalletConnectV2 from './wallets/WalletConnectV2'
Expand All @@ -25,6 +26,7 @@ export default {
Binance,
TrustEVM,
Rabby,
Uniswap,
BraveEVM,
Opera,
MagicEdenEVM,
Expand Down Expand Up @@ -100,6 +102,7 @@ import Opera from './wallets/Opera'
import PhantomEVM from './wallets/Phantom.evm'
import PhantomSVM from './wallets/Phantom.svm'
import Rabby from './wallets/Rabby'
import Uniswap from './wallets/Uniswap'
import SolanaMobileWalletAdapter from './wallets/SolanaMobileWalletAdapter'
import Solflare from './wallets/Solflare'
import TokenPocket from './wallets/TokenPocket'
Expand All @@ -123,6 +126,7 @@ export default {
Glow,
Solflare,
Rabby,
Uniswap,
BraveEVM,
BraveSVM,
MagicEdenEVM,
Expand Down
17 changes: 17 additions & 0 deletions src/wallets/Uniswap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/wallets/WindowEthereum.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export default class WindowEthereum {
!window?.ethereum?.providerMap?.has('MetaMask') &&
// Brave Wallet
!window?.ethereum?.isBraveWallet &&
// Uniswap Wallet
!window?.ethereum?.isUniswapWallet &&
// OKX Wallet
!window?.okxwallet
)
Expand Down
Loading

0 comments on commit c337b5b

Please sign in to comment.