pyth-crosschain/third_party/pyth/p2w-relay
Stanisław Drozd 01c4661985
Repo structure refactor (#449)
* Repo structure refactor

This change introduces major codebase layout changes in three areas:
* Tilt devnet lives in tilt-devnet/ - all k8s and docker files,
scripts, local testing private keys are moved to this directory.
* pyth2wormhole becomes pyth-wormhole-attester and is relocated to
wormhole-attester/ - This long-needed rename will hopefully eradicate
most of the confusing naming around the attester. The Rust client binary
becomes pyth-wormhole-attester-client.
* Target-chain code lives in target-chain/ - This leaves just the
attester, third_party and pythnet-specific things at top-level.

Other opportunistic changes:
* Fixed rebuild trigger for Dockerfile.wasm

These items are a fraction of the necessary structure changes in the repo.

* cosmwasm: fix contract after faulty merge

* .github: remove unused dependabot config

* Fix path references in .github and .pre-commit-config.yml

* .github: Rename attester references to pyth-wormhole-attester

* .pre-commit-config.yaml: fix paths and run all commit hooks

* p2w-relay: Fix faulty merge resolution in favor of origin/main

* Dockerfile.pyth_relay: Fix Ethereum path reference

* Dockerfile.solana: Trip early cache with arbitrary change

* Dockerfile.pyth_relay: typo

* p2w-relay: fix evm build in npm script

* Dockerfile.solana: Retry invalidating cache again

* near -> target-chains/near

* wormhole-attester: bump on/off-chain major versions due to rename

Attester packages were renamed. This possibly breaks most dependees.

* Dockerfile.solana: Improve decoy-crate to have a real lib target

* .github/[...]/pyth-cosmwasm-contract.yml: typo

* rust-toolchain: Bump rust to stable 1.63

* rust-toolchain: use christmas nightly

* empty commit to trigger build

* attester-image-push.yaml: keep xc-attest image name intact

* multisig-wh-message-builder: remove accidental revert
2023-01-04 14:46:42 +01:00
..
src [cosmos] Misc code cleanup (#446) 2022-12-29 07:01:19 -08:00
.dockerignore Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
.env.sample Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
.gitignore Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
Design.md Merge Dev.v2 into main (#181) 2022-04-11 18:15:20 +02:00
Dockerfile.pyth_relay Repo structure refactor (#449) 2023-01-04 14:46:42 +01:00
README.md Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
package-lock.json Add query methods to cosmwasm contract (#441) 2022-12-27 09:59:48 -08:00
package.json Repo structure refactor (#449) 2023-01-04 14:46:42 +01: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