You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A working version of solana receiver
* Cleanup
* Minor
* Commit for triggering tilt
* Add program key starting with pyth
* Remove duplicated hard-coded wormhole address
* Add check for VAA magic number and emmitter is Pythnet or Solana
* Cleaner command for building the cli package
* Fix bug and use BatchPriceAttestation for deserialization
* minor
# Solana program for receiving price VAA from Pythnet
2
2
3
-
To compile the cli, run `make ccli`.
3
+
The program under `cli` receives a VAA string from the shell, verifies the VAA with wormhole, posts the VAA on solana and then invokes the receiver program under `programs`.
4
+
The receiver program verifies that the VAA comes from wormhole (through the `owner` function in `state.rs`) and deserializes the price information (in `decode_posted_vaa` function of `lib.rs`).
4
5
5
-
To test post_vaa of the cli, run `make post_vaa`.
6
+
```shell
7
+
# Generate the program key
8
+
# and use the key to replace the following two places
9
+
# "pyth_solana_receiver" in Anchor.toml
10
+
# "declare_id!()" in programs/solana-receiver/src/lib.rs
0 commit comments