Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(walletconnect): remove walletconnect v1 #43

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,652 changes: 0 additions & 1,652 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 @@ -23,7 +23,6 @@
"@randlabs/myalgo-connect": "^1.2.0",
"@walletconnect/ethereum-provider": "^2.8.1",
envin3 marked this conversation as resolved.
Show resolved Hide resolved
"@walletconnect/modal": "^2.4.7",
"@walletconnect/web3-provider": "^1.6.6",
"algorand-walletconnect-qrcode-modal": "^1.8.0",
"algosdk": "^2.1.0",
"anchor-link": "^3.5.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