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
- Compiler
Output - Output type
solc
produces - Creation
- Debugging
Settings - Debugging settings for solc
- DevDoc
- Doc
- DocLibraries
- Error
Doc - Event
Doc - Evm
- Ewasm
- Function
Debug Data - GasEstimates
- Generated
Source - Item
- Libraries
- A wrapper type for all libraries in the form of
<file>:<lib>:<addr>
- Lossless
Metadata - 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 - Metadata
Settings - Compiler settings
- Metadata
Source - Metadata
Sources - Compilation source files/source units, keys are file names
- Method
Doc - Model
Checker Settings - Model checker settings for solc
- Offsets
- Byte offsets into the bytecode. Linking replaces the 20 bytes located there.
- Optimizer
- Optimizer
Details - Output
- Output
Contracts - A wrapper helper type for the
Contracts
type alias - Settings
- Settings
Metadata - SolcAbi
- Solc
Input - Input type
solc
expects. - Source
File - Source
Files - A wrapper type for a list of source files:
path -> SourceFile
. - Standard
Json Compiler Input - A
CompilerInput
representation used for verify - Storage
- Storage
Layout - Represents the
storage-layout
section of theCompilerOutput
if selected. - Storage
Type - UserDoc
- YulDetails
Enums§
- Bytecode
Hash - Determines the hash method for the metadata hash that is appended to the bytecode.
- EvmVersion
- EVM versions.
- Model
Checker Engine - Which model checker engine to run.
- Model
Checker Invariant - Which model checker invariants to check.
- Model
Checker Solver - Which model checker solvers to check.
- Model
Checker Target - Which model checker targets to check.
- Revert
Strings - How to treat revert (and require) reason strings.
- Solc
Language - Languages supported by the Solc compiler.
- User
DocNotice
Constants§
Type Aliases§
- Contracts
- file -> (contract name -> Contract)
- File
ToContracts Map - Solidity files are made up of multiple
source units
, a solidity contract is such asource unit
, therefore a solidity file can contain multiple contracts: (1-N*) relationship.