Skip to content

Commit

Permalink
feat(pyth-price-store): add readme (#2000)
Browse files Browse the repository at this point in the history
* feat(pyth-price-store): add readme

* Update target_chains/solana/programs/pyth-price-store/README.md

Co-authored-by: Pavel Strakhov <[email protected]>

---------

Co-authored-by: Pavel Strakhov <[email protected]>
  • Loading branch information
ali-bahjati and Riateche authored Oct 7, 2024
1 parent 8ebdcf2 commit 4dfb294
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions target_chains/solana/programs/pyth-price-store/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Pyth Price Store

This program is designed to store Publisher's prices in a specific buffer per each publisher. Later, the prices from each publisher are retrieved in the
Pythnet validator to calculate the aggregate price.

## Build

To build the program in a verifiable way, use [Solana Verify CLI](https://github.com/Ellipsis-Labs/solana-verifiable-build). This tool builds the program in
a docker container to ensure that the resulting binary is deterministic and verifiable. Run the following command to build the program:

```bash
solana-verify build -- --features solana-program
```

Once the build is complete, the program binary will be located in the `target/deploy` directory.

## Test

Run `cargo test` to run the tests.

0 comments on commit 4dfb294

Please sign in to comment.