|
|
4 months ago | |
|---|---|---|
| .. | ||
| aptos | d87c246a73 fix: aptos imports | 5 months ago |
| cosmwasm | ecd23ff30b fix: update imports to use @pythnetwork/contract-manager instead of relative imports | 5 months ago |
| ethereum | 91def8f6b5 fix(transaction-filler): create dynamic mock trace for realistic price feed detection | 4 months ago |
| fuel | 86d45027fe adjusted types/node to pull from global setting through catalog setting | 5 months ago |
| near | 139d813e67 revert cargo locks | 7 months ago |
| solana | 20df3a347d feat: support multiple JITO endpoints with round-robin retry (#2664) | 5 months ago |
| starknet | ef3a901822 feat(target_chains/starknet): scarb & snforge upgrade (#2570) | 7 months ago |
| sui | ecd23ff30b fix: update imports to use @pythnetwork/contract-manager instead of relative imports | 5 months ago |
| ton | b48ce6b998 feat(tests): add USDT price feed verification in PythTest | 7 months 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: