Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tobeycodes
Copy link
Collaborator

@tobeycodes tobeycodes commented Sep 18, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

⚠️ No Changeset found

Latest commit: 6a11d21

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@bundlemon
Copy link

bundlemon bot commented Sep 18, 2025

BundleMon

Files updated (5)
Status Path Size Limits
react/dist/index.browser.mjs
3.59KB (+1.47KB +69.18%) -
react/dist/index.native.mjs
3.59KB (+1.47KB +69.22%) -
react/dist/index.node.mjs
3.58KB (+1.47KB +69.28%) -
gill/dist/index.browser.mjs
5.55KB (+19B +0.34%) -
gill/dist/index.native.mjs
5.55KB (+19B +0.34%) -
Unchanged files (11)
Status Path Size Limits
gill/dist/programs/index.node.mjs
9.84KB -
gill/dist/programs/token/index.node.mjs
4.11KB -
solana-pay/dist/index.browser.mjs
1.72KB -
solana-pay/dist/index.native.mjs
1.72KB -
solana-pay/dist/index.node.mjs
1.72KB -
gill/dist/node/index.node.mjs
945B -
gill/dist/index.node.mjs
518B -
svelte/dist/index.browser.mjs
265B -
vue/dist/index.browser.mjs
265B -
svelte/dist/index.node.mjs
262B -
vue/dist/index.node.mjs
262B -

Total files change +4.43KB +11.36%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@nickfrosty
Copy link
Collaborator

I just merged in #270, you should now rebase to master

@tobeycodes tobeycodes changed the title useWallet hook feat: add use wallet hook Sep 30, 2025
@tobeycodes tobeycodes force-pushed the use-wallet branch 2 times, most recently from dbd34e1 to d1935e8 Compare October 20, 2025 19:37
@tobeycodes
Copy link
Collaborator Author

I just merged in #270, you should now rebase to master

Thanks! Done

@tobeycodes tobeycodes force-pushed the use-wallet branch 2 times, most recently from fa96812 to 3a45e78 Compare October 22, 2025 22:51
@tobeycodes tobeycodes force-pushed the use-wallet branch 3 times, most recently from f67c6e3 to 98772ab Compare October 23, 2025 06:27
@tobeycodes tobeycodes marked this pull request as ready for review October 23, 2025 06:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds wallet integration functionality to the Gill SDK's React package, enabling users to connect, disconnect, and interact with Solana wallets through a set of custom hooks. The changes introduce a new useWallet hook along with companion hooks for signing transactions and messages.

Key changes:

  • Added WalletContextProvider with wallet connection/disconnection state management and persistence
  • Introduced wallet interaction hooks: useSignTransaction, useSignMessage, useSignIn, useSignAndSendTransaction, and useSignAllTransactions
  • Updated SolanaProvider and createSolanaClient to include cluster information required by wallet standard integration

Reviewed Changes

Copilot reviewed 39 out of 40 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/react/src/providers.tsx Updated SolanaProvider to wrap children with WalletContextProvider and accept wallet configuration props
packages/react/src/hooks/wallet.tsx New wallet context and hook implementation with connection state management and persistence
packages/react/src/hooks/wallets.ts New hook to filter and retrieve available Solana wallets
packages/react/src/hooks/sign-transaction.ts New hook for signing single transactions
packages/react/src/hooks/sign-all-transactions.ts New hook for signing multiple transactions
packages/react/src/hooks/sign-and-send-transaction.ts New hook for signing and sending transactions
packages/react/src/hooks/sign-message.ts New hook for signing arbitrary messages
packages/react/src/hooks/sign-in.ts New hook for wallet sign-in flow
packages/react/src/hooks/client.ts Added cluster field to fallback client configuration
packages/gill/src/types/rpc.ts Added required cluster field to CreateSolanaClientArgs and SolanaClient types
packages/gill/src/core/create-solana-client.ts Updated to accept and return cluster information
examples/react/* Added example React application demonstrating wallet integration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

2 participants