Skip to content

Update Pyth Oracle Example Program #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

aaronbassett
Copy link

This PR replaces the outdated pythexample program with a new version compatible with the latest Pyth SDK and Oracle.

✅ Changes:

  • Removed the original pythexample which relied on the deprecated Push Oracle and no longer functions.
  • Added a new example program demonstrating how to use the current Pyth Oracle with Anchor.
  • Renamed the new example directory to pythexample to match the original path and avoid potentially breaking backlinks
  • Migrated the project from Yarn to pnpm to align with the CONTRIBUTING.md guidelines.

This ensures that developers following links to the Pyth Oracle example—like the link in the Solana Docs—get a working, up-to-date Anchor program.

The SDK version used in the example is no longer supported and
relies on the legacy Push Oracle, which has been decommissioned.

Removing it to ensure the examples remain accurate and functional.
The original Pyth Oracle example program has backlinks from external
sites. Rename the new example program to `pythexample` so the
directory structure and GitHub URL remain the same so we hopefully
don't break links on external sites.
Project no longer uses the Anchor client or any other TypeScript
code/packages. Clean up related obsolete files.
Copy link
Member

@brimigs brimigs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants