Files
vm-skills/eth-anchor/scripts/10_plan.sh
Vault Sovereign eac77ef7b4 Initial commit: VaultMesh Skills collection
Collection of operational skills for VaultMesh infrastructure including:
- backup-sovereign: Backup and recovery operations
- btc-anchor: Bitcoin anchoring
- cloudflare-tunnel-manager: Cloudflare tunnel management
- container-registry: Container registry operations
- disaster-recovery: Disaster recovery procedures
- dns-sovereign: DNS management
- eth-anchor: Ethereum anchoring
- gitea-bootstrap: Gitea setup and configuration
- hetzner-bootstrap: Hetzner server provisioning
- merkle-forest: Merkle tree operations
- node-hardening: Node security hardening
- operator-bootstrap: Operator initialization
- proof-verifier: Cryptographic proof verification
- rfc3161-anchor: RFC3161 timestamping
- secrets-vault: Secrets management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-27 00:25:00 +00:00

26 lines
805 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/_common.sh"
: "${ETH_RPC_URL:=}"
: "${CHAIN_ID:=1}"
: "${TO_ADDRESS:=0x0000000000000000000000000000000000000000}"
: "${GAS_LIMIT:=60000}"
: "${VALUE_WEI:=0}"
main() {
root_hex="$(read_root_hex)"
payload="$(pad_to_32_bytes_hex "$root_hex")"
echo "[PLAN] $(date -Iseconds) ETH Anchor"
echo "[PLAN] Chain ID (desired): $CHAIN_ID"
echo "[PLAN] RPC chain-id (actual): $(cast chain-id --rpc-url "$ETH_RPC_URL" 2>/dev/null || echo '?')"
echo "[PLAN] To: $TO_ADDRESS"
echo "[PLAN] Value (wei): $VALUE_WEI"
echo "[PLAN] Gas limit: $GAS_LIMIT"
echo "[PLAN] Root (raw): $root_hex"
echo "[PLAN] Calldata: 0x$payload"
echo "[PLAN] Next: export DRY_RUN=0 && ./scripts/11_apply.sh"
}
main "$@"