|
|
9 mesiacov pred | |
|---|---|---|
| .. | ||
| aptos | ec30791a10 fix(aptos) Remove Aptos examples from monorepo (#2368) | 9 mesiacov pred |
| cosmwasm | 0a0257e2fe fix(rust): update cargo.lock files after pythnet sdk release (#2111) | 1 rok pred |
| ethereum | 8a8cb1b75f chore(api-reference)-add-berachain (#2345) | 9 mesiacov pred |
| fuel | b11de81c9f fix(target_chains/fuel): run format after generating type files (#2268) | 10 mesiacov pred |
| near | 3b47367b37 chore(target_chains/near): build with --locked in test (#2365) | 9 mesiacov pred |
| solana | c716a93a41 fix(pyth-solana-receiver): improve perf and security (#2222) | 10 mesiacov pred |
| starknet | e08052c2c4 feat: set up turborepo | 1 rok pred |
| sui | 971036385f fix: update Rust version to 1.77.0 for Sui contracts | 9 mesiacov pred |
| ton | 8b3fd2c537 persist code hash reset (#2212) | 11 mesiacov pred |
| README.md | fc916c6496 fix: typos (#1347) | 1 rok pred |
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: