|
|
2 ani în urmă | |
|---|---|---|
| .. | ||
| aptos | ce86586744 Make aptos abi backward compatible (#999) | 2 ani în urmă |
| cosmwasm | 7674a3a07c [docs] More documentation on different packages (#992) | 2 ani în urmă |
| ethereum | 175dfef5bd Deploy to the latest shimmer testnet (#1001) | 2 ani în urmă |
| near | 8752291aa2 fix broken links (#945) | 2 ani în urmă |
| solana | 843a30c2c7 [solana] Add pre-commit for solana target chain contract (#753) | 2 ani în urmă |
| sui | a60a05f118 Merge branch 'main' into sui-scripts-cleanup | 2 ani în urmă |
| README.md | 7674a3a07c [docs] More documentation on different packages (#992) | 2 ani în urmă |
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 exists 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 dependant, 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: