Sync workspace: config, docs, scripts, CI, operator rules, and submodule pointers.
- Update dbis_core, cross-chain-pmm-lps, explorer-monorepo, metamask-integration, pr-workspace/chains - Omit embedded publish git dirs and empty placeholders from index Made-with: Cursor
This commit is contained in:
34
scripts/xdc-zero/run-xdc-zero-138-operator-sequence.sh
Executable file
34
scripts/xdc-zero/run-xdc-zero-138-operator-sequence.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
# Print the recommended operator sequence (XDC Zero parent <-> Chain 138).
|
||||
# Usage: bash scripts/xdc-zero/run-xdc-zero-138-operator-sequence.sh
|
||||
|
||||
cat <<'EOF'
|
||||
Recommended sequence (after clearing any stuck deployer txs on 138 — see CHAIN138_XDC_ZERO_DEPLOYMENT_TROUBLESHOOTING.md):
|
||||
|
||||
1. RPC: bash scripts/verify/xdc-zero-chain138-preflight.sh
|
||||
2. Config: bash scripts/validation/validate-xdc-zero-config.sh
|
||||
3. Relayer: bash scripts/xdc-zero/clone-and-build-xdc-relayer.sh
|
||||
# Configure Redis + copy config/xdc-zero/xdc-relayer.dotenv.example to the relayer clone .env
|
||||
# or copy config/xdc-zero/xdc-zero-relayer-138-pair.example.defaults to /etc/default/xdc-zero-relayer-138-pair
|
||||
# Policy: relayer/service SUBNET_URL should use https://rpc-http-pub.d-bis.org, not Core
|
||||
4. Deploy parent Endpoint + CSC (XDC-Zero endpoint/, network xdcparentnet) — manual or upstream scripts; use stock CSC for production.
|
||||
5. Deploy 138 Endpoint:
|
||||
XDC_ZERO_REPO=~/projects/XDC-Zero bash scripts/xdc-zero/deploy-endpoint-chain138.sh
|
||||
# If Hardhat stalls on Besu, rerun with:
|
||||
# XDC_ZERO_REPO=~/projects/XDC-Zero bash scripts/xdc-zero/deploy-endpoint-chain138.sh --manual
|
||||
Optional spike CSC on 138:
|
||||
bash scripts/xdc-zero/cast-deploy-simplecsc-chain138.sh
|
||||
6. Addresses → fragments:
|
||||
export ENDPOINT_ON_138=... CSC_PARENT_ON_138=... ENDPOINT_ON_PARENT=... CSC_138_ON_PARENT=...
|
||||
bash scripts/xdc-zero/set-fragment-addresses.sh
|
||||
7. Merge: XDC_ZERO_CHAIN138_FRAG=.../deployed/endpointconfig.fragment.chain138.json \
|
||||
XDC_ZERO_REG_FRAG=.../deployed/xdcparentnet-register-chain138.fragment.json \
|
||||
bash scripts/xdc-zero/merge-endpointconfig-chain138.sh /path/to/XDC-Zero/endpoint/endpointconfig.json
|
||||
8. Register chains:
|
||||
XDC_ZERO_ENDPOINT_DIR=.../XDC-Zero/endpoint bash scripts/xdc-zero/run-registerchain-both.sh
|
||||
9. Apps + approve:
|
||||
XDC_ZERO_ENDPOINT_DIR=... bash scripts/xdc-zero/run-registerapplications-both.sh
|
||||
10. systemd: install config/systemd/xdc-zero-relayer-138-pair.example.service
|
||||
# Use config/xdc-zero/xdc-zero-relayer-138-pair.example.defaults for /etc/default/xdc-zero-relayer-138-pair
|
||||
|
||||
EOF
|
||||
Reference in New Issue
Block a user