- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains - Omit embedded publish git dirs and empty placeholders from index Made-with: Cursor
57 lines
2.3 KiB
Bash
Executable File
57 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Non-secret smoke: export a small grid (test mnemonic), dry-run fund + soak bots.
|
|
# Does not broadcast txs. Uses Foundry `cast` + LAN RPC if reachable.
|
|
#
|
|
# Usage:
|
|
# bash scripts/deployment/pmm-soak-grid-smoke-check.sh
|
|
# Env:
|
|
# RPC_URL_138 (optional; in CI defaults to public read-only RPC if unset)
|
|
# PMM_SOAK_GRID_SMOKE_RPC_URL — override public RPC URL used when CI is set
|
|
# PMM_SOAK_GRID_SMOKE_MNEMONIC — override test mnemonic (default: Anvil-style test phrase)
|
|
#
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
|
|
cd "$PROJECT_ROOT"
|
|
|
|
SMOKE_JSON="${PMM_SOAK_GRID_SMOKE_JSON:-${TMPDIR:-/tmp}/pmm-soak-grid-smoke-$$.json}"
|
|
MN="${PMM_SOAK_GRID_SMOKE_MNEMONIC:-test test test test test test test test test test test junk}"
|
|
|
|
# GitHub Actions (and similar) have no LAN; child scripts source .env and would default to Core LAN RPC.
|
|
# Export a read-only public endpoint unless the caller already set RPC_URL_138.
|
|
if [[ -n "${CI:-}" && -z "${RPC_URL_138:-}" ]]; then
|
|
export RPC_URL_138="${PMM_SOAK_GRID_SMOKE_RPC_URL:-https://rpc-http-pub.d-bis.org}"
|
|
fi
|
|
|
|
echo "=== PMM soak grid smoke (dry-run only) ==="
|
|
echo "Temp grid JSON: $SMOKE_JSON"
|
|
|
|
export PMM_SOAK_GRID_MNEMONIC="$MN"
|
|
python3 scripts/deployment/pmm-soak-export-wallet-grid.py --out "$SMOKE_JSON" --count 8 --jobs 4
|
|
|
|
export PMM_SOAK_GRID_JSON="$SMOKE_JSON"
|
|
|
|
echo ""
|
|
echo "[1/4] Operator fund-grid dry-run (native, linear 0-4)..."
|
|
NATIVE_AMOUNT_WEI=10000000000000000 \
|
|
bash scripts/deployment/pmm-soak-operator-fund-grid.sh --native --from-linear 0 --to-linear 4
|
|
|
|
echo ""
|
|
echo "[2/4] Operator fund-grid dry-run (cUSDT, linear 0-3)..."
|
|
TOKEN=0x93E66202A11B1772E55407B32B44e5Cd8eda7f22 AMOUNT_WEI_PER_WALLET=1000000 \
|
|
bash scripts/deployment/pmm-soak-operator-fund-grid.sh --from-linear 0 --to-linear 3
|
|
|
|
echo ""
|
|
echo "[3/4] Grid bot dry-run (2 ticks, linear 0-7 only for partial export)..."
|
|
PMM_SOAK_LINEAR_MIN=0 PMM_SOAK_LINEAR_MAX=7 \
|
|
bash scripts/deployment/chain138-pmm-soak-grid-bot.sh --dry-run --max-ticks 2 --pool-preset stable
|
|
|
|
echo ""
|
|
echo "[4/4] Single-wallet soak dry-run (1 tick)..."
|
|
bash scripts/deployment/chain138-pmm-random-soak-swaps.sh --dry-run --max-ticks 1 --pool-preset stable
|
|
|
|
rm -f "$SMOKE_JSON"
|
|
echo ""
|
|
echo "=== PMM soak grid smoke OK ==="
|