forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 209
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
SVM: add a sample stand-alone application based on SVM #2217
Merged
Conversation
This file contains 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
@joncinque, @pgarg66 This is still a very early draft, as I'm working on cleaning up the code and integrating this example in CI. |
dmakarov
force-pushed
the
json-rpc
branch
29 times, most recently
from
July 25, 2024 00:12
1cf4208
to
aba23e5
Compare
@dmakarov the refactoring is looking great! Let me know when this is ready for another look. |
dmakarov
force-pushed
the
json-rpc
branch
2 times, most recently
from
September 9, 2024 22:47
2b4993b
to
9206ac0
Compare
dmakarov
force-pushed
the
json-rpc
branch
3 times, most recently
from
September 25, 2024 14:07
9bdcd51
to
b43a968
Compare
LucasSte
approved these changes
Oct 4, 2024
I'm going to merge this now with the intention to continue improving this in follow-up PRs, which seems to be more manageable. |
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.
Problem
SVM API enables development of advanced applications based on Solana execution engine. Writing such applications from scratch is a non-trivial task currently requiring knowledge of Solana run-time internals. A real-life SVM based example application is helpful for developers to jump-start working with SVM. An example presented in this PR is a client-server pair of applications that demonstrate using SVM to develop a Json-RPC server that responds to transaction simulation requests from a client program.
Summary of Changes
Add an extended example to the SVM crate
simulateTransaction
command to run a transaction in minimal Solana run-time environment required to use SVM.simultateTransaction
command submitted by the client program.