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.
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
| Address | Name | Active from |
|---|---|---|
0x01 | ECRECOVER | Frontier |
0x02 | SHA256 | Frontier |
0x03 | RIPEMD160 | Frontier |
0x04 | IDENTITY | Frontier |
0x05 | MODEXP | Byzantium (repriced Berlin EIP-2565, Osaka EIP-7823/7883) |
0x06 | ECADD (BN254) | Byzantium (repriced Istanbul) |
0x07 | ECMUL (BN254) | Byzantium (repriced Istanbul) |
0x08 | ECPAIRING (BN254) | Byzantium (repriced Istanbul) |
0x09 | BLAKE2F | Istanbul |
0x0A | POINT_EVALUATION (KZG) | Cancun (EIP-4844) |
0x0B–0x11 | BLS12-381 suite (7 precompiles) | Prague (EIP-2537; preWarmTransaction warms 0x01–0x13) |
0x0100 | P256VERIFY | Osaka (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).