Crate foundry_compilers_artifacts_solc

Source
Expand description

Solc artifact types.

Re-exports§

pub use serde_helpers::deserialize_bytes;
pub use serde_helpers::deserialize_opt_bytes;
pub use error::*;
pub use ast::*;
pub use remappings::*;
pub use bytecode::*;
pub use contract::*;
pub use configurable::*;
pub use sources::*;

Modules§

ast
Bindings for the Solidity and Yul ASTs.
bytecode
Bytecode related types.
configurable
contract
Contract related types.
error
hh
Hardhat support
output_selection
Bindings for standard json output selection.
remappings
serde_helpers
Serde helpers.
sourcemap
sources

Structs§

Compiler
CompilerOutput
Output type solc produces
Creation
DebuggingSettings
Debugging settings for solc
DevDoc
Doc
DocLibraries
ErrorDoc
EventDoc
Evm
Ewasm
FunctionDebugData
GasEstimates
GeneratedSource
Item
Libraries
A wrapper type for all libraries in the form of <file>:<lib>:<addr>
LosslessMetadata
A helper type that ensures lossless (de)serialisation so we can preserve the exact String metadata value that’s being hashed by solc
Metadata
Bindings for solc contract metadata
MetadataSettings
Compiler settings
MetadataSource
MetadataSources
Compilation source files/source units, keys are file names
MethodDoc
ModelCheckerSettings
Model checker settings for solc
Offsets
Byte offsets into the bytecode. Linking replaces the 20 bytes located there.
Optimizer
OptimizerDetails
Output
OutputContracts
A wrapper helper type for the Contracts type alias
Settings
SettingsMetadata
SolcAbi
SolcInput
Input type solc expects.
SourceFile
SourceFiles
A wrapper type for a list of source files: path -> SourceFile.
StandardJsonCompilerInput
A CompilerInput representation used for verify
Storage
StorageLayout
Represents the storage-layout section of the CompilerOutput if selected.
StorageType
UserDoc
YulDetails

Enums§

BytecodeHash
Determines the hash method for the metadata hash that is appended to the bytecode.
EvmVersion
EVM versions.
ModelCheckerEngine
Which model checker engine to run.
ModelCheckerInvariant
Which model checker invariants to check.
ModelCheckerSolver
Which model checker solvers to check.
ModelCheckerTarget
Which model checker targets to check.
RevertStrings
How to treat revert (and require) reason strings.
SolcLanguage
Languages supported by the Solc compiler.
UserDocNotice

Constants§

SOLIDITY
YUL

Type Aliases§

Contracts
file -> (contract name -> Contract)
FileToContractsMap
Solidity files are made up of multiple source units, a solidity contract is such a source unit, therefore a solidity file can contain multiple contracts: (1-N*) relationship.