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

Migrate Wallet connect to v2 #95

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Migrate Wallet connect to v2 #95

wants to merge 10 commits into from

Conversation

nrjshka
Copy link
Contributor

@nrjshka nrjshka commented Jul 21, 2023

No description provided.

@vercel
Copy link

vercel bot commented Jul 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web3-wallets ✅ Ready (Inspect) Visit Preview Jul 21, 2023 3:53pm

@what-the-diff
Copy link

what-the-diff bot commented Jul 21, 2023

PR Summary

  • Update to Package Version
    The version indicator in the 'package.json' file has been updated to reflect the current version we're working on, 1.1.12-rc.4.

  • Change in Ethereum Provider
    The mechanism used to allow our software to interact with the Ethereum network, previously '@walletconnect/web3-provider', has now been updated to a more recent version '@walletconnect/ethereum-provider' for improved functionality.

  • Introduction of Constant for Project ID
    A new permanent value 'WALLET_CONNECT_PROJECT_ID' has been introduced into the 'constants.ts' file. This will allow us to use a single, standard identification for our project across various files and functions.

  • Use of New Constant in WalletProvider
    The aforementioned project ID constant has been imported for use within the 'WalletProvider.tsx' file. This allows our wallet provider to consistently use this ID when interacting with the Ethereum network.

  • Update to Event Listeners in WalletProvider
    The event listeners in 'WalletProvider.tsx' file have been updated. They now interact with the new ethereumProvider instead of the older 'walletConnectProvider' to improve the way our product reacts to actions within the Ethereum network.

  • Change to Ethereum Provider in Types
    The mention of 'WalletConnectProvider' in the 'types.ts' file has been replaced with 'EthereumProvider'. This reflects the change in our Ethereum network interaction method.

  • Change to WalletProvider Type
    In our default settings for wallet state ('TWalletStateDefault' in the 'types.ts' file), we've now identified our 'walletProvider' type to be 'EthereumProvider'. Once again, this change allows our wallet state to remain consistent with the change in Ethereum network interaction method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant