Skip to content

Commit

Permalink
feat: Update demo (#265)
Browse files Browse the repository at this point in the history
* feat: Remove debug code

* fix: Fix type error

* feat: Remove unused packages

* feat: Update demo
  • Loading branch information
wenty22 authored Jan 13, 2025
1 parent ed021ba commit 70cf43d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-ravens-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Update demo
17 changes: 2 additions & 15 deletions examples/nextjs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ import {
walletConnect,
defaultEvmConfig,
binanceWallet,
bitgetWallet,
codexFieldWallet,
coinbaseWallet,
mathWallet,
okxWallet,
tokenPocket,
uxuyWallet,
} from '@node-real/walletkit/evm';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
Expand All @@ -39,19 +34,11 @@ const config: WalletKitConfig = {
walletConnectProjectId: '518ee55b46bc23b5b496b03b1322aa13',
wallets: [
binanceWallet(),
metaMask(),
trustWallet(),
walletConnect(),
uxuyWallet(),
codexFieldWallet(),
metaMask(),

bitgetWallet(),
coinbaseWallet(),

tokenPocket(),
okxWallet(),

mathWallet(),
walletConnect(),
],
chains: [mainnet],
}),
Expand Down
11 changes: 10 additions & 1 deletion examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
metaMask,
walletConnect,
binanceWallet,
uxuyWallet,
codexFieldWallet,
} from '@node-real/walletkit/evm';
import { mainnet } from 'viem/chains';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
Expand All @@ -27,7 +29,14 @@ const config: WalletKitConfig = {
autoConnect: true,
initialChainId: 1,
walletConnectProjectId: '518ee55b46bc23b5b496b03b1322aa13',
wallets: [binanceWallet(), metaMask(), trustWallet(), walletConnect()],
wallets: [
binanceWallet(),
metaMask(),
trustWallet(),
uxuyWallet(),
codexFieldWallet(),
walletConnect(),
],
chains: [mainnet],
}),
};
Expand Down
3 changes: 3 additions & 0 deletions packages/walletkit/src/evm/wallets/uxuyWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export function uxuyWallet(props: InjectedEvmWalletOptions = {}): EvmWallet {
{
platforms: ['tg-android', 'tg-ios', 'tg-pc'],
connectType: 'default',
isInstalled() {
return true;
},
getCreateConnectorFn() {
return injected({
shimDisconnect: true,
Expand Down

0 comments on commit 70cf43d

Please sign in to comment.