Skip to content
LogoLogo

Hardforks & EIPs

Guillotine Mini implements Ethereum execution rules from Frontier through Osaka, using Hardfork and ForkTransition re-exported from Voltaire. The Voltaire enum also includes .AMSTERDAM.

Supported Hardfork Timeline (Click to Inspect)Frontier → Osaka

Hardfork.PRAGUE (2025)

Added BLS12-381 precompiles (0x0B–0x11), EIP-7702 delegation (0xEF0100 + 20B), EIP-7623 calldata floor.

Precompiles: 0x01–0x11 (+ BLS12-381 suite at 0x0B–0x11)

  • EIP-2537
  • EIP-2935
  • EIP-7623
  • EIP-7702

Selecting a hardfork

Pass a hardfork as the third argument to vm.init() to override the configured default.

var vm: Evm(.{}) = undefined;
try vm.init(
    allocator,
    host,
    .OSAKA, // explicit fork
    block_ctx,
    origin,
    gas_price,
    null,
);
defer vm.deinit();

Passing null selects config.hardfork. In Evm(.{}), that field defaults to Voltaire’s Hardfork.DEFAULT (.OSAKA). Check the active fork with vm.getActiveFork().

Comparing forks in custom handlers

Hardfork provides total ordering helpers:

const fork = vm.getActiveFork();
 
if (fork.isAtLeast(.SHANGHAI)) {
    // PUSH0 (0x5f) and warm coinbase (EIP-3651) are active
}
if (fork.isBefore(.BERLIN)) {
    // No EIP-2929 warm/cold distinction
}

Available comparison methods: isAtLeast, isBefore, isAfter, isEqual, gte, lt, compare, toInt.

Runtime fork transitions

For multi-block tests or chain simulations that cross an upgrade boundary, assign vm.fork_transition:

vm.fork_transition = guillotine.ForkTransition.fromString("ShanghaiToCancunAtTime15000");
 
// Evaluates against vm.block_context.block_number / block_timestamp
const active = vm.getActiveFork();

When fork_transition is null (the default), getActiveFork() returns vm.hardfork.

Precompile activation by fork

AddressNameActive from
0x01ECRECOVERFrontier
0x02SHA256Frontier
0x03RIPEMD160Frontier
0x04IDENTITYFrontier
0x05MODEXPByzantium (repriced Berlin EIP-2565, Osaka EIP-7823/7883)
0x06ECADD (BN254)Byzantium (repriced Istanbul)
0x07ECMUL (BN254)Byzantium (repriced Istanbul)
0x08ECPAIRING (BN254)Byzantium (repriced Istanbul)
0x09BLAKE2FIstanbul
0x0APOINT_EVALUATION (KZG)Cancun (EIP-4844)
0x0B–0x11BLS12-381 suite (7 precompiles)Prague (EIP-2537; preWarmTransaction warms 0x01–0x13)
0x0100P256VERIFYOsaka (EIP-7951; pre-warmed at tx start)

Hardfork string parsing (C / WASM API)

evm_create(name, len, log_level) parses Hardfork.fromString() case-insensitively (e.g., "cancun", "CANCUN", "prague", "osaka", "amsterdam"). An empty or unrecognized name selects the configured default (.OSAKA in the C wrapper).