Skip to content

Commit 27afb7e

Browse files
committed
prod/test env
1 parent 0d456d0 commit 27afb7e

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

hypertrade-prod.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Export env vars from pass
4+
export HYPERTRADE_ENVIRONMENT=prod
45
export HYPERTRADE_MASTER_ADDR=$(pass show hypertrade/master_addr | head -n 1)
56
export HYPERTRADE_API_WALLET_PRIV=$(pass show hypertrade/api_wallet_priv | head -n 1)
67
export HYPERTRADE_SUBACCOUNT_ADDR=$(pass show hypertrade/subaccount_addr | head -n 1)

hypertrade-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Export env vars from pass
4+
export HYPERTRADE_ENVIRONMENT=test
45
export HYPERTRADE_MASTER_ADDR=$(pass show hypertrade_test/master_addr | head -n 1)
56
export HYPERTRADE_API_WALLET_PRIV=$(pass show hypertrade_test/api_wallet_priv | head -n 1)
67
export HYPERTRADE_SUBACCOUNT_ADDR=

hypertrade/daemon.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ def _telegram_notify(text: str, _token=token, _chat_id=chat_id):
171171
)
172172
log.info("Loaded %d TV webhook IPs", len(settings.tv_webhook_ips or []))
173173

174+
# Log Hyperliquid environment and endpoint
175+
log.info(
176+
"Hyperliquid API: environment=%s endpoint=%s",
177+
settings.environment.upper(),
178+
settings.api_url,
179+
)
180+
174181
# Showing our startup banner
175182
log_startup_banner(
176183
host=settings.listen_host,

0 commit comments

Comments
 (0)