Skip to content

feat: add custom syscall registration#309

Merged
Aursen merged 3 commits intoLiteSVM:masterfrom
procdump:custom_syscalls
Mar 19, 2026
Merged

feat: add custom syscall registration#309
Aursen merged 3 commits intoLiteSVM:masterfrom
procdump:custom_syscalls

Conversation

@procdump
Copy link
Copy Markdown
Contributor

Summary

  • Adds with_custom_syscall() builder method to register user-defined syscalls into both SBF runtime environments (v1/v2)
  • Includes test program (custom-syscall) and integration test demonstrating a custom sol_burn_cus syscall (similar to mollusk)

Closes part of #198 (custom syscall support)

Test plan

  • cargo test -p litesvm test_custom_syscall passes

Adds `with_custom_syscall()` builder method to register user-defined
syscalls into both SBF runtime environments (v1/v2). Includes a test
program and integration test demonstrating a custom `sol_burn_cus`
syscall.
@procdump procdump marked this pull request as ready for review March 19, 2026 09:09
@Aursen Aursen merged commit 0c127d2 into LiteSVM:master Mar 19, 2026
23 checks passed
Aursen pushed a commit that referenced this pull request Mar 30, 2026
* feat: add custom syscall registration support

Adds `with_custom_syscall()` builder method to register user-defined
syscalls into both SBF runtime environments (v1/v2). Includes a test
program and integration test demonstrating a custom `sol_burn_cus`
syscall.

* fix: improve error messages on syscall registration failure

* chore: remove unnecessary mut in with_custom_syscall
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.

2 participants