Files
smom-dbis-138/scripts/deployment/check-cronos-verification-status.sh
defiQUG fc3a95de08
Some checks failed
Verify Deployment / Verify Deployment (push) Has been cancelled
CI/CD Pipeline / Solidity Contracts (push) Has been cancelled
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
Deploy ChainID 138 / Deploy ChainID 138 (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
docs(cronos): refresh explorer ops and verification runbooks; ignore .verify-dodo cache
- Tweak cronos check/export/verify scripts for current workflow
- Gitignore .verify-dodo/ alongside .cronos-verify/

Made-with: Cursor
2026-03-24 18:11:08 -07:00

45 lines
1.5 KiB
Bash
Executable File

#!/usr/bin/env bash
# Check Cronos contract deployment and verification status.
# Verification status must be checked manually by visiting each explorer URL;
# this script confirms on-chain deployment and prints links.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
cd "$PROJECT_ROOT"
RPC="${CRONOS_RPC_URL:-https://evm.cronos.org}"
CONTRACTS=(
"0x99B3511A2d315A497C8112C1fdd8D508d4B1E506:WETH9"
"0x3304b747E565a97ec8AC220b0B6A1f6ffDB837e6:WETH10"
"0x3Cc23d086fCcbAe1e5f3FE2bA4A263E1D27d8Cab:CCIPWETH9Bridge"
"0x105F8A15b819948a89153505762444Ee9f324684:CCIPWETH10Bridge"
)
echo "=== Cronos (Chain 25) contract status ==="
echo ""
echo "On-chain deployment:"
for entry in "${CONTRACTS[@]}"; do
addr="${entry%%:*}"
name="${entry##*:}"
code=$(cast code "$addr" --rpc-url "$RPC" 2>/dev/null || echo "0x")
if [ "${#code}" -gt 10 ]; then
echo "$name — DEPLOYED"
else
echo "$name — MISSING"
fi
done
echo ""
echo "Verification status (check each link manually):"
echo " Verified contracts show 'Contract Source Code Verified' or display source."
echo ""
for entry in "${CONTRACTS[@]}"; do
addr="${entry%%:*}"
name="${entry##*:}"
echo " $name: https://explorer.cronos.org/address/$addr"
done
echo ""
echo "Run ./scripts/deployment/export-cronos-verification-sources.sh and follow"
echo "docs/deployment/CRONOS_VERIFICATION_RUNBOOK.md to verify unverified contracts."