Files
smom-dbis-138/scripts/deployment/deploy-chain138-gas-canonicals.sh
defiQUG 11c97777d4
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s
feat(chain138): Monad CCIP, token aggregation OMNL gates, HYBX client, and PMM deploy updates.
Relay router, reserve system, oracle publisher, token-aggregation compliance middleware, and Monad deployment scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 00:11:33 -07:00

55 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
if [[ -f "$SCRIPT_DIR/../lib/deployment/dotenv.sh" ]]; then
# shellcheck disable=SC1090
source "$SCRIPT_DIR/../lib/deployment/dotenv.sh"
load_deployment_env --repo-root "$REPO_ROOT"
fi
RPC_URL="${RPC_URL_138:-${CHAIN138_RPC:-http://192.168.11.211:8545}}"
PRIVATE_KEY="${PRIVATE_KEY:-}"
GAS_PRICE="${GAS_PRICE:-1000000000}"
EXECUTE="${EXECUTE:-0}"
ONLY_FAMILY="${GAS_FAMILY:-${1:-}}"
if [[ -z "$PRIVATE_KEY" ]]; then
echo "PRIVATE_KEY is required" >&2
exit 1
fi
cmd=(
bash scripts/forge/scope.sh script tokens
script/deploy/DeployGasCanonicalTokens.s.sol:DeployGasCanonicalTokens
--rpc-url "$RPC_URL"
--broadcast
--private-key "$PRIVATE_KEY"
--legacy
--with-gas-price "$GAS_PRICE"
-vvv
)
export FOUNDRY_PROFILE="${FOUNDRY_PROFILE:-chain138}"
if [[ -n "$ONLY_FAMILY" ]]; then
export GAS_FAMILY="$ONLY_FAMILY"
fi
echo "Chain 138 gas-canonical deploy"
echo " profile: $FOUNDRY_PROFILE"
echo " rpc: $RPC_URL"
echo " gas price: $GAS_PRICE"
echo " family: ${GAS_FAMILY:-all}"
if [[ "$EXECUTE" != "1" ]]; then
echo "Dry run only. Re-run with EXECUTE=1 to broadcast."
printf ' %q' "${cmd[@]}"
echo
exit 0
fi
cd "$REPO_ROOT"
"${cmd[@]}"