Repository navigation
feat(solana-react): add v7 bindings - #387
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…/solana-react-binding # Conflicts: # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl
- version reactive client snapshots - normalize omitted query options compiler slots
# Conflicts: # website/public/llms.txt
# Conflicts: # docs/bindings-status.md # packages/octane-evals/datasets/train/user-apps-v1/manifest.jsonl
|
@leonidaz This draft PR is ready for the maintainer |
Cache the idle useRequestQuery result object and update it in place when the underlying TanStack result changes, preserving referential stability across parent re-renders. Co-authored-by: Cursor <[email protected]>
|
@leonidaz This draft PR is ready for the maintainer |
|
Withdrawing the ready signal for now: REVIEW WITHDRAWN |
Resolve react-parity audit conflicts by refreshing lockfileSha256 and vitest.config.js evidence hashes for the merged tree (hook-form, react-map-gl, livestore manifests). Co-authored-by: Cursor <[email protected]>
|
Resolving the conflicts now by merging |
Keep generated package/binding inventory and eval corpus digests current after merging origin/main into the solana-react binding branch. Co-authored-by: Cursor <[email protected]>
|
Main merge conflicts are resolved on head READY FOR REVIEW |
Wire packages/solana-react into the generic react-parity:check path with a vendored @solana/[email protected] pin, pristine/adapted runtime lanes, and repo-authored type probes, while keeping Octane-only conformance outside parity ownership. Co-authored-by: Cursor <[email protected]>
Resolve inventory/lockfile conflicts after merging main and refresh react-parity evidence hashes for the new solana-react lanes. Co-authored-by: Cursor <[email protected]>
|
Addressed maintainer feedback by adding the React-parity control plane for Checklist: still draft, 0 unresolved threads, CLEAN/mergeable with READY FOR REVIEW |
leonidaz
left a comment
There was a problem hiding this comment.
Reviewed for React-parity and Vitest conformance only.
Address leonidaz feedback: run useRequestQuery in the pristine suite with per-file dispositions and omission/rename controls, adapt the overlapping cases, and replace repo-authored type probes with upstream __typetests__ lanes plus assertion-group inventories. Co-authored-by: Cursor <[email protected]>
PendingRpcRequest duck-types expose both APIs; dispatch through reactiveStore().withSignal so getAbortSignal composition matches upstream. Co-authored-by: Cursor <[email protected]>
|
Parity feedback from leonidaz is addressed on head READY FOR REVIEW |
Preserve every selected pristine runtime identity in the adapted suite, expand the pristine type lane across wallet/transaction/query typetests with machine-checkable dispositions, and reject thenable ClientProvider clients at mount. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit ec78ef0. Configure here.
Include every adapted and pristine-only upstream typetest in pristine-types.json so assertion-group drift is caught for wallet, signing, request, and deferred query artifacts. Co-authored-by: Cursor <[email protected]>
|
Parity feedback addressed on head READY FOR REVIEW |
Resolve generated inventory/parity conflicts mechanically and run pnpm sync so solana-react stays in the regenerated package inventory. Co-authored-by: Cursor <[email protected]>
|
Merged origin/main, resolved inventory/parity conflicts, and cleared open review threads. Cursor Bugbot completed on the current head with no unresolved findings. READY FOR REVIEW |
Keep neighbor react-parity manifests aligned after vitest.config.js changed for solana-react lanes, and satisfy Prettier on the new audit file. Co-authored-by: Cursor <[email protected]>
|
CI formatting/parity integrity refreshed on head; Bugbot clean; no open threads. READY FOR REVIEW |

Summary
Octane applications can now use the React-specific Solana v7 client, Wallet Standard discovery/selection, request queries, and sign -> send -> confirm transaction flow without shipping React. Framework-neutral address, codec, RPC, signer, and transaction-message work remains direct
@solana/kitusage rather than a redundant Octane wrapper.@solana/reactand the complete Kit family are pinned to 7.0.0. The binding exposes the portable client/provider/store and request-query seam; SWR, streamed query hooks, and upstream wallet-selected exports that leak React types remain explicit divergences.Design decisions
sendreturns a signature, confirmation failure or later context replacement produces an indeterminate result with a confirmation-only reconciliation path; signing and sending are never retried.enabledsemantics and forward cancellation signals to both supported request-source shapes.Validation
pnpm exec vitest run --project solana-react- 30 tests pass across seven files.pnpm exec tsrx-tsc --noEmit -p packages/solana-react/tsconfig.json- package types pass.pnpm typecheck- full root typecheck passes.The tests use deterministic clients, registries, request sources, signers, senders, and confirmation doubles. They cover client replacement and cleanup, malformed/stale wallet events, same-address wallet authority, query cancellation, missing capabilities, pre-dispatch cancellation, post-dispatch reconciliation, real provider SSR/hydration, DOM adoption, and teardown.
The repository-wide Vitest run was bounded after it surfaced unrelated existing Lucide dynamic-icon parity and generated eval-corpus failures. The two failures caused by this package's initial registration were fixed and their focused suites pass.
Post-Deploy Monitoring & Validation
No additional production monitoring is required because this adds an unpublished library binding with no deployed service.
New concepts
Reconciliation after an irreversible send
Before a transaction is sent, a changed wallet, cluster, or payload can safely cancel the operation. After the network accepts a signature, cancellation is no longer truthful: the transaction may exist even if confirmation failed or the UI moved to another wallet.
This binding returns an indeterminate result containing the known signature and a confirmation-only
reconcilecallback. Reconciliation never signs or sends again. Use this pattern after irreversible external dispatch; do not use it for idempotent request queries that can be cancelled and restarted.Provenance
agent-authored)Note
High Risk
Adds wallet/transaction orchestration (pre- and post-dispatch authority) plus concurrent core compiler/reconciler and production bundle side-effect changes that can affect hydration and tree-shaking across many bindings.
Overview
Introduces
@octanejs/solana-react(@solana/[email protected]):ClientProvider/ client store hooks (resolved clients only—thenables throw at mount), structuralcreateWalletStoreinstead of upstream React wallet hooks,createTransactionExecutorfor explicit sign/send/confirm with post-send indeterminate + reconcile, anduseRequestQueryon@octanejs/tanstack-querywith upstream-aligned sources plus an Octane{ send }shape. Vendored upstream, pristine/adapted runtime and type parity, SSR/hydration wiring, MCP/CLI binding maps, and generated inventory/status docs register the 57th binding.Alongside that, octane patch changesets describe compiler/runtime work: skip reconciling unchanged compiler-cached renderable children while keeping context/hidden-tree effects, trim server init and production compiler output, preserve bootstrap side effects for compiler hooks and TanStack Start hydration, and mark reviewed binding packages tree-shakeable with narrow
sideEffectsentries for required Aria focus/transition init.@octanejs/mcp-servergains exposure of a minimal-import bundle reachability benchmark.Reviewed by Cursor Bugbot for commit 6bcacde. Bugbot is set up for automated code reviews on this repo. Configure here.