Skip to main content

Crate monad_revm

Crate monad_revm 

Source
Expand description

Monad-specific EVM implementation.

This crate provides Monad-specific customizations for REVM:

  • Gas limit charging (no refunds)
  • Custom precompiles (including staking at 0x1000)
  • Custom gas costs
  • Custom code size limits (128KB max code, 256KB max initcode)

Re-exports§

pub use cfg::MonadCfgEnv;
pub use cfg::MONAD_MAX_CODE_SIZE;
pub use cfg::MONAD_MAX_INITCODE_SIZE;
pub use evm::MonadEvm;
pub use api::*;
pub use spec::*;

Modules§

api
API module for building and executing Monad EVM.
cfg
Configuration module for Monad-specific settings. Monad-specific EVM configuration.
evm
EVM type aliases and builders for Monad.
handler
Handler customizations for Monad execution. Monad handler implementation.
instructions
Monad-specific instruction set with custom gas costs.
precompiles
Monad precompiles with custom gas pricing. Contains Monad specific precompiles.
spec
Monad specification identifiers and hardfork definitions. Contains the [MonadSpecId] type and its implementation.
staking
Monad staking precompile (0x1000) - read-only view methods. Monad staking precompile implementation.