|
|
1 year ago | |
|---|---|---|
| .. | ||
| aptos | 3f07c27243 chore(aptos): bump to 3.1.0 toolchain/cli (#1543) | 1 year ago |
| cosmwasm | 8ba451adb3 refactor(governance/xc_admin): rename package names to be consistent (#1606) | 1 year ago |
| ethereum | 90740e4bb8 fix(entropy): Small fixes in the contract manager script + contract version bump (#1637) | 1 year ago |
| fuel | f899a34206 test(target_chains/fuel): add invalid merkle proof update data test (#1639) | 1 year ago |
| near | b672613273 feat(target_chains/near): added batch price fetching functions (#1578) | 1 year ago |
| solana | 6535e7fe61 feat(solana): enable using address lookup tables (#1629) | 1 year ago |
| starknet | 0763cb050f refactor(target_chains/starknet): add common deploy utils for tests (#1642) | 1 year ago |
| sui | 7f55825a63 fix(target_chains/sui): use deployed pyth address in toml files (#1628) | 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: