Update entropy tutorial to use IEntropyV2 interface #764
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updated the "Create your first Entropy app" tutorial to use the new
IEntropyV2
interface, replacing the deprecatedIEntropy
interface. This change ensures the tutorial reflects the current Pyth Entropy SDK and provides users with up-to-date examples.Key Changes:
IEntropyV2
interface instead ofIEntropy
The tutorial already had most V2 method calls (like
getFeeV2()
andrequestV2()
) but had inconsistent type declarations that needed correction.Type of Change
Areas Affected
pages/entropy/create-your-first-entropy-app.mdx
- Main tutorial contentChecklist
npm run lint
to check for linting errorsRelated Issues
Updates tutorial as requested by Jayant to use the new IEntropyV2 interface.
Additional Notes
Critical items for reviewers to verify:
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
packageSolidity compilation - Please test that the updated Solidity code actually compiles with the
IEntropyV2
interface (I only tested documentation rendering)Complete interface migration - Verify all
IEntropy
references in the tutorial have been properly updated toIEntropyV2
Method compatibility - Confirm that
IEntropyV2
interface methods match the usage patterns in the tutorial examplesScope note: Other files in the documentation repo still contain
IEntropy
references, but these appear to be either references toIEntropyConsumer
(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
The tutorial page loads and renders correctly with the updated IEntropyV2 interface references.