Skip to content
Monpediaby Unity Nodes
ClosedPull Request

Add MIP-21: Large Contract Deployment Opcode and MRC-22: Large Contract Deployment Factory

by BaltoliCreated Nov 5, 2026monad-crypto/MIPs

Summary

  • MIP-21 adds CREATEBIG (0xAE 0x02, under the MIP-7 EXTENSION mechanism), which deploys contracts of up to 256KiB. It behaves as CREATE2 with value as the endowment, plus a max_deposit argument: 80 gas/byte of the code deposit is charged as gas, and the remaining 120 × base fee per byte is charged in MON from the executing account's balance, capped by max_deposit, and burned. Execution of large contracts relies on MIP-20's linear code-loading costs.
  • MRC-22 specifies a deterministic Yul factory (ICreateBigFactory.deploy) through which EOAs and contracts can use CREATEBIG without compiler support. Direct calls bind the salt to the caller and fund the deposit from msg.value with a refund; delegated calls give contracts exactly the CREATE2-from-self semantics. The factory is deployed by a keyless (Nick's method) transaction to 0x53F970b36ec7C8Ade2954aCD7a16B2e5ba438dE4.
  • assets/MRC-22 contains the Yul source and a script that reproduces the deployment transaction, sender and factory address from the compiled creation bytecode.

Discussion:

Verification

  • scripts/lint_mips.py MIPs/MIP-21.md MRCs/MRC-22.md: 0 errors, 0 warnings.
  • Factory compiled with solc 0.8.38+commit.1835d247 --strict-assembly --optimize --evm-version osaka (233-byte creation code, keccak 0x446b5066…99995420).
  • The keyless deployment transaction was submitted to a local Osaka anvil chain: the sender, factory address and runtime code hash match the values in MRC-22, and malformed initcode lengths revert cleanly. CREATEBIG itself has no implementation yet, so the deploy path is untested.
  • MIP-21 Test Cases and Reference Implementation remain TODO.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JvndnLtZNegGUa3H5N4k8R