wormhole-examples/pyth_relay/.env.sample

42 lines
1.4 KiB
Plaintext
Raw Normal View History

Pyth relay (#14) * initial commit * Rework to make it pyth instead of spy * Add command to listen to mainnet to readme * More code rework * Dump productId from messages * Fixes for message parsing * Drop duplicate messages * Start of creating docker file for pyth_relay * Trying to get docker to listen to spy_guardian * Proving that docker image works * Publish to Terra * Keep connection to Terra open all the time * Add timing to terra relayer code * Not passing fees into transaction * Use Winston logger * Update commads to build and run spy guardian * Specify config file via env variable * Console logging not honoring log level * Remove dependence on redis * Add support for listen only mode * number of publishes is off by one * Only one worker should use the wallet at a time * Add prometheus metrics * Add ability to query wallet balance * Add latency histogram * Use a condition variable rather than sleeping to reduce delays * Periodically query the wallet balance * Add wallet balance metrics * Add incoming packet counter * Enable strict type checking * Add design document * Adding more stuff * Remove use of deprecated methods. * Back out bug from "fixing" deprecated code. * Remove deprecated methods * fix: Improvements to Dockerfile Wormhole pyth_relay and spy_guardian (#10) Co-authored-by: Eran Davidovich <edavidovich@jumptrading.com> * Revert dockerfile * fix: fix Dockerfile entrypoint (#11) also modify docs to reflect the change. Co-authored-by: Eran Davidovich <edavidovich@jumptrading.com> * Batch messages into a single tx per block * Update the testnet parms in env.sample * Reduce lock contention in the worker * Adding already executed metric * Adding timeout metric * Peg already executed and timeout metrics * Handle "already executed" exception * Add wallet update time for metrics * Catch silent failure on relay * Log file not getting written if error on init * Add timestamp label to wallet metric * Add support for readiness probe * Make spy_relay support listen_only mode * Add default metrics * Manage seq num locally * Manage seq num locally * Oops! Didn't mean to commit "noEmit"! * Update docs * Delete app.js This file is not relevant to pyth_relay Co-authored-by: Paul Noel <panoel007@gmail.com> Co-authored-by: Eran Davidovich <erancx@users.noreply.github.com> Co-authored-by: Eran Davidovich <edavidovich@jumptrading.com> Co-authored-by: Paul Noel <35237584+panoel@users.noreply.github.com>
2022-02-09 06:01:45 -08:00
# DevNet:
SPY_SERVICE_HOST=0.0.0.0:7072
SPY_SERVICE_FILTERS=[{"chain_id":1,"emitter_address":"71f8dcb863d176e2c420ad6610cf687359612b6fb392e0642b0ca6b1f186aa3b"}]
TERRA_NODE_URL=http://localhost:1317
TERRA_PRIVATE_KEY=notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius
TERRA_PYTH_CONTRACT_ADDRESS=terra1wgh6adn8geywx0v78zs9azrqtqdegufuegnwep
TERRA_CHAIN_ID=columbus-5
TERRA_NAME=localterra
TERRA_COIN=uluna
# TestNet:
#SPY_SERVICE_HOST=0.0.0.0:7073
#SPY_SERVICE_FILTERS=[{"chain_id":1,"emitter_address":"3afda841c1f43dd7d546c8a581ba1f92a139f4133f9f6ab095558f6a359df5d4"}]
#TERRA_NODE_URL=https://bombay-lcd.terra.dev
#TERRA_PRIVATE_KEY=your key here
#TERRA_PYTH_CONTRACT_ADDRESS=terra1wjkzgcrg3a2jh2cyc5lekvtjydf600splmvdk4
#TERRA_CHAIN_ID=bombay-12
#TERRA_NAME=testnet
#TERRA_COIN=uluna
# MainNet:
#SPY_SERVICE_HOST=0.0.0.0:7074
#SPY_SERVICE_FILTERS=[{"chain_id":1,"emitter_address":"b2dd468c9b8c80b3dd9211e9e3fd6ee4d652eb5997b7c9020feae971c278ab07"}]
#TERRA_NODE_URL=https://lcd.terra.dev
#TERRA_PRIVATE_KEY=your key here
#TERRA_PYTH_CONTRACT_ADDRESS=fill_this_in
#TERRA_CHAIN_ID=columbus-5
#TERRA_NAME=mainnet
#TERRA_COIN=uluna
REST_PORT=4200
PROM_PORT=8081
BAL_QUERY_INTERVAL=60000
#READINESS_PORT=2000
RETRY_MAX_ATTEMPTS=4
RETRY_DELAY_IN_MS=250
MAX_MSGS_PER_BATCH=1
# The default is to log the console with level info.
LOG_DIR=/var/pyth_relay/logs
#LOG_LEVEL=debug