How to use @tg-wagmi/wagmi ? #5
lifecoder1988
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Backgroud
@tg-wagmi/wagmi is a library that is a fork of the original @Wagmi package. The key difference in this fork is the added support for the Uxuy Wallet.
Like the original @Wagmi library, @tg-wagmi/wagmi provides utilities for building React-based decentralized applications (dApps) that interact with Ethereum and other EVM-compatible blockchains. It abstracts away many complexities related to wallet connections, contract interactions, and blockchain events.
In addition to the standard features offered by @Wagmi, the @tg-wagmi/wagmi fork extends functionality specifically to accommodate Uxuy Wallet, a multi-chain wallet solution. This makes it easier for developers who are integrating Uxuy Wallet into their dApps to use familiar wagmi components and APIs while benefiting from the additional wallet support.
There are two integration approaches for incorporating
@tg-wagmi/wagmi
into your project:1. For New Projects:
@tg-wagmi/wagmi
from the start. This library includes built-in support for the Uxuy Wallet, making it ideal for developers who want to integrate Uxuy from the outset without needing additional modifications.step 1:
npm install @tg-wagmi/wagmi @tg-wagmi/connectors
step 2:
2. For Existing Projects Using
@wagmi
:@wagmi
library. If your project is already using@wagmi
and you want to add Uxuy Wallet support without disrupting the existing setup, you can replace the@wagmi
package with@tg-wagmi/wagmi
. This allows you to retain all existing functionalities while extending the project to support the Uxuy Wallet. The transition can be seamless since the two libraries share a common base, with@tg-wagmi/wagmi
offering additional features specific to Uxuy.step1 alias your existing package module:
step2 the code is just same as integrate wagmi:
In summary:
wagmi
functionality.Beta Was this translation helpful? Give feedback.
All reactions