Skip to content

Commit 4e45ed4

Browse files
committed
Updated configuration parameters in environment and script
1 parent 7c46d90 commit 4e45ed4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/cross-chain-policies/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Google API key
22
GOOGLE_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
77
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>

scripts/cross-chain-policies/generate-policies.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ set -euo pipefail
99
# -----------------------------
1010
# Configuration (edit these variables directly)
1111
BRIDGES_ROOT="/Users/mere/git/evm-lisa/datasets/cross-chain/smartaxe/manually-labeled"
12-
REPO_TAG="v1.1.1"
12+
REPO_TAG="v1.2.1"
1313
REPO_URL="https://github.com/merendamattia/crosschain-policy-agent.git"
1414
CLONE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/.external/crosschain-policy-agent-${REPO_TAG}"
1515
IMAGE_TAG="crosschain-agent:${REPO_TAG}"
1616
OUTPUT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/outputs/generated-policies-${REPO_TAG}"
1717
ENV_FILE=".env"
18+
CLIENT="google" # "openai" or "google"
19+
# -----------------------------
1820

1921
# Set DRY_RUN=1 to only print commands instead of executing them
2022
DRY_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

2527
log() { 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"

0 commit comments

Comments
 (0)