Expand description
Standard JSON Compilation Interface
Implements the Solidity compiler standard JSON input/output format for compatibility with existing tooling (Hardhat, Foundry, etc.).
ยงInput Format
{
"language": "Solidity",
"sources": {
"Contract.sol": { "content": "..." }
},
"settings": {
"optimizer": { "enabled": true, "runs": 200 }
}
}ยงOutput Format
Returns compiled contracts with bytecode, ABI, and metadata in JSON format compatible with standard Solidity compiler output.
Structsยง
- Standard
Json ๐Input - Standard
Json ๐Options - Standard
Json ๐Source
Functionsยง
- build_
combined_ ๐source_ with_ import_ validation - build_
compiled_ ๐contract_ value - build_
contract_ ๐file_ map - build_
metadata_ ๐blob - build_
method_ ๐identifiers - build_
standard_ ๐abi - build_
storage_ ๐map - canonical_
param_ ๐type - diagnostic_
to_ ๐standard_ error - hex_
prefixed ๐ - infer_
validation_ ๐code - keccak256_
hex ๐ - process_
standard_ ๐json - process_
standard_ ๐json_ content - read_
optimizer_ ๐level - sanitize_
contract_ ๐name - solidity_
to_ ๐manifest_ type - state_
mutability_ ๐label - unsupported_
settings_ ๐warning - zero_
gas_ ๐estimate_ value