Skip to content
Monpediaby Unity Nodes
ClosedPull Request

[execution] Move Glamsterdam off MONAD_NEXT into MONAD_NEXT_AMSTERDAM

by BaltoliCreated Oct 28, 2026category-labs/monad

ReferencesMIP-18

Resolves EXE-248.

Glamsterdam is delayed indefinitely upstream, but its changes were gated on MONAD_NEXT, so every in-flight Monad feature (huge contracts, MIP-18, ...) had to be developed and tested together with it.

Design

MONAD_NEXT_AMSTERDAM is a sibling feature revision of MONAD_NEXT:

  • Both are the latest numbered revision plus their own in-development features. Neither includes the other's features.
  • Feature revisions sort above every numbered revision, so Rev >= MONAD_<N> gates enable in all of them.
  • A feature revision's own features are gated with Rev == MONAD_NEXT* only, never an ordered comparison.

When MONAD_NEXT ships as a numbered revision, its == gates become >=, and MONAD_NEXT_AMSTERDAM inherits those features automatically. That means the Amsterdam fixtures only need refilling at promotions.

Changes

  • evm_rev() maps only MONAD_NEXT_AMSTERDAM to MONAD_ETH_AMSTERDAM. MONAD_NEXT now runs on Osaka.
  • mip_12_active() is now Rev == MONAD_NEXT.
  • Added the new revision to the switch and explicit-instantiation macros and StorageCostTable.
  • Added a MONAD_MAX_REVISION sentinel and used it for revision ranges in tests and the staking fuzzer.
  • The Amsterdam spec-test target now runs --fork MONAD_NEXT_AMSTERDAM.
  • RPC tests in monad_executor_test.cpp:
    • Six Amsterdam-only tests are skipped, because MONAD_NEXT_AMSTERDAM deliberately has no chain config yet.
    • Three general tests no longer expect EIP-7708 Transfer logs.

Blocked on

  • MF refill of the Amsterdam spec fixtures. The current release labels every case "network": "MONAD_NEXT", so the MONAD_NEXT_AMSTERDAM shards skip all cases until the fixture URL is updated. Don't merge before then.

Follow-ups (not in this PR)

  • monad-bft: remove the Glamsterdam header encoding changes from the MONAD_NEXT path.
  • Decide how (and whether) MONAD_NEXT_AMSTERDAM should be runnable via a chain config, then un-skip the RPC tests.
  • Add a CI lint enforcing the ==-only rule for feature revisions.
  • Decide how the OCaml spec should represent sibling feature revisions.

Testing

  • Full ctest with gcc-15 RelWithDebInfo: everything passes, apart from the Amsterdam spec shards and the six RPC tests, which skip as described above.
  • check-trait-instantiations.py and clang-format pass. clang-tidy is left to CI.

馃 Generated with Claude Code

https://claude.ai/code/session_01JvndnKYPeteEW4unJgxiry