Skip to content

Conversation

@tanguyenvn
Copy link
Contributor

@tanguyenvn tanguyenvn commented Jan 24, 2026

  • Replace Connection with RPC client from @solana/kit
  • Update transaction types to use @solana/kit's Transaction
  • Remove @toruslabs/bs58 in favor of @solana/kit's base58 utilities
  • Update demo app to use new Solana utilities

BREAKING CHANGE: connection property renamed to rpc, transaction types now expect compiled Transaction from @solana/kit

Motivation and Context

Jira Link:

Description

How has this been tested?

Screenshots (if appropriate):

  1. SOCIAL LOGIN
  • Sign message
image
  • Sign transaction
image
  1. EXTERNAL WALLET: Metamask
  • Sign message
image
  • Sign transaction
image
  • Get idToken
image
  1. WALLET CONNECT: Trust Wallet on mobile
  • Sign message
image
  • Sign transaction
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Note

Migrates Solana stack to @solana/kit, standardizing RPC access and transaction types across packages and the demo app.

  • Replaces @solana/web3.js with @solana/kit; adds @solana-program/system for SOL transfer instructions
  • Updates Solana hooks/composables and SolanaWallet to use createSolanaRpc, expose rpc (was connection), and require compiled Transaction from @solana/kit
  • Switches provider implementations (WalletConnect, injected/Wallet Standard) to @solana/kit codecs (base58/base64) and transaction (de)serialization helpers
  • Refactors demo: new utils/solana to generate transfer instructions and legacy/versioned transactions; dashboard actions now use rpc; simplified solHandlers; removes legacy walletServiceHandlers
  • Bumps @web3auth/modal to 10.13.2, updates deps/peerDeps to @solana/kit

BREAKING: connectionrpc; Solana APIs now accept @solana/kit Transaction.

Written by Cursor Bugbot for commit e8f9e45. This will update automatically on new commits. Configure here.

- Replace Connection with RPC client from @solana/kit
- Update transaction types to use @solana/kit's Transaction
- Remove @toruslabs/bs58 in favor of @solana/kit's base58 utilities
- Update demo app to use new Solana utilities

BREAKING CHANGE: connection property renamed to rpc, transaction types now expect compiled Transaction from @solana/kit
@vercel
Copy link

vercel bot commented Jan 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
web3auth-web Ready Ready Preview, Comment Jan 27, 2026 3:42am

Request Review

@tanguyenvn tanguyenvn changed the title refactor(solana)!: migrate from @solana/web3.js to @solana/kit Refactor: W3APD-5238 - migrate from @solana/web3.js to @solana/kit Jan 27, 2026
}
};

export const signAndSendTransaction = async (provider: IProvider, uiConsole: any) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

clean up as these functions are not used

import { generateSolTransferInstruction, generateVersionedTransaction } from "../utils/solana";

// EVM
export const walletSignPersonalMessage = async (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

clean up as these functions are not used

@tanguyenvn
Copy link
Contributor Author

@cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

@tanguyenvn
Copy link
Contributor Author

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

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