This repository was archived by the owner on Nov 28, 2025. It is now read-only.
feat(entropy): add Set Custom Gas Limits guide#765
Merged
Conversation
- Add comprehensive guide for using custom gas limits with Pyth Entropy - Show requestV2(uint32 gasLimit) and getFeeV2(uint32 gasLimit) usage - Include gas limit constraints, best practices, and troubleshooting - Build upon existing EVM guide as requested - Update navigation to include new guide Co-Authored-By: Jayant <jayant@dourolabs.xyz>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Remove trailing whitespace - Apply prettier formatting to code blocks and content - Ensure compliance with repository style guidelines Co-Authored-By: Jayant <jayant@dourolabs.xyz>
14 tasks
aditya520
approved these changes
Jul 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Created a comprehensive "Set Custom Gas Limits" guide for Pyth Entropy that builds upon the existing EVM integration guide. The guide shows developers how to use the
requestV2(uint32 gasLimit)method variant and correspondinggetFeeV2(uint32 gasLimit)fee calculation for scenarios requiring custom gas limits in entropy callbacks.This addresses the user request to create documentation that references the existing EVM guide as a prerequisite and demonstrates the specific method variants from the IEntropyV2.sol interface.
Type of Change
Areas Affected
pages/entropy/generate-random-numbers/set-custom-gas-limits.mdx(new file)pages/entropy/generate-random-numbers/_meta.json(navigation update)Key Changes
requestV2(uint32 gasLimit)andgetFeeV2(uint32 gasLimit)methodsCritical Review Items
Checklist
pre-commit run --all-filesto check for linting errors (npm run lint passed)Testing Performed
Related Issues
Addresses Slack request from Jayant to create custom gas limits guide building on existing EVM documentation.
Additional Notes
The guide follows the existing documentation patterns and includes comprehensive examples for both simple and complex callback scenarios. Gas limit constraints are based on the Entropy.sol contract constants, but should be verified against the latest contract version.
Contributor Information
Screenshots
The guide renders correctly with proper navigation, code highlighting, and formatting consistent with existing documentation.