Skip to main content

Module executor

Module executor 

Source
Expand description

Executor

This module contains the execution logic for the SessionSource.

Re-exportsยง

use crate::prelude::ChiselDispatcher; ๐Ÿ”’
use crate::prelude::ChiselResult; ๐Ÿ”’
use crate::prelude::ChiselRunner; ๐Ÿ”’
use crate::prelude::SessionSource; ๐Ÿ”’
use crate::prelude::SolidityHelper; ๐Ÿ”’
use alloy_dyn_abi::DynSolType; ๐Ÿ”’
use alloy_dyn_abi::DynSolValue; ๐Ÿ”’
use alloy_json_abi::EventParam; ๐Ÿ”’
use alloy_primitives::Address; ๐Ÿ”’
use alloy_primitives::B256; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use alloy_primitives::hex; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use eyre::WrapErr; ๐Ÿ”’
use foundry_compilers::Artifact; ๐Ÿ”’
use foundry_evm::backend::Backend; ๐Ÿ”’
use foundry_evm::core::evm::FoundryEvmNetwork; ๐Ÿ”’
use foundry_evm::decode::decode_console_logs; ๐Ÿ”’
use foundry_evm::inspectors::CheatsConfig; ๐Ÿ”’
use foundry_evm::opts::ExecutionSpecContext; ๐Ÿ”’
use foundry_evm::opts::resolve_execution_spec; ๐Ÿ”’
use foundry_evm::traces::TraceRequirements; ๐Ÿ”’
use solar::ast::ElementaryType; ๐Ÿ”’
use solar::ast::LitKind; ๐Ÿ”’
use solar::ast::StmtKind as AstStmtKind; ๐Ÿ”’
use solar::ast::StrKind; ๐Ÿ”’
use solar::ast::UnOpKind; ๐Ÿ”’
use solar::ast::yul; ๐Ÿ”’
use solar::interface::Session; ๐Ÿ”’
use solar::sema::hir::Event; ๐Ÿ”’
use solar::sema::hir::Expr; ๐Ÿ”’
use solar::sema::hir::ExprKind; ๐Ÿ”’
use solar::sema::hir::StmtKind; ๐Ÿ”’
use solar::sema::ty::Gcx; ๐Ÿ”’
use solar::sema::ty::Ty; ๐Ÿ”’
use solar::sema::ty::TyKind; ๐Ÿ”’
use std::ops::ControlFlow; ๐Ÿ”’
use yansi::Paint; ๐Ÿ”’

Structsยง

InspectResult
Result of inspecting a Solidity snippet.
YulInspection ๐Ÿ”’

Functionsยง

dyn_ty_contains_function ๐Ÿ”’
elementary_to_dyn ๐Ÿ”’
Maps a solar [ElementaryType] to a [DynSolType].
expr_to_dyn ๐Ÿ”’
Converts an [Expr] directly to a [DynSolType] for ABI inspection.
format_event_definition ๐Ÿ”’
Formats an [Event] into an inspection message.
format_token ๐Ÿ”’
Formats a value into an inspection message
should_continue ๐Ÿ”’
Whether execution should continue after inspecting this expression.
solar_expr_ty_to_dyn ๐Ÿ”’
Maps a solar [Ty] to a [DynSolType].
solar_ty_to_dyn ๐Ÿ”’
yul_inspection ๐Ÿ”’