Skip to content
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

feat: add script to get pyth price feed details #2269

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

Conversation

devin-ai-integration[bot]
Copy link
Contributor

feat: add script to get pyth price feed details

This PR adds a new script get_pyth_pricefeed_details.ts that retrieves Pyth Price Feed Implementation Address and initialization data for a given chain. The script:

  • Takes chain_name as an argument
  • Returns Pyth Price Feed Implementation Address (pythImplAddr)
  • Returns Pyth initialization data (pythInitData)
  • Fetches wormholeAddr from the store
  • Uses validTimePeriodSeconds = 60 seconds
  • Uses singleUpdateFeeInWei = 1

Note: Due to environment version constraints (Node.js v22.11.0 and pnpm v9.15.3 required), the script has not been tested locally. CI will verify the functionality.

Link to Devin run: https://app.devin.ai/sessions/e968b23e752c4ce3b1fdd50c66e11456

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 6:00pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 6:00pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 6:00pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Jan 16, 2025 6:00pm
insights ⬜️ Ignored (Inspect) Visit Preview Jan 16, 2025 6:00pm

Co-Authored-By: Jayant Krishnamurthy <[email protected]>
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.

1 participant