|
|
4 týždňov pred | |
|---|---|---|
| .. | ||
| aptos | dd5d509c49 fix(pyth-aptos-js): fixed build | 4 týždňov pred |
| cosmwasm | fd43201cb5 feat!: migrated everything using ts-node to tsx | 1 mesiac pred |
| ethereum | 66fa8077db fix: fixed a number of builds and tried to address some typing issues as best we can | 4 týždňov pred |
| fuel | 52ccacca87 chore(price-pusher): removed unused param | 4 týždňov pred |
| near | 71d6a89aea chore: Rust toolchain/CI update and workspace setup (#2830) | 4 mesiacov pred |
| solana | 9fe156ae4a fix(pyth-solana-receiver): fixed build | 4 týždňov pred |
| starknet | 3f7af8e4e4 fix(build-ts-package): fixed the typings mapping generated | 4 týždňov pred |
| stylus | 314c44733a Merge pull request #2929 from pyth-network/correcting-fee-calc-order | 3 mesiacov pred |
| sui | 66fa8077db fix: fixed a number of builds and tried to address some typing issues as best we can | 4 týždňov pred |
| ton | 3f7af8e4e4 fix(build-ts-package): fixed the typings mapping generated | 4 týždňov 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: