pyth-crosschain/third_party/pyth/p2w-relay
Ali Behjati b4c8f2e470
Refactor our CW contract + cleanups (#262)
* Use the cw sdk

* Fix clippy warnings

* Use Addr instead of String

* Format the code (cargo +nightly fmt)

* Depend on wormhole git instead of local dependency

* Add error enum

* refactor

* Refactor errors

* certusone->wormhole-foundation rename

It will fix some compile problems

* Build wormhole contract from their repo

* remove wormhole package

* Remove memmap2 patch

It was not needed anymore with the newer
verison of solana (wormhole removed it too)

* Rename pyth-bridge to pyth-cosmwasm
2022-09-02 12:39:51 +02:00
..
src Abehjati/pyth-evm-contract-fire-event (#229) 2022-06-27 17:41:55 +02:00
.dockerignore Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
.env.sample Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
.gitignore Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
Design.md Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
Dockerfile.pyth_relay Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
README.md Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
package-lock.json Abehjati/use-cw-1-for-contracts (#240) 2022-07-20 16:35:01 +02:00
package.json Abehjati/use-cw-1-for-contracts (#240) 2022-07-20 16:35:01 +02:00
tsconfig.json Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00

README.md

Setup Spy Guardian and Pyth Relay

To build the spy_guardian docker container:

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

To build the pyth_relay docker container:

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

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/wormhole-foundation/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_relay docker container using a config file called {HOME}/pyth_relay/env and logging to directory {HOME}/pyth_relay/logs, do the following:

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