Skip to content

Commit 79a2eeb

Browse files
authored
Fix/hermes env endpoint (#114)
* Fix read hermes endpoint from env * Update version
1 parent 8ebd75c commit 79a2eeb

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

auction-server/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auction-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "auction-server"
3-
version = "0.9.5"
3+
version = "0.9.6"
44
edition = "2021"
55
license-file = "license.txt"
66

per_sdk/utils/pyth_prices.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import asyncio
2+
import os
23
from typing import TypedDict
34

45
import httpx
56

6-
HERMES_ENDPOINT_HTTPS = "https://hermes.pyth.network/api/"
7-
HERMES_ENDPOINT_WSS = "wss://hermes.pyth.network/ws"
7+
HERMES_ENDPOINT_HTTPS = os.environ.get(
8+
"HERMES_ENDPOINT_HTTPS", "https://hermes.pyth.network/api/"
9+
)
10+
HERMES_ENDPOINT_WSS = os.environ.get(
11+
"HERMES_ENDPOINT_WSS", "wss://hermes.pyth.network/ws"
12+
)
813

914

1015
class Price(TypedDict):

0 commit comments

Comments
 (0)