feat(non-evm): operator binding config, planner hints, and validation
- Add config/non-evm-operator-binding.json (public hints only; no secrets). - Extend .env.master.example with XRPL/Tron/Solana/TRONGRID overrides. - Wire solana-gru-bridge-lineup refs; refresh non-evm lane stubs from binding. - Teach liquidity-gap planner to read binding; validate JSON in validate-config-files.sh. - Document handoff in CWUSDC_NON_MANUAL_PROVIDER_TASKS; cross-link GRU spec. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -93,6 +93,24 @@ else
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [[ -f "$PROJECT_ROOT/config/non-evm-operator-binding.json" ]]; then
|
||||
log_ok "Found: config/non-evm-operator-binding.json"
|
||||
if command -v jq &>/dev/null; then
|
||||
if jq -e '
|
||||
(.version | type == "string")
|
||||
and (.xrpl | type == "object")
|
||||
and (.tron | type == "object")
|
||||
and (.minimumFundingTargets | type == "object")
|
||||
' "$PROJECT_ROOT/config/non-evm-operator-binding.json" &>/dev/null; then
|
||||
log_ok "non-evm-operator-binding.json: structure valid"
|
||||
else
|
||||
log_err "non-evm-operator-binding.json: invalid structure"
|
||||
ERRORS=$((ERRORS + 1))
|
||||
fi
|
||||
fi
|
||||
else
|
||||
log_warn "Optional config/non-evm-operator-binding.json missing; skipping"
|
||||
fi
|
||||
if [[ -f "$PROJECT_ROOT/config/public-routing-coverage-matrix.json" ]]; then
|
||||
log_ok "Found: config/public-routing-coverage-matrix.json"
|
||||
if command -v jq &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user