{"repo":"Tollcraft/soroban-budget-assert","free":true,"listed":false,"github":"https://github.com/Tollcraft/soroban-budget-assert","clone":"git clone https://github.com/Tollcraft/soroban-budget-assert.git","description":"Empirical cost measurement and assertion tooling for Soroban — catch budget-exhaustion failures in CI before they fail on the network.","language":"Rust","stars":36,"topics":["ci","developer-tools","rust","smart-contracts","soroban","stellar","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"🛡️ Soroban Budget Assert Empirical cost measurement and assertion tooling for Soroban smart contracts. Documentation · Dashboard · Demo --- 📖 Overview soroban-budget-assert is a developer tool that measures the gap between local Soroban test estimates and real network costs. It allows developers to assert budget limits during testing and automatically generate detailed execution-resource reports across an entire workspace. 🏗️ Architecture The tool is split into two primary components: 1. budget-macros (Tier A - Local, Fast, CI-Blocking) - Rust macros ( #[budget cpu lt(N)] , #[budget mem lt(N)] ) applied directly to your test functions. - Fails the test the moment measured cost crosses your pinned limit, so cost regressions are caught in CI instead of on the network. 2. cargo-budget-report (Tier B - Network-Verified, Reporting) - A CLI tool that automatically discovers all contracts in your workspace. - Compiles WASM, simulates execution on testnet, and reports the simulated resource amounts (CPU instructions, read/write bytes) plus the compiled WASM binary size. - These are inputs to the non-refundable resource fee — not a total cost. Rent, refundable fees, transaction size, footprint entry counts, and the inclusion fee are not measured; see Measurement scope. - Configurable via a central budget.toml file. 🧪 Test Fixture: Constant-Product AMM Pool The workspace includes amm-pool-contract , a constant-product AMM pool fixture that replaces the original ExpensiveContract sy","default_branch":null,"files":null,"tree":[],"storefront":"/r/Tollcraft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Tollcraft/soroban-budget-assert/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}