Mirroring https://github.com/pyth-network/pyth-crosschain
|
|
преди 2 години | |
|---|---|---|
| .github | d95c9247a2 [cosmwasm] Release setup (#594) | преди 2 години |
| governance | a7d6259aab Delete publishers before adding | преди 2 години |
| price_service | 3e9472b8ef [price service] Return VAA without prepending publish time (#577) | преди 2 години |
| scripts | 0df243ba9e [eth] Add benchmark tests (#368) | преди 3 години |
| target_chains | 16caff1b04 [solana] Start to implement the solana receiver contract (#557) | преди 2 години |
| third_party | 3f7cffd5b2 [price-service/client] Add e2 test (#559) | преди 2 години |
| tilt_devnet | 7f991bbdbc [cosmwasm] pyth-sdk-cw (#575) | преди 2 години |
| tilt_modules | d6e25d9209 Add pre-commit globally (#393) | преди 3 години |
| wormhole_attester | 2a906b6d90 [wormhole-attester/sdk/js] Fix Status Enum case (#598) | преди 2 години |
| .dockerignore | 78cd4ee437 pyth2wormhole: build + deploy program into local devnet | преди 4 години |
| .gitignore | 4c5d0d5e1b [refactor] Add global lerna (#546) | преди 2 години |
| .pre-commit-config.yaml | 70fd0a6c15 [wormhole-attester] Move p2w-sdk inside wormhole_attester directory (#534) | преди 2 години |
| CONTRIBUTING.md | d6e25d9209 Add pre-commit globally (#393) | преди 3 години |
| DEVELOP.md | d6e25d9209 Add pre-commit globally (#393) | преди 3 години |
| LICENSE | fedb92e446 Remove unused components/projects (#481) | преди 2 години |
| README.md | 084acdb57e [refactor] Convert hyphen to underscore in the directory tree (#524) | преди 2 години |
| SECURITY.md | 91533aa02d update links (#554) | преди 2 години |
| Tiltfile | 3f7cffd5b2 [price-service/client] Add e2 test (#559) | преди 2 години |
| lerna.json | 4c5d0d5e1b [refactor] Add global lerna (#546) | преди 2 години |
| package-lock.json | b2cae745c8 [xc-admin] improve UI/UX of xc-admin-frontend (#605) | преди 2 години |
| package.json | 56e5ed8c1d [prettier] Prettier sync (#562) | преди 2 години |
| rustfmt.toml | becc216853 Abehjati/repo-improvement (#395) | преди 3 години |
| tsconfig.base.json | 481c61bc2c [refactor] Improve typescript codebase (#553) | преди 2 години |
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
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/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
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.
⚠ 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.