Expand description
ChiselSession
This module contains the ChiselSession struct, which is the top-level
wrapper for a serializable REPL session.
Re-exportsยง
use crate::prelude::SessionSource;๐use crate::prelude::SessionSourceConfig;๐use eyre::Result;๐use foundry_cli::utils::parse_json;๐use foundry_evm::core::evm::FoundryEvmNetwork;๐use foundry_evm::executors::ExecutorBuilder;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use std::fs;๐use std::fs::File;๐use std::io::Read;๐use std::io::Write;๐use std::path::Path;๐use std::path::PathBuf;๐use time::OffsetDateTime;๐use time::format_description;๐use std::os::unix::fs::DirBuilderExt;๐Unix use std::os::unix::fs::PermissionsExt;๐Unix
Structsยง
- Chisel
Session - A Chisel REPL Session
Functionsยง
- validate_
session_ ๐id - Rejects a session id that would let
chisel-<id>.jsonescape the cache directory when concatenated into a path (e.g.../../etc/cron.d/evil, which yields the literal path componentchisel-.., followed by a real..component once the id itself contains a/). Also rejects:to prevent targeting Windows Alternate Data Streams (ADS).