John 56dafe4b4a add resolver = "2" to fix compile warning преди 1 година
..
migrations f22f80270d add seahorse example преди 2 години
programs 70efc6010f add idl-build to cargo.toml features преди 1 година
programs_py f22f80270d add seahorse example преди 2 години
tests f22f80270d add seahorse example преди 2 години
.gitignore f22f80270d add seahorse example преди 2 години
.prettierignore f22f80270d add seahorse example преди 2 години
Anchor.toml f22f80270d add seahorse example преди 2 години
Cargo.toml 56dafe4b4a add resolver = "2" to fix compile warning преди 1 година
README.md 9831611233 Update Seahorse README преди 2 години
package.json f22f80270d add seahorse example преди 2 години
tsconfig.json f22f80270d add seahorse example преди 2 години

README.md

Using Seahorse with Pyth

Make sure to import the Pyth module for Seahorse.

from seahorse.pyth import *

You have to validate a price feed's ID for security reasons, if you want to read the SOL/USD price feed, you can verify the account in the context like this:

price_account.validate_price_feed("SOL/USD")

For more information, visit the Seahorse documentation on Pyth.