Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.34 KB

File metadata and controls

25 lines (20 loc) · 1.34 KB

scripts/

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.

Inventory

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.

Conventions

  • Shell scripts target bash and use set -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.