Skip to content

Implement Optimal Resource Limit Discovery & Rebase Integration#90

Merged
ayomideadeniran merged 4 commits intoSoroLabs:mainfrom
OSEH-svg:binary
Feb 25, 2026
Merged

Implement Optimal Resource Limit Discovery & Rebase Integration#90
ayomideadeniran merged 4 commits intoSoroLabs:mainfrom
OSEH-svg:binary

Conversation

@OSEH-svg
Copy link
Copy Markdown
Contributor

This PR implements the "Optimal Resource Limit Discovery" feature, which uses a concurrent binary search to find the minimum viable CPU and RAM limits for Soroban transactions.

Additionally, this PR includes:

Major Rebase Integration: Successfully merged with the latest changes from origin/binary, including the new "Insights" engine.
Improved Type Safety: Refactored internal crate references in main.rs to resolve mismatched type errors.
Robust Error Handling: Added InvalidContract error variants and updated transaction metadata parsing.
Verified Stability: All 59 unit tests passed, and the codebase is verified with clean cargo check.
Changes:

core/src/simulation.rs: Core logic for resource optimization and failover simulation.
core/src/main.rs: New POST /analyze/optimize-limits endpoint and OpenAPI documentation.
core/src/parser.rs: Enhanced JSON-to-ScVal argument parsing.
contracts/liquidity_pool/src/lib.rs: Formatting and conflict resolution.

closes #70

@ayomideadeniran
Copy link
Copy Markdown
Collaborator

Pr Under review.

@ayomideadeniran ayomideadeniran merged commit 0f37238 into SoroLabs:main Feb 25, 2026
4 checks passed
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] Optimal Resource Limit Discovery (Binary Search Profiling)

2 participants