|
|
1 year ago | |
|---|---|---|
| .. | ||
| aptos | e08052c2c4 feat: set up turborepo | 1 year ago |
| cosmwasm | ed0f273dcb chore: switch to stable rust versions (#2093) | 1 year ago |
| ethereum | 5d806ad73a chore(pricefeed) Deploy Hemi and tabi (#2095) | 1 year ago |
| fuel | e08052c2c4 feat: set up turborepo | 1 year ago |
| near | 425a155d50 fix(target_chains/near): update dependencies and code to make tests work (#2100) | 1 year ago |
| solana | 7612ad8468 fix: cap solana version (#2066) | 1 year ago |
| starknet | e08052c2c4 feat: set up turborepo | 1 year ago |
| sui | e08052c2c4 feat: set up turborepo | 1 year ago |
| ton | de25f58dec fix(target_chains/ton): audit fixes (#2092) | 1 year ago |
| README.md | fc916c6496 fix: typos (#1347) | 1 year ago |
This directory includes all implementations of pyth contracts in different chains.
Each implementation includes:
Contracts deployed on other chains accept updates that are signed and published by wormhole. These updates are in one of the two categories:
These messages are generated in pythnet (pyth mainnet network) and pythtest (pyth testnet network) and submitted to the wormhole program that is published on these chains. Then the wormhole network signs these messages and produces a VAA that can be relayed and consumed in contracts on other blockchains.
A basic implementation of pyth on a target chain includes the following pieces of logic:
In terms of contract configuration the following states exist on all the implementations:
In the case that wormhole is not deployed on a new chain we want to deploy pyth on, we need to deploy wormhole too. The deployment process is chain dependent, but should be very similar to how pyth is deployed on the target chain. After the initial deployment, we need to make sure wormhole configuration is also on the latest version. This is done by running a set of fixed, known VAAs that update the wormhole configurations (guardians sets) on all chains.
A general upgrade process has the following steps, these steps can vary slightly based on the target chain nature:
Deploying a contract on a new chain consists of the following steps: