Update entropy documentation to use getFeeV2 instead of getFee #766
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 entropy documentation to use the newer
getFeeV2
method instead of the legacygetFee
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:
@pythnetwork/entropy-sdk-solidity
version 2.0.0 as a dependency to get updated ABI withgetFeeV2
methodsEntropyFeeTable.tsx
to import ABI from the new package instead of local ABI filegetFee(defaultProvider)
togetFeeV2()
which uses the default provider internallyType of Change
Areas Affected
components/EntropyFeeTable.tsx
- Updated to usegetFeeV2()
method and new ABI sourcepackage.json
- Added@pythnetwork/entropy-sdk-solidity
version 2.0.0 dependency/entropy/current-fees
) - Behavior verified to work correctlyChecklist
pre-commit run --all-files
to check for linting errors (npm run lint passed)Related Issues
This addresses the request to update entropy documentation to use
getFeeV2
instead ofgetFee
.Additional Notes
Important Review Points:
@pythnetwork/[email protected]
- please verify this version is correct and doesn't conflict with existing dependencies../abis/IEntropy.json
to package@pythnetwork/entropy-sdk-solidity/abis/IEntropyV2.json
- this is a significant change that should be testedgetFeeV2()
with no parameters uses the default provider internally, maintaining the same functionality asgetFee(defaultProvider)
but using the newer APIVerification Steps:
/entropy/current-fees
pageContributor Information
Screenshots
The current fees page successfully loads and displays fee data for both mainnet and testnet networks using the updated
getFeeV2()
method.