Helper scripts for local development and CI of the Creditra Soroban contracts. None of the files here are compiled into the contract WASM — they are operator-facing utilities only.
| Script | Purpose |
|---|---|
build_wasm.sh |
Compile both workspace contracts to target/wasm32-unknown-unknown/release/*.wasm. |
check-wasm-size.sh |
Build (optional) and fail when any release WASM exceeds 100 KiB (THRESHOLD_BYTES=102400). |
test_check_wasm_size.sh |
Focused guard tests for check-wasm-size.sh (synthetic artifacts, no build). |
clean_profraw.sh |
Remove stray *.profraw coverage files left over by cargo llvm-cov. |
check_workspace.sh |
Convenience wrapper around cargo check --workspace. |
list_contract_errors.py |
Print every ContractError variant declared in contracts/credit/src/types.rs with its discriminant. |
gas-regression.sh |
Run per-entrypoint budget regression tests (or regenerate baselines with --regen). |
regen_budget_baseline.sh |
Regenerate contracts/credit/test_snapshots/budget.json via the budget_baseline example. |
- Shell scripts target
bashand useset -euo pipefail. - Python scripts target Python 3.9+ and have no third-party deps.
- Scripts must be runnable from any working directory; they cd to the repo root themselves.