feat: add Solana Wallet Standard support#31
Merged
BitHighlander merged 2 commits intodevelopfrom Feb 28, 2026
Merged
Conversation
Integrate Solana via Wallet Standard protocol — no window.solana (avoids Phantom conflicts). Signs transactions through vault v11 REST API and broadcasts client-side via Solana JSON-RPC. New files: - solanaHandler.ts: background handler matching vault v11 endpoints - solana-wallet-standard.ts: KeepKeySolanaWallet class (5 features) - solana-wallet-register.ts: wallet-standard event registration Modified: - injected.ts: register Solana wallet, bump version, 5min timeout - methods.ts: route 'solana' chain to handler - types.ts: add 'solana' to ChainType union - content/index.ts: 5min timeout for hardware signing - Transaction.tsx: handle 'solana' chain type Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4625faa to
6d032ab
Compare
…utils - Delete empty networks.ts and stale PIONEER_SDK_INTEGRATION.md - Remove duplicate ProviderRpcError/createProviderRpcError from methods.ts and ethereumHandler.ts, import from canonical utils.ts - Remove PioneerStorage type, createPioneerStorage(), and pioneerKeyStorage exports (4 dead chrome.storage keys) - Fix toBase64 call-stack limit on large Solana transactions (chunked) - Fix supportedTransactionVersions to use Set per Wallet Standard spec - Rebuild injected.js bundle Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
window.solana— avoids Phantom conflicts)POST /solana/sign-transaction)New Files
solanaHandler.tssolana-wallet-standard.tsKeepKeySolanaWalletclass with 5 standard featuressolana-wallet-register.tsModified Files
injected.tsmethods.tssolanachain tohandleSolanaRequesttypes.ts'solana'toChainTypeunioncontent/index.tsTransaction.tsx'solana'as'other'transaction typepackage.json@wallet-standard/*and@solana/wallet-standard-featuresdepsArchitecture
Key Design Decisions
window.solana(conflicts with Phantom)accountsis a getter — required by StandardWalletAdapter (arraysEqual2crashes on undefined)({register}) => register(wallet), not an object/solana/sign-transactionwith raw message bytesapi.mainnet-beta.solana.comTest plan
window.solanain browser console🤖 Generated with Claude Code