Go to file
guibescos a19cd93cd3
Update example to use APT pricefeed (#365)
* Update example

* Update address of example contract
2022-10-28 09:31:09 -05:00
.github Run remote exec CI only if it's changed (#352) 2022-10-18 11:33:34 -05:00
aptos Update example to use APT pricefeed (#365) 2022-10-28 09:31:09 -05:00
cosmwasm Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
devnet Abehjati/eth-update-interface (#301) 2022-09-23 19:19:02 +02:00
ethereum Add deployment files of optimism goerli + fix bugs (#364) 2022-10-27 20:01:14 +02:00
pythnet/remote-executor Fix program account not being passed to CPI (#316) 2022-09-29 12:49:48 -05:00
scripts Add foundry base (#362) 2022-10-25 17:49:24 +02:00
solana Drozdziak1/p2w attest cont mapping reload (#330) 2022-10-24 17:19:25 +02:00
third_party Add verify command for wormhole msg (#363) 2022-10-27 10:02:38 +02:00
tilt_modules
.dockerignore pyth2wormhole: build + deploy program into local devnet 2021-09-09 14:39:31 +02:00
.gitignore Pyth Aptos Target Chain Contract (#291) 2022-10-04 14:59:34 +01:00
.pre-commit-config.yaml Guibescos/executor cli (#309) 2022-09-28 10:55:11 -05:00
CONTRIBUTING.md Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
DEVELOP.md P2W Focused README/DEVELOP.md (#220) 2022-05-23 08:48:34 +02:00
Dockerfile.client Dockerfile.client, Dockerfile.solana: harden caching to cut CI time (#332) 2022-10-20 12:33:18 +02:00
Dockerfile.cosmwasm Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
Dockerfile.ethereum Cascade Pyth SDK JS update to downstream packages (#326) 2022-10-06 09:21:04 +02:00
Dockerfile.solana Dockerfile.client, Dockerfile.solana: harden caching to cut CI time (#332) 2022-10-20 12:33:18 +02:00
Dockerfile.wasm Start depending on the upstream out-of-tree Wormhole (#258) 2022-08-29 16:18:41 +02:00
LICENSE staging/algorand: apply global Apache 2 license 2022-02-05 09:30:28 -05:00
README.md Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
SECURITY.md Add bug bounty and audits (#233) 2022-07-12 18:02:47 -04:00
Tiltfile Start all pyth tilt pods by default (#339) 2022-10-11 14:15:34 +01:00
generate-abi.sh

README.md

Pyth2Wormhole

This repository acts as a monorepo for the various components that make up Pyth2Wormhole. The base repository is a fork from Certus One's reference Wormhole implementation in order to take advantage of the existing tooling for building projects based on Wormhole's various SDKs. Much of the existing documentation from there will also apply to this repository.

Within this monorepo you will find the following subprojects:

Pyth2Wormhole Solana

solana/pyth2wormhole

The main Pyth implementation currently exists as an on-chain contract on Solana. In order to expose these prices cross-chain, the Pyth2Wormhole Solana contract acts as a sender for Pyth prices. At regular intervals the Pyth contract will observe the current Pyth price for selected products, and produce an attestation which is then relayed over Wormhole to be consumed by the various P2W receiver contracts.

Pyth2Wormhole Ethereum

ethereum/contracts/pyth

The Ethereum P2W contract acts as a receiver for Pyth prices relayed from the P2W Solana contract. It also provides a public API for other Ethereum contracts that can be used to consume Pyth prices. For a guide on using this API to consume Pyth price feeds see pyth-evm-sdk which contains documented examples.

Pyth2Wormhole Price Service

third_party/pyth

The P2W Price Service is an off-chain service which constantly observes the Wormhole network watching for price attestations emitted from the Pyth Solana contract. It exposes all observed attestations via a public API over HTTPS/WSS which can be consumed by client-side applications that wish to use Pyth pricing data.

For a guide on utilising this service in your project, see the documentation in the pyth-js repository.


See DEVELOP.md for instructions on how to set up a local devnet, and CONTRIBUTING.md for instructions on how to contribute to this project.

Audit / Feature Status

This software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Or plainly spoken - this is a very complex piece of software which targets a bleeding-edge, experimental smart contract runtime. Mistakes happen, and no matter how hard you try and whether you pay someone to audit it, it may eat your tokens, set your printer on fire or startle your cat. Cryptocurrencies are a high-risk investment, no matter how fancy.