feat: bridges, PMM, flash workflow, token-aggregation, and deployment docs
- CCIP/trustless bridge contracts, GRU tokens, DEX/PMM tests, reserve vault. - Token-aggregation service routes, planner, chain config, relay env templates. - Config snapshots and multi-chain deployment markdown updates. - gitignore services/btc-intake/dist/ (tsc output); do not track dist. Run forge build && forge test before deploy (large solc graph). Made-with: Cursor
This commit is contained in:
19
services/token-aggregation/scripts/apply-lightweight-schema.sh
Executable file
19
services/token-aggregation/scripts/apply-lightweight-schema.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
SERVICE_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
SCHEMA_FILE="${SCRIPT_DIR}/bootstrap-lightweight-schema.sql"
|
||||
|
||||
if [ -f "${SERVICE_DIR}/.env" ]; then
|
||||
# shellcheck disable=SC1090
|
||||
set -a && source "${SERVICE_DIR}/.env" && set +a
|
||||
fi
|
||||
|
||||
if [ -z "${DATABASE_URL:-}" ]; then
|
||||
echo "DATABASE_URL is required. Set it in ${SERVICE_DIR}/.env or export it before running." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Applying lightweight token-aggregation schema using ${SCHEMA_FILE}"
|
||||
psql "${DATABASE_URL}" -v ON_ERROR_STOP=1 -f "${SCHEMA_FILE}"
|
||||
Reference in New Issue
Block a user