feat: dynamically fetch entropy gas limits from blockchain #763
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
This PR updates the Entropy contract addresses documentation page to dynamically fetch gas limits from the blockchain instead of displaying static values. The implementation follows the same pattern as the existing
EntropyFeeTable
component, using thegetProviderInfoV2
method on the Entropy contract to retrieve real-time gas limit data.Type of Change
Areas Affected
pages/entropy/contract-addresses.mdx
- Updated to use new dynamic gas limit componentcomponents/EntropyGasLimitTable.tsx
- New component for fetching gas limits from blockchaincomponents/EntropyDeploymentTable.tsx
- Removed static gas limit columnabis/IEntropyV2.json
- Added ABI file for blockchain queriesKey Changes
New Dynamic Component: Created
EntropyGasLimitTable
that:getProviderInfoV2
contract methodEntropyFeeTable
Updated Page Structure: Modified contract addresses page to:
Removed Static Data: Eliminated static gas limit column from deployment table since values are now fetched dynamically
Critical Review Areas
IEntropyV2.json
is the correct/latest version compatible with deployed contractsChecklist
pre-commit run --all-files
to check for linting errorsTesting
localhost:3000/entropy/contract-addresses
Screenshots
The screenshot shows the updated contract addresses page with dynamic gas limit tables for both mainnet and testnet networks, displaying real values fetched from the blockchain.
Related Issues
Addresses request from Jayant ([email protected]) to update entropy documentation to fetch gas limits dynamically from blockchain instead of using static values.
Additional Notes
EntropyFeeTable
for consistencydefaultGasLimit
field of theProviderInfo
struct returned bygetProviderInfoV2
Contributor Information