revm_optimism/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! Optimism-specific constants, types, and helpers.
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(not(feature = "std"))]
extern crate alloc as std;

pub mod bn128;
pub mod fast_lz;
pub mod handler_register;
pub mod l1block;
pub mod result;
pub mod spec;
pub mod transaction;
pub mod wiring;

pub use handler_register::{
    deduct_caller, end, last_frame_return, load_accounts, load_precompiles,
    optimism_handle_register, output, refund, reward_beneficiary, validate_env,
    validate_tx_against_state,
};
pub use l1block::{L1BlockInfo, BASE_FEE_RECIPIENT, L1_BLOCK_CONTRACT, L1_FEE_RECIPIENT};
pub use result::OptimismHaltReason;
pub use spec::*;
pub use transaction::{error::OpTransactionError, OpTransaction, OpTransactionType};