-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: migrate to wagmi v1 #2834
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
New dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No new dependency issues detected in pull request Bot CommandsTo ignore an alert, reply with a comment starting with Pull request alert summary
📊 Modified Dependency Overview: 🚮 Removed packages: wagmi@0.12.13 |
What does this PR do?
🤖 Generated by Copilot at 4938573
This pull request updates the
apps/web
codebase to use the latest version of thewagmi
library, which provides a new API for interacting with contracts and wallets. It also adds theviem
dependency, which is a utility library for working with Ethereum. The pull request refactors and simplifies the usage of theuseContractWrite
hook and replaces theuseSigner
hook with theuseWalletClient
hook. These changes improve the code quality, readability, and security of the web app.Related issues
Fixes #73
Type of change
Explanation of the changes
🤖 Generated by Copilot at 4938573
viem
dependency and updatewagmi
dependency inapps/web/package.json
(link)wagmi
imports and variables to use the newcreateConfig
,usePublicClient
, anduseWalletClient
API in various components (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)mode
option fromuseContractWrite
hook calls as it is no longer needed (link, link, link, link, link, link, link, link, link, link, link, link, link, link)recklesslySetUnpreparedArgs
option withargs
inuseContractWrite
hook calls to match the new API (link, link, link, link, link, link, link, link, link, link, link, link, link, link)recklesslySetUnpreparedRequest
option withaccount
,to
, anddata
inuseContractWrite
hook call inapps/web/src/components/Settings/Allowance/Button.tsx
(link)Signer
import fromethers
inapps/web/src/components/Shared/Unfollow.tsx
(link)WagmiConfig
component to useconfig
prop instead ofclient
prop inapps/web/src/components/Common/Providers/index.tsx
(link)Emoji
📦🛠️🔐