Skip to content

feat: add program runtime crate - #20

Open
bmuddha wants to merge 1 commit into
transaction-contextfrom
program-runtime
Open

feat: add program runtime crate#20
bmuddha wants to merge 1 commit into
transaction-contextfrom
program-runtime

Conversation

@bmuddha

@bmuddha bmuddha commented May 28, 2026

Copy link
Copy Markdown
Collaborator

What changed

Customized the imported solana-program-runtime baseline for mapped account
regions and patched the crate into the workspace.

Why

The engine needs invocation state, CPI translation, and SBF VM setup that map
account data directly into the VM instead of threading it through a serialized
input buffer.

Closes #9.

Impact

  • Retains invocation state, CPI translation, SBF VM setup, sysvar access,
    logging, and the program cache needed by the engine.
  • Maps account data into separate MemoryRegions while preserving
    loader-selected ABI formats.
  • Removes upstream runtime surfaces that are not part of the engine execution
    boundary.

Reviewer notes

Serialization and VM error remapping must stay aligned with the
transaction-context access-violation handler. The boundary is documented in
solana/README.md.

Follow-up

svm drives this customized runtime in the next PR.

@bmuddha
bmuddha force-pushed the transaction-context branch from 63b2d0a to 8f1a777 Compare May 28, 2026 14:05
@bmuddha
bmuddha force-pushed the program-runtime branch from d30f0be to 526f178 Compare May 28, 2026 14:05
@bmuddha
bmuddha force-pushed the transaction-context branch from 8f1a777 to ccac233 Compare May 28, 2026 14:38
@bmuddha
bmuddha force-pushed the program-runtime branch 2 times, most recently from 526f178 to 6b99920 Compare May 28, 2026 14:38
@bmuddha
bmuddha force-pushed the transaction-context branch from ccac233 to c4029f9 Compare May 28, 2026 14:42
@bmuddha
bmuddha force-pushed the program-runtime branch from 6b99920 to 56ba2c5 Compare May 28, 2026 14:42
@bmuddha
bmuddha force-pushed the transaction-context branch from c4029f9 to e4a023f Compare May 29, 2026 09:08
@bmuddha
bmuddha force-pushed the program-runtime branch 2 times, most recently from 293b261 to bdadc77 Compare May 29, 2026 15:49
@bmuddha
bmuddha force-pushed the transaction-context branch from 27ca11d to ff1197d Compare June 1, 2026 15:29
@bmuddha
bmuddha force-pushed the program-runtime branch 3 times, most recently from fea9f0b to a7dda81 Compare June 2, 2026 19:23
@bmuddha
bmuddha force-pushed the transaction-context branch from 7f5babf to b1bb9fd Compare June 5, 2026 12:10
@bmuddha
bmuddha force-pushed the program-runtime branch from a7dda81 to 9339385 Compare June 5, 2026 12:10
@bmuddha
bmuddha force-pushed the transaction-context branch from b1bb9fd to f7c2bac Compare June 16, 2026 10:08
@bmuddha
bmuddha force-pushed the program-runtime branch 2 times, most recently from e1e6b84 to d977fde Compare June 22, 2026 19:14
@bmuddha
bmuddha force-pushed the transaction-context branch from f7c2bac to 881f449 Compare June 22, 2026 19:14
@bmuddha
bmuddha force-pushed the transaction-context branch from e32412c to 7f03467 Compare July 6, 2026 14:46
@bmuddha
bmuddha marked this pull request as ready for review July 6, 2026 15:05
@bmuddha
bmuddha force-pushed the program-runtime branch from bd2c2ee to 3ed5b92 Compare July 7, 2026 14:15
@bmuddha
bmuddha force-pushed the transaction-context branch from 7f03467 to 2940e4c Compare July 7, 2026 14:15
@bmuddha
bmuddha force-pushed the transaction-context branch from 2940e4c to 16b19e7 Compare July 13, 2026 19:10
@bmuddha
bmuddha force-pushed the transaction-context branch 2 times, most recently from 6e052c1 to c252051 Compare July 15, 2026 19:59
@bmuddha
bmuddha force-pushed the transaction-context branch from c252051 to 801df8d Compare July 15, 2026 22:21
@bmuddha
bmuddha force-pushed the transaction-context branch from 801df8d to f8d3173 Compare July 17, 2026 14:55
@bmuddha
bmuddha force-pushed the program-runtime branch 2 times, most recently from 1a52f77 to e478278 Compare July 21, 2026 19:46
@bmuddha
bmuddha force-pushed the transaction-context branch from f8d3173 to 0ef24b5 Compare July 21, 2026 19:46
@bmuddha
bmuddha force-pushed the program-runtime branch 2 times, most recently from 55478c4 to c2aa052 Compare July 26, 2026 13:14
@bmuddha
bmuddha force-pushed the transaction-context branch 2 times, most recently from a1c175f to cd9fd68 Compare July 27, 2026 13:19
@bmuddha
bmuddha force-pushed the transaction-context branch from cd9fd68 to 80378f1 Compare July 27, 2026 13:32
@bmuddha
bmuddha force-pushed the transaction-context branch from 80378f1 to e041528 Compare July 27, 2026 14:17
@bmuddha
bmuddha force-pushed the transaction-context branch from e041528 to e7b59e5 Compare July 28, 2026 14:25
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.

1 participant