Pyth-Stub is a Solana program that allows you to write and read mock price data to a Solana account using the Pyth Network's price feed format.
These instructions will help you set up the project on your local machine for development and testing purposes.
Ensure you have the following software installed:
- Node.js (v14 or later)
- Yarn
- Rust
- Solana CLI
- Anchor
-
Clone the repository:
git clone https://github.com/diyahir/pyth-svm-stub-mock.git cd pyth-stub
-
Install Node.js dependencies:
yarn install
Compile the Solana program to ensure everything is set up correctly.
anchor build
Deploy the Solana program to the local network or to the desired Solana cluster (devnet, testnet, or mainnet).
anchor deploy
Run the tests to ensure the program works as expected.
anchor test
Here is a brief overview of the main commands used in this project:
anchor build
: Compiles the Solana program.anchor deploy
: Deploys the compiled program to the specified Solana cluster.anchor test
: Runs the test suite to verify the functionality of the program.