Skip to main content

Module data

Module data 

Source

Re-exportsยง

use super::deps::ConstructorContext; ๐Ÿ”’
use super::span_to_range; ๐Ÿ”’
use alloy_primitives::keccak256; ๐Ÿ”’
use foundry_compilers::artifacts::Source; ๐Ÿ”’
use foundry_compilers::artifacts::Sources; ๐Ÿ”’
use path_slash::PathExt; ๐Ÿ”’
use solar::sema::Gcx; ๐Ÿ”’
use solar::sema::hir::ContractId; ๐Ÿ”’
use solar::sema::hir::SourceId; ๐Ÿ”’
use solar::sema::interface::source_map::FileName; ๐Ÿ”’
use std::collections::BTreeMap; ๐Ÿ”’
use std::collections::HashSet; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’

Structsยง

ContractConstructorData
Keeps data about a contract constructor.
ContractData ๐Ÿ”’
Keeps data about a single contract definition.

Constantsยง

DEPLOY_HELPERS_DIR ๐Ÿ”’
Directory of the deploy helper sources generated by the preprocessor.

Functionsยง

collect_preprocessor_data ๐Ÿ”’
Collects preprocessor data from referenced contracts.
create_deploy_helpers ๐Ÿ”’
Creates helper libraries for contracts with a non-empty constructor.
deploy_helper_path ๐Ÿ”’
Returns a generated helper path that cannot overwrite an existing source unit.
is_deploy_helper_path
Returns whether the path points to a deploy helper source generated by the preprocessor.
reserved_identifiers ๐Ÿ”’
Reserves names only in the sourceโ€™s import closure, which is stable across compiler jobs.
solidity_string_content ๐Ÿ”’
unique_identifier ๐Ÿ”’

Type Aliasesยง

PreprocessorData
Keeps data about project contracts definitions referenced from tests and scripts. Contract id -> Contract data definition mapping.