Go to file
Ali Behjati 58f3ddcb13
[price-service] Improve and update tests (#521)
* Update/improve existing tests
* Add test for VaaCache + a little refactor
* Add tests for get_vaa endpoint
* Add tests to tilt
2023-01-24 10:40:24 +01:00
.github/workflows [governance] move governance related components under this directory (#489) 2023-01-13 18:58:44 +01:00
governance [xc-admin] CLI command to upgrade solana programs (#522) 2023-01-23 15:25:28 -06:00
price-service [price-service] Improve and update tests (#521) 2023-01-24 10:40:24 +01:00
scripts [eth] Add benchmark tests (#368) 2022-11-02 10:59:39 +01:00
target-chains [cosmwasm] add readme to pyth cosmwasm (#520) 2023-01-23 23:00:32 +05:30
third_party/pyth wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
tilt-devnet [price-service] Improve and update tests (#521) 2023-01-24 10:40:24 +01:00
tilt_modules Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
wormhole-attester wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
.dockerignore pyth2wormhole: build + deploy program into local devnet 2021-09-09 14:39:31 +02:00
.gitignore Pyth Aptos Target Chain Contract (#291) 2022-10-04 14:59:34 +01:00
.pre-commit-config.yaml [governance] move governance related components under this directory (#489) 2023-01-13 18:58:44 +01:00
CONTRIBUTING.md Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
DEVELOP.md Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
LICENSE Remove unused components/projects (#481) 2023-01-12 13:52:43 +01:00
README.md [price-service] Move to top (#474) 2023-01-13 16:26:43 +01:00
SECURITY.md updating security.md (#517) 2023-01-20 17:12:09 +00:00
Tiltfile [price-service] Move to top (#474) 2023-01-13 16:26:43 +01:00
package-lock.json [xc-admin] add feature to send proposal to update permissions (#498) 2023-01-22 23:26:53 +09:00
rustfmt.toml Abehjati/repo-improvement (#395) 2022-11-25 11:16:58 +01:00

README.md

Pyth Crosschain

This repository acts as a monorepo for the various components that make up Pyth Crosschain. 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:

Wormhole Attester

wormhole-attester

The main Pyth implementation currently exists as an on-chain contract on Solana. In order to expose these prices cross-chain, the Wormhole Attester 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 receiver contracts.

Target Chains

Ethereum

target-chains/ethereum/contracts/pyth

The Ethereum contract acts as a receiver for Pyth prices relayed from the Wormhole Attester. 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-sdk-solidity which contains documented examples.

Price Service

price-service

The 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.

Audit / Feature Status

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.

Development

Releases

We use Semantic Versioning for our releases.

pre-commit hooks

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.