Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
cf27048
feat: Support solana on mobile
wenty22 Oct 29, 2024
a9ba8ac
chore: update versions (alpha) (#225)
github-actions[bot] Oct 29, 2024
55abc5d
fix: Add deeplink for tw solana on mobile
wenty22 Nov 11, 2024
defc4de
chore: update versions (alpha) (#226)
github-actions[bot] Nov 11, 2024
9f040dc
fix: Add phantom deeplink
wenty22 Nov 14, 2024
f20032d
fix: Add deelink for phantom
wenty22 Nov 14, 2024
7c14e9c
chore: update versions (alpha) (#227)
github-actions[bot] Nov 14, 2024
601d110
fix: Update tron dependencies
wenty22 Nov 19, 2024
808aab9
chore: update versions (alpha) (#230)
github-actions[bot] Nov 19, 2024
615241f
fix: Fix an issue where solana is disconnected when trust evm wallet …
wenty22 Nov 21, 2024
bdb78c9
chore: update versions (alpha) (#231)
github-actions[bot] Nov 21, 2024
9344ea0
feat: Update demo
wenty22 Nov 22, 2024
25add5c
fix: Fix the trust wallet will automatically connect when the page lo…
wenty22 Nov 22, 2024
ed5157a
chore: update versions (alpha) (#232)
github-actions[bot] Nov 22, 2024
d216788
fix: Fix the trust wallet will automatically connect when the page lo…
wenty22 Nov 25, 2024
81a347a
docs: Add change log
wenty22 Nov 25, 2024
b7b75e2
chore: update versions (alpha) (#233)
github-actions[bot] Nov 25, 2024
a0d1970
fix: Use window.trustwallet as TW provider to avoid conflicts
wenty22 Nov 25, 2024
5ebd8ce
chore: update versions (alpha) (#234)
github-actions[bot] Nov 25, 2024
11da348
fix: Fix trust issue
wenty22 Nov 25, 2024
317add9
chore: update versions (alpha) (#235)
github-actions[bot] Nov 25, 2024
f06cd1f
fix: Fix binance web3 wallet successfully detected trustwallet on mobile
wenty22 Nov 27, 2024
3e65bf8
chore: update versions (alpha) (#236)
github-actions[bot] Nov 27, 2024
698827a
feat: Support tg wallet
wenty22 Dec 2, 2024
960fdfc
feat: Support tg wallet
wenty22 Dec 2, 2024
86426c0
feat: Support tg wallet
wenty22 Dec 2, 2024
036252b
chore: update versions (alpha) (#237)
github-actions[bot] Dec 2, 2024
9fcaeff
Merge branch 'main' into dev1203
wenty22 Dec 27, 2024
12c7eef
feat: Add new wallet
wenty22 Dec 30, 2024
ca1ae96
feat: Support tg wallet (#249)
wenty22 Dec 30, 2024
192f6bd
chore: update versions (alpha) (#250)
github-actions[bot] Dec 30, 2024
1a56e68
fix: Only use binance sdk on pc
wenty22 Dec 30, 2024
24ec8a6
Merge branch 'alpha' into dev1203
wenty22 Dec 30, 2024
63ebd33
fix: Update grid layout styles
wenty22 Jan 7, 2025
ea8368e
Merge branch 'main' into dev1203
wenty22 Jan 7, 2025
fcb224c
feat: Support tg
wenty22 Jan 7, 2025
b6cbb8d
feat: Use behavior configuration to control different connection beha…
wenty22 Jan 9, 2025
a022f4c
chore: update versions (alpha) (#260)
github-actions[bot] Jan 9, 2025
46b4809
feat: Remove debug code (#261)
wenty22 Jan 9, 2025
86ea5c7
chore: update versions (alpha) (#262)
github-actions[bot] Jan 9, 2025
9a7e0b8
feat: Remove unused packages (#263)
wenty22 Jan 13, 2025
ed021ba
chore: update versions (alpha) (#264)
github-actions[bot] Jan 13, 2025
70cf43d
feat: Update demo (#265)
wenty22 Jan 13, 2025
dbd2041
chore: update versions (alpha) (#266)
github-actions[bot] Jan 13, 2025
9ee1fa9
feat: Export a method to check whether a provider exists (#267)
wenty22 Jan 13, 2025
382e89e
chore: update versions (alpha) (#268)
github-actions[bot] Jan 13, 2025
b5db8f6
feat: Remove metaMask support on tg (#269)
wenty22 Jan 16, 2025
fb420ad
chore: update versions (alpha) (#270)
github-actions[bot] Jan 16, 2025
1035289
feat: Support connecting to a specified wallet based on its wallet id…
wenty22 Jan 16, 2025
25dd6ad
chore: update versions (alpha) (#272)
github-actions[bot] Jan 16, 2025
e59d946
fix: Fix styles
wenty22 Jan 16, 2025
36116e2
chore: update versions (alpha) (#273)
github-actions[bot] Jan 16, 2025
d394ba4
feat: Update trust deeplink on ios
wenty22 Jan 20, 2025
0bc24d2
chore: update versions (alpha) (#274)
github-actions[bot] Jan 20, 2025
b0f1292
fix: Trigger uri connection by user
wenty22 Jan 20, 2025
cd39d0e
chore: update versions (alpha) (#275)
github-actions[bot] Jan 20, 2025
7370613
refactor: Only uri jumping no delay
wenty22 Jan 20, 2025
5618639
feat: Refactor & add ConnectButton & ProfileModal
wenty22 Feb 7, 2025
47dd579
docs: Add release docs
wenty22 Feb 7, 2025
354b55f
chore: Update pnpm-lock.yaml
wenty22 Feb 7, 2025
cc36a2d
feat: Update website
wenty22 Feb 7, 2025
fe2adad
chore: Only deploy docs on main branch
wenty22 Feb 7, 2025
9604732
docs: Update License
wenty22 Feb 7, 2025
1af318e
chore: update versions (alpha) (#276)
github-actions[bot] Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/beige-cups-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Update website
5 changes: 5 additions & 0 deletions .changeset/big-donuts-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Support solana on mobile
5 changes: 5 additions & 0 deletions .changeset/chilled-laws-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Update trust deeplink on ios
5 changes: 5 additions & 0 deletions .changeset/chilled-pots-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Fix binance web3 wallet successfully detected trustwallet on mobile
5 changes: 5 additions & 0 deletions .changeset/clean-ducks-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Support connecting to a specified wallet based on its wallet id
5 changes: 5 additions & 0 deletions .changeset/clever-experts-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Remove debug code
5 changes: 5 additions & 0 deletions .changeset/cuddly-dragons-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': minor
---

Use behavior configuration to control different connection behaviors on different platform
5 changes: 5 additions & 0 deletions .changeset/curly-poems-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Fix styles
5 changes: 5 additions & 0 deletions .changeset/few-cats-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Only use binance sdk on pc
5 changes: 5 additions & 0 deletions .changeset/few-guests-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Fix trust issue
5 changes: 5 additions & 0 deletions .changeset/fifty-owls-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Export a method to check whether a provider exists
5 changes: 5 additions & 0 deletions .changeset/fuzzy-sheep-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Add new wallet
5 changes: 5 additions & 0 deletions .changeset/happy-countries-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Update tron dependencies
5 changes: 5 additions & 0 deletions .changeset/happy-jobs-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Fix an issue where solana is disconnected when trust evm wallet is disconnected
5 changes: 5 additions & 0 deletions .changeset/itchy-hats-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Add deeplink for tw solana on mobile
5 changes: 5 additions & 0 deletions .changeset/khaki-swans-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Remove metaMask support on tg
5 changes: 5 additions & 0 deletions .changeset/large-roses-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Remove unused packages
5 changes: 5 additions & 0 deletions .changeset/little-panthers-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Fix the trust wallet will automatically connect when the page loaded
5 changes: 5 additions & 0 deletions .changeset/neat-pans-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Trigger uri connection by user
5 changes: 5 additions & 0 deletions .changeset/nervous-horses-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Fix the trust wallet will automatically connect when the page loaded
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
5 changes: 5 additions & 0 deletions .changeset/pink-carrots-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Use window.trustwallet as TW provider to avoid conflicts
37 changes: 37 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"example-nextjs": "0.0.1",
"example-vite": "0.0.1",
"@node-real/walletkit": "2.4.0",
"website": "0.0.1"
},
"changesets": [
"beige-cups-poke",
"big-donuts-push",
"chilled-laws-kiss",
"chilled-pots-chew",
"clean-ducks-carry",
"clever-experts-smash",
"cuddly-dragons-talk",
"curly-poems-complain",
"few-cats-float",
"few-guests-melt",
"fifty-owls-kiss",
"fuzzy-sheep-buy",
"happy-countries-exercise",
"happy-jobs-hope",
"itchy-hats-applaud",
"khaki-swans-cough",
"large-roses-eat",
"little-panthers-tickle",
"neat-pans-give",
"nervous-horses-study",
"perfect-ravens-melt",
"pink-carrots-jam",
"rotten-mugs-fail",
"slimy-books-turn",
"wise-days-juggle"
]
}
5 changes: 5 additions & 0 deletions .changeset/rotten-mugs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': minor
---

Refactor & add ConnectButton & ProfileModal
5 changes: 5 additions & 0 deletions .changeset/slimy-books-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': patch
---

Add deelink for phantom
5 changes: 5 additions & 0 deletions .changeset/wise-days-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@node-real/walletkit': minor
---

Support tg
2 changes: 0 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
- alpha
- dev

jobs:
release:
Expand Down
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pnpm install
pnpm dev
```

In default, this will run a [test example](./packages/walletkit/test) under walletkit package, you can use this example for development and debugging. Any changes in `packages/walletkit` will trigger a refresh.
In default, this will run a [test example](./packages/walletkit/__dev__) under walletkit package, you can use this example for development and debugging. Any changes in `packages/walletkit` will trigger a refresh.

## Coding standards

Expand Down Expand Up @@ -241,4 +241,7 @@ A complete development workflow like following:
branch
5. Then [github action](https://github.com/node-real/walletkit/actions) will automatically execute
and create a new [release PR](https://github.com/node-real/walletkit/pulls), merge this PR, a new
version will be released
`alpha version` will be released
6. After testing on the `alpha version`, we can merge the `alpha` branch into the `main` branch, and the [github action](https://github.com/node-real/walletkit/actions) will automatically execute
and create a new [release PR](https://github.com/node-real/walletkit/pulls), merge this PR, a new
`stable version` will be released
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 node-real
Copyright (c) 2025 node-real

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
Expand Down
84 changes: 43 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,61 +30,62 @@ npm i @node-real/walletkit@^2 wagmi@^2 viem@^2 @tanstack/react-query@^5
```tsx
import '@node-real/walletkit/styles.css';

import { trustWallet, metaMask, walletConnect } from '@node-real/walletkit/wallets';
import { binanceWallet, trustWallet, metaMask, walletConnect } from '@node-real/walletkit/wallets';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import {
defaultWagmiConfig,
SwitchNetworkModal,
WalletKitButton,
WalletKitOptions,
ConnectModal,
WalletKitConfig,
WalletKitProvider,
ConnectButton,
SwitchNetworkModal,
ProfileModal,
ConnectModal,
} from '@node-real/walletkit';
import { WagmiProvider } from 'wagmi';
import { AppProps } from 'next/app';
import { chains } from './chains';
import { bsc, mainnet } from 'wagmi/chains';

const queryClient = new QueryClient();

const config = defaultWagmiConfig({
appName: '[Your app name]', // Your app name
chains,
connectors: [trustWallet(), metaMask(), walletConnect()],

// WalletConnect 2.0 requires a projectId which you can create quickly
// and easily for free over at WalletConnect Cloud https://cloud.walletconnect.com/sign-in
walletConnectProjectId: 'xxx',
});

const options: WalletKitOptions = {
initialChainId: 1,
const config: WalletKitConfig = {
options: {
closeModalOnEsc: false,
},
evmConfig: defaultEvmConfig({
autoConnect: true,
initialChainId: 1,

// WalletConnect 2.0 requires a projectId which you can create quickly
// and easily for free over at WalletConnect Cloud https://cloud.walletconnect.com/sign-in
walletConnectProjectId: 'xxx',

wallets: [binanceWallet(), metaMask(), trustWallet(), walletConnect()],
chains: [mainnet, bsc],
}),
};


export default function App({ Component, pageProps }: AppProps) {
return (
<WagmiProvider config={config} reconnectOnMount={true}>
<QueryClientProvider client={queryClient}>
<WalletKitProvider options={options} mode="light">
<Component {...pageProps} />

<WalletKitButton />
<ConnectModal />

{/*
Profile modal shows some basic information about the current account,
if you don't need this modal, you can remove it.
*/}
<ProfileModal />

{/* 👇 Here's the SwitchNetworkModal
If the user switches to a network that is not supported by our dApp,
this modal will be displayed to remind the user to switch to our supported networks.
*/}
<SwitchNetworkModal />
</WalletKitProvider>
</QueryClientProvider>
</WagmiProvider>
<QueryClientProvider client={queryClient}>
<WalletKitProvider config={config} debugMode={true} mode="auto">
<Component {...pageProps} />

<ConnectButton />
<ConnectModal />

{/*
Profile modal shows some basic information about the current account,
if you don't need this modal, you can remove it.
*/}
<ProfileModal />

{/* 👇 Here's the SwitchNetworkModal
If the user switches to a network that is not supported by our dApp,
this modal will be displayed to remind the user to switch to our supported networks.
*/}
<SwitchNetworkModal />
</WalletKitProvider>
</QueryClientProvider>
);
}
```
Expand All @@ -93,6 +94,7 @@ export default function App({ Component, pageProps }: AppProps) {

Please follow our [WalletKit Contribution Guide](./CONTRIBUTING.md).


## License

See [LICENSE](./LICENSE) for more information.
Loading