Skip to content

Add all-in-one litesvm plugin#187

Merged
lorisleiva merged 1 commit into
mainfrom
04-12-add_all-in-one_litesvm_plugin
Apr 14, 2026
Merged

Add all-in-one litesvm plugin#187
lorisleiva merged 1 commit into
mainfrom
04-12-add_all-in-one_litesvm_plugin

Conversation

@lorisleiva
Copy link
Copy Markdown
Member

This PR adds a litesvm all-in-one plugin that sets up a full LiteSVM client in a single call, including SVM connection, airdrop support, minimum balance computation, transaction planning, and transaction execution. This mirrors the pattern established by solanaRpc in the RPC package.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 12, 2026

🦋 Changeset detected

Latest commit: fa05433

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

This PR includes changesets to release 3 packages
Name Type
@solana/kit-plugin-litesvm Minor
@solana/kit-client-litesvm Minor
@solana/kit-plugins Minor

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

@lorisleiva
Copy link
Copy Markdown
Member Author

@trevor-cortex

Copy link
Copy Markdown

@trevor-cortex trevor-cortex left a comment

Choose a reason for hiding this comment

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

Summary

Adds a litesvm() all-in-one plugin that composes the existing individual LiteSVM plugins (litesvmConnection, litesvmAirdrop, litesvmGetMinimumBalance, litesvmTransactionPlanner, litesvmTransactionPlanExecutor) plus planAndSendTransactions into a single call. This mirrors the solanaRpc pattern from the RPC package.

Review

Clean PR — the implementation follows the established solanaRpc pattern closely. The composition via pipe is straightforward, the browser stub throws correctly, docs and changeset are in order, and the test covers both the Node.js happy path and the browser error path.

One minor observation below on the browser stub, but nothing blocking.

LGTM 👍

Comment thread packages/kit-plugin-litesvm/src/index.browser.ts
Copy link
Copy Markdown
Member

@mcintyre94 mcintyre94 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Member Author

lorisleiva commented Apr 14, 2026

Merge activity

  • Apr 14, 5:32 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Apr 14, 5:40 PM UTC: Graphite rebased this pull request as part of a merge.
  • Apr 14, 5:41 PM UTC: @lorisleiva merged this pull request with Graphite.

@lorisleiva lorisleiva changed the base branch from 04-12-rename_litesvm_plugin_to_litesvmconnection_ to graphite-base/187 April 14, 2026 17:37
@lorisleiva lorisleiva changed the base branch from graphite-base/187 to main April 14, 2026 17:38
This PR adds a `litesvm` all-in-one plugin that sets up a full LiteSVM client in a single call, including SVM connection, airdrop support, minimum balance computation, transaction planning, and transaction execution. This mirrors the pattern established by `solanaRpc` in the RPC package.
@lorisleiva lorisleiva force-pushed the 04-12-add_all-in-one_litesvm_plugin branch from 6db08f2 to fa05433 Compare April 14, 2026 17:39
@lorisleiva lorisleiva merged commit cab502c into main Apr 14, 2026
5 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 14, 2026
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.

3 participants