Skip to main content

Module source

Module source 

Source
Expand description

Session Source

This module contains the SessionSource struct, which is a minimal wrapper around the REPL contract’s source code. It provides simple compilation, parsing, and execution helpers.

Re-exportsΒ§

use eyre::Result; πŸ”’
use foundry_compilers::Artifact; πŸ”’
use foundry_compilers::ProjectCompileOutput; πŸ”’
use foundry_compilers::artifacts::ConfigurableContractArtifact; πŸ”’
use foundry_compilers::artifacts::Source; πŸ”’
use foundry_compilers::artifacts::Sources; πŸ”’
use foundry_compilers::project::ProjectCompiler; πŸ”’
use foundry_compilers::solc::Solc; πŸ”’
use foundry_config::Config; πŸ”’
use foundry_config::EtherscanConfigs; πŸ”’
use foundry_config::FoundryHardfork; πŸ”’
use foundry_config::RpcEndpoints; πŸ”’
use foundry_config::SolcReq; πŸ”’
use foundry_config::cache::CachedEndpoints; πŸ”’
use foundry_evm::backend::Backend; πŸ”’
use foundry_evm::core::bytecode::InstIter; πŸ”’
use foundry_evm::core::evm::FoundryEvmNetwork; πŸ”’
use foundry_evm::executors::ExecutorBuilder; πŸ”’
use foundry_evm::opts::EvmOpts; πŸ”’
use foundry_evm_networks::NetworkConfigs; πŸ”’
use semver::Version; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserializer; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serializer; πŸ”’
use solar::ast::ItemKind; πŸ”’
use solar::ast::StmtKind as AstStmtKind; πŸ”’
use solar::ast::yul; πŸ”’
use solar::interface::Span; πŸ”’
use solar::interface::diagnostics::EmittedDiagnostics; πŸ”’
use solar::sema::CompilerRef; πŸ”’
use solar::sema::hir::Block; πŸ”’
use solar::sema::hir::Contract; πŸ”’
use solar::sema::hir::EventId; πŸ”’
use solar::sema::hir::ItemId; πŸ”’
use solar::sema::hir::Stmt; πŸ”’
use solar::sema::hir::StmtKind as HirStmtKind; πŸ”’
use solar::sema::ty::Gcx; πŸ”’
use std::cell::OnceCell; πŸ”’
use std::fmt; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use walkdir::WalkDir; πŸ”’

StructsΒ§

GeneratedOutput
SessionSource build output.
GeneratedOutputRef
A scoped reference to a GeneratedOutput together with an entered solar compiler.
InvocationRpc πŸ”’
RPC and explorer settings owned by the current Chisel invocation.
SessionSource
REPL Session Source wrapper
SessionSourceConfig
Configuration for the SessionSource

EnumsΒ§

ParseTreeFragment πŸ”’
A Parse Tree Fragment

ConstantsΒ§

MIN_VM_VERSION
The minimum Solidity version of the Vm interface.

StaticsΒ§

VM_SOURCE πŸ”’
Solidity source for the Vm interface in forge-std

FunctionsΒ§

vm_source πŸ”’