Skip to content

Commit 0010101

Browse files
committed
v0.1 rc
1 parent 0010101 commit 0010101

29 files changed

Lines changed: 77391 additions & 64984 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,4 @@ node_modules
178178
debug_traces/
179179
.algokit/static-analysis/ # Replace with .algokit/static-analysis/tealer/ to enable snapshot checks in CI
180180
.algokit/sources
181+
.hermes

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,23 @@ tests/ # 30+ test files: lifecycle, adversarial, LMSR, disputes
4848
tla/ # TLA+ formal specifications and model checker configs
4949
```
5050

51+
## Launch gate
52+
53+
The canonical contracts launch gate lives in [scripts/contracts-launch-gate.sh](scripts/contracts-launch-gate.sh).
54+
55+
It rebuilds the three shipped contracts and runs the launch-critical suites, including:
56+
57+
- LMSR math and no-free-money/property coverage
58+
- protocol/factory and market runtime regressions
59+
- adversarial launch/payment coverage
60+
- artifact surface checks
61+
62+
Run it from the repo root with:
63+
64+
```bash
65+
bash ./scripts/contracts-launch-gate.sh
66+
```
67+
5168
## LMSR pricing
5269

5370
The protocol uses a Logarithmic Market Scoring Rule for automated market making. Two implementations exist:

scripts/contracts-launch-gate.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5+
6+
cd "${ROOT_DIR}"
7+
8+
echo "==> Building contracts"
9+
poetry run python -m smart_contracts build protocol_config
10+
poetry run python -m smart_contracts build market_app
11+
poetry run python -m smart_contracts build market_factory
12+
13+
echo "==> Running contracts launch gate"
14+
poetry run pytest -q \
15+
tests/test_hyp_lmsr_math.py \
16+
tests/test_hyp_bond_settlement.py \
17+
tests/test_hyp_market_lifecycle.py \
18+
tests/test_c4_property_invariants.py \
19+
tests/test_lmsr_math.py \
20+
tests/test_lmsr_properties.py \
21+
tests/test_c4_payment_verification.py \
22+
tests/test_c6_launch_adversarial.py \
23+
tests/test_c6_redteam_extended.py \
24+
tests/contracts/test_protocol_config_factory.py \
25+
tests/contracts/test_market_factory_integration.py \
26+
tests/test_market_app_contract_runtime.py \
27+
tests/contracts/test_v4_artifact_surface.py

smart_contracts/artifacts/market_app/QuestionMarket.approval.puya.map

Lines changed: 62462 additions & 58941 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)