Files
proxmox/scripts/submit-chain138-to-chainlist.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

51 lines
2.1 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Prepare Chain 138 for chainlist.org (ethereum-lists/chains).
# Prints PR steps and validates pr-workspace/chains/_data/chains/eip155-138.json.
# See: https://github.com/ethereum-lists/chains
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
CHAIN_FILE="$PROJECT_ROOT/pr-workspace/chains/_data/chains/eip155-138.json"
REPO_URL="https://github.com/ethereum-lists/chains"
REPO_DATA_PATH="_data/chains"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Chain 138 submit to chainlist.org (ethereum-lists/chains)"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
if [ ! -f "$CHAIN_FILE" ]; then
echo "❌ Chain file not found: $CHAIN_FILE"
exit 1
fi
# Validate JSON
if command -v jq >/dev/null 2>&1; then
if jq empty "$CHAIN_FILE" 2>/dev/null; then
echo "✓ JSON valid: $CHAIN_FILE"
echo " name: $(jq -r '.name' "$CHAIN_FILE")"
echo " chainId: $(jq -r '.chainId' "$CHAIN_FILE")"
echo " rpc count: $(jq -r '.rpc | length' "$CHAIN_FILE")"
else
echo "❌ Invalid JSON: $CHAIN_FILE"
exit 1
fi
else
echo "⚠ jq not found; skipping JSON validation"
fi
echo ""
echo "To add Chain 138 to chainlist.org:"
echo ""
echo " 1. Fork the repo: $REPO_URL"
echo " 2. Clone your fork, then copy the chain file:"
echo " cp $CHAIN_FILE <your-fork>/$REPO_DATA_PATH/eip155-138.json"
echo " 3. Commit and push, then open a Pull Request to ethereum-lists/chains"
echo " 4. PR title example: \"Add Defi Oracle Meta Mainnet (Chain ID 138)\""
echo ""
echo "Chain list format: one file per chain, filename eip155-<chainId>.json"
echo "Docs: https://github.com/ethereum-lists/chains#adding-a-new-chain"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"