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

feat: migrate to wagmi v1 #2834

Merged
merged 15 commits into from
May 9, 2023
Merged

feat: migrate to wagmi v1 #2834

merged 15 commits into from
May 9, 2023

Conversation

bigint
Copy link
Member

@bigint bigint commented May 8, 2023

What does this PR do?

🤖 Generated by Copilot at 4938573

This pull request updates the apps/web codebase to use the latest version of the wagmi library, which provides a new API for interacting with contracts and wallets. It also adds the viem dependency, which is a utility library for working with Ethereum. The pull request refactors and simplifies the usage of the useContractWrite hook and replaces the useSigner hook with the useWalletClient hook. These changes improve the code quality, readability, and security of the web app.

Related issues

Fixes #73

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

🤖 Generated by Copilot at 4938573

Emoji

📦🛠️🔐

@vercel
Copy link

vercel bot commented May 8, 2023

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

Name Status Preview Updated (UTC)
prerender ✅ Ready (Inspect) Visit Preview May 9, 2023 1:33pm
ui ✅ Ready (Inspect) Visit Preview May 9, 2023 1:33pm
web ✅ Ready (Inspect) Visit Preview May 9, 2023 1:33pm

@socket-security
Copy link

socket-security bot commented May 8, 2023

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

🚮 Removed packages: wagmi@0.12.13

@vercel vercel bot temporarily deployed to Preview – ui May 8, 2023 11:56 Inactive
@vercel vercel bot temporarily deployed to Preview – prerender May 8, 2023 11:57 Inactive
@vercel vercel bot temporarily deployed to Preview – ui May 9, 2023 13:30 Inactive
@vercel vercel bot temporarily deployed to Preview – prerender May 9, 2023 13:31 Inactive
@bigint bigint merged commit 91592e1 into main May 9, 2023
4 checks passed
@bigint bigint deleted the wagmi-next branch May 9, 2023 15:57
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.

Use wagmi contract write in unfollow component
1 participant