Skip to content

Commit

Permalink
chore(walletconnect): remove walletconnect v1
Browse files Browse the repository at this point in the history
  • Loading branch information
envin3 committed Jul 5, 2023
1 parent 6a057f6 commit 6f23286
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 1,738 deletions.
1,667 changes: 0 additions & 1,667 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@msgpack/msgpack": "^2.7.2",
"@perawallet/connect": "^1.2.0",
"@randlabs/myalgo-connect": "^1.2.0",
"@walletconnect/web3-provider": "^1.6.6",
"@walletconnect/ethereum-provider": "^2.8.1",
"@walletconnect/modal": "^2.4.7",
"algorand-walletconnect-qrcode-modal": "^1.8.0",
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/arbitrum/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import settings from '../../../settings'
import {
Expand All @@ -26,15 +25,6 @@ const connectWithArbitrumWallet = async (_dispatch) => {
web3Modal = new Web3Modal({
theme: getWeb3ModalTheme(getTheme()),
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'mainnet',
rpc: {
[settings.rpc.mainnet.arbitrum.chainId]: settings.rpc.mainnet.arbitrum.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.arbitrum.chainId),
walletlink: {
package: WalletLink,
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/bsc/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import { WALLET_BSC_CONNECTED, WALLET_BSC_DISCONNECTED, WALLET_BSC_ACCOUNT_CHANGED } from '../../../constants'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import settings from '../../../settings'
import { changeNetwork, setupNetwork } from '../../../utils/wallet'
Expand All @@ -21,15 +20,6 @@ const connectWithBscWallet = async (_dispatch) => {
web3Modal = new Web3Modal({
theme: getWeb3ModalTheme(getTheme()),
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'binance',
rpc: {
[settings.rpc.mainnet.bsc.chainId]: settings.rpc.mainnet.bsc.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.bsc.chainId),
walletlink: {
package: WalletLink,
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/eth/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import settings from '../../../settings'
import { changeNetwork } from '../../../utils/wallet'
Expand All @@ -27,15 +26,6 @@ const connectWithEthWallet = async (_dispatch) => {
theme: getWeb3ModalTheme(getTheme()),
cacheProvider: false,
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'mainnet',
rpc: {
[settings.rpc.mainnet.eth.chainId]: settings.rpc.mainnet.eth.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.eth.chainId),
walletlink: {
package: WalletLink,
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/ftm/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import { WALLET_FTM_CONNECTED, WALLET_FTM_DISCONNECTED, WALLET_FTM_ACCOUNT_CHANGED } from '../../../constants'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import settings from '../../../settings'
import { changeNetwork, setupNetwork } from '../../../utils/wallet'
Expand All @@ -21,15 +20,6 @@ const connectWithFtmWallet = async (_dispatch) => {
web3Modal = new Web3Modal({
theme: getWeb3ModalTheme(getTheme()),
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'fantom',
rpc: {
[settings.rpc.mainnet.ftm.chainId]: settings.rpc.mainnet.ftm.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.ftm.chainId),
walletlink: {
package: WalletLink,
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/luxochain/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import settings from '../../../settings'
import {
Expand All @@ -25,15 +24,6 @@ const connectWithLuxochainWallet = async (_dispatch) => {
web3Modal = new Web3Modal({
theme: getWeb3ModalTheme(getTheme()),
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'mainnet',
rpc: {
[settings.rpc.mainnet.luxochain.chainId]: settings.rpc.mainnet.luxochain.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.luxochain.chainId),
walletlink: {
package: WalletLink,
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/polygon/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import {
WALLET_POLYGON_CONNECTED,
Expand All @@ -25,15 +24,6 @@ const connectWithPolygonWallet = async (_dispatch) => {
web3Modal = new Web3Modal({
theme: getWeb3ModalTheme(getTheme()),
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'matic',
rpc: {
[settings.rpc.mainnet.polygon.chainId]: settings.rpc.mainnet.polygon.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.polygon.chainId),
walletlink: {
package: WalletLink,
Expand Down
10 changes: 0 additions & 10 deletions src/store/wallets/xdai/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Web3 from 'web3'
import Web3Modal from 'web3modal'
import WalletConnectProvider from '@walletconnect/web3-provider'
import WalletLink from 'walletlink'
import { WALLET_XDAI_CONNECTED, WALLET_XDAI_ACCOUNT_CHANGED, WALLET_XDAI_DISCONNECTED } from '../../../constants'
import { changeNetwork, setupNetwork } from '../../../utils/wallet'
Expand All @@ -21,15 +20,6 @@ const connectWithXdaiWallet = async (_dispatch) => {
web3Modal = new Web3Modal({
theme: getWeb3ModalTheme(getTheme()),
providerOptions: {
walletconnect: {
package: WalletConnectProvider,
options: {
network: 'xdai',
rpc: {
[settings.rpc.mainnet.xdai.chainId]: settings.rpc.mainnet.xdai.endpoint,
},
},
},
'custom-walletconnectv2': createWalletConnect2(settings.rpc.mainnet.xdai.chainId),
walletlink: {
package: WalletLink,
Expand Down

0 comments on commit 6f23286

Please sign in to comment.