Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
53 lines
2.6 KiB
Bash
Executable File
53 lines
2.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run completable mapper-related tasks (validation, config hygiene) and print operator checklist for the rest.
|
|
# Usage: ./scripts/run-remaining-mapper-tasks.sh [--dry-run]
|
|
# See: docs/07-ccip/RECOMMENDED_COMPLETION_CHECKLIST.md, docs/07-ccip/MAPPER_GAPS_DEPLOYMENTS_AND_IMPROVEMENTS.md
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
cd "$PROJECT_ROOT"
|
|
|
|
DRY_RUN=false
|
|
for a in "$@"; do [[ "$a" == "--dry-run" ]] && DRY_RUN=true && break; done
|
|
|
|
echo ""
|
|
echo "=== Remaining mapper tasks (completable + operator checklist) ==="
|
|
echo ""
|
|
|
|
if $DRY_RUN; then
|
|
echo "[--dry-run] Would run: validate-config-files.sh, then print operator steps."
|
|
echo ""
|
|
exit 0
|
|
fi
|
|
|
|
# 1. Config validation (token-mapping.json, token-mapping-multichain.json, smart-contracts-master.json)
|
|
echo "1. Config validation..."
|
|
bash scripts/validation/validate-config-files.sh
|
|
echo ""
|
|
|
|
# 2. Optional: on-chain check Chain 138 (contracts from smart-contracts-master.json)
|
|
echo "2. On-chain check (Chain 138)..."
|
|
SKIP_EXIT=1 bash scripts/verify/check-contracts-on-chain-138.sh 2>/dev/null || true
|
|
echo ""
|
|
|
|
echo "--- Operator-only tasks (require RPC, keys, gas on target chains) ---"
|
|
echo ""
|
|
echo "High:"
|
|
echo " • Wemix (1111): Confirm WETH/USDT/USDC on https://scan.wemix.com/tokens; update config/token-mapping-multichain.json and docs/07-ccip/WEMIX_TOKEN_VERIFICATION.md if different. Then run: bash scripts/validation/validate-config-files.sh"
|
|
echo " • Gnosis (100), Celo (42220), Wemix (1111) CCIP bridges: Deploy CCIP WETH9/WETH10 per chain, add destinations, fund with LINK. Runbook: docs/07-ccip/CONFIG_READY_CHAINS_COMPLETION_RUNBOOK.md"
|
|
echo ""
|
|
echo "Medium:"
|
|
echo " • LINK on Mainnet relay: Extend CCIPRelayBridge or deploy LINK receiver; fund; set relaySupported: true for LINK. Runbook: docs/07-ccip/RELAY_BRIDGE_ADD_LINK_SUPPORT_RUNBOOK.md"
|
|
echo ""
|
|
echo "Low (optional):"
|
|
echo " • AddressMapper on other chains: Cronos done. For BSC/Polygon/etc: from smom-dbis-138/ run DeployAddressMapperOtherChain, set mapper in config/smart-contracts-master.json. See docs/07-ccip/OPTIONAL_DEPLOYMENTS_START_HERE.md §A"
|
|
echo " • DODO PMM on 138: Deploy DODOPMMIntegration, create pools. See docs/07-ccip/RECOMMENDED_COMPLETION_CHECKLIST.md §6"
|
|
echo " • Mainnet trustless stack: Deploy per docs/03-deployment/OPTIONAL_FUTURE_DEPLOYMENTS_RUNBOOK.md. Checklist §7"
|
|
echo ""
|
|
echo "Full checklist: docs/07-ccip/RECOMMENDED_COMPLETION_CHECKLIST.md"
|
|
echo "Single operator doc: docs/07-ccip/REMAINING_OPERATOR_STEPS.md"
|
|
echo "Run config when .env set: ./scripts/complete-all-mapper-operator.sh"
|
|
echo ""
|