Files
proxmox/scripts/verify/check-cstar-v2-transport-stack.sh
defiQUG 7ac74f432b chore: sync docs, config schemas, scripts, and meta task alignment
- Institutional / JVMTM / reserve-provenance / GRU transport + standards JSON
- Validation and verify scripts (Blockscout labels, x402, GRU preflight, P1 local path)
- Wormhole wiring in AGENTS, MCP_SETUP, MASTER_INDEX, 04-configuration README
- Meta docs, integration gaps, live verification log, architecture updates
- CI validate-config workflow updates

Operator/LAN items, submodule working trees, and public token-aggregation edge
routes remain follow-up (see TODOS_CONSOLIDATED P1).

Made-with: Cursor
2026-03-31 22:31:39 -07:00

56 lines
1.6 KiB
Bash

#!/usr/bin/env bash
# Verify that the c* V2 token, reserve, and c* <-> cW* transport stack are green before deploy.
# Usage: bash scripts/verify/check-cstar-v2-transport-stack.sh
#
# Env:
# DRY_RUN=1 Print the commands without executing them
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
SMOM_ROOT="${PROJECT_ROOT}/smom-dbis-138"
DRY_RUN="${DRY_RUN:-0}"
log() { printf '%s\n' "$*"; }
ok() { printf '[OK] %s\n' "$*"; }
run() {
if [[ "$DRY_RUN" == "1" ]]; then
printf '[DRY_RUN] %s\n' "$*"
return 0
fi
"$@"
}
if ! command -v forge >/dev/null 2>&1; then
printf '[FAIL] forge is required but not installed or not on PATH.\n' >&2
exit 1
fi
log "=== c* V2 transport stack verifier ==="
log "Repo: ${SMOM_ROOT}"
log ""
pushd "$SMOM_ROOT" >/dev/null
# Foundry's JSON cache occasionally drifts when toolchain output shapes change.
# Removing the generated cache keeps these focused suites reliable in CI and local runs.
rm -f cache/solidity-files-cache.json
run forge test --match-path "test/compliance/CompliantFiatTokenV2.t.sol"
ok "CompliantFiatTokenV2 base token suite passed."
run forge test --match-path "test/bridge/CWReserveVerifierVaultIntegration.t.sol"
ok "Legacy reserve-verifier bridge compatibility suite passed."
run forge test --match-path "test/bridge/CWReserveVerifierVaultV2Integration.t.sol"
ok "V2 reserve-verifier + full L1/L2 transport suite passed."
run forge test --match-path "test/bridge/CWMultiTokenBridge.t.sol"
ok "Core CWMultiTokenBridge round-trip suite passed."
popd >/dev/null
log ""
ok "c* V2 bridge and transport stack is green."