Go to file
Dev Kalra 89139850b4
remove dependency from price config (#638)
2023-02-28 15:44:57 +05:30
.github/workflows Update Tiltfile for CI (#623) 2023-02-24 22:03:22 +00:00
governance [sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
price_pusher remove dependency from price config (#638) 2023-02-28 15:44:57 +05:30
price_service [sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
scripts [eth] Add benchmark tests (#368) 2022-11-02 10:59:39 +01:00
target_chains [sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
third_party/pyth attester: Add an on-chain last attestation timestamp and rate limit arg (#622) 2023-02-24 15:03:57 +01:00
tilt_devnet [doc] README updates (#637) 2023-02-28 09:19:45 +01:00
tilt_modules Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
wormhole_attester attester: Add an on-chain last attestation timestamp and rate limit arg (#622) 2023-02-24 15:03:57 +01:00
.dockerignore pyth2wormhole: build + deploy program into local devnet 2021-09-09 14:39:31 +02:00
.gitignore [sdk] Move JS sdks into this repo (#611) 2023-02-22 13:44:42 -08:00
.pre-commit-config.yaml [wormhole-attester] Move p2w-sdk inside wormhole_attester directory (#534) 2023-01-25 18:14:02 +01:00
LICENSE Remove unused components/projects (#481) 2023-01-12 13:52:43 +01:00
README.md [doc] README updates (#637) 2023-02-28 09:19:45 +01:00
SECURITY.md updatinbg SECURITY.md (#628) 2023-02-24 14:33:45 +00:00
Tiltfile Update Tiltfile for CI (#623) 2023-02-24 22:03:22 +00:00
lerna.json [refactor] Add global lerna (#546) 2023-01-31 17:09:31 +01:00
package-lock.json [price-pusher] refactor index page (#636) 2023-02-28 15:07:38 +05:30
package.json [sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
rustfmt.toml Abehjati/repo-improvement (#395) 2022-11-25 11:16:58 +01:00
tsconfig.base.json [refactor] Improve typescript codebase (#553) 2023-02-01 11:26:23 -06:00

README.md

Pyth Crosschain

This repository acts as a monorepo for the various components that make up Pyth Crosschain.

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 Pythnet, a separate instance of the Solana blockchain. 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

target_chains

This directory contains on-chain contracts and SDKs for all of the various blockchain runtimes that Pyth supports. Each subdirectory corresponds to a blockchain runtime. Inside each subdirectory, there are subfolders for contracts, SDKs, and 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 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.

The client subdirectory provides an SDK for interacting with the price service. However, most users will interact with the price service via a chain-specific SDK

For a guide on utilising this service in your project, see the chain-specific SDK and examples for your blockchain runtime in the target_chains directory.

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.

Tilt CI

Integration tests run in Tilt (via the tilt ci command). The Tilt CI workflow requires approval from a member of the Pyth team. If you are a member, click on "Details" next to the "Workflow / ci-pyth-crosschain" check in a pull request, and then on the "Resume" button on the workflow page.

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.