Fix MEV backend and token-aggregation deployment wiring
All checks were successful
Deploy to Phoenix / deploy (push) Successful in 12s

This commit is contained in:
defiQUG
2026-04-15 03:25:30 -07:00
parent 382e776599
commit 59006f520a
12 changed files with 264 additions and 15 deletions

View File

@@ -115,6 +115,28 @@ try {
} catch (_) {
process.exit(0);
}
derive_repo_example_env_value() {
local env_key="$1"
local env_file="$REPO_ROOT/.env.master.example"
[[ -f "$env_file" ]] || return 0
node - <<'NODE' "$env_file" "$env_key"
const fs = require('fs');
const file = process.argv[2];
const key = process.argv[3];
try {
const line = fs
.readFileSync(file, 'utf8')
.split(/\r?\n/)
.find((entry) => entry.startsWith(`${key}=`));
if (!line) process.exit(0);
const value = line.slice(key.length + 1).trim();
if (value) process.stdout.write(value);
} catch (_) {
process.exit(0);
}
NODE
}
@@ -169,6 +191,9 @@ NODE
;;
CW_MAX_OUTSTANDING_*)
derived_value="$(derive_gru_transport_policy_amount "$key" || true)"
if [[ -z "$derived_value" ]]; then
derived_value="$(derive_repo_example_env_value "$key" || true)"
fi
value="${!key:-$derived_value}"
;;
CW_GAS_OUTSTANDING_*|CW_GAS_ESCROWED_*|CW_GAS_TREASURY_BACKED_*|CW_GAS_TREASURY_CAP_*)