Skip to content

feat(backend): add contract execution sandbox service#427

Merged
adams813 merged 4 commits into
benelabs:mainfrom
TochukwuJustice:contract-ext
Jun 3, 2026
Merged

feat(backend): add contract execution sandbox service#427
adams813 merged 4 commits into
benelabs:mainfrom
TochukwuJustice:contract-ext

Conversation

@TochukwuJustice
Copy link
Copy Markdown
Contributor

closes #363
Summary
Adds a backend contract execution sandbox service for Soroban WASM execution.
Introduces POST /api/v1/sandbox/execute.
Adds bounded execution controls for WASM size, argument count, argument size, CPU, memory, and timeout.
Returns structured execution results including status, diagnostics, resource usage, result XDR, and WASM SHA-256.
Adds unit and integration-style tests for sandbox behavior and API routing.

Reason
This implements the MVP-critical backend sandbox capability required for safely executing contract WASM in a controlled environment while preserving architectural boundaries and API consistency.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@TochukwuJustice Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

# Conflicts:
#	Cargo.lock
#	backend/Cargo.toml
#	backend/src/main.rs
#	backend/src/services/mod.rs
@Gezziy
Copy link
Copy Markdown
Contributor

Gezziy commented Jun 2, 2026

Kindly Merge PR , thank you

@adams813
Copy link
Copy Markdown
Collaborator

adams813 commented Jun 3, 2026

Nice implementation, LGTM!

@adams813 adams813 merged commit 079b2ce into benelabs:main Jun 3, 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.

[Backend] Create contract execution sandbox service

3 participants