Skip to content

Recalculate WST gas limits with Amsterdam pricing - #1124

Merged
YoshihitoAso merged 3 commits into
dev-26.9from
fix/wst-gas-limits-amsterdam-dev-26.9
Oct 21, 2026
Merged

YoshihitoAso merged 3 commits into
dev-26.9from
fix/wst-gas-limits-amsterdam-dev-26.9

Conversation

@YoshihitoAso

@YoshihitoAso YoshihitoAso commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

📌 Description

WST deployments on Sepolia fail with contract creation code storage out of gas at an 8,000,000-gas limit. The reported transaction requires an estimated 22,418,856 gas under Amsterdam state pricing.

https://sepolia.etherscan.io/tx/0x5b6e0cd2e59a9da4ea89fc928279c7f4ac2fa54634389f7d60f817b2d8abeeff

Set Ethereum WST deployment gas to 30,000,000 and revise authorization-operation limits using local Amsterdam estimates with at least 30% headroom. Add repeatable measurement tooling that verifies state pricing before reporting results.

✅ Related Issues

🔄 Changes

  • Set the Ethereum deployment limit to 30,000,000 gas. Keep the Avalanche deployment limit at 8,000,000 gas.
  • Revise the shared Ethereum/Avalanche WST operation limits as shown below.
  • Add make measure_wst_gas, backed by two temporary local Anvil nodes. Fork startup works around Anvil v1.8.5's standalone gas-parameter initialization; the source node does not simulate an Osaka-to-Amsterdam upgrade.
  • Check EIP-8037 account-creation and new-storage-slot charges before measuring. Stop if the observed prices are too low.
  • Add a measurement-only pytest plugin that reports eth_estimateGas, receipt gasUsed, and configured limits. It can raise local transaction limits to complete measurements and exits with status 1 when an estimate or usage exceeds a configured limit.
  • Add receive-with-authorization coverage and print deployment usage for a 200-character token name.
  • Configure the Ethereum test and measurement nodes with a 60,000,000 block gas limit, matching the observed mainnet block capacity while retaining Amsterdam pricing.
Operation Local estimate Configured gas limit
Deploy AuthIbetWST (200-character name) 23,015,827 30,000,000
Add whitelist 470,512 650,000
Delete whitelist 175,993 250,000
Mint 361,650 500,000
Burn 164,328 230,000
Force burn 166,314 230,000
Transfer 266,667 350,000
Receive 266,651 350,000
Request trade 1,143,262 1,500,000
Cancel trade 263,906 350,000
Accept trade 533,422 700,000
Reject trade 264,220 350,000

📌 Checklist

  • I have added tests where necessary.
  • I have updated the documentation where necessary.

@YoshihitoAso
YoshihitoAso marked this pull request as draft October 21, 2026 05:48
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

@YoshihitoAso YoshihitoAso changed the title [dev-26.9] Increase WST gas limits and add Amsterdam gas measurement tooling [dev-26.9] Recalculate WST gas limits with Amsterdam pricing Oct 21, 2026
@YoshihitoAso
YoshihitoAso marked this pull request as ready for review October 21, 2026 07:09
@YoshihitoAso YoshihitoAso changed the title [dev-26.9] Recalculate WST gas limits with Amsterdam pricing Recalculate WST gas limits with Amsterdam pricing Oct 21, 2026
@YoshihitoAso
YoshihitoAso merged commit 06b35a2 into dev-26.9 Oct 21, 2026
10 checks passed
@YoshihitoAso
YoshihitoAso deleted the fix/wst-gas-limits-amsterdam-dev-26.9 branch October 21, 2026 07:29
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.

2 participants