Ayush b237b18c1e chore: upgrade to 1.18.17 (#97) hai 1 ano
..
migrations a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) hai 1 ano
programs 70efc6010f add idl-build to cargo.toml features hai 1 ano
programs_py f22f80270d add seahorse example %!s(int64=2) %!d(string=hai) anos
tests a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) hai 1 ano
.gitignore f22f80270d add seahorse example %!s(int64=2) %!d(string=hai) anos
.prettierignore f22f80270d add seahorse example %!s(int64=2) %!d(string=hai) anos
Anchor.toml b237b18c1e chore: upgrade to 1.18.17 (#97) hai 1 ano
Cargo.toml 56dafe4b4a add resolver = "2" to fix compile warning hai 1 ano
README.md 9831611233 Update Seahorse README %!s(int64=2) %!d(string=hai) anos
package.json a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) hai 1 ano
tsconfig.json a3b87a4948 update: tokens native, formatter, trigger action on project changes (#81) hai 1 ano

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.