Expand description
Support for compiling [foundry_compilers::Project]
Structsยง
- Contract
Info - How big the contract is and whether it is a dev contract where size limits can be neglected
- Contract
Size Limits - Runtime and initcode byte-size limits for compiled contract size reports.
- Project
Compiler - Builder type to configure how to compile a project.
- Size
Report - Contracts with info about their size
Enumsยง
- Path
OrContract Info - Container type for parsing contract identifiers from CLI.
Constantsยง
- CONTRACT_
INITCODE_ ๐SIZE_ LIMIT - CONTRACT_
INITCODE_ ๐SIZE_ WARN_ THRESHOLD - CONTRACT_
RUNTIME_ ๐SIZE_ LIMIT - CONTRACT_
RUNTIME_ ๐SIZE_ WARN_ THRESHOLD
Functionsยง
- collect_
libraries ๐ - Parses each source file with solar and returns the library names declared in it.
- compile_
abi_ project - Compiles the project requesting only ABI output.
- compile_
target - Compiles target file path.
- compile_
target_ abi - Compiles the target contract requesting only ABI output and returns its ABI.
- contract_
size ๐ - Returns the deployed or init size of the contract.
- etherscan_
project - Creates a [Project] from an Etherscan source.
- scaled_
threshold ๐ - with_
compilation_ reporter - Configures the reporter and runs the given closure.
Type Aliasesยง
- Analysis
- A Solar compiler instance, to grant syntactic and semantic analysis capabilities.