From 4dfb294dbb457067092cb4536a1f908799d54ff9 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Mon, 7 Oct 2024 14:37:27 +0200 Subject: [PATCH] feat(pyth-price-store): add readme (#2000) * feat(pyth-price-store): add readme * Update target_chains/solana/programs/pyth-price-store/README.md Co-authored-by: Pavel Strakhov --------- Co-authored-by: Pavel Strakhov --- .../programs/pyth-price-store/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 target_chains/solana/programs/pyth-price-store/README.md diff --git a/target_chains/solana/programs/pyth-price-store/README.md b/target_chains/solana/programs/pyth-price-store/README.md new file mode 100644 index 000000000..d2adbb8f0 --- /dev/null +++ b/target_chains/solana/programs/pyth-price-store/README.md @@ -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.