Mirroring https://github.com/pyth-network/pyth-crosschain
|
|
há 2 anos atrás | |
|---|---|---|
| .github | 895f053e00 Update remove executor job name to test (#399) | há 3 anos atrás |
| aptos | 92bb656f93 Initial `pyth aptos` CLI (#410) | há 2 anos atrás |
| cosmwasm | 344f06db0a cleanup some stuff | há 2 anos atrás |
| devnet | d517f11af0 [wormhole-attester] Add a healthcheck on the metrics port (#429) | há 2 anos atrás |
| ethereum | 04d8a468ac [eth] Improve docs and repo (#438) | há 2 anos atrás |
| pythnet | 15708d552d Fix formatting for new nightly rust (#415) | há 3 anos atrás |
| scripts | 0df243ba9e [eth] Add benchmark tests (#368) | há 3 anos atrás |
| solana | afd4a8be91 wormhole-attester: Add a histogram metric for tx processing duration (#434) | há 2 anos atrás |
| third_party | 344f06db0a cleanup some stuff | há 2 anos atrás |
| tilt_modules | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| xc-tool | 2c542f9aa6 xc-tool: Initial commit (#366) | há 3 anos atrás |
| .dockerignore | 78cd4ee437 pyth2wormhole: build + deploy program into local devnet | há 4 anos atrás |
| .gitignore | 51080bcf5f Pyth Aptos Target Chain Contract (#291) | há 3 anos atrás |
| .pre-commit-config.yaml | 51514dcd9b Add clippy to all rust projects (#400) | há 3 anos atrás |
| CONTRIBUTING.md | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| DEVELOP.md | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| Dockerfile.client | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| Dockerfile.cosmwasm | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| Dockerfile.ethereum | d7f436a856 Cascade Pyth SDK JS update to downstream packages (#326) | há 3 anos atrás |
| Dockerfile.multisig | f69a91d97c Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) | há 2 anos atrás |
| Dockerfile.prometheus | bbe35df8cf drozdziak1/pyth attester prometheus metrics (#396) | há 3 anos atrás |
| Dockerfile.solana | f69a91d97c Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) | há 2 anos atrás |
| Dockerfile.wasm | a2a0f6e15b Start depending on the upstream out-of-tree Wormhole (#258) | há 3 anos atrás |
| LICENSE | 3c20a0493b staging/algorand: apply global Apache 2 license | há 3 anos atrás |
| README.md | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| SECURITY.md | d6e25d9209 Add pre-commit globally (#393) | há 3 anos atrás |
| Tiltfile | f69a91d97c Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) | há 2 anos atrás |
| generate-abi.sh | e98463cfe3 node: rename bridge/ to node/ | há 4 anos atrás |
| prometheus_config.yaml | 27f9f75b79 [price-service] Fine-tune metrics (#401) | há 3 anos atrás |
| rustfmt.toml | becc216853 Abehjati/repo-improvement (#395) | há 3 anos atrás |
This repository acts as a monorepo for the various components that make up Pyth2Wormhole. The base repository is a fork from Certus One's reference Wormhole implementation in order to take advantage of the existing tooling for building projects based on Wormhole's various SDKs. Much of the existing documentation from there will also apply to this repository.
Within this monorepo you will find the following subprojects:
solana/pyth2wormhole
The main Pyth implementation currently exists as an on-chain contract on Solana. In order to expose these prices cross-chain, the Pyth2Wormhole Solana contract acts as a sender for Pyth prices. At regular intervals the Pyth contract will observe the current Pyth price for selected products, and produce an attestation which is then relayed over Wormhole to be consumed by the various P2W receiver contracts.
ethereum/contracts/pyth
The Ethereum P2W contract acts as a receiver for Pyth prices relayed from the P2W Solana contract. It also provides a public API for other Ethereum contracts that can be used to consume Pyth prices. For a guide on using this API to consume Pyth price feeds see pyth-evm-sdk which contains documented examples.
third_party/pyth
The P2W Price Service is an off-chain service which constantly observes the Wormhole network watching for price attestations emitted from the Pyth Solana contract. It exposes all observed attestations via a public API over HTTPS/WSS which can be consumed by client-side applications that wish to use Pyth pricing data.
For a guide on utilising this service in your project, see the documentation in the pyth-js repository.
See DEVELOP.md for instructions on how to set up a local devnet, and CONTRIBUTING.md for instructions on how to contribute to this project.
⚠ This software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Or plainly spoken - this is a very complex piece of software which targets a bleeding-edge, experimental smart contract runtime. Mistakes happen, and no matter how hard you try and whether you pay someone to audit it, it may eat your tokens, set your printer on fire or startle your cat. Cryptocurrencies are a high-risk investment, no matter how fancy.
We use Semantic Versioning for our releases.
pre-commit is a tool that checks and fixes simple issues (formatting, ...) before each commit. You can install it by following their website. In order to enable checks for this repo run pre-commit install from command-line in the root of this repo.
The checks are also performed in the CI to ensure the code follows consistent formatting.