Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Update entropy documentation to use getFeeV2 instead of getFee#766

Closed
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1753277922-update-entropy-getfee-to-getfeev2
Closed

Update entropy documentation to use getFeeV2 instead of getFee#766
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1753277922-update-entropy-getfee-to-getfeev2

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Description

Updated entropy documentation to use the newer getFeeV2 method instead of the legacy getFee method for retrieving fees. This change involved updating the package dependency to get the correct ABI and modifying the EntropyFeeTable component to use the newer API.

Key Changes:

  • Added @pythnetwork/entropy-sdk-solidity version 2.0.0 as a dependency to get updated ABI with getFeeV2 methods
  • Updated EntropyFeeTable.tsx to import ABI from the new package instead of local ABI file
  • Changed method call from getFee(defaultProvider) to getFeeV2() which uses the default provider internally
  • Verified current fees page loads and displays fees correctly

Type of Change

  • Page update/improvement
  • Other (please describe): Package dependency update and component API modernization

Areas Affected

  • components/EntropyFeeTable.tsx - Updated to use getFeeV2() method and new ABI source
  • package.json - Added @pythnetwork/entropy-sdk-solidity version 2.0.0 dependency
  • Current fees page (/entropy/current-fees) - Behavior verified to work correctly

Checklist

  • I ran pre-commit run --all-files to check for linting errors (npm run lint passed)
  • I have reviewed my changes for clarity and accuracy
  • All links are valid and working
  • Images (if any) are properly formatted and include alt text (N/A)
  • 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

This addresses the request to update entropy documentation to use getFeeV2 instead of getFee.

Additional Notes

Important Review Points:

  1. Package Dependency: Added new package @pythnetwork/entropy-sdk-solidity@2.0.0 - please verify this version is correct and doesn't conflict with existing dependencies
  2. ABI Source Change: Switched from local ../abis/IEntropy.json to package @pythnetwork/entropy-sdk-solidity/abis/IEntropyV2.json - this is a significant change that should be tested
  3. Method Behavior: getFeeV2() with no parameters uses the default provider internally, maintaining the same functionality as getFee(defaultProvider) but using the newer API
  4. Testing Scope: Verified current fees page works locally, but broader testing recommended to ensure no other components are affected

Verification Steps:

  • Navigate to /entropy/current-fees page
  • Confirm fee table loads and displays current fee values for both mainnet and testnet networks
  • Verify no console errors related to contract method calls

Contributor Information

Screenshots

Current Fees Page Working

The current fees page successfully loads and displays fee data for both mainnet and testnet networks using the updated getFeeV2() method.

- Update @pythnetwork/entropy-sdk-solidity package to version 2.0.0
- Update EntropyFeeTable component to use new ABI from package
- Switch from getFee(defaultProvider) to getFeeV2() method call
- Verified current fees page loads and displays fees correctly

Co-Authored-By: Jayant <jayant@dourolabs.xyz>
@devin-ai-integration
Copy link
Copy Markdown
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

@vercel
Copy link
Copy Markdown

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 2:00pm
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 2:00pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant