chore: initialize go-sip repository

This commit is contained in:
2026-09-21 08:56:04 +08:00
commit 643b11b21f
309 changed files with 40521 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
manifest="$root/contracts/upstream/manifest.txt"
[ -f "$manifest" ] || { echo "missing contract manifest" >&2; exit 1; }
bundle=$(sed -n 's/^active_bundle=//p' "$manifest")
[ -n "$bundle" ] || { echo "missing active contract bundle" >&2; exit 1; }
[ -d "$root/contracts/upstream/$bundle" ] || { echo "missing pinned contract directory: $bundle" >&2; exit 1; }
cd "$root"
grep '^sha256=' "$manifest" | sed 's/^sha256=//' | sha256sum -c -
go test ./contracts ./internal/contract ./internal/ai