feat(explorer): add live token/native pricing and legacy tx route compatibility
Some checks failed
phoenix-deploy Deploy failed: Command failed: bash scripts/deployment/phoenix-deploy-explorer-live-from-workspace.sh
nginx: the configuration file /et
Deploy Explorer Live / deploy (push) Failing after 4m8s
Some checks failed
phoenix-deploy Deploy failed: Command failed: bash scripts/deployment/phoenix-deploy-explorer-live-from-workspace.sh
nginx: the configuration file /et
Deploy Explorer Live / deploy (push) Failing after 4m8s
This commit is contained in:
@@ -33,7 +33,7 @@ if [ -n "${1:-}" ] && [[ "$1" =~ ^0x[0-9a-fA-F]{64}$ ]]; then
|
||||
TX_HASH="$1"
|
||||
echo "=== Checking Transaction: $TX_HASH ==="
|
||||
echo ""
|
||||
echo "Explorer URL: $EXPLORER_URL/tx/$TX_HASH"
|
||||
echo "Explorer URL: $EXPLORER_URL/transactions/$TX_HASH"
|
||||
echo ""
|
||||
|
||||
# Try to get receipt via RPC
|
||||
@@ -84,7 +84,7 @@ if [ -n "${1:-}" ] && [[ "$1" =~ ^0x[0-9a-fA-F]{64}$ ]]; then
|
||||
else
|
||||
echo "⚠ Transaction not found in RPC (may be pending or not yet indexed)"
|
||||
echo ""
|
||||
echo "Check on explorer: $EXPLORER_URL/tx/$TX_HASH"
|
||||
echo "Check on explorer: $EXPLORER_URL/transactions/$TX_HASH"
|
||||
fi
|
||||
else
|
||||
# Check recent transactions for account
|
||||
@@ -125,6 +125,6 @@ echo ""
|
||||
echo "For detailed transaction information, please visit:"
|
||||
echo " Account: $EXPLORER_URL/address/$ACCOUNT"
|
||||
if [ -n "${TX_HASH:-}" ]; then
|
||||
echo " Transaction: $EXPLORER_URL/tx/$TX_HASH"
|
||||
echo " Transaction: $EXPLORER_URL/transactions/$TX_HASH"
|
||||
fi
|
||||
echo ""
|
||||
|
||||
@@ -24,6 +24,7 @@ RELEASE_ID="$(date +%Y%m%d_%H%M%S)"
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
ARCHIVE_NAME="solacescanscout-next-${RELEASE_ID}.tar"
|
||||
BUILD_LOCK_DIR="${FRONTEND_ROOT}/.next-build-lock"
|
||||
STANDALONE_ROOT="${FRONTEND_ROOT}/.next/standalone"
|
||||
STATIC_SYNC_FILES=(
|
||||
"index.html"
|
||||
"docs.html"
|
||||
@@ -110,16 +111,31 @@ if [[ "${SKIP_BUILD:-0}" != "1" ]]; then
|
||||
echo ""
|
||||
fi
|
||||
|
||||
if [[ ! -f "${FRONTEND_ROOT}/.next/standalone/server.js" ]]; then
|
||||
APP_RELATIVE_DIR="."
|
||||
APP_SERVER_PATH="${STANDALONE_ROOT}/server.js"
|
||||
if [[ ! -f "${APP_SERVER_PATH}" ]]; then
|
||||
ALT_SERVER_PATH="$(find "${STANDALONE_ROOT}" -path '*/server.js' -print | head -n 1 || true)"
|
||||
if [[ -n "${ALT_SERVER_PATH}" ]]; then
|
||||
APP_SERVER_PATH="${ALT_SERVER_PATH}"
|
||||
APP_RELATIVE_DIR="$(dirname "${ALT_SERVER_PATH#${STANDALONE_ROOT}/}")"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -f "${APP_SERVER_PATH}" ]]; then
|
||||
echo "Missing standalone server build. Run \`npm run build\` in ${FRONTEND_ROOT} first." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STAGE_DIR="${TMP_DIR}/stage"
|
||||
mkdir -p "${STAGE_DIR}/.next"
|
||||
cp -R "${FRONTEND_ROOT}/.next/standalone/." "$STAGE_DIR/"
|
||||
cp -R "${FRONTEND_ROOT}/.next/static" "${STAGE_DIR}/.next/static"
|
||||
cp -R "${FRONTEND_ROOT}/public" "${STAGE_DIR}/public"
|
||||
APP_STAGE_DIR="${STAGE_DIR}"
|
||||
if [[ "${APP_RELATIVE_DIR}" != "." ]]; then
|
||||
APP_STAGE_DIR="${STAGE_DIR}/${APP_RELATIVE_DIR}"
|
||||
fi
|
||||
|
||||
mkdir -p "${APP_STAGE_DIR}/.next"
|
||||
cp -R "${STANDALONE_ROOT}/." "$STAGE_DIR/"
|
||||
cp -R "${FRONTEND_ROOT}/.next/static" "${APP_STAGE_DIR}/.next/static"
|
||||
cp -R "${FRONTEND_ROOT}/public" "${APP_STAGE_DIR}/public"
|
||||
tar -C "$STAGE_DIR" -cf "${TMP_DIR}/${ARCHIVE_NAME}" .
|
||||
|
||||
cp "$SERVICE_TEMPLATE" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
|
||||
@@ -271,7 +271,7 @@ if echo "$SEND_TX" | grep -qE "transactionHash"; then
|
||||
log_info " Recipient: $DEPLOYER"
|
||||
log_info ""
|
||||
log_info "You can monitor the transaction at:"
|
||||
log_info " https://explorer.d-bis.org/tx/$TX_HASH"
|
||||
log_info " https://explorer.d-bis.org/transactions/$TX_HASH"
|
||||
log_info ""
|
||||
log_success "Process completed successfully!"
|
||||
log_info ""
|
||||
|
||||
Reference in New Issue
Block a user