Mirroring https://github.com/pyth-network/pyth-crosschain
|
|
3 năm trước cách đây | |
|---|---|---|
| .github | e4160b2f08 Run remote exec CI only if it's changed (#352) | 3 năm trước cách đây |
| aptos | 1a5b31f41a test: use proper aptos addresses for tests (#384) | 3 năm trước cách đây |
| cosmwasm | b4c8f2e470 Refactor our CW contract + cleanups (#262) | 3 năm trước cách đây |
| devnet | 9a285cf799 Abehjati/eth-update-interface (#301) | 3 năm trước cách đây |
| ethereum | 010e24b33d Fix contract for goerli network | 3 năm trước cách đây |
| pythnet | 57bdb092f5 Fix program account not being passed to CPI (#316) | 3 năm trước cách đây |
| scripts | 0df243ba9e [eth] Add benchmark tests (#368) | 3 năm trước cách đây |
| solana | 3eb2beabe7 Drozdziak1/p2w attest cont mapping reload (#330) | 3 năm trước cách đây |
| third_party | 61b84c84ac [test-publisher]: Set cap on dyn added symbols (#371) | 3 năm trước cách đây |
| tilt_modules | 9e16baa040 Devnet arguments for BigTable connection. | 4 năm trước cách đây |
| xc-tool | 2c542f9aa6 xc-tool: Initial commit (#366) | 3 năm trước cách đây |
| .dockerignore | 78cd4ee437 pyth2wormhole: build + deploy program into local devnet | 4 năm trước cách đây |
| .gitignore | 51080bcf5f Pyth Aptos Target Chain Contract (#291) | 3 năm trước cách đây |
| .pre-commit-config.yaml | 5214d185e8 Guibescos/executor cli (#309) | 3 năm trước cách đây |
| CONTRIBUTING.md | b4c8f2e470 Refactor our CW contract + cleanups (#262) | 3 năm trước cách đây |
| DEVELOP.md | 2eb0ed7d12 P2W Focused README/DEVELOP.md (#220) | 3 năm trước cách đây |
| Dockerfile.client | 0a8db01c10 Dockerfile.client, Dockerfile.solana: harden caching to cut CI time (#332) | 3 năm trước cách đây |
| Dockerfile.cosmwasm | b4c8f2e470 Refactor our CW contract + cleanups (#262) | 3 năm trước cách đây |
| Dockerfile.ethereum | d7f436a856 Cascade Pyth SDK JS update to downstream packages (#326) | 3 năm trước cách đây |
| Dockerfile.solana | 0a8db01c10 Dockerfile.client, Dockerfile.solana: harden caching to cut CI time (#332) | 3 năm trước cách đây |
| Dockerfile.wasm | a2a0f6e15b Start depending on the upstream out-of-tree Wormhole (#258) | 3 năm trước cách đây |
| LICENSE | 3c20a0493b staging/algorand: apply global Apache 2 license | 3 năm trước cách đây |
| README.md | b4c8f2e470 Refactor our CW contract + cleanups (#262) | 3 năm trước cách đây |
| SECURITY.md | 3b80bda833 updating security.md (#385) | 3 năm trước cách đây |
| Tiltfile | dec51832bf Start all pyth tilt pods by default (#339) | 3 năm trước cách đây |
| generate-abi.sh | e98463cfe3 node: rename bridge/ to node/ | 4 năm trước cách đây |
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:
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.
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.
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.
⚠ 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.