Skip to content
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

Feature idea: also port Solana TX processing layer into WASM as a standalone sister project #1

Open
jon-chuang opened this issue Oct 19, 2021 · 0 comments

Comments

@jon-chuang
Copy link

jon-chuang commented Oct 19, 2021

Rationale:

  • Bring flexible simulation of program execution to the browser.
  • Could be a useful tool for testing on injected account inputs alongside live data
  • Better debugging/integration testing

Features:

  • RPC calls made to fetch account data from on-chain.
  • Either port rbpf VM and build javascript scafolding to handle syscalls/account loading/CPI, or build entire message processor alongside VM in WASM and expose message processing entrypoints that replace account fetches to the account DB with RPC calls.

Challenges:

  • Perfect recreation of message processor could be difficult if done in JS.
  • Key is where to draw the line between recreation of accurate node functionality and ignoring in favour of simplicity.

Links:

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

No branches or pull requests

1 participant