Go to file
Stanisław Drozd f69a91d97c
Add the Squads Mesh program to Tilt and initialize a Vault for it (#421)
* solana-devnet: Deploy a copy of the Mesh multisig program

* solana/keys: Add keys for multisig testing

* *.py: Remove airdrop, use devnet_setup.sh keypair instead

* Dockerfile.p2w-attest: Improve caching

- Move cheap Python script additions after the expensive rust build
- Cache Cargo's package cache to shorten the "updating crates.io registry" build steps

* Add a multisig Tilt resource, k8s yaml and runtime script

This contains most of the work on Tilt/testing harness side.

* multisig-wh-message-builder: Add init-vault subcommand

This new subcommand enables the runtime Python script to create a
multisig vault on the fly on the mock Solana devnet.

* multisig-wh-message-builder: findProgramAddress -> getMsPDA

* mutlisig-wh-message-builder: apply review advice

- Use default mesh program address
- remove unused program.json
- remove redundant null checks
- hardcode vault address (it is deterministic against the constant
mesh program pubkey)
- Start depending on solana-devnet in Tilt
- Add carol to vault and set threshold to 2
2022-12-13 14:05:06 +01:00
.github Update remove executor job name to test (#399) 2022-11-25 18:02:24 +01:00
aptos Initial `pyth aptos` CLI (#410) 2022-12-12 14:06:26 +00:00
cosmwasm Fix formatting for new nightly rust (#415) 2022-12-05 10:02:58 -08:00
devnet Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
ethereum [eth] Add new networks and their configurations (#418) 2022-12-08 18:14:18 +01:00
pythnet/remote-executor Fix formatting for new nightly rust (#415) 2022-12-05 10:02:58 -08:00
scripts [eth] Add benchmark tests (#368) 2022-11-02 10:59:39 +01:00
solana Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
third_party Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
tilt_modules Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
xc-tool xc-tool: Initial commit (#366) 2022-11-02 13:38:00 +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 Add clippy to all rust projects (#400) 2022-11-28 18:22:48 +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
Dockerfile.client Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
Dockerfile.cosmwasm Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
Dockerfile.ethereum Cascade Pyth SDK JS update to downstream packages (#326) 2022-10-06 09:21:04 +02:00
Dockerfile.multisig Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
Dockerfile.prometheus drozdziak1/pyth attester prometheus metrics (#396) 2022-11-25 16:35:32 +01:00
Dockerfile.solana Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
Dockerfile.wasm Start depending on the upstream out-of-tree Wormhole (#258) 2022-08-29 16:18:41 +02:00
LICENSE staging/algorand: apply global Apache 2 license 2022-02-05 09:30:28 -05:00
README.md Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
SECURITY.md Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00
Tiltfile Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
generate-abi.sh node: rename bridge/ to node/ 2021-08-26 11:36:36 +02:00
prometheus_config.yaml [price-service] Fine-tune metrics (#401) 2022-12-01 18:37:02 +01:00
rustfmt.toml Abehjati/repo-improvement (#395) 2022-11-25 11:16:58 +01:00

README.md

Pyth2Wormhole

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:

Pyth2Wormhole Solana

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.

Pyth2Wormhole Ethereum

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.

Pyth2Wormhole Price Service

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.

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.