Skip to main content

monad_revm/
lib.rs

1//! Monad-specific EVM implementation.
2//!
3//! This crate provides Monad-specific customizations for REVM:
4//! - Gas limit charging (no refunds)
5//! - Custom precompiles (including staking at 0x1000)
6//! - Custom gas costs
7//! - Custom code size limits (128KB max code, 256KB max initcode)
8
9/// API module for building and executing Monad EVM.
10pub mod api;
11/// Configuration module for Monad-specific settings.
12pub mod cfg;
13/// EVM type aliases and builders for Monad.
14pub mod evm;
15/// Handler customizations for Monad execution.
16pub mod handler;
17/// Monad-specific instruction set with custom gas costs.
18pub mod instructions;
19/// Monad precompiles with custom gas pricing.
20pub mod precompiles;
21/// Monad specification identifiers and hardfork definitions.
22pub mod spec;
23/// Monad staking precompile (0x1000) - read-only view methods.
24pub mod staking;
25
26pub use api::*;
27pub use cfg::{MonadCfgEnv, MONAD_MAX_CODE_SIZE, MONAD_MAX_INITCODE_SIZE};
28pub use evm::MonadEvm;
29pub use spec::*;