pyth-crosschain/third_party/pyth/price-service
Ali Behjati cabb5e08f5
Remove unneeded logging (#211)
2022-05-16 17:00:24 +02:00
..
src Remove unneeded logging (#211) 2022-05-16 17:00:24 +02:00
.dockerignore Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
.env.sample Add readiness to Pyth Price Service (#183) 2022-04-13 10:28:30 +02:00
.gitignore Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
Dockerfile.price_service fix: minor fixes to wasm and price dockerfiles (#197) 2022-05-03 13:41:36 +03:00
Dockerfile.spy_guardian Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
README.md Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
jest.config.js Refactor Price Service + Add tests (#202) 2022-05-06 12:27:59 +02:00
package-lock.json Refactor Price Service + Add tests (#202) 2022-05-06 12:27:59 +02:00
package.json Refactor Price Service + Add tests (#202) 2022-05-06 12:27:59 +02:00
tsconfig.json Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00

README.md

Pyth Price Service

This service exposes a REST api to provide latest attestation message for a price feed id.

Build

To build the spy_guardian docker container:

$ docker build -f Dockerfile.spy_guardian -t spy_guardian .

To build the pyth_price_service docker container:

$ docker build -f Dockerfile.pyth_price_service -t pyth_price_service .

Run the spy_guardian docker container in TestNet:

$ docker run --platform linux/amd64 -d --network=host spy_guardian \
--bootstrap /dns4/wormhole-testnet-v2-bootstrap.certus.one/udp/8999/quic/p2p/12D3KooWBY9ty9CXLBXGQzMuqkziLntsVcyz4pk1zWaJRvJn6Mmt \
--network /wormhole/testnet/2/1 \
--spyRPC "[::]:7073"

Or run the spy_guardian docker container in MainNet: For the MainNet gossip network parameters, see https://github.com/certusone/wormhole-networks/blob/master/mainnetv2/info.md

$ docker run --platform linux/amd64 -d --network=host spy_guardian \
--bootstrap <guardianNetworkBootstrapParameterForMainNet> \
--network <guardianNetworkPathForMainNet> \
--spyRPC "[::]:7073"

Then to run the pyth_price_service docker container using a config file called {HOME}/pyth_price_service/env and logging to directory {HOME}/pyth_price_service/logs, do the following:

$ docker run \
--volume=${HOME}/pyth_price_service:/var/pyth_price_service \
-e pyth_price_service_CONFIG=/var/pyth_price_service/env \
--network=host \
-d \
pyth_price_service