Skip to content

Update entropy tutorial to use IEntropyV2 interface #764

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 2 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jul 23, 2025

Description

Updated the "Create your first Entropy app" tutorial to use the new IEntropyV2 interface, replacing the deprecated IEntropy interface. This change ensures the tutorial reflects the current Pyth Entropy SDK and provides users with up-to-date examples.

Key Changes:

  • Updated Solidity contract to use IEntropyV2 interface instead of IEntropy
  • Fixed type declarations in constructor and property definitions
  • Updated description text to reference the correct interface
  • Removed unnecessary local ABI file (tutorial should reference package ABI instead)

The tutorial already had most V2 method calls (like getFeeV2() and requestV2()) but had inconsistent type declarations that needed correction.

Type of Change

  • Page update/improvement
  • Update links/references

Areas Affected

  • pages/entropy/create-your-first-entropy-app.mdx - Main tutorial content

Checklist

  • I ran npm run lint to check for linting errors
  • I have reviewed my changes for clarity and accuracy
  • All links are valid and working
  • Code examples (if any) are complete and functional
  • Content follows the established style guide
  • Changes are properly formatted in Markdown
  • Preview renders correctly in development environment

Related Issues

Updates tutorial as requested by Jayant to use the new IEntropyV2 interface.

Additional Notes

Critical items for reviewers to verify:

  1. JavaScript ABI dependency - With the local abis/IEntropyV2.json file removed, please confirm the JavaScript examples in the tutorial can still import the ABI correctly from the @pythnetwork/entropy-sdk-solidity package

  2. Solidity compilation - Please test that the updated Solidity code actually compiles with the IEntropyV2 interface (I only tested documentation rendering)

  3. Complete interface migration - Verify all IEntropy references in the tutorial have been properly updated to IEntropyV2

  4. Method compatibility - Confirm that IEntropyV2 interface methods match the usage patterns in the tutorial examples

Scope note: Other files in the documentation repo still contain IEntropy references, but these appear to be either references to IEntropyConsumer (which remains unchanged) or documentation in other guides that may be updated separately.

Testing limitations: I verified the documentation builds and renders correctly, but did not test actual compilation/execution of the code examples.

Contributor Information

Screenshots

Tutorial page rendering correctly

The tutorial page loads and renders correctly with the updated IEntropyV2 interface references.

- Add IEntropyV2.json ABI file to abis directory
- Update CoinFlip contract to use IEntropyV2 interface instead of IEntropy
- Fix constructor type declaration to use IEntropyV2
- Update description text to reference IEntropyV2 interface
- Ensure consistency across all interface references in the tutorial

Co-Authored-By: Jayant <jayant@dourolabs.xyz>
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

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented Jul 23, 2025

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 6:03pm
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 6:03pm

The tutorial can reference the ABI from the @pythnetwork/entropy-sdk-solidity package instead of requiring a local copy.

Co-Authored-By: Jayant <jayant@dourolabs.xyz>
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.

0 participants