Skip to content

Conversation

@0xFirekeeper
Copy link
Member

@0xFirekeeper 0xFirekeeper commented Nov 6, 2025

Reworked the Solana sign transaction API to accept more flexible input types, supporting both instructions and pre-built transactions. Updated type definitions and endpoint URL, and removed the old implementation to improve usability and consistency.


PR-Codex overview

This PR focuses on reworking the signSolanaTransaction API to enhance its flexibility and improve the overall structure of Solana transaction handling within the codebase.

Detailed summary

  • Updated signSolanaTransaction function to accept more flexible inputs.
  • Removed the old signSolanaTransaction implementation.
  • Added SignSolanaTransactionRequest and SignSolanaTransactionResponse types.
  • Introduced SolanaTransactionInput type for transaction input options.
  • Enhanced type definitions related to Solana transactions and responses.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • Breaking Changes

    • Solana sign-transaction API path and parameter shape changed; the options argument is now required — update integrations accordingly.
  • New Features

    • Signing accepts flexible Solana inputs: either instruction arrays or pre-serialized transactions.
    • Added optional fleetId to execution requests to enable routing to a specific bundler fleet.

Reworked the Solana sign transaction API to accept more flexible input types, supporting both instructions and pre-built transactions. Updated type definitions and endpoint URL, and removed the old implementation to improve usability and consistency.
@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2025

🦋 Changeset detected

Latest commit: 913a04e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@thirdweb-dev/engine Minor
thirdweb Patch
@thirdweb-dev/nebula Patch
@thirdweb-dev/wagmi-adapter Patch
wagmi-inapp Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link

vercel bot commented Nov 6, 2025

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

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Nov 6, 2025 11:07pm
nebula Ready Ready Preview Comment Nov 6, 2025 11:07pm
thirdweb_playground Ready Ready Preview Comment Nov 6, 2025 11:07pm
thirdweb-www Ready Ready Preview Comment Nov 6, 2025 11:07pm
wallet-ui Ready Ready Preview Comment Nov 6, 2025 11:07pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 6, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 6, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Updates the Solana signing workflow: the SDK sign function now requires options and targets /v1/solana/sign/transaction; types introduce a flexible SolanaTransactionInput union and new sign request/response shapes; fleetId was added to EIP-7702 execution types; a changeset records a minor release.

Changes

Cohort / File(s) Summary
Changeset
​.changeset/salty-squids-repair.md
Adds a changeset documenting a minor version bump for @thirdweb-dev/engine and notes the Solana Sign Transaction API rework.
SDK Generation
packages/engine/src/client/sdk.gen.ts
Replaced signSolanaTransaction: now requires an options argument, updated endpoint path from /v1/solana/sign-transaction to /v1/solana/sign/transaction, and added JSDoc.
Type Definitions
packages/engine/src/client/types.gen.ts
Added optional fleetId to Eip7702OwnerExecution and Eip7702SessionKeyExecution; replaced SendSolanaTransactionRequest shape to include SolanaTransactionInput union; introduced SolanaTransactionInputInstructions, SolanaTransactionInputSerialized, SignSolanaTransactionRequest, SignSolanaTransactionResponse, SignSolanaTransactionData, SignSolanaTransactionResponses, SignSolanaTransactionResponse2, and SuccessResponseSignSolanaTransactionResponse; removed the previous inline sign-transaction types.

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant SDK
  participant EngineAPI
  note over SDK,EngineAPI `#D6EAF8`: New sign flow (no broadcast)
  Client->>SDK: call signSolanaTransaction(options: SignSolanaTransactionData)
  SDK->>EngineAPI: POST /v1/solana/sign/transaction (body: SolanaTransactionInput + executionOptions)
  EngineAPI-->>SDK: 200 SuccessResponseSignSolanaTransactionResponse (signature, signedTransaction)
  SDK-->>Client: returns signed transaction + signature
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

  • Review focus:
    • packages/engine/src/client/sdk.gen.ts — verify signature change and endpoint path.
    • packages/engine/src/client/types.gen.ts — validate new union types, request/response shapes, and fleetId additions for compatibility.
    • Any callers/tests using the old signSolanaTransaction signature or the previous SendSolanaTransactionRequest shape.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The description adequately explains the changes made, but does not follow the repository's required template structure with sections for issue tag, reviewer notes, and testing instructions. Consider following the template format with sections for issue tag, reviewer notes, and clear testing instructions to improve clarity and consistency.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: refactoring the Solana sign transaction API to accept more flexible inputs, which aligns with the primary objective of the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f48c02f and 913a04e.

📒 Files selected for processing (1)
  • .changeset/salty-squids-repair.md (1 hunks)

Comment @coderabbitai help to get the list of available commands and usage tips.

@0xFirekeeper 0xFirekeeper added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 6, 2025
Copy link
Member Author

0xFirekeeper commented Nov 6, 2025

Merge activity

  • Nov 6, 10:50 PM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 6, 10:57 PM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 915d955 and f48c02f.

📒 Files selected for processing (3)
  • .changeset/salty-squids-repair.md (1 hunks)
  • packages/engine/src/client/sdk.gen.ts (1 hunks)
  • packages/engine/src/client/types.gen.ts (7 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
.changeset/*.md

📄 CodeRabbit inference engine (AGENTS.md)

.changeset/*.md: Each change in packages/* must include a changeset for the appropriate package
Version bump rules: patch for non‑API changes; minor for new/modified public API

Files:

  • .changeset/salty-squids-repair.md
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • packages/engine/src/client/sdk.gen.ts
  • packages/engine/src/client/types.gen.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • packages/engine/src/client/sdk.gen.ts
  • packages/engine/src/client/types.gen.ts
🧠 Learnings (3)
📚 Learning: 2025-08-29T15:37:38.513Z
Learnt from: CR
Repo: thirdweb-dev/js PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-08-29T15:37:38.513Z
Learning: Applies to .changeset/*.md : Version bump rules: patch for non‑API changes; minor for new/modified public API

Applied to files:

  • .changeset/salty-squids-repair.md
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
Repo: thirdweb-dev/js PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions

Applied to files:

  • .changeset/salty-squids-repair.md
📚 Learning: 2025-08-28T20:50:33.170Z
Learnt from: joaquim-verges
Repo: thirdweb-dev/js PR: 7922
File: apps/playground-web/src/app/ai/ai-sdk/components/chat-container.tsx:167-181
Timestamp: 2025-08-28T20:50:33.170Z
Learning: The SignTransactionInput schema in thirdweb-dev/ai-sdk-provider uses snake_case field names (chain_id) rather than camelCase (chainId).

Applied to files:

  • .changeset/salty-squids-repair.md
🧬 Code graph analysis (1)
packages/engine/src/client/sdk.gen.ts (2)
packages/engine/src/client/client/types.ts (1)
  • Options (191-199)
packages/engine/src/client/types.gen.ts (2)
  • SignSolanaTransactionData (1909-1923)
  • SignSolanaTransactionResponses (1925-1930)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Unit Tests
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
packages/engine/src/client/sdk.gen.ts (1)

277-302: Updated wrapper aligns with new API

Required options and the /v1/solana/sign/transaction path match the regenerated types—looks good.

@0xFirekeeper 0xFirekeeper removed the merge-queue Adds the pull request to Graphite's merge queue. label Nov 6, 2025
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.62%. Comparing base (915d955) to head (913a04e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8371   +/-   ##
=======================================
  Coverage   54.61%   54.62%           
=======================================
  Files         919      919           
  Lines       60693    60693           
  Branches     4111     4111           
=======================================
+ Hits        33147    33152    +5     
+ Misses      27446    27440    -6     
- Partials      100      101    +1     
Flag Coverage Δ
packages 54.62% <ø> (+<0.01%) ⬆️
see 4 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

size-limit report 📦

Path Size
@thirdweb-dev/nexus (esm) 104.88 KB (0%)
@thirdweb-dev/nexus (cjs) 316.6 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants