|
|
1 сар өмнө | |
|---|---|---|
| .. | ||
| aptos | d87c246a73 fix: aptos imports | 5 сар өмнө |
| cosmwasm | 394d010d93 chore(fortuna) Config API (#2895) | 3 сар өмнө |
| ethereum | f6df66df8e fix(entropy): Only mark callbacks as failed if enough gas was provided, regardless of revert code (#3106) | 1 сар өмнө |
| fuel | 9f26ac575d fixed test | 3 сар өмнө |
| near | 71d6a89aea chore: Rust toolchain/CI update and workspace setup (#2830) | 4 сар өмнө |
| solana | b57e6a27ff fix(pyth-solana-receiver-sdk): remove lint reason (#3048) | 2 сар өмнө |
| starknet | 07835ec8ae chore: remove deprecated BlastAPI endpoints (#3025) | 2 сар өмнө |
| stylus | 314c44733a Merge pull request #2929 from pyth-network/correcting-fee-calc-order | 3 сар өмнө |
| sui | 29b964468e feat: Support Sui Price Update with Coin Input (#2861) | 4 сар өмнө |
| ton | 5e14d51ad3 fix: handle remaining data in read_and_store_large_data when size > input | 3 сар өмнө |
| README.md | fc916c6496 fix: typos (#1347) | 1 жил өмнө |
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: