File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
scripts/cross-chain-policies Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11# Google API key
22GOOGLE_API_KEY = <YOUR_GOOGLE_API_KEY>
33# Google model
4- GOOGLE_MODEL = gemini-2.0 -flash
4+ GOOGLE_MODEL = gemini-2.5 -flash
55
66# OpenAI API key
77OPENAI_API_KEY = <YOUR_OPENAI_API_KEY>
Original file line number Diff line number Diff line change @@ -9,17 +9,19 @@ set -euo pipefail
99# -----------------------------
1010# Configuration (edit these variables directly)
1111BRIDGES_ROOT=" /Users/mere/git/evm-lisa/datasets/cross-chain/smartaxe/manually-labeled"
12- REPO_TAG=" v1.1 .1"
12+ REPO_TAG=" v1.2 .1"
1313REPO_URL=" https://github.com/merendamattia/crosschain-policy-agent.git"
1414CLONE_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd) /.external/crosschain-policy-agent-${REPO_TAG} "
1515IMAGE_TAG=" crosschain-agent:${REPO_TAG} "
1616OUTPUT_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd) /outputs/generated-policies-${REPO_TAG} "
1717ENV_FILE=" .env"
18+ CLIENT=" google" # "openai" or "google"
19+ # -----------------------------
1820
1921# Set DRY_RUN=1 to only print commands instead of executing them
2022DRY_RUN=0
2123# Delay (seconds) between operations to avoid API rate limits / too many operations per minute
22- DELAY_SECONDS=20
24+ DELAY_SECONDS=150
2325# -----------------------------
2426
2527log () { printf " [%s] %s\n" " $( date --iso-8601=seconds 2> /dev/null || date) " " $* " ; }
@@ -95,7 +97,7 @@ for entry in "$BRIDGES_ROOT"/*; do
9597 docker_cmd+=(-v " $out_dir :/app/output" )
9698 docker_cmd+=(" $IMAGE_TAG " )
9799 docker_cmd+=(--target-path /data/sol --output-file /app/output/" ${bridge_name} .policy.json" )
98- docker_cmd+=(--client google )
100+ docker_cmd+=(--client " $CLIENT " )
99101
100102 log " Processing bridge: $bridge_name "
101103 log " Source: $entry "
You can’t perform that action at this time.
0 commit comments