-
Notifications
You must be signed in to change notification settings - Fork 602
Engine SDK updates #8238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Engine SDK updates #8238
Conversation
🦋 Changeset detectedLatest commit: 85c5a38 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughAdds Solana support to the Engine client: new SDK functions, request/response types, and filters for Solana accounts, signing, transactions, and activity logs. Introduces corresponding Solana REST endpoints in the generated client. Includes a changeset declaring a minor version bump with note "Add Solana endpoints." Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor App
participant SDK as Engine SDK Client
participant API as Engine HTTP API
participant RPC as Solana RPC
rect rgb(237,245,255)
note over App,SDK: Send Solana transaction
App->>SDK: sendSolanaTransaction(data)
SDK->>API: POST /v1/solana/transaction
API->>RPC: submit transaction
RPC-->>API: signature/result
API-->>SDK: Queued/Success response
SDK-->>App: SendSolanaTransactionResponses
end
rect rgb(242,255,245)
note over App,SDK: Account ops
App->>SDK: listSolanaAccounts()
SDK->>API: GET /v1/solana/accounts
API-->>SDK: ListSolanaAccountsResponse
SDK-->>App: Accounts
App->>SDK: createSolanaAccount(opts)
SDK->>API: POST /v1/solana/accounts
API-->>SDK: CreateSolanaAccountResponse
SDK-->>App: Account
end
rect rgb(255,248,237)
note over App,SDK: Sign message/transaction
App->>SDK: signSolanaMessage(payload)
SDK->>API: POST /v1/solana/sign-message
API-->>SDK: Signature
SDK-->>App: SignSolanaMessageResponses
App->>SDK: signSolanaTransaction(tx)
SDK->>API: POST /v1/solana/sign-transaction
API-->>SDK: Signed tx
SDK-->>App: SignSolanaTransactionResponses
end
rect rgb(250,243,255)
note over App,SDK: Query transactions and activity logs
App->>SDK: getSolanaTransactions(params)
SDK->>API: GET /v1/solana/transactions
API-->>SDK: Transactions
SDK-->>App: GetSolanaTransactionsResponses
App->>SDK: searchSolanaActivityLogs(filters)
SDK->>API: POST /v1/solana/transactions/activity-logs/search
API-->>SDK: Activity logs
SDK-->>App: SearchSolanaActivityLogsResponses
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (3).changeset/*.md📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (1)packages/engine/src/client/sdk.gen.ts (1)
⏰ 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)
🔇 Additional comments (3)
Comment |
size-limit report 📦
|
PR-Codex overview
This PR focuses on adding support for Solana endpoints in the
thirdweb-dev/engine
package, enhancing the SDK with new functionalities related to Solana accounts, transactions, and activity logs.Detailed summary
sendSolanaTransaction
,signSolanaTransaction
.Summary by CodeRabbit