Skip to content

Bump Polygon bus gas limit#572

Merged
clauBv23 merged 2 commits into
mainfrom
oapp-1840-polygon-bus-gas-limit
Jul 2, 2026
Merged

Bump Polygon bus gas limit#572
clauBv23 merged 2 commits into
mainfrom
oapp-1840-polygon-bus-gas-limit

Conversation

@clauBv23

@clauBv23 clauBv23 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • Bump Polygon TokenMessaging bus gas limit to 65k
  • Add a patch changeset for stg-definitions-v2

Rationale:

  • This is needed because Polygon PIP-88 increased Polygon gas pricing, and Stargate bus executions started reverting from running out of gas under the previous 38k bus receive gas limit.
  • The 65k value is based on the observed failing Polygon bus transaction path: it gives margin over the old 38k limit while keeping the change scoped to Stargate TokenMessaging bus lzReceive enforced options (msgType = MSG_TYPE_BUS).
  • This does not change taxi messaging or LayerZero protocol-wide OApp defaults.

@changeset-bot

changeset-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9d72d25

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stargatefinance/stg-definitions-v2 Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Polygon TokenMessaging “bus” enforced gas limit to 65,000 across the mainnet config snapshot and aligns the generated hash and definitions package constants accordingly.

Changes:

  • Updated Polygon-destination TokenMessaging enforced option gas for msgType: 2 to "65000" in the generated mainnet config JSON.
  • Regenerated the corresponding hashes.json entry for token-messaging.config.ts.
  • Added busGasLimit: 65000n for Polygon in stg-definitions-v2 and included a patch changeset.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/stg-evm-v2/devtools/config/mainnet/01/json/token-messaging.config.json Updates enforced options gas for msgType: 2 to 65k in the generated mainnet snapshot.
packages/stg-evm-v2/devtools/config/mainnet/01/hashes/hashes.json Updates the stored SHA-256 hash for the regenerated token-messaging config.
packages/stg-definitions-v2/src/constant.ts Sets Polygon busGasLimit to 65000n in the network config constants.
.changeset/polygon-bus-gas-limit.md Adds a patch changeset for @stargatefinance/stg-definitions-v2.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/polygon-bus-gas-limit.md
Comment thread packages/stg-definitions-v2/src/constant.ts
@clauBv23 clauBv23 force-pushed the oapp-1840-polygon-bus-gas-limit branch 2 times, most recently from d0f0a6c to 8c622f3 Compare July 1, 2026 10:50
@clauBv23 clauBv23 force-pushed the oapp-1840-polygon-bus-gas-limit branch from 8c622f3 to 936319b Compare July 1, 2026 10:55
@clauBv23 clauBv23 requested a review from tinom9 July 1, 2026 10:56
@clauBv23 clauBv23 merged commit 938c95d into main Jul 2, 2026
14 of 17 checks passed
@clauBv23 clauBv23 deleted the oapp-1840-polygon-bus-gas-limit branch July 2, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants