Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 38eb480

Browse files
authored
Bugfix + Refactor + Release (#37)
* Add evm price service connection logging It will help us to debug network issues better * Fix healthcheck problem * Bump version to 0.2.0
1 parent 979fa4a commit 38eb480

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

pyth-evm-price-pusher/docker-compose.testnet.sample.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ services:
2424
- READINESS_NUM_LOADED_SYMBOLS=8
2525
- LOG_LEVEL=debug
2626
healthcheck:
27-
test: ["CMD", "curl", "-f", "http://localhost:4200/ready"]
27+
test:
28+
[
29+
"CMD",
30+
"wget",
31+
"--no-verbose",
32+
"--tries=1",
33+
"--spider",
34+
"http://localhost:4200/ready",
35+
]
2836
start_period: 60s
2937
depends_on:
3038
- spy

pyth-evm-price-pusher/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyth-evm-price-pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-evm-price-pusher",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Pyth EVM Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

pyth-evm-price-pusher/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ if (CONTRACT_ADDR[argv.pythContract] !== undefined) {
8080
const priceConfigs = readPriceConfigFile(argv.priceConfigFile);
8181

8282
async function run() {
83-
const connection = new EvmPriceServiceConnection(argv.priceEndpoint);
83+
const connection = new EvmPriceServiceConnection(argv.priceEndpoint, {
84+
logger: console,
85+
});
8486

8587
const evmPriceListener = new EvmPriceListener(
8688
network,

0 commit comments

Comments
 (0)